Whamcloud - gitweb
Use inline instead of __inline__ in the blkid debugging code for
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE HTREE_CMT HTREE_CLR_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842   cat <<\_ACEOF
843
844 Optional Features:
845   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847   --enable-compression    enable EXPERIMENTAL compression support
848   --enable-htree          enable EXPERIMENTAL htree directory support
849   --enable-htree-clear    clear htree because we don't trust e2fsck
850   --enable-elf-shlibs     select ELF shared libraries
851   --enable-bsd-shlibs     select BSD shared libraries
852   --enable-profile        build profiling libraries
853   --enable-checker        build checker libraries
854   --enable-jbd-debug      enable journal debugging
855   --enable-blkid-debug    enable blkid debugging
856   --enable-testio-debug   enable the use of the test I/O manager for debugging
857   --disable-swapfs        disable support of legacy byte-swapped filesystems
858   --disable-debugfs       disable support of debugfs program
859   --disable-imager        disable support of e2image program
860   --disable-resizer       disable support of e2resize program
861   --enable-dynamic-e2fsck build e2fsck dynamically
862   --enable-fsck           build fsck wrapper program
863   --enable-e2initrd-helper build e2initrd-helper program
864   --disable-nls           do not use Native Language Support
865   --disable-rpath         do not hardcode runtime library paths
866
867 Optional Packages:
868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870   --with-diet-libc      Use diet libc
871   --with-cc=COMPILER      select compiler to use
872   --with-linker=LINKER    select linker to use
873   --with-ccopts=CCOPTS    select compiler command line options
874   --with-ldopts=LDOPTS    select linker command line options
875   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
876   --with-gnu-ld           assume the C compiler uses GNU ld default=no
877   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
878   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
879   --with-included-gettext use the GNU gettext library included here
880   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
881   --without-libintl-prefix     don't search for libintl in includedir and libdir
882
883 Some influential environment variables:
884   CC          C compiler command
885   CFLAGS      C compiler flags
886   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887               nonstandard directory <lib dir>
888   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889               headers in a nonstandard directory <include dir>
890   CPP         C preprocessor
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 _ACEOF
896 fi
897
898 if test "$ac_init_help" = "recursive"; then
899   # If there are subdirs, report their specific --help.
900   ac_popdir=`pwd`
901   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902     test -d $ac_dir || continue
903     ac_builddir=.
904
905 if test "$ac_dir" != .; then
906   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907   # A "../" for each directory in $ac_dir_suffix.
908   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910   ac_dir_suffix= ac_top_builddir=
911 fi
912
913 case $srcdir in
914   .)  # No --srcdir option.  We are building in place.
915     ac_srcdir=.
916     if test -z "$ac_top_builddir"; then
917        ac_top_srcdir=.
918     else
919        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920     fi ;;
921   [\\/]* | ?:[\\/]* )  # Absolute path.
922     ac_srcdir=$srcdir$ac_dir_suffix;
923     ac_top_srcdir=$srcdir ;;
924   *) # Relative path.
925     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926     ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
931 case `pwd` in
932 .) ac_abs_builddir="$ac_dir";;
933 *)
934   case "$ac_dir" in
935   .) ac_abs_builddir=`pwd`;;
936   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937   *) ac_abs_builddir=`pwd`/"$ac_dir";;
938   esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *)
943   case ${ac_top_builddir}. in
944   .) ac_abs_top_builddir=$ac_abs_builddir;;
945   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947   esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
951 *)
952   case $ac_srcdir in
953   .) ac_abs_srcdir=$ac_abs_builddir;;
954   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956   esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *)
961   case $ac_top_srcdir in
962   .) ac_abs_top_srcdir=$ac_abs_builddir;;
963   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965   esac;;
966 esac
967
968     cd $ac_dir
969     # Check for guested configure; otherwise get Cygnus style configure.
970     if test -f $ac_srcdir/configure.gnu; then
971       echo
972       $SHELL $ac_srcdir/configure.gnu  --help=recursive
973     elif test -f $ac_srcdir/configure; then
974       echo
975       $SHELL $ac_srcdir/configure  --help=recursive
976     elif test -f $ac_srcdir/configure.ac ||
977            test -f $ac_srcdir/configure.in; then
978       echo
979       $ac_configure --help
980     else
981       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982     fi
983     cd "$ac_popdir"
984   done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989   cat <<\_ACEOF
990
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995   exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59.  Invocation command line was
1004
1005   $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031 _ASUNAME
1032
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036   IFS=$as_save_IFS
1037   test -z "$as_dir" && as_dir=.
1038   echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&5 <<_ACEOF
1044
1045
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1049
1050 _ACEOF
1051
1052
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1064 do
1065   for ac_arg
1066   do
1067     case $ac_arg in
1068     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070     | -silent | --silent | --silen | --sile | --sil)
1071       continue ;;
1072     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074     esac
1075     case $ac_pass in
1076     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077     2)
1078       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079       if test $ac_must_keep_next = true; then
1080         ac_must_keep_next=false # Got value, back to normal.
1081       else
1082         case $ac_arg in
1083           *=* | --config-cache | -C | -disable-* | --disable-* \
1084           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086           | -with-* | --with-* | -without-* | --without-* | --x)
1087             case "$ac_configure_args0 " in
1088               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089             esac
1090             ;;
1091           -* ) ac_must_keep_next=true ;;
1092         esac
1093       fi
1094       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095       # Get rid of the leading space.
1096       ac_sep=" "
1097       ;;
1098     esac
1099   done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log.  We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110   # Save into config.log some information that might help in debugging.
1111   {
1112     echo
1113
1114     cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119     echo
1120     # The following way of writing the cache mishandles newlines in values,
1121 {
1122   (set) 2>&1 |
1123     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124     *ac_space=\ *)
1125       sed -n \
1126         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128       ;;
1129     *)
1130       sed -n \
1131         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132       ;;
1133     esac;
1134 }
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142     echo
1143     for ac_var in $ac_subst_vars
1144     do
1145       eval ac_val=$`echo $ac_var`
1146       echo "$ac_var='"'"'$ac_val'"'"'"
1147     done | sort
1148     echo
1149
1150     if test -n "$ac_subst_files"; then
1151       cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156       echo
1157       for ac_var in $ac_subst_files
1158       do
1159         eval ac_val=$`echo $ac_var`
1160         echo "$ac_var='"'"'$ac_val'"'"'"
1161       done | sort
1162       echo
1163     fi
1164
1165     if test -s confdefs.h; then
1166       cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171       echo
1172       sed "/^$/d" confdefs.h | sort
1173       echo
1174     fi
1175     test "$ac_signal" != 0 &&
1176       echo "$as_me: caught signal $ac_signal"
1177     echo "$as_me: exit $exit_status"
1178   } >&5
1179   rm -f core *.core &&
1180   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181     exit $exit_status
1182      ' 0
1183 for ac_signal in 1 2 13 15; do
1184   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1187
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1192
1193 # Predefined preprocessor variables.
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1218
1219
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223   if test "x$prefix" != xNONE; then
1224     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225   else
1226     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227   fi
1228 fi
1229 for ac_site_file in $CONFIG_SITE; do
1230   if test -r "$ac_site_file"; then
1231     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233     sed 's/^/| /' "$ac_site_file" >&5
1234     . "$ac_site_file"
1235   fi
1236 done
1237
1238 if test -r "$cache_file"; then
1239   # Some versions of bash will fail to source /dev/null (special
1240   # files actually), so we avoid doing that.
1241   if test -f "$cache_file"; then
1242     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244     case $cache_file in
1245       [\\/]* | ?:[\\/]* ) . $cache_file;;
1246       *)                      . ./$cache_file;;
1247     esac
1248   fi
1249 else
1250   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252   >$cache_file
1253 fi
1254
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261   eval ac_new_set=\$ac_env_${ac_var}_set
1262   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263   eval ac_new_val="\$ac_env_${ac_var}_value"
1264   case $ac_old_set,$ac_new_set in
1265     set,)
1266       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268       ac_cache_corrupted=: ;;
1269     ,set)
1270       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272       ac_cache_corrupted=: ;;
1273     ,);;
1274     *)
1275       if test "x$ac_old_val" != "x$ac_new_val"; then
1276         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279 echo "$as_me:   former value:  $ac_old_val" >&2;}
1280         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281 echo "$as_me:   current value: $ac_new_val" >&2;}
1282         ac_cache_corrupted=:
1283       fi;;
1284   esac
1285   # Pass precious variables to config.status.
1286   if test "$ac_new_set" = set; then
1287     case $ac_new_val in
1288     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290     *) ac_arg=$ac_var=$ac_new_val ;;
1291     esac
1292     case " $ac_configure_args " in
1293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295     esac
1296   fi
1297 done
1298 if $ac_cache_corrupted; then
1299   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303    { (exit 1); exit 1; }; }
1304 fi
1305
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 ac_aux_dir=
1332 for ac_dir in config $srcdir/config; do
1333   if test -f $ac_dir/install-sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install-sh -c"
1336     break
1337   elif test -f $ac_dir/install.sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install.sh -c"
1340     break
1341   elif test -f $ac_dir/shtool; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/shtool install -c"
1344     break
1345   fi
1346 done
1347 if test -z "$ac_aux_dir"; then
1348   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1350    { (exit 1); exit 1; }; }
1351 fi
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1355
1356 MCONFIG=./MCONFIG
1357
1358 BINARY_TYPE=bin
1359 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1360         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1361 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1362         | tr \" " "`
1363 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1364 MONTH=`echo $DATE | awk -F- '{print $2}'`
1365 YEAR=`echo $DATE | awk -F- '{print $3}'`
1366
1367 if expr $YEAR ">" 1900 > /dev/null ; then
1368         E2FSPROGS_YEAR=$YEAR
1369 elif expr $YEAR ">" 90 >/dev/null ; then
1370         E2FSPROGS_YEAR=19$YEAR
1371 else
1372         E2FSPROGS_YEAR=20$YEAR
1373 fi
1374
1375 case $MONTH in
1376 Jan)    E2FSPROGS_MONTH="January" ;;
1377 Feb)    E2FSPROGS_MONTH="February" ;;
1378 Mar)    E2FSPROGS_MONTH="March" ;;
1379 Apr)    E2FSPROGS_MONTH="April" ;;
1380 May)    E2FSPROGS_MONTH="May" ;;
1381 Jun)    E2FSPROGS_MONTH="June" ;;
1382 Jul)    E2FSPROGS_MONTH="July" ;;
1383 Aug)    E2FSPROGS_MONTH="August" ;;
1384 Sep)    E2FSPROGS_MONTH="September" ;;
1385 Oct)    E2FSPROGS_MONTH="October" ;;
1386 Nov)    E2FSPROGS_MONTH="November" ;;
1387 Dec)    E2FSPROGS_MONTH="December" ;;
1388 *)      echo "Unknown month $MONTH??" ;;
1389 esac
1390
1391 unset DATE MONTH YEAR
1392 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1393 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1394
1395
1396
1397
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402    { (exit 1); exit 1; }; }
1403
1404 echo "$as_me:$LINENO: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407   echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409   ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411   ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415    { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1424 build=$ac_cv_build
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430 echo "$as_me:$LINENO: checking host system type" >&5
1431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432 if test "${ac_cv_host+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   ac_cv_host_alias=$host_alias
1436 test -z "$ac_cv_host_alias" &&
1437   ac_cv_host_alias=$ac_cv_build_alias
1438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441    { (exit 1); exit 1; }; }
1442
1443 fi
1444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445 echo "${ECHO_T}$ac_cv_host" >&6
1446 host=$ac_cv_host
1447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1451
1452
1453 # Check whether --with-diet-libc or --without-diet-libc was given.
1454 if test "${with_diet_libc+set}" = set; then
1455   withval="$with_diet_libc"
1456   CC="diet cc -nostdinc"
1457 echo "$as_me:$LINENO: result: CC=$CC" >&5
1458 echo "${ECHO_T}CC=$CC" >&6
1459 fi;
1460 # Check whether --with-cc or --without-cc was given.
1461 if test "${with_cc+set}" = set; then
1462   withval="$with_cc"
1463   echo "$as_me:$LINENO: result: CC=$withval" >&5
1464 echo "${ECHO_T}CC=$withval" >&6
1465 CC=$withval
1466 else
1467   if test -z "$CC" ; then CC=cc; fi
1468 echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1469 echo "${ECHO_T}CC defaults to $CC" >&6
1470 fi; export CC
1471
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$CC"; then
1486   ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 CC=$ac_cv_prog_CC
1505 if test -n "$CC"; then
1506   echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 fi
1514 if test -z "$ac_cv_prog_CC"; then
1515   ac_ct_CC=$CC
1516   # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$ac_ct_CC"; then
1524   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_ac_ct_CC="gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551   CC=$ac_ct_CC
1552 else
1553   CC="$ac_cv_prog_CC"
1554 fi
1555
1556 if test -z "$CC"; then
1557   if test -n "$ac_tool_prefix"; then
1558   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$CC"; then
1566   ac_cv_prog_CC="$CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_CC="${ac_tool_prefix}cc"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 CC=$ac_cv_prog_CC
1585 if test -n "$CC"; then
1586   echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 fi
1594 if test -z "$ac_cv_prog_CC"; then
1595   ac_ct_CC=$CC
1596   # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$ac_ct_CC"; then
1604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_ac_ct_CC="cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631   CC=$ac_ct_CC
1632 else
1633   CC="$ac_cv_prog_CC"
1634 fi
1635
1636 fi
1637 if test -z "$CC"; then
1638   # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$CC"; then
1646   ac_cv_prog_CC="$CC" # Let the user override the test.
1647 else
1648   ac_prog_rejected=no
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657        ac_prog_rejected=yes
1658        continue
1659      fi
1660     ac_cv_prog_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 if test $ac_prog_rejected = yes; then
1668   # We found a bogon in the path, so make sure we never use it.
1669   set dummy $ac_cv_prog_CC
1670   shift
1671   if test $# != 0; then
1672     # We chose a different compiler from the bogus one.
1673     # However, it has the same basename, so the bogon will be chosen
1674     # first if we set CC to just the basename; use the full file name.
1675     shift
1676     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677   fi
1678 fi
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683   echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 fi
1691 if test -z "$CC"; then
1692   if test -n "$ac_tool_prefix"; then
1693   for ac_prog in cl
1694   do
1695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730     test -n "$CC" && break
1731   done
1732 fi
1733 if test -z "$CC"; then
1734   ac_ct_CC=$CC
1735   for ac_prog in cl
1736 do
1737   # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   if test -n "$ac_ct_CC"; then
1745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     ac_cv_prog_ac_ct_CC="$ac_prog"
1755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756     break 2
1757   fi
1758 done
1759 done
1760
1761 fi
1762 fi
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772   test -n "$ac_ct_CC" && break
1773 done
1774
1775   CC=$ac_ct_CC
1776 fi
1777
1778 fi
1779
1780
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789      "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792   (eval $ac_compiler --version </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797   (eval $ac_compiler -v </dev/null >&5) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802   (eval $ac_compiler -V </dev/null >&5) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }
1806
1807 cat >conftest.$ac_ext <<_ACEOF
1808 /* confdefs.h.  */
1809 _ACEOF
1810 cat confdefs.h >>conftest.$ac_ext
1811 cat >>conftest.$ac_ext <<_ACEOF
1812 /* end confdefs.h.  */
1813
1814 int
1815 main ()
1816 {
1817
1818   ;
1819   return 0;
1820 }
1821 _ACEOF
1822 ac_clean_files_save=$ac_clean_files
1823 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1824 # Try to create an executable without -o first, disregard a.out.
1825 # It will help us diagnose broken compilers, and finding out an intuition
1826 # of exeext.
1827 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1828 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1829 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1830 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1831   (eval $ac_link_default) 2>&5
1832   ac_status=$?
1833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834   (exit $ac_status); }; then
1835   # Find the output, starting from the most likely.  This scheme is
1836 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1837 # resort.
1838
1839 # Be careful to initialize this variable, since it used to be cached.
1840 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1841 ac_cv_exeext=
1842 # b.out is created by i960 compilers.
1843 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1844 do
1845   test -f "$ac_file" || continue
1846   case $ac_file in
1847     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1848         ;;
1849     conftest.$ac_ext )
1850         # This is the source file.
1851         ;;
1852     [ab].out )
1853         # We found the default executable, but exeext='' is most
1854         # certainly right.
1855         break;;
1856     *.* )
1857         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1858         # FIXME: I believe we export ac_cv_exeext for Libtool,
1859         # but it would be cool to find out if it's true.  Does anybody
1860         # maintain Libtool? --akim.
1861         export ac_cv_exeext
1862         break;;
1863     * )
1864         break;;
1865   esac
1866 done
1867 else
1868   echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&5
1873 echo "$as_me: error: C compiler cannot create executables
1874 See \`config.log' for more details." >&2;}
1875    { (exit 77); exit 77; }; }
1876 fi
1877
1878 ac_exeext=$ac_cv_exeext
1879 echo "$as_me:$LINENO: result: $ac_file" >&5
1880 echo "${ECHO_T}$ac_file" >&6
1881
1882 # Check the compiler produces executables we can run.  If not, either
1883 # the compiler is broken, or we cross compile.
1884 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1887 # If not cross compiling, check that we can run a simple program.
1888 if test "$cross_compiling" != yes; then
1889   if { ac_try='./$ac_file'
1890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891   (eval $ac_try) 2>&5
1892   ac_status=$?
1893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894   (exit $ac_status); }; }; then
1895     cross_compiling=no
1896   else
1897     if test "$cross_compiling" = maybe; then
1898         cross_compiling=yes
1899     else
1900         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot run C compiled programs.
1904 If you meant to cross compile, use \`--host'.
1905 See \`config.log' for more details." >&2;}
1906    { (exit 1); exit 1; }; }
1907     fi
1908   fi
1909 fi
1910 echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1912
1913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1914 ac_clean_files=$ac_clean_files_save
1915 # Check the compiler produces executables we can run.  If not, either
1916 # the compiler is broken, or we cross compile.
1917 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1919 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1920 echo "${ECHO_T}$cross_compiling" >&6
1921
1922 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1925   (eval $ac_link) 2>&5
1926   ac_status=$?
1927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928   (exit $ac_status); }; then
1929   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1930 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1931 # work properly (i.e., refer to `conftest.exe'), while it won't with
1932 # `rm'.
1933 for ac_file in conftest.exe conftest conftest.*; do
1934   test -f "$ac_file" || continue
1935   case $ac_file in
1936     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1937     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1938           export ac_cv_exeext
1939           break;;
1940     * ) break;;
1941   esac
1942 done
1943 else
1944   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1947 See \`config.log' for more details." >&2;}
1948    { (exit 1); exit 1; }; }
1949 fi
1950
1951 rm -f conftest$ac_cv_exeext
1952 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1953 echo "${ECHO_T}$ac_cv_exeext" >&6
1954
1955 rm -f conftest.$ac_ext
1956 EXEEXT=$ac_cv_exeext
1957 ac_exeext=$EXEEXT
1958 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1960 if test "${ac_cv_objext+set}" = set; then
1961   echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963   cat >conftest.$ac_ext <<_ACEOF
1964 /* confdefs.h.  */
1965 _ACEOF
1966 cat confdefs.h >>conftest.$ac_ext
1967 cat >>conftest.$ac_ext <<_ACEOF
1968 /* end confdefs.h.  */
1969
1970 int
1971 main ()
1972 {
1973
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 rm -f conftest.o conftest.obj
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980   (eval $ac_compile) 2>&5
1981   ac_status=$?
1982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983   (exit $ac_status); }; then
1984   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1985   case $ac_file in
1986     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1987     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1988        break;;
1989   esac
1990 done
1991 else
1992   echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2003 fi
2004 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2005 echo "${ECHO_T}$ac_cv_objext" >&6
2006 OBJEXT=$ac_cv_objext
2007 ac_objext=$OBJEXT
2008 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2009 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   cat >conftest.$ac_ext <<_ACEOF
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023 #ifndef __GNUC__
2024        choke me
2025 #endif
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033   (eval $ac_compile) 2>conftest.er1
2034   ac_status=$?
2035   grep -v '^ *+' conftest.er1 >conftest.err
2036   rm -f conftest.er1
2037   cat conftest.err >&5
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); } &&
2040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042   (eval $ac_try) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; } &&
2046          { ac_try='test -s conftest.$ac_objext'
2047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048   (eval $ac_try) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; }; then
2052   ac_compiler_gnu=yes
2053 else
2054   echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_compiler_gnu=no
2058 fi
2059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2061
2062 fi
2063 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2065 GCC=`test $ac_compiler_gnu = yes && echo yes`
2066 ac_test_CFLAGS=${CFLAGS+set}
2067 ac_save_CFLAGS=$CFLAGS
2068 CFLAGS="-g"
2069 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2071 if test "${ac_cv_prog_cc_g+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   cat >conftest.$ac_ext <<_ACEOF
2075 /* confdefs.h.  */
2076 _ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h.  */
2080
2081 int
2082 main ()
2083 {
2084
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091   (eval $ac_compile) 2>conftest.er1
2092   ac_status=$?
2093   grep -v '^ *+' conftest.er1 >conftest.err
2094   rm -f conftest.er1
2095   cat conftest.err >&5
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); } &&
2098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; } &&
2104          { ac_try='test -s conftest.$ac_objext'
2105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106   (eval $ac_try) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }; }; then
2110   ac_cv_prog_cc_g=yes
2111 else
2112   echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_cv_prog_cc_g=no
2116 fi
2117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2118 fi
2119 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2121 if test "$ac_test_CFLAGS" = set; then
2122   CFLAGS=$ac_save_CFLAGS
2123 elif test $ac_cv_prog_cc_g = yes; then
2124   if test "$GCC" = yes; then
2125     CFLAGS="-g -O2"
2126   else
2127     CFLAGS="-g"
2128   fi
2129 else
2130   if test "$GCC" = yes; then
2131     CFLAGS="-O2"
2132   else
2133     CFLAGS=
2134   fi
2135 fi
2136 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2137 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2138 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   ac_cv_prog_cc_stdc=no
2142 ac_save_CC=$CC
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149 #include <stdarg.h>
2150 #include <stdio.h>
2151 #include <sys/types.h>
2152 #include <sys/stat.h>
2153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2154 struct buf { int x; };
2155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2156 static char *e (p, i)
2157      char **p;
2158      int i;
2159 {
2160   return p[i];
2161 }
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2163 {
2164   char *s;
2165   va_list v;
2166   va_start (v,p);
2167   s = g (p, va_arg (v,int));
2168   va_end (v);
2169   return s;
2170 }
2171
2172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2173    function prototypes and stuff, but not '\xHH' hex character constants.
2174    These don't provoke an error unfortunately, instead are silently treated
2175    as 'x'.  The following induces an error, until -std1 is added to get
2176    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2177    array size at least.  It's necessary to write '\x00'==0 to get something
2178    that's true only with -std1.  */
2179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2180
2181 int test (int i, double x);
2182 struct s1 {int (*f) (int a);};
2183 struct s2 {int (*f) (double a);};
2184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185 int argc;
2186 char **argv;
2187 int
2188 main ()
2189 {
2190 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2191   ;
2192   return 0;
2193 }
2194 _ACEOF
2195 # Don't try gcc -ansi; that turns off useful extensions and
2196 # breaks some systems' header files.
2197 # AIX                   -qlanglvl=ansi
2198 # Ultrix and OSF/1      -std1
2199 # HP-UX 10.20 and later -Ae
2200 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2201 # SVR4                  -Xc -D__EXTENSIONS__
2202 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2203 do
2204   CC="$ac_save_CC $ac_arg"
2205   rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207   (eval $ac_compile) 2>conftest.er1
2208   ac_status=$?
2209   grep -v '^ *+' conftest.er1 >conftest.err
2210   rm -f conftest.er1
2211   cat conftest.err >&5
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); } &&
2214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216   (eval $ac_try) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; } &&
2220          { ac_try='test -s conftest.$ac_objext'
2221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222   (eval $ac_try) 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); }; }; then
2226   ac_cv_prog_cc_stdc=$ac_arg
2227 break
2228 else
2229   echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 fi
2233 rm -f conftest.err conftest.$ac_objext
2234 done
2235 rm -f conftest.$ac_ext conftest.$ac_objext
2236 CC=$ac_save_CC
2237
2238 fi
2239
2240 case "x$ac_cv_prog_cc_stdc" in
2241   x|xno)
2242     echo "$as_me:$LINENO: result: none needed" >&5
2243 echo "${ECHO_T}none needed" >&6 ;;
2244   *)
2245     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2246 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2247     CC="$CC $ac_cv_prog_cc_stdc" ;;
2248 esac
2249
2250 # Some people use a C++ compiler to compile C.  Since we use `exit',
2251 # in C++ we need to declare it.  In case someone uses the same compiler
2252 # for both compiling C and C++ we need to have the C++ compiler decide
2253 # the declaration of exit, since it's the most demanding environment.
2254 cat >conftest.$ac_ext <<_ACEOF
2255 #ifndef __cplusplus
2256   choke me
2257 #endif
2258 _ACEOF
2259 rm -f conftest.$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261   (eval $ac_compile) 2>conftest.er1
2262   ac_status=$?
2263   grep -v '^ *+' conftest.er1 >conftest.err
2264   rm -f conftest.er1
2265   cat conftest.err >&5
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); } &&
2268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; } &&
2274          { ac_try='test -s conftest.$ac_objext'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; }; then
2280   for ac_declaration in \
2281    '' \
2282    'extern "C" void std::exit (int) throw (); using std::exit;' \
2283    'extern "C" void std::exit (int); using std::exit;' \
2284    'extern "C" void exit (int) throw ();' \
2285    'extern "C" void exit (int);' \
2286    'void exit (int);'
2287 do
2288   cat >conftest.$ac_ext <<_ACEOF
2289 /* confdefs.h.  */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h.  */
2294 $ac_declaration
2295 #include <stdlib.h>
2296 int
2297 main ()
2298 {
2299 exit (42);
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>conftest.er1
2307   ac_status=$?
2308   grep -v '^ *+' conftest.er1 >conftest.err
2309   rm -f conftest.er1
2310   cat conftest.err >&5
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); } &&
2313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315   (eval $ac_try) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; } &&
2319          { ac_try='test -s conftest.$ac_objext'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325   :
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 continue
2331 fi
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333   cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339 $ac_declaration
2340 int
2341 main ()
2342 {
2343 exit (42);
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350   (eval $ac_compile) 2>conftest.er1
2351   ac_status=$?
2352   grep -v '^ *+' conftest.er1 >conftest.err
2353   rm -f conftest.er1
2354   cat conftest.err >&5
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); } &&
2357          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; } &&
2363          { ac_try='test -s conftest.$ac_objext'
2364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365   (eval $ac_try) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; }; then
2369   break
2370 else
2371   echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 fi
2375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2376 done
2377 rm -f conftest*
2378 if test -n "$ac_declaration"; then
2379   echo '#ifdef __cplusplus' >>confdefs.h
2380   echo $ac_declaration      >>confdefs.h
2381   echo '#endif'             >>confdefs.h
2382 fi
2383
2384 else
2385   echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 fi
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390 ac_ext=c
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395
2396
2397 # Check whether --with-linker or --without-linker was given.
2398 if test "${with_linker+set}" = set; then
2399   withval="$with_linker"
2400   echo "$as_me:$LINENO: result: LD=$withval" >&5
2401 echo "${ECHO_T}LD=$withval" >&6
2402 LD=$withval
2403 else
2404   if test -z "$LD" ; then LD=$CC; fi
2405 echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2406 echo "${ECHO_T}LD defaults to $LD" >&6
2407 fi; export LD
2408
2409
2410 # Check whether --with-ccopts or --without-ccopts was given.
2411 if test "${with_ccopts+set}" = set; then
2412   withval="$with_ccopts"
2413   echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2414 echo "${ECHO_T}CCOPTS is $withval" >&6
2415 CFLAGS=$withval
2416 fi;
2417 ac_ext=c
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2423 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2424 # On Suns, sometimes $CPP names a directory.
2425 if test -n "$CPP" && test -d "$CPP"; then
2426   CPP=
2427 fi
2428 if test -z "$CPP"; then
2429   if test "${ac_cv_prog_CPP+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432       # Double quotes because CPP needs to be expanded
2433     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2434     do
2435       ac_preproc_ok=false
2436 for ac_c_preproc_warn_flag in '' yes
2437 do
2438   # Use a header file that comes with gcc, so configuring glibc
2439   # with a fresh cross-compiler works.
2440   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2441   # <limits.h> exists even on freestanding compilers.
2442   # On the NeXT, cc -E runs the code through the compiler's parser,
2443   # not just through cpp. "Syntax error" is here to catch this case.
2444   cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h.  */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h.  */
2450 #ifdef __STDC__
2451 # include <limits.h>
2452 #else
2453 # include <assert.h>
2454 #endif
2455                      Syntax error
2456 _ACEOF
2457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2459   ac_status=$?
2460   grep -v '^ *+' conftest.er1 >conftest.err
2461   rm -f conftest.er1
2462   cat conftest.err >&5
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); } >/dev/null; then
2465   if test -s conftest.err; then
2466     ac_cpp_err=$ac_c_preproc_warn_flag
2467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2468   else
2469     ac_cpp_err=
2470   fi
2471 else
2472   ac_cpp_err=yes
2473 fi
2474 if test -z "$ac_cpp_err"; then
2475   :
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480   # Broken: fails on valid input.
2481 continue
2482 fi
2483 rm -f conftest.err conftest.$ac_ext
2484
2485   # OK, works on sane cases.  Now check whether non-existent headers
2486   # can be detected and how.
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493 #include <ac_nonexistent.h>
2494 _ACEOF
2495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497   ac_status=$?
2498   grep -v '^ *+' conftest.er1 >conftest.err
2499   rm -f conftest.er1
2500   cat conftest.err >&5
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); } >/dev/null; then
2503   if test -s conftest.err; then
2504     ac_cpp_err=$ac_c_preproc_warn_flag
2505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2506   else
2507     ac_cpp_err=
2508   fi
2509 else
2510   ac_cpp_err=yes
2511 fi
2512 if test -z "$ac_cpp_err"; then
2513   # Broken: success on invalid input.
2514 continue
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519   # Passes both tests.
2520 ac_preproc_ok=:
2521 break
2522 fi
2523 rm -f conftest.err conftest.$ac_ext
2524
2525 done
2526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2527 rm -f conftest.err conftest.$ac_ext
2528 if $ac_preproc_ok; then
2529   break
2530 fi
2531
2532     done
2533     ac_cv_prog_CPP=$CPP
2534
2535 fi
2536   CPP=$ac_cv_prog_CPP
2537 else
2538   ac_cv_prog_CPP=$CPP
2539 fi
2540 echo "$as_me:$LINENO: result: $CPP" >&5
2541 echo "${ECHO_T}$CPP" >&6
2542 ac_preproc_ok=false
2543 for ac_c_preproc_warn_flag in '' yes
2544 do
2545   # Use a header file that comes with gcc, so configuring glibc
2546   # with a fresh cross-compiler works.
2547   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2548   # <limits.h> exists even on freestanding compilers.
2549   # On the NeXT, cc -E runs the code through the compiler's parser,
2550   # not just through cpp. "Syntax error" is here to catch this case.
2551   cat >conftest.$ac_ext <<_ACEOF
2552 /* confdefs.h.  */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h.  */
2557 #ifdef __STDC__
2558 # include <limits.h>
2559 #else
2560 # include <assert.h>
2561 #endif
2562                      Syntax error
2563 _ACEOF
2564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566   ac_status=$?
2567   grep -v '^ *+' conftest.er1 >conftest.err
2568   rm -f conftest.er1
2569   cat conftest.err >&5
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); } >/dev/null; then
2572   if test -s conftest.err; then
2573     ac_cpp_err=$ac_c_preproc_warn_flag
2574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2575   else
2576     ac_cpp_err=
2577   fi
2578 else
2579   ac_cpp_err=yes
2580 fi
2581 if test -z "$ac_cpp_err"; then
2582   :
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587   # Broken: fails on valid input.
2588 continue
2589 fi
2590 rm -f conftest.err conftest.$ac_ext
2591
2592   # OK, works on sane cases.  Now check whether non-existent headers
2593   # can be detected and how.
2594   cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h.  */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h.  */
2600 #include <ac_nonexistent.h>
2601 _ACEOF
2602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2604   ac_status=$?
2605   grep -v '^ *+' conftest.er1 >conftest.err
2606   rm -f conftest.er1
2607   cat conftest.err >&5
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } >/dev/null; then
2610   if test -s conftest.err; then
2611     ac_cpp_err=$ac_c_preproc_warn_flag
2612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2613   else
2614     ac_cpp_err=
2615   fi
2616 else
2617   ac_cpp_err=yes
2618 fi
2619 if test -z "$ac_cpp_err"; then
2620   # Broken: success on invalid input.
2621 continue
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626   # Passes both tests.
2627 ac_preproc_ok=:
2628 break
2629 fi
2630 rm -f conftest.err conftest.$ac_ext
2631
2632 done
2633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2634 rm -f conftest.err conftest.$ac_ext
2635 if $ac_preproc_ok; then
2636   :
2637 else
2638   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2641 See \`config.log' for more details." >&2;}
2642    { (exit 1); exit 1; }; }
2643 fi
2644
2645 ac_ext=c
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650
2651
2652 echo "$as_me:$LINENO: checking for egrep" >&5
2653 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2654 if test "${ac_cv_prog_egrep+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2658     then ac_cv_prog_egrep='grep -E'
2659     else ac_cv_prog_egrep='egrep'
2660     fi
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2663 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2664  EGREP=$ac_cv_prog_egrep
2665
2666
2667 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2669 if test "${ac_cv_header_stdc+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678 #include <stdlib.h>
2679 #include <stdarg.h>
2680 #include <string.h>
2681 #include <float.h>
2682
2683 int
2684 main ()
2685 {
2686
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693   (eval $ac_compile) 2>conftest.er1
2694   ac_status=$?
2695   grep -v '^ *+' conftest.er1 >conftest.err
2696   rm -f conftest.er1
2697   cat conftest.err >&5
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); } &&
2700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; } &&
2706          { ac_try='test -s conftest.$ac_objext'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712   ac_cv_header_stdc=yes
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 ac_cv_header_stdc=no
2718 fi
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720
2721 if test $ac_cv_header_stdc = yes; then
2722   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2723   cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729 #include <string.h>
2730
2731 _ACEOF
2732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2733   $EGREP "memchr" >/dev/null 2>&1; then
2734   :
2735 else
2736   ac_cv_header_stdc=no
2737 fi
2738 rm -f conftest*
2739
2740 fi
2741
2742 if test $ac_cv_header_stdc = yes; then
2743   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2744   cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h.  */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h.  */
2750 #include <stdlib.h>
2751
2752 _ACEOF
2753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2754   $EGREP "free" >/dev/null 2>&1; then
2755   :
2756 else
2757   ac_cv_header_stdc=no
2758 fi
2759 rm -f conftest*
2760
2761 fi
2762
2763 if test $ac_cv_header_stdc = yes; then
2764   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2765   if test "$cross_compiling" = yes; then
2766   :
2767 else
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774 #include <ctype.h>
2775 #if ((' ' & 0x0FF) == 0x020)
2776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2778 #else
2779 # define ISLOWER(c) \
2780                    (('a' <= (c) && (c) <= 'i') \
2781                      || ('j' <= (c) && (c) <= 'r') \
2782                      || ('s' <= (c) && (c) <= 'z'))
2783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2784 #endif
2785
2786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2787 int
2788 main ()
2789 {
2790   int i;
2791   for (i = 0; i < 256; i++)
2792     if (XOR (islower (i), ISLOWER (i))
2793         || toupper (i) != TOUPPER (i))
2794       exit(2);
2795   exit (0);
2796 }
2797 _ACEOF
2798 rm -f conftest$ac_exeext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800   (eval $ac_link) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   :
2810 else
2811   echo "$as_me: program exited with status $ac_status" >&5
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 ( exit $ac_status )
2816 ac_cv_header_stdc=no
2817 fi
2818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2819 fi
2820 fi
2821 fi
2822 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2823 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2824 if test $ac_cv_header_stdc = yes; then
2825
2826 cat >>confdefs.h <<\_ACEOF
2827 #define STDC_HEADERS 1
2828 _ACEOF
2829
2830 fi
2831
2832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2843                   inttypes.h stdint.h unistd.h
2844 do
2845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2846 echo "$as_me:$LINENO: checking for $ac_header" >&5
2847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2849   echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851   cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h.  */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h.  */
2857 $ac_includes_default
2858
2859 #include <$ac_header>
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; } &&
2876          { ac_try='test -s conftest.$ac_objext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   eval "$as_ac_Header=yes"
2883 else
2884   echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2886
2887 eval "$as_ac_Header=no"
2888 fi
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890 fi
2891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2894   cat >>confdefs.h <<_ACEOF
2895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2896 _ACEOF
2897
2898 fi
2899
2900 done
2901
2902
2903 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2904   echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2905 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2906 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 fi
2909 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2910 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2911 else
2912   # Is the header compilable?
2913 echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2914 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h.  */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h.  */
2921 $ac_includes_default
2922 #include <linux/fs.h>
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; } &&
2939          { ac_try='test -s conftest.$ac_objext'
2940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941   (eval $ac_try) 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }; }; then
2945   ac_header_compiler=yes
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 ac_header_compiler=no
2951 fi
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2954 echo "${ECHO_T}$ac_header_compiler" >&6
2955
2956 # Is the header present?
2957 echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2958 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965 #include <linux/fs.h>
2966 _ACEOF
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969   ac_status=$?
2970   grep -v '^ *+' conftest.er1 >conftest.err
2971   rm -f conftest.er1
2972   cat conftest.err >&5
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } >/dev/null; then
2975   if test -s conftest.err; then
2976     ac_cpp_err=$ac_c_preproc_warn_flag
2977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2978   else
2979     ac_cpp_err=
2980   fi
2981 else
2982   ac_cpp_err=yes
2983 fi
2984 if test -z "$ac_cpp_err"; then
2985   ac_header_preproc=yes
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990   ac_header_preproc=no
2991 fi
2992 rm -f conftest.err conftest.$ac_ext
2993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2994 echo "${ECHO_T}$ac_header_preproc" >&6
2995
2996 # So?  What about this header?
2997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2998   yes:no: )
2999     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3000 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3001     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3002 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3003     ac_header_preproc=yes
3004     ;;
3005   no:yes:* )
3006     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3007 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3008     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3009 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3010     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3011 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3012     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3013 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3014     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3015 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3016     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3017 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3018     (
3019       cat <<\_ASBOX
3020 ## ------------------------------------------ ##
3021 ## Report this to the AC_PACKAGE_NAME lists.  ##
3022 ## ------------------------------------------ ##
3023 _ASBOX
3024     ) |
3025       sed "s/^/$as_me: WARNING:     /" >&2
3026     ;;
3027 esac
3028 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3029 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3030 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   ac_cv_header_linux_fs_h=$ac_header_preproc
3034 fi
3035 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3036 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3037
3038 fi
3039 if test $ac_cv_header_linux_fs_h = yes; then
3040   linux_headers=yes
3041 else
3042   linux_headers=no
3043 fi
3044
3045
3046 if test "$linux_headers" != yes; then
3047   LINUX_INCLUDE='-I$(top_builddir)/include'
3048 fi
3049
3050 echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3051 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
3052 if test "$GCC" = yes
3053 then
3054     case "$host_cpu" in
3055         alpha)          addcflags="-mieee" ;;
3056     esac
3057 fi
3058 if test "x$addcflags" != x
3059 then
3060     echo "$as_me:$LINENO: result: $addcflags" >&5
3061 echo "${ECHO_T}$addcflags" >&6
3062     CFLAGS="$addcflags $CFLAGS"
3063 else
3064     echo "$as_me:$LINENO: result: (none)" >&5
3065 echo "${ECHO_T}(none)" >&6
3066 fi
3067 LIB_EXT=.a
3068 STATIC_LIB_EXT=.a
3069 PROFILE_LIB_EXT=.a
3070
3071 # Check whether --with-ldopts or --without-ldopts was given.
3072 if test "${with_ldopts+set}" = set; then
3073   withval="$with_ldopts"
3074   echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3075 echo "${ECHO_T}LDFLAGS is $withval" >&6
3076 LDFLAGS=$withval
3077 else
3078   LDFLAGS=
3079 fi;
3080
3081 # Check whether --with-root-prefix or --without-root-prefix was given.
3082 if test "${with_root_prefix+set}" = set; then
3083   withval="$with_root_prefix"
3084   root_prefix=$withval
3085 else
3086   root_prefix=NONE
3087 fi; # Check whether --enable-compression or --disable-compression was given.
3088 if test "${enable_compression+set}" = set; then
3089   enableval="$enable_compression"
3090   if test "$enableval" = "no"
3091 then
3092         echo "Disabling compression support"
3093 else
3094         cat >>confdefs.h <<\_ACEOF
3095 #define ENABLE_COMPRESSION 1
3096 _ACEOF
3097
3098         echo "Enabling compression support"
3099         echo "WARNING: Compression support is experimental"
3100 fi
3101
3102 else
3103   echo "Disabling compression support by default"
3104
3105 fi;
3106 # Check whether --enable-htree or --disable-htree was given.
3107 if test "${enable_htree+set}" = set; then
3108   enableval="$enable_htree"
3109   if test "$enableval" = "no"
3110 then
3111         HTREE_CMT=#
3112         echo "Disabling htree directory support"
3113 else
3114         HTREE_CMT=
3115         cat >>confdefs.h <<\_ACEOF
3116 #define ENABLE_HTREE 1
3117 _ACEOF
3118
3119         echo "Enabling htree directory support"
3120 fi
3121
3122 else
3123   HTREE_CMT=
3124 cat >>confdefs.h <<\_ACEOF
3125 #define ENABLE_HTREE 1
3126 _ACEOF
3127
3128 echo "Enabling htree directory support by default"
3129
3130 fi;
3131
3132 # Check whether --enable-htree-clear or --disable-htree-clear was given.
3133 if test "${enable_htree_clear+set}" = set; then
3134   enableval="$enable_htree_clear"
3135   if test "$enableval" = "no"
3136 then
3137         HTREE_CLR_CMT=#
3138         echo "Disabling htree clearing"
3139 else
3140         HTREE_CLR_CMT=
3141         cat >>confdefs.h <<\_ACEOF
3142 #define ENABLE_HTREE_CLEAR 1
3143 _ACEOF
3144
3145         echo "Enabling htree clearing"
3146 fi
3147
3148 else
3149   HTREE_CLR_CMT=#
3150 echo "Disabling htree clearing by default"
3151
3152 fi;
3153
3154 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3155 if test "${enable_elf_shlibs+set}" = set; then
3156   enableval="$enable_elf_shlibs"
3157   if test "$enableval" = "no"
3158 then
3159         ELF_CMT=#
3160         MAKEFILE_ELF=/dev/null
3161         echo "Disabling ELF shared libraries"
3162 else
3163         ELF_CMT=
3164         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3165         case "$host_os" in
3166         solaris2.*)
3167                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3168         ;;
3169         esac
3170         BINARY_TYPE=elfbin
3171         LIB_EXT=.so
3172         echo "Enabling ELF shared libraries"
3173 fi
3174
3175 else
3176   MAKEFILE_ELF=/dev/null
3177 ELF_CMT=#
3178 echo "Disabling ELF shared libraries by default"
3179
3180 fi;
3181
3182
3183 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3184 if test "${enable_bsd_shlibs+set}" = set; then
3185   enableval="$enable_bsd_shlibs"
3186   if test "$enableval" = "no"
3187 then
3188         BSDLIB_CMT=#
3189         MAKEFILE_BSDLIB=/dev/null
3190         echo "Disabling BSD shared libraries"
3191 else
3192         BSDLIB_CMT=
3193         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3194         LIB_EXT=.so
3195         case "$host_os" in
3196         darwin*)
3197                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3198                 LIB_EXT=.dylib
3199         ;;
3200         esac
3201         echo "Enabling BSD shared libraries"
3202 fi
3203
3204 else
3205   MAKEFILE_BSDLIB=/dev/null
3206 BSDLIB_CMT=#
3207 echo "Disabling BSD shared libraries by default"
3208
3209 fi;
3210
3211
3212 # Check whether --enable-profile or --disable-profile was given.
3213 if test "${enable_profile+set}" = set; then
3214   enableval="$enable_profile"
3215   if test "$enableval" = "no"
3216 then
3217         PROFILE_CMT=#
3218         MAKEFILE_PROFILE=/dev/null
3219         echo "Disabling profiling libraries"
3220 else
3221         PROFILE_CMT=
3222         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3223         PROFILED_LIB_EXT=_p.a
3224         echo "Building profiling libraries"
3225 fi
3226
3227 else
3228   PROFILE_CMT=#
3229 MAKEFILE_PROFILE=/dev/null
3230 echo "Disabling profiling libraries by default"
3231
3232 fi;
3233
3234
3235 # Check whether --enable-checker or --disable-checker was given.
3236 if test "${enable_checker+set}" = set; then
3237   enableval="$enable_checker"
3238   if test "$enableval" = "no"
3239 then
3240         CHECKER_CMT=#
3241         MAKEFILE_CHECKER=/dev/null
3242         echo "Disabling checker libraries"
3243 else
3244         CHECKER_CMT=
3245         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3246         echo "Building checker libraries"
3247 fi
3248
3249 else
3250   CHECKER_CMT=#
3251 MAKEFILE_CHECKER=/dev/null
3252 echo "Disabling checker libraries by default"
3253
3254 fi;
3255
3256
3257
3258
3259
3260 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3261 if test "${enable_jbd_debug+set}" = set; then
3262   enableval="$enable_jbd_debug"
3263   if test "$enableval" = "no"
3264 then
3265         echo "Disabling journal debugging"
3266 else
3267         cat >>confdefs.h <<\_ACEOF
3268 #define CONFIG_JBD_DEBUG 1
3269 _ACEOF
3270
3271         echo "Enabling journal debugging"
3272 fi
3273
3274 else
3275   echo "Disabling journal debugging by default"
3276
3277 fi;
3278 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3279 if test "${enable_blkid_debug+set}" = set; then
3280   enableval="$enable_blkid_debug"
3281   if test "$enableval" = "no"
3282 then
3283         echo "Disabling blkid debugging"
3284 else
3285         cat >>confdefs.h <<\_ACEOF
3286 #define CONFIG_BLKID_DEBUG 1
3287 _ACEOF
3288
3289         echo "Enabling blkid debugging"
3290 fi
3291
3292 else
3293   echo "Disabling blkid debugging by default"
3294
3295 fi;
3296 # Check whether --enable-testio-debug or --disable-testio-debug was given.
3297 if test "${enable_testio_debug+set}" = set; then
3298   enableval="$enable_testio_debug"
3299   if test "$enableval" = "no"
3300 then
3301         echo "Disabling testio debugging"
3302 else
3303         cat >>confdefs.h <<\_ACEOF
3304 #define CONFIG_TESTIO_DEBUG 1
3305 _ACEOF
3306
3307         echo "Enabling testio debugging"
3308 fi
3309
3310 else
3311   echo "Disabling testio debugging by default"
3312
3313 fi;
3314 # Check whether --enable-swapfs or --disable-swapfs was given.
3315 if test "${enable_swapfs+set}" = set; then
3316   enableval="$enable_swapfs"
3317   if test "$enableval" = "no"
3318 then
3319         SWAPFS_CMT=#
3320         echo "Disabling swapfs support"
3321 else
3322         SWAPFS_CMT=
3323         cat >>confdefs.h <<\_ACEOF
3324 #define ENABLE_SWAPFS 1
3325 _ACEOF
3326
3327         echo "Enabling swapfs support"
3328 fi
3329
3330 else
3331   SWAPFS_CMT=
3332 echo "Enabling swapfs support by default"
3333 cat >>confdefs.h <<\_ACEOF
3334 #define ENABLE_SWAPFS 1
3335 _ACEOF
3336
3337
3338 fi;
3339
3340 # Check whether --enable-debugfs or --disable-debugfs was given.
3341 if test "${enable_debugfs+set}" = set; then
3342   enableval="$enable_debugfs"
3343   if test "$enableval" = "no"
3344 then
3345         echo "Disabling debugfs support"
3346         DEBUGFS_CMT="#"
3347 else
3348         DEBUGFS_CMT=
3349         echo "Enabling debugfs support"
3350 fi
3351
3352 else
3353   echo "Enabling debugfs support by default"
3354 DEBUGFS_CMT=
3355
3356 fi;
3357
3358 # Check whether --enable-imager or --disable-imager was given.
3359 if test "${enable_imager+set}" = set; then
3360   enableval="$enable_imager"
3361   if test "$enableval" = "no"
3362 then
3363         echo "Disabling e2image support"
3364         IMAGER_CMT="#"
3365 else
3366         IMAGER_CMT=
3367         echo "Enabling e2image support"
3368 fi
3369
3370 else
3371   echo "Enabling e2image support by default"
3372 IMAGER_CMT=
3373
3374 fi;
3375
3376 # Check whether --enable-resizer or --disable-resizer was given.
3377 if test "${enable_resizer+set}" = set; then
3378   enableval="$enable_resizer"
3379   if test "$enableval" = "no"
3380 then
3381         echo "Disabling e2resize support"
3382         RESIZER_CMT="#"
3383 else
3384         RESIZER_CMT=
3385         echo "Enabling e2resize support"
3386 fi
3387
3388 else
3389   echo "Enabling e2resize support by default"
3390 RESIZER_CMT=
3391
3392 fi;
3393
3394 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3395 if test "${enable_dynamic_e2fsck+set}" = set; then
3396   enableval="$enable_dynamic_e2fsck"
3397   if test "$enableval" = "no"
3398 then
3399         E2FSCK_TYPE=static
3400         echo "Building e2fsck statically"
3401 else
3402         E2FSCK_TYPE=shared
3403         echo "Building e2fsck dynamically"
3404 fi
3405
3406 else
3407   E2FSCK_TYPE=static
3408 echo "Building e2fsck statically by default"
3409
3410 fi;
3411
3412 # Check whether --enable-fsck or --disable-fsck was given.
3413 if test "${enable_fsck+set}" = set; then
3414   enableval="$enable_fsck"
3415   if test "$enableval" = "no"
3416 then
3417         FSCK_PROG='' FSCK_MAN=''
3418         echo "Not building fsck wrapper"
3419 else
3420         FSCK_PROG=fsck FSCK_MAN=fsck.8
3421         echo "Building fsck wrapper"
3422 fi
3423
3424 else
3425   case "$host_os" in
3426   gnu*)
3427     FSCK_PROG='' FSCK_MAN=''
3428     echo "Not building fsck wrapper by default"
3429     ;;
3430   *)
3431     FSCK_PROG=fsck FSCK_MAN=fsck.8
3432     echo "Building fsck wrapper by default"
3433 esac
3434
3435 fi;
3436
3437
3438 # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3439 if test "${enable_e2initrd_helper+set}" = set; then
3440   enableval="$enable_e2initrd_helper"
3441   if test "$enableval" = "no"
3442 then
3443         E2INITRD_PROG='' E2INITRD_MAN=''
3444         echo "Not building e2initrd helper"
3445 else
3446         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3447         echo "Building e2initrd helper"
3448 fi
3449
3450 else
3451   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3452 echo "Building e2initrd helper by default"
3453
3454 fi;
3455
3456
3457 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3458
3459 GETTEXT_PACKAGE=e2fsprogs
3460 PACKAGE=e2fsprogs
3461 VERSION="$E2FSPROGS_VERSION"
3462 VERSION=0.14.1
3463 cat >>confdefs.h <<_ACEOF
3464 #define PACKAGE "$PACKAGE"
3465 _ACEOF
3466
3467 cat >>confdefs.h <<_ACEOF
3468 #define VERSION "$VERSION"
3469 _ACEOF
3470
3471
3472
3473
3474
3475 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3476 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3477 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3478 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   cat >conftest.make <<\_ACEOF
3482 all:
3483         @echo 'ac_maketemp="$(MAKE)"'
3484 _ACEOF
3485 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3486 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3487 if test -n "$ac_maketemp"; then
3488   eval ac_cv_prog_make_${ac_make}_set=yes
3489 else
3490   eval ac_cv_prog_make_${ac_make}_set=no
3491 fi
3492 rm -f conftest.make
3493 fi
3494 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3495   echo "$as_me:$LINENO: result: yes" >&5
3496 echo "${ECHO_T}yes" >&6
3497   SET_MAKE=
3498 else
3499   echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501   SET_MAKE="MAKE=${MAKE-make}"
3502 fi
3503
3504 # Find a good install program.  We prefer a C program (faster),
3505 # so one script is as good as another.  But avoid the broken or
3506 # incompatible versions:
3507 # SysV /etc/install, /usr/sbin/install
3508 # SunOS /usr/etc/install
3509 # IRIX /sbin/install
3510 # AIX /bin/install
3511 # AmigaOS /C/install, which installs bootblocks on floppy discs
3512 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3513 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3514 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3515 # OS/2's system install, which has a completely different semantic
3516 # ./install, which can be erroneously created by make from ./install.sh.
3517 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3518 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3519 if test -z "$INSTALL"; then
3520 if test "${ac_cv_path_install+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526   IFS=$as_save_IFS
3527   test -z "$as_dir" && as_dir=.
3528   # Account for people who put trailing slashes in PATH elements.
3529 case $as_dir/ in
3530   ./ | .// | /cC/* | \
3531   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3532   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3533   /usr/ucb/* ) ;;
3534   *)
3535     # OSF1 and SCO ODT 3.0 have their own names for install.
3536     # Don't use installbsd from OSF since it installs stuff as root
3537     # by default.
3538     for ac_prog in ginstall scoinst install; do
3539       for ac_exec_ext in '' $ac_executable_extensions; do
3540         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3541           if test $ac_prog = install &&
3542             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3543             # AIX install.  It has an incompatible calling convention.
3544             :
3545           elif test $ac_prog = install &&
3546             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547             # program-specific install script used by HP pwplus--don't use.
3548             :
3549           else
3550             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3551             break 3
3552           fi
3553         fi
3554       done
3555     done
3556     ;;
3557 esac
3558 done
3559
3560
3561 fi
3562   if test "${ac_cv_path_install+set}" = set; then
3563     INSTALL=$ac_cv_path_install
3564   else
3565     # As a last resort, use the slow shell script.  We don't cache a
3566     # path for INSTALL within a source directory, because that will
3567     # break other packages using the cache if that directory is
3568     # removed, or if the path is relative.
3569     INSTALL=$ac_install_sh
3570   fi
3571 fi
3572 echo "$as_me:$LINENO: result: $INSTALL" >&5
3573 echo "${ECHO_T}$INSTALL" >&6
3574
3575 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3576 # It thinks the first close brace ends the variable substitution.
3577 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3578
3579 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3580
3581 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3582
3583
3584         MKINSTALLDIRS=
3585   if test -n "$ac_aux_dir"; then
3586     case "$ac_aux_dir" in
3587       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3588       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3589     esac
3590   fi
3591   if test -z "$MKINSTALLDIRS"; then
3592     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3593   fi
3594
3595
3596
3597   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3598 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3599     # Check whether --enable-nls or --disable-nls was given.
3600 if test "${enable_nls+set}" = set; then
3601   enableval="$enable_nls"
3602   USE_NLS=$enableval
3603 else
3604   USE_NLS=yes
3605 fi;
3606   echo "$as_me:$LINENO: result: $USE_NLS" >&5
3607 echo "${ECHO_T}$USE_NLS" >&6
3608
3609
3610
3611
3612
3613
3614 # Prepare PATH_SEPARATOR.
3615 # The user is always right.
3616 if test "${PATH_SEPARATOR+set}" != set; then
3617   echo "#! /bin/sh" >conf$$.sh
3618   echo  "exit 0"   >>conf$$.sh
3619   chmod +x conf$$.sh
3620   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3621     PATH_SEPARATOR=';'
3622   else
3623     PATH_SEPARATOR=:
3624   fi
3625   rm -f conf$$.sh
3626 fi
3627
3628 # Find out how to test for executable files. Don't use a zero-byte file,
3629 # as systems may use methods other than mode bits to determine executability.
3630 cat >conf$$.file <<_ASEOF
3631 #! /bin/sh
3632 exit 0
3633 _ASEOF
3634 chmod +x conf$$.file
3635 if test -x conf$$.file >/dev/null 2>&1; then
3636   ac_executable_p="test -x"
3637 else
3638   ac_executable_p="test -f"
3639 fi
3640 rm -f conf$$.file
3641
3642 # Extract the first word of "msgfmt", so it can be a program name with args.
3643 set dummy msgfmt; ac_word=$2
3644 echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_path_MSGFMT+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   case "$MSGFMT" in
3650   [\\/]* | ?:[\\/]*)
3651     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3652     ;;
3653   *)
3654     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3655     for ac_dir in $PATH; do
3656       IFS="$ac_save_IFS"
3657       test -z "$ac_dir" && ac_dir=.
3658       for ac_exec_ext in '' $ac_executable_extensions; do
3659         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3660           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3661      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3662             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3663             break 2
3664           fi
3665         fi
3666       done
3667     done
3668     IFS="$ac_save_IFS"
3669   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3670     ;;
3671 esac
3672 fi
3673 MSGFMT="$ac_cv_path_MSGFMT"
3674 if test "$MSGFMT" != ":"; then
3675   echo "$as_me:$LINENO: result: $MSGFMT" >&5
3676 echo "${ECHO_T}$MSGFMT" >&6
3677 else
3678   echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3680 fi
3681
3682   # Extract the first word of "gmsgfmt", so it can be a program name with args.
3683 set dummy gmsgfmt; ac_word=$2
3684 echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3686 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   case $GMSGFMT in
3690   [\\/]* | ?:[\\/]*)
3691   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3692   ;;
3693   *)
3694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699   for ac_exec_ext in '' $ac_executable_extensions; do
3700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703     break 2
3704   fi
3705 done
3706 done
3707
3708   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3709   ;;
3710 esac
3711 fi
3712 GMSGFMT=$ac_cv_path_GMSGFMT
3713
3714 if test -n "$GMSGFMT"; then
3715   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3716 echo "${ECHO_T}$GMSGFMT" >&6
3717 else
3718   echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3720 fi
3721
3722
3723
3724 # Prepare PATH_SEPARATOR.
3725 # The user is always right.
3726 if test "${PATH_SEPARATOR+set}" != set; then
3727   echo "#! /bin/sh" >conf$$.sh
3728   echo  "exit 0"   >>conf$$.sh
3729   chmod +x conf$$.sh
3730   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3731     PATH_SEPARATOR=';'
3732   else
3733     PATH_SEPARATOR=:
3734   fi
3735   rm -f conf$$.sh
3736 fi
3737
3738 # Find out how to test for executable files. Don't use a zero-byte file,
3739 # as systems may use methods other than mode bits to determine executability.
3740 cat >conf$$.file <<_ASEOF
3741 #! /bin/sh
3742 exit 0
3743 _ASEOF
3744 chmod +x conf$$.file
3745 if test -x conf$$.file >/dev/null 2>&1; then
3746   ac_executable_p="test -x"
3747 else
3748   ac_executable_p="test -f"
3749 fi
3750 rm -f conf$$.file
3751
3752 # Extract the first word of "xgettext", so it can be a program name with args.
3753 set dummy xgettext; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   case "$XGETTEXT" in
3760   [\\/]* | ?:[\\/]*)
3761     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3762     ;;
3763   *)
3764     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3765     for ac_dir in $PATH; do
3766       IFS="$ac_save_IFS"
3767       test -z "$ac_dir" && ac_dir=.
3768       for ac_exec_ext in '' $ac_executable_extensions; do
3769         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3770           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3771      (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
3772             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3773             break 2
3774           fi
3775         fi
3776       done
3777     done
3778     IFS="$ac_save_IFS"
3779   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3780     ;;
3781 esac
3782 fi
3783 XGETTEXT="$ac_cv_path_XGETTEXT"
3784 if test "$XGETTEXT" != ":"; then
3785   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3786 echo "${ECHO_T}$XGETTEXT" >&6
3787 else
3788   echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790 fi
3791
3792     rm -f messages.po
3793
3794
3795 # Prepare PATH_SEPARATOR.
3796 # The user is always right.
3797 if test "${PATH_SEPARATOR+set}" != set; then
3798   echo "#! /bin/sh" >conf$$.sh
3799   echo  "exit 0"   >>conf$$.sh
3800   chmod +x conf$$.sh
3801   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3802     PATH_SEPARATOR=';'
3803   else
3804     PATH_SEPARATOR=:
3805   fi
3806   rm -f conf$$.sh
3807 fi
3808
3809 # Find out how to test for executable files. Don't use a zero-byte file,
3810 # as systems may use methods other than mode bits to determine executability.
3811 cat >conf$$.file <<_ASEOF
3812 #! /bin/sh
3813 exit 0
3814 _ASEOF
3815 chmod +x conf$$.file
3816 if test -x conf$$.file >/dev/null 2>&1; then
3817   ac_executable_p="test -x"
3818 else
3819   ac_executable_p="test -f"
3820 fi
3821 rm -f conf$$.file
3822
3823 # Extract the first word of "msgmerge", so it can be a program name with args.
3824 set dummy msgmerge; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   case "$MSGMERGE" in
3831   [\\/]* | ?:[\\/]*)
3832     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3833     ;;
3834   *)
3835     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3836     for ac_dir in $PATH; do
3837       IFS="$ac_save_IFS"
3838       test -z "$ac_dir" && ac_dir=.
3839       for ac_exec_ext in '' $ac_executable_extensions; do
3840         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3841           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3842             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3843             break 2
3844           fi
3845         fi
3846       done
3847     done
3848     IFS="$ac_save_IFS"
3849   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3850     ;;
3851 esac
3852 fi
3853 MSGMERGE="$ac_cv_path_MSGMERGE"
3854 if test "$MSGMERGE" != ":"; then
3855   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3856 echo "${ECHO_T}$MSGMERGE" >&6
3857 else
3858   echo "$as_me:$LINENO: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863       if test "$GMSGFMT" != ":"; then
3864             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3865        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3866       : ;
3867     else
3868       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3869       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3870 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3871       GMSGFMT=":"
3872     fi
3873   fi
3874
3875       if test "$XGETTEXT" != ":"; then
3876             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3877        (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
3878       : ;
3879     else
3880       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3881 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3882       XGETTEXT=":"
3883     fi
3884         rm -f messages.po
3885   fi
3886
3887             ac_config_commands="$ac_config_commands default-1"
3888
3889
3890 if test -n "$ac_tool_prefix"; then
3891   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3892 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3893 echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_RANLIB+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   if test -n "$RANLIB"; then
3899   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906   for ac_exec_ext in '' $ac_executable_extensions; do
3907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910     break 2
3911   fi
3912 done
3913 done
3914
3915 fi
3916 fi
3917 RANLIB=$ac_cv_prog_RANLIB
3918 if test -n "$RANLIB"; then
3919   echo "$as_me:$LINENO: result: $RANLIB" >&5
3920 echo "${ECHO_T}$RANLIB" >&6
3921 else
3922   echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3924 fi
3925
3926 fi
3927 if test -z "$ac_cv_prog_RANLIB"; then
3928   ac_ct_RANLIB=$RANLIB
3929   # Extract the first word of "ranlib", so it can be a program name with args.
3930 set dummy ranlib; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   if test -n "$ac_ct_RANLIB"; then
3937   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944   for ac_exec_ext in '' $ac_executable_extensions; do
3945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946     ac_cv_prog_ac_ct_RANLIB="ranlib"
3947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948     break 2
3949   fi
3950 done
3951 done
3952
3953   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3954 fi
3955 fi
3956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3957 if test -n "$ac_ct_RANLIB"; then
3958   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3959 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3960 else
3961   echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3963 fi
3964
3965   RANLIB=$ac_ct_RANLIB
3966 else
3967   RANLIB="$ac_cv_prog_RANLIB"
3968 fi
3969
3970
3971         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3972 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3973 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   ac_check_lib_save_LIBS=$LIBS
3977 LIBS="-lcposix  $LIBS"
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h.  */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h.  */
3984
3985 /* Override any gcc2 internal prototype to avoid an error.  */
3986 #ifdef __cplusplus
3987 extern "C"
3988 #endif
3989 /* We use char because int might match the return type of a gcc2
3990    builtin and then its argument prototype would still apply.  */
3991 char strerror ();
3992 int
3993 main ()
3994 {
3995 strerror ();
3996   ;
3997   return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.$ac_objext conftest$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002   (eval $ac_link) 2>conftest.er1
4003   ac_status=$?
4004   grep -v '^ *+' conftest.er1 >conftest.err
4005   rm -f conftest.er1
4006   cat conftest.err >&5
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } &&
4009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011   (eval $ac_try) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }; } &&
4015          { ac_try='test -s conftest$ac_exeext'
4016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017   (eval $ac_try) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); }; }; then
4021   ac_cv_lib_cposix_strerror=yes
4022 else
4023   echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 ac_cv_lib_cposix_strerror=no
4027 fi
4028 rm -f conftest.err conftest.$ac_objext \
4029       conftest$ac_exeext conftest.$ac_ext
4030 LIBS=$ac_check_lib_save_LIBS
4031 fi
4032 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4033 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4034 if test $ac_cv_lib_cposix_strerror = yes; then
4035   LIBS="$LIBS -lcposix"
4036 fi
4037
4038
4039
4040 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4041 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4042 if test "${ac_cv_c_const+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h.  */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h.  */
4051
4052 int
4053 main ()
4054 {
4055 /* FIXME: Include the comments suggested by Paul. */
4056 #ifndef __cplusplus
4057   /* Ultrix mips cc rejects this.  */
4058   typedef int charset[2];
4059   const charset x;
4060   /* SunOS 4.1.1 cc rejects this.  */
4061   char const *const *ccp;
4062   char **p;
4063   /* NEC SVR4.0.2 mips cc rejects this.  */
4064   struct point {int x, y;};
4065   static struct point const zero = {0,0};
4066   /* AIX XL C 1.02.0.0 rejects this.
4067      It does not let you subtract one const X* pointer from another in
4068      an arm of an if-expression whose if-part is not a constant
4069      expression */
4070   const char *g = "string";
4071   ccp = &g + (g ? g-g : 0);
4072   /* HPUX 7.0 cc rejects these. */
4073   ++ccp;
4074   p = (char**) ccp;
4075   ccp = (char const *const *) p;
4076   { /* SCO 3.2v4 cc rejects this.  */
4077     char *t;
4078     char const *s = 0 ? (char *) 0 : (char const *) 0;
4079
4080     *t++ = 0;
4081   }
4082   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4083     int x[] = {25, 17};
4084     const int *foo = &x[0];
4085     ++foo;
4086   }
4087   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4088     typedef const int *iptr;
4089     iptr p = 0;
4090     ++p;
4091   }
4092   { /* AIX XL C 1.02.0.0 rejects this saying
4093        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4094     struct s { int j; const int *ap[3]; };
4095     struct s *b; b->j = 5;
4096   }
4097   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4098     const int foo = 10;
4099   }
4100 #endif
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108   (eval $ac_compile) 2>conftest.er1
4109   ac_status=$?
4110   grep -v '^ *+' conftest.er1 >conftest.err
4111   rm -f conftest.er1
4112   cat conftest.err >&5
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); } &&
4115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117   (eval $ac_try) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); }; } &&
4121          { ac_try='test -s conftest.$ac_objext'
4122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123   (eval $ac_try) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; }; then
4127   ac_cv_c_const=yes
4128 else
4129   echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132 ac_cv_c_const=no
4133 fi
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4137 echo "${ECHO_T}$ac_cv_c_const" >&6
4138 if test $ac_cv_c_const = no; then
4139
4140 cat >>confdefs.h <<\_ACEOF
4141 #define const
4142 _ACEOF
4143
4144 fi
4145
4146
4147   echo "$as_me:$LINENO: checking for signed" >&5
4148 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4149 if test "${bh_cv_c_signed+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158
4159 int
4160 main ()
4161 {
4162 signed char x;
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169   (eval $ac_compile) 2>conftest.er1
4170   ac_status=$?
4171   grep -v '^ *+' conftest.er1 >conftest.err
4172   rm -f conftest.er1
4173   cat conftest.err >&5
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); } &&
4176          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178   (eval $ac_try) 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; } &&
4182          { ac_try='test -s conftest.$ac_objext'
4183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184   (eval $ac_try) 2>&5
4185   ac_status=$?
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); }; }; then
4188   bh_cv_c_signed=yes
4189 else
4190   echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4192
4193 bh_cv_c_signed=no
4194 fi
4195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4196 fi
4197 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4198 echo "${ECHO_T}$bh_cv_c_signed" >&6
4199   if test $bh_cv_c_signed = no; then
4200
4201 cat >>confdefs.h <<\_ACEOF
4202 #define signed
4203 _ACEOF
4204
4205   fi
4206
4207 echo "$as_me:$LINENO: checking for inline" >&5
4208 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4209 if test "${ac_cv_c_inline+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   ac_cv_c_inline=no
4213 for ac_kw in inline __inline__ __inline; do
4214   cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220 #ifndef __cplusplus
4221 typedef int foo_t;
4222 static $ac_kw foo_t static_foo () {return 0; }
4223 $ac_kw foo_t foo () {return 0; }
4224 #endif
4225
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229   (eval $ac_compile) 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } &&
4236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238   (eval $ac_try) 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); }; } &&
4242          { ac_try='test -s conftest.$ac_objext'
4243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244   (eval $ac_try) 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); }; }; then
4248   ac_cv_c_inline=$ac_kw; break
4249 else
4250   echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 fi
4254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 done
4256
4257 fi
4258 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4259 echo "${ECHO_T}$ac_cv_c_inline" >&6
4260
4261
4262 case $ac_cv_c_inline in
4263   inline | yes) ;;
4264   *)
4265     case $ac_cv_c_inline in
4266       no) ac_val=;;
4267       *) ac_val=$ac_cv_c_inline;;
4268     esac
4269     cat >>confdefs.h <<_ACEOF
4270 #ifndef __cplusplus
4271 #define inline $ac_val
4272 #endif
4273 _ACEOF
4274     ;;
4275 esac
4276
4277 echo "$as_me:$LINENO: checking for off_t" >&5
4278 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4279 if test "${ac_cv_type_off_t+set}" = set; then
4280   echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282   cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288 $ac_includes_default
4289 int
4290 main ()
4291 {
4292 if ((off_t *) 0)
4293   return 0;
4294 if (sizeof (off_t))
4295   return 0;
4296   ;
4297   return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.$ac_objext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302   (eval $ac_compile) 2>conftest.er1
4303   ac_status=$?
4304   grep -v '^ *+' conftest.er1 >conftest.err
4305   rm -f conftest.er1
4306   cat conftest.err >&5
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); } &&
4309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311   (eval $ac_try) 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; } &&
4315          { ac_try='test -s conftest.$ac_objext'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; }; then
4321   ac_cv_type_off_t=yes
4322 else
4323   echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326 ac_cv_type_off_t=no
4327 fi
4328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4329 fi
4330 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4331 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4332 if test $ac_cv_type_off_t = yes; then
4333   :
4334 else
4335
4336 cat >>confdefs.h <<_ACEOF
4337 #define off_t long
4338 _ACEOF
4339
4340 fi
4341
4342 echo "$as_me:$LINENO: checking for size_t" >&5
4343 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4344 if test "${ac_cv_type_size_t+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353 $ac_includes_default
4354 int
4355 main ()
4356 {
4357 if ((size_t *) 0)
4358   return 0;
4359 if (sizeof (size_t))
4360   return 0;
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367   (eval $ac_compile) 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } &&
4374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376   (eval $ac_try) 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); }; } &&
4380          { ac_try='test -s conftest.$ac_objext'
4381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382   (eval $ac_try) 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; }; then
4386   ac_cv_type_size_t=yes
4387 else
4388   echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 ac_cv_type_size_t=no
4392 fi
4393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4394 fi
4395 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4396 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4397 if test $ac_cv_type_size_t = yes; then
4398   :
4399 else
4400
4401 cat >>confdefs.h <<_ACEOF
4402 #define size_t unsigned
4403 _ACEOF
4404
4405 fi
4406
4407
4408   echo "$as_me:$LINENO: checking for long long" >&5
4409 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4410 if test "${ac_cv_type_long_long+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h.  */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h.  */
4419 long long ll = 1LL; int i = 63;
4420 int
4421 main ()
4422 {
4423 long long llmax = (long long) -1;
4424      return ll << i | ll >> i | llmax / ll | llmax % ll;
4425   ;
4426   return 0;
4427 }
4428 _ACEOF
4429 rm -f conftest.$ac_objext conftest$ac_exeext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4431   (eval $ac_link) 2>conftest.er1
4432   ac_status=$?
4433   grep -v '^ *+' conftest.er1 >conftest.err
4434   rm -f conftest.er1
4435   cat conftest.err >&5
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); } &&
4438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440   (eval $ac_try) 2>&5
4441   ac_status=$?
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); }; } &&
4444          { ac_try='test -s conftest$ac_exeext'
4445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446   (eval $ac_try) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; }; then
4450   ac_cv_type_long_long=yes
4451 else
4452   echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455 ac_cv_type_long_long=no
4456 fi
4457 rm -f conftest.err conftest.$ac_objext \
4458       conftest$ac_exeext conftest.$ac_ext
4459 fi
4460 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4461 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4462   if test $ac_cv_type_long_long = yes; then
4463
4464 cat >>confdefs.h <<\_ACEOF
4465 #define HAVE_LONG_LONG 1
4466 _ACEOF
4467
4468   fi
4469
4470
4471   echo "$as_me:$LINENO: checking for long double" >&5
4472 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4473 if test "${gt_cv_c_long_double+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   if test "$GCC" = yes; then
4477        gt_cv_c_long_double=yes
4478      else
4479        cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485
4486          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
4487          long double foo = 0.0;
4488          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4489          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4490
4491 int
4492 main ()
4493 {
4494
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501   (eval $ac_compile) 2>conftest.er1
4502   ac_status=$?
4503   grep -v '^ *+' conftest.er1 >conftest.err
4504   rm -f conftest.er1
4505   cat conftest.err >&5
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } &&
4508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510   (eval $ac_try) 2>&5
4511   ac_status=$?
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); }; } &&
4514          { ac_try='test -s conftest.$ac_objext'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; }; then
4520   gt_cv_c_long_double=yes
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525 gt_cv_c_long_double=no
4526 fi
4527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528      fi
4529 fi
4530 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4531 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4532   if test $gt_cv_c_long_double = yes; then
4533
4534 cat >>confdefs.h <<\_ACEOF
4535 #define HAVE_LONG_DOUBLE 1
4536 _ACEOF
4537
4538   fi
4539
4540
4541   echo "$as_me:$LINENO: checking for wchar_t" >&5
4542 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4543 if test "${gt_cv_c_wchar_t+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 #include <stddef.h>
4553        wchar_t foo = (wchar_t)'\0';
4554 int
4555 main ()
4556 {
4557
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 rm -f conftest.$ac_objext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564   (eval $ac_compile) 2>conftest.er1
4565   ac_status=$?
4566   grep -v '^ *+' conftest.er1 >conftest.err
4567   rm -f conftest.er1
4568   cat conftest.err >&5
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); } &&
4571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573   (eval $ac_try) 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; } &&
4577          { ac_try='test -s conftest.$ac_objext'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   gt_cv_c_wchar_t=yes
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 gt_cv_c_wchar_t=no
4589 fi
4590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4591 fi
4592 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4593 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4594   if test $gt_cv_c_wchar_t = yes; then
4595
4596 cat >>confdefs.h <<\_ACEOF
4597 #define HAVE_WCHAR_T 1
4598 _ACEOF
4599
4600   fi
4601
4602
4603   echo "$as_me:$LINENO: checking for wint_t" >&5
4604 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4605 if test "${gt_cv_c_wint_t+set}" = set; then
4606   echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608   cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h.  */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h.  */
4614 #include <wchar.h>
4615        wint_t foo = (wchar_t)'\0';
4616 int
4617 main ()
4618 {
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626   (eval $ac_compile) 2>conftest.er1
4627   ac_status=$?
4628   grep -v '^ *+' conftest.er1 >conftest.err
4629   rm -f conftest.er1
4630   cat conftest.err >&5
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); } &&
4633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635   (eval $ac_try) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; } &&
4639          { ac_try='test -s conftest.$ac_objext'
4640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641   (eval $ac_try) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   gt_cv_c_wint_t=yes
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 gt_cv_c_wint_t=no
4651 fi
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 fi
4654 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4655 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4656   if test $gt_cv_c_wint_t = yes; then
4657
4658 cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_WINT_T 1
4660 _ACEOF
4661
4662   fi
4663
4664
4665   echo "$as_me:$LINENO: checking for inttypes.h" >&5
4666 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4667 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h.  */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h.  */
4676 #include <sys/types.h>
4677 #include <inttypes.h>
4678 int
4679 main ()
4680 {
4681 uintmax_t i = (uintmax_t) -1;
4682   ;
4683   return 0;
4684 }
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688   (eval $ac_compile) 2>conftest.er1
4689   ac_status=$?
4690   grep -v '^ *+' conftest.er1 >conftest.err
4691   rm -f conftest.er1
4692   cat conftest.err >&5
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); } &&
4695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697   (eval $ac_try) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; } &&
4701          { ac_try='test -s conftest.$ac_objext'
4702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703   (eval $ac_try) 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }; }; then
4707   jm_ac_cv_header_inttypes_h=yes
4708 else
4709   echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 jm_ac_cv_header_inttypes_h=no
4713 fi
4714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715 fi
4716 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4717 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4718   if test $jm_ac_cv_header_inttypes_h = yes; then
4719
4720 cat >>confdefs.h <<_ACEOF
4721 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4722 _ACEOF
4723
4724   fi
4725
4726
4727   echo "$as_me:$LINENO: checking for stdint.h" >&5
4728 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4729 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h.  */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h.  */
4738 #include <sys/types.h>
4739 #include <stdint.h>
4740 int
4741 main ()
4742 {
4743 uintmax_t i = (uintmax_t) -1;
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750   (eval $ac_compile) 2>conftest.er1
4751   ac_status=$?
4752   grep -v '^ *+' conftest.er1 >conftest.err
4753   rm -f conftest.er1
4754   cat conftest.err >&5
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } &&
4757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759   (eval $ac_try) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; } &&
4763          { ac_try='test -s conftest.$ac_objext'
4764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765   (eval $ac_try) 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; }; then
4769   jm_ac_cv_header_stdint_h=yes
4770 else
4771   echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 jm_ac_cv_header_stdint_h=no
4775 fi
4776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4779 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4780   if test $jm_ac_cv_header_stdint_h = yes; then
4781
4782 cat >>confdefs.h <<_ACEOF
4783 #define HAVE_STDINT_H_WITH_UINTMAX 1
4784 _ACEOF
4785
4786   fi
4787
4788
4789
4790
4791   echo "$as_me:$LINENO: checking for intmax_t" >&5
4792 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4793 if test "${gt_cv_c_intmax_t+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802
4803 #include <stddef.h>
4804 #include <stdlib.h>
4805 #if HAVE_STDINT_H_WITH_UINTMAX
4806 #include <stdint.h>
4807 #endif
4808 #if HAVE_INTTYPES_H_WITH_UINTMAX
4809 #include <inttypes.h>
4810 #endif
4811
4812 int
4813 main ()
4814 {
4815 intmax_t x = -1;
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822   (eval $ac_compile) 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } &&
4829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831   (eval $ac_try) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); }; } &&
4835          { ac_try='test -s conftest.$ac_objext'
4836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837   (eval $ac_try) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; }; then
4841   gt_cv_c_intmax_t=yes
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 gt_cv_c_intmax_t=no
4847 fi
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849 fi
4850 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4851 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4852   if test $gt_cv_c_intmax_t = yes; then
4853
4854 cat >>confdefs.h <<\_ACEOF
4855 #define HAVE_INTMAX_T 1
4856 _ACEOF
4857
4858   fi
4859
4860
4861
4862   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4863 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4864 if test "${gt_cv_func_printf_posix+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867
4868       if test "$cross_compiling" = yes; then
4869
4870         cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876
4877 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4878   notposix
4879 #endif
4880
4881 _ACEOF
4882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883   $EGREP "notposix" >/dev/null 2>&1; then
4884   gt_cv_func_printf_posix="guessing no"
4885 else
4886   gt_cv_func_printf_posix="guessing yes"
4887 fi
4888 rm -f conftest*
4889
4890
4891 else
4892   cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898
4899 #include <stdio.h>
4900 #include <string.h>
4901 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4902    dollar expansion (possibly an autoconf bug).  */
4903 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4904 static char buf[100];
4905 int main ()
4906 {
4907   sprintf (buf, format, 33, 55);
4908   return (strcmp (buf, "55 33") != 0);
4909 }
4910 _ACEOF
4911 rm -f conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913   (eval $ac_link) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; }; then
4922   gt_cv_func_printf_posix=yes
4923 else
4924   echo "$as_me: program exited with status $ac_status" >&5
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ( exit $ac_status )
4929 gt_cv_func_printf_posix=no
4930 fi
4931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4932 fi
4933
4934 fi
4935 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4936 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4937   case $gt_cv_func_printf_posix in
4938     *yes)
4939
4940 cat >>confdefs.h <<\_ACEOF
4941 #define HAVE_POSIX_PRINTF 1
4942 _ACEOF
4943
4944       ;;
4945   esac
4946
4947 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4948 # for constant arguments.  Useless!
4949 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4950 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4951 if test "${ac_cv_working_alloca_h+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954   cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h.  */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h.  */
4960 #include <alloca.h>
4961 int
4962 main ()
4963 {
4964 char *p = (char *) alloca (2 * sizeof (int));
4965   ;
4966   return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971   (eval $ac_link) 2>conftest.er1
4972   ac_status=$?
4973   grep -v '^ *+' conftest.er1 >conftest.err
4974   rm -f conftest.er1
4975   cat conftest.err >&5
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); } &&
4978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980   (eval $ac_try) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); }; } &&
4984          { ac_try='test -s conftest$ac_exeext'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; }; then
4990   ac_cv_working_alloca_h=yes
4991 else
4992   echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4994
4995 ac_cv_working_alloca_h=no
4996 fi
4997 rm -f conftest.err conftest.$ac_objext \
4998       conftest$ac_exeext conftest.$ac_ext
4999 fi
5000 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5001 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5002 if test $ac_cv_working_alloca_h = yes; then
5003
5004 cat >>confdefs.h <<\_ACEOF
5005 #define HAVE_ALLOCA_H 1
5006 _ACEOF
5007
5008 fi
5009
5010 echo "$as_me:$LINENO: checking for alloca" >&5
5011 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5012 if test "${ac_cv_func_alloca_works+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 #ifdef __GNUC__
5022 # define alloca __builtin_alloca
5023 #else
5024 # ifdef _MSC_VER
5025 #  include <malloc.h>
5026 #  define alloca _alloca
5027 # else
5028 #  if HAVE_ALLOCA_H
5029 #   include <alloca.h>
5030 #  else
5031 #   ifdef _AIX
5032  #pragma alloca
5033 #   else
5034 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5035 char *alloca ();
5036 #    endif
5037 #   endif
5038 #  endif
5039 # endif
5040 #endif
5041
5042 int
5043 main ()
5044 {
5045 char *p = (char *) alloca (1);
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052   (eval $ac_link) 2>conftest.er1
5053   ac_status=$?
5054   grep -v '^ *+' conftest.er1 >conftest.err
5055   rm -f conftest.er1
5056   cat conftest.err >&5
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } &&
5059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061   (eval $ac_try) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; } &&
5065          { ac_try='test -s conftest$ac_exeext'
5066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067   (eval $ac_try) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; }; then
5071   ac_cv_func_alloca_works=yes
5072 else
5073   echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 ac_cv_func_alloca_works=no
5077 fi
5078 rm -f conftest.err conftest.$ac_objext \
5079       conftest$ac_exeext conftest.$ac_ext
5080 fi
5081 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5082 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5083
5084 if test $ac_cv_func_alloca_works = yes; then
5085
5086 cat >>confdefs.h <<\_ACEOF
5087 #define HAVE_ALLOCA 1
5088 _ACEOF
5089
5090 else
5091   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5092 # that cause trouble.  Some versions do not even contain alloca or
5093 # contain a buggy version.  If you still want to use their alloca,
5094 # use ar to extract alloca.o from them instead of compiling alloca.c.
5095
5096 ALLOCA=alloca.$ac_objext
5097
5098 cat >>confdefs.h <<\_ACEOF
5099 #define C_ALLOCA 1
5100 _ACEOF
5101
5102
5103 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5104 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5105 if test "${ac_cv_os_cray+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114 #if defined(CRAY) && ! defined(CRAY2)
5115 webecray
5116 #else
5117 wenotbecray
5118 #endif
5119
5120 _ACEOF
5121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5122   $EGREP "webecray" >/dev/null 2>&1; then
5123   ac_cv_os_cray=yes
5124 else
5125   ac_cv_os_cray=no
5126 fi
5127 rm -f conftest*
5128
5129 fi
5130 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5131 echo "${ECHO_T}$ac_cv_os_cray" >&6
5132 if test $ac_cv_os_cray = yes; then
5133   for ac_func in _getb67 GETB67 getb67; do
5134     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5135 echo "$as_me:$LINENO: checking for $ac_func" >&5
5136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_var+set}\" = set"; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5148 #define $ac_func innocuous_$ac_func
5149
5150 /* System header to define __stub macros and hopefully few prototypes,
5151     which can conflict with char $ac_func (); below.
5152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5153     <limits.h> exists even on freestanding compilers.  */
5154
5155 #ifdef __STDC__
5156 # include <limits.h>
5157 #else
5158 # include <assert.h>
5159 #endif
5160
5161 #undef $ac_func
5162
5163 /* Override any gcc2 internal prototype to avoid an error.  */
5164 #ifdef __cplusplus
5165 extern "C"
5166 {
5167 #endif
5168 /* We use char because int might match the return type of a gcc2
5169    builtin and then its argument prototype would still apply.  */
5170 char $ac_func ();
5171 /* The GNU C library defines this for functions which it implements
5172     to always fail with ENOSYS.  Some functions are actually named
5173     something starting with __ and the normal name is an alias.  */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5175 choke me
5176 #else
5177 char (*f) () = $ac_func;
5178 #endif
5179 #ifdef __cplusplus
5180 }
5181 #endif
5182
5183 int
5184 main ()
5185 {
5186 return f != $ac_func;
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193   (eval $ac_link) 2>conftest.er1
5194   ac_status=$?
5195   grep -v '^ *+' conftest.er1 >conftest.err
5196   rm -f conftest.er1
5197   cat conftest.err >&5
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } &&
5200          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202   (eval $ac_try) 2>&5
5203   ac_status=$?
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); }; } &&
5206          { ac_try='test -s conftest$ac_exeext'
5207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208   (eval $ac_try) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; }; then
5212   eval "$as_ac_var=yes"
5213 else
5214   echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217 eval "$as_ac_var=no"
5218 fi
5219 rm -f conftest.err conftest.$ac_objext \
5220       conftest$ac_exeext conftest.$ac_ext
5221 fi
5222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5224 if test `eval echo '${'$as_ac_var'}'` = yes; then
5225
5226 cat >>confdefs.h <<_ACEOF
5227 #define CRAY_STACKSEG_END $ac_func
5228 _ACEOF
5229
5230     break
5231 fi
5232
5233   done
5234 fi
5235
5236 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5237 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5238 if test "${ac_cv_c_stack_direction+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   if test "$cross_compiling" = yes; then
5242   ac_cv_c_stack_direction=0
5243 else
5244   cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 int
5251 find_stack_direction ()
5252 {
5253   static char *addr = 0;
5254   auto char dummy;
5255   if (addr == 0)
5256     {
5257       addr = &dummy;
5258       return find_stack_direction ();
5259     }
5260   else
5261     return (&dummy > addr) ? 1 : -1;
5262 }
5263
5264 int
5265 main ()
5266 {
5267   exit (find_stack_direction () < 0);
5268 }
5269 _ACEOF
5270 rm -f conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272   (eval $ac_link) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   ac_cv_c_stack_direction=1
5282 else
5283   echo "$as_me: program exited with status $ac_status" >&5
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ( exit $ac_status )
5288 ac_cv_c_stack_direction=-1
5289 fi
5290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5291 fi
5292 fi
5293 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5294 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5295
5296 cat >>confdefs.h <<_ACEOF
5297 #define STACK_DIRECTION $ac_cv_c_stack_direction
5298 _ACEOF
5299
5300
5301 fi
5302
5303
5304
5305 for ac_header in stdlib.h unistd.h
5306 do
5307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5309   echo "$as_me:$LINENO: checking for $ac_header" >&5
5310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 fi
5314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5316 else
5317   # Is the header compilable?
5318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h.  */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h.  */
5326 $ac_includes_default
5327 #include <$ac_header>
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331   (eval $ac_compile) 2>conftest.er1
5332   ac_status=$?
5333   grep -v '^ *+' conftest.er1 >conftest.err
5334   rm -f conftest.er1
5335   cat conftest.err >&5
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; } &&
5344          { ac_try='test -s conftest.$ac_objext'
5345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   ac_header_compiler=yes
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_header_compiler=no
5356 fi
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6
5360
5361 # Is the header present?
5362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #include <$ac_header>
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } >/dev/null; then
5380   if test -s conftest.err; then
5381     ac_cpp_err=$ac_c_preproc_warn_flag
5382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5383   else
5384     ac_cpp_err=
5385   fi
5386 else
5387   ac_cpp_err=yes
5388 fi
5389 if test -z "$ac_cpp_err"; then
5390   ac_header_preproc=yes
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395   ac_header_preproc=no
5396 fi
5397 rm -f conftest.err conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5399 echo "${ECHO_T}$ac_header_preproc" >&6
5400
5401 # So?  What about this header?
5402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403   yes:no: )
5404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5408     ac_header_preproc=yes
5409     ;;
5410   no:yes:* )
5411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5423     (
5424       cat <<\_ASBOX
5425 ## ------------------------------------------ ##
5426 ## Report this to the AC_PACKAGE_NAME lists.  ##
5427 ## ------------------------------------------ ##
5428 _ASBOX
5429     ) |
5430       sed "s/^/$as_me: WARNING:     /" >&2
5431     ;;
5432 esac
5433 echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   eval "$as_ac_Header=\$ac_header_preproc"
5439 fi
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442
5443 fi
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445   cat >>confdefs.h <<_ACEOF
5446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 _ACEOF
5448
5449 fi
5450
5451 done
5452
5453
5454 for ac_func in getpagesize
5455 do
5456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5457 echo "$as_me:$LINENO: checking for $ac_func" >&5
5458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5459 if eval "test \"\${$as_ac_var+set}\" = set"; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462   cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h.  */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h.  */
5468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5470 #define $ac_func innocuous_$ac_func
5471
5472 /* System header to define __stub macros and hopefully few prototypes,
5473     which can conflict with char $ac_func (); below.
5474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5475     <limits.h> exists even on freestanding compilers.  */
5476
5477 #ifdef __STDC__
5478 # include <limits.h>
5479 #else
5480 # include <assert.h>
5481 #endif
5482
5483 #undef $ac_func
5484
5485 /* Override any gcc2 internal prototype to avoid an error.  */
5486 #ifdef __cplusplus
5487 extern "C"
5488 {
5489 #endif
5490 /* We use char because int might match the return type of a gcc2
5491    builtin and then its argument prototype would still apply.  */
5492 char $ac_func ();
5493 /* The GNU C library defines this for functions which it implements
5494     to always fail with ENOSYS.  Some functions are actually named
5495     something starting with __ and the normal name is an alias.  */
5496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5497 choke me
5498 #else
5499 char (*f) () = $ac_func;
5500 #endif
5501 #ifdef __cplusplus
5502 }
5503 #endif
5504
5505 int
5506 main ()
5507 {
5508 return f != $ac_func;
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext conftest$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515   (eval $ac_link) 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } &&
5522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524   (eval $ac_try) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); }; } &&
5528          { ac_try='test -s conftest$ac_exeext'
5529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530   (eval $ac_try) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534   eval "$as_ac_var=yes"
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539 eval "$as_ac_var=no"
5540 fi
5541 rm -f conftest.err conftest.$ac_objext \
5542       conftest$ac_exeext conftest.$ac_ext
5543 fi
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5546 if test `eval echo '${'$as_ac_var'}'` = yes; then
5547   cat >>confdefs.h <<_ACEOF
5548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5549 _ACEOF
5550
5551 fi
5552 done
5553
5554 echo "$as_me:$LINENO: checking for working mmap" >&5
5555 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5556 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5557   echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559   if test "$cross_compiling" = yes; then
5560   ac_cv_func_mmap_fixed_mapped=no
5561 else
5562   cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568 $ac_includes_default
5569 /* malloc might have been renamed as rpl_malloc. */
5570 #undef malloc
5571
5572 /* Thanks to Mike Haertel and Jim Avera for this test.
5573    Here is a matrix of mmap possibilities:
5574         mmap private not fixed
5575         mmap private fixed at somewhere currently unmapped
5576         mmap private fixed at somewhere already mapped
5577         mmap shared not fixed
5578         mmap shared fixed at somewhere currently unmapped
5579         mmap shared fixed at somewhere already mapped
5580    For private mappings, we should verify that changes cannot be read()
5581    back from the file, nor mmap's back from the file at a different
5582    address.  (There have been systems where private was not correctly
5583    implemented like the infamous i386 svr4.0, and systems where the
5584    VM page cache was not coherent with the file system buffer cache
5585    like early versions of FreeBSD and possibly contemporary NetBSD.)
5586    For shared mappings, we should conversely verify that changes get
5587    propagated back to all the places they're supposed to be.
5588
5589    Grep wants private fixed already mapped.
5590    The main things grep needs to know about mmap are:
5591    * does it exist and is it safe to write into the mmap'd area
5592    * how to use it (BSD variants)  */
5593
5594 #include <fcntl.h>
5595 #include <sys/mman.h>
5596
5597 #if !STDC_HEADERS && !HAVE_STDLIB_H
5598 char *malloc ();
5599 #endif
5600
5601 /* This mess was copied from the GNU getpagesize.h.  */
5602 #if !HAVE_GETPAGESIZE
5603 /* Assume that all systems that can run configure have sys/param.h.  */
5604 # if !HAVE_SYS_PARAM_H
5605 #  define HAVE_SYS_PARAM_H 1
5606 # endif
5607
5608 # ifdef _SC_PAGESIZE
5609 #  define getpagesize() sysconf(_SC_PAGESIZE)
5610 # else /* no _SC_PAGESIZE */
5611 #  if HAVE_SYS_PARAM_H
5612 #   include <sys/param.h>
5613 #   ifdef EXEC_PAGESIZE
5614 #    define getpagesize() EXEC_PAGESIZE
5615 #   else /* no EXEC_PAGESIZE */
5616 #    ifdef NBPG
5617 #     define getpagesize() NBPG * CLSIZE
5618 #     ifndef CLSIZE
5619 #      define CLSIZE 1
5620 #     endif /* no CLSIZE */
5621 #    else /* no NBPG */
5622 #     ifdef NBPC
5623 #      define getpagesize() NBPC
5624 #     else /* no NBPC */
5625 #      ifdef PAGESIZE
5626 #       define getpagesize() PAGESIZE
5627 #      endif /* PAGESIZE */
5628 #     endif /* no NBPC */
5629 #    endif /* no NBPG */
5630 #   endif /* no EXEC_PAGESIZE */
5631 #  else /* no HAVE_SYS_PARAM_H */
5632 #   define getpagesize() 8192   /* punt totally */
5633 #  endif /* no HAVE_SYS_PARAM_H */
5634 # endif /* no _SC_PAGESIZE */
5635
5636 #endif /* no HAVE_GETPAGESIZE */
5637
5638 int
5639 main ()
5640 {
5641   char *data, *data2, *data3;
5642   int i, pagesize;
5643   int fd;
5644
5645   pagesize = getpagesize ();
5646
5647   /* First, make a file with some known garbage in it. */
5648   data = (char *) malloc (pagesize);
5649   if (!data)
5650     exit (1);
5651   for (i = 0; i < pagesize; ++i)
5652     *(data + i) = rand ();
5653   umask (0);
5654   fd = creat ("conftest.mmap", 0600);
5655   if (fd < 0)
5656     exit (1);
5657   if (write (fd, data, pagesize) != pagesize)
5658     exit (1);
5659   close (fd);
5660
5661   /* Next, try to mmap the file at a fixed address which already has
5662      something else allocated at it.  If we can, also make sure that
5663      we see the same garbage.  */
5664   fd = open ("conftest.mmap", O_RDWR);
5665   if (fd < 0)
5666     exit (1);
5667   data2 = (char *) malloc (2 * pagesize);
5668   if (!data2)
5669     exit (1);
5670   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5671   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5672                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5673     exit (1);
5674   for (i = 0; i < pagesize; ++i)
5675     if (*(data + i) != *(data2 + i))
5676       exit (1);
5677
5678   /* Finally, make sure that changes to the mapped area do not
5679      percolate back to the file as seen by read().  (This is a bug on
5680      some variants of i386 svr4.0.)  */
5681   for (i = 0; i < pagesize; ++i)
5682     *(data2 + i) = *(data2 + i) + 1;
5683   data3 = (char *) malloc (pagesize);
5684   if (!data3)
5685     exit (1);
5686   if (read (fd, data3, pagesize) != pagesize)
5687     exit (1);
5688   for (i = 0; i < pagesize; ++i)
5689     if (*(data + i) != *(data3 + i))
5690       exit (1);
5691   close (fd);
5692   exit (0);
5693 }
5694 _ACEOF
5695 rm -f conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697   (eval $ac_link) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702   (eval $ac_try) 2>&5
5703   ac_status=$?
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); }; }; then
5706   ac_cv_func_mmap_fixed_mapped=yes
5707 else
5708   echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ( exit $ac_status )
5713 ac_cv_func_mmap_fixed_mapped=no
5714 fi
5715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 fi
5718 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5719 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5720 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5721
5722 cat >>confdefs.h <<\_ACEOF
5723 #define HAVE_MMAP 1
5724 _ACEOF
5725
5726 fi
5727 rm -f conftest.mmap
5728
5729
5730     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5731 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5732 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741
5742 #include <features.h>
5743 #ifdef __GNU_LIBRARY__
5744  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5745   Lucky GNU user
5746  #endif
5747 #endif
5748
5749 _ACEOF
5750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5751   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5752   ac_cv_gnu_library_2_1=yes
5753 else
5754   ac_cv_gnu_library_2_1=no
5755 fi
5756 rm -f conftest*
5757
5758
5759
5760 fi
5761 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5762 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5763
5764     GLIBC21="$ac_cv_gnu_library_2_1"
5765
5766
5767
5768
5769   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5770 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5771 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774
5775       if test "$cross_compiling" = yes; then
5776
5777           # Guess based on the CPU.
5778           case "$host_cpu" in
5779             alpha* | i3456786 | m68k | s390*)
5780               gt_cv_int_divbyzero_sigfpe="guessing yes";;
5781             *)
5782               gt_cv_int_divbyzero_sigfpe="guessing no";;
5783           esac
5784
5785 else
5786   cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h.  */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h.  */
5792
5793 #include <stdlib.h>
5794 #include <signal.h>
5795
5796 static void
5797 #ifdef __cplusplus
5798 sigfpe_handler (int sig)
5799 #else
5800 sigfpe_handler (sig) int sig;
5801 #endif
5802 {
5803   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5804   exit (sig != SIGFPE);
5805 }
5806
5807 int x = 1;
5808 int y = 0;
5809 int z;
5810 int nan;
5811
5812 int main ()
5813 {
5814   signal (SIGFPE, sigfpe_handler);
5815 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5816 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5817   signal (SIGTRAP, sigfpe_handler);
5818 #endif
5819 /* Linux/SPARC yields signal SIGILL.  */
5820 #if defined (__sparc__) && defined (__linux__)
5821   signal (SIGILL, sigfpe_handler);
5822 #endif
5823
5824   z = x / y;
5825   nan = y / y;
5826   exit (1);
5827 }
5828
5829 _ACEOF
5830 rm -f conftest$ac_exeext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5832   (eval $ac_link) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837   (eval $ac_try) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; }; then
5841   gt_cv_int_divbyzero_sigfpe=yes
5842 else
5843   echo "$as_me: program exited with status $ac_status" >&5
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5846
5847 ( exit $ac_status )
5848 gt_cv_int_divbyzero_sigfpe=no
5849 fi
5850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5851 fi
5852
5853 fi
5854 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5855 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5856   case "$gt_cv_int_divbyzero_sigfpe" in
5857     *yes) value=1;;
5858     *) value=0;;
5859   esac
5860
5861 cat >>confdefs.h <<_ACEOF
5862 #define INTDIV0_RAISES_SIGFPE $value
5863 _ACEOF
5864
5865
5866
5867   echo "$as_me:$LINENO: checking for unsigned long long" >&5
5868 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5869 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872   cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h.  */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h.  */
5878 unsigned long long ull = 1ULL; int i = 63;
5879 int
5880 main ()
5881 {
5882 unsigned long long ullmax = (unsigned long long) -1;
5883      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5884   ;
5885   return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext conftest$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890   (eval $ac_link) 2>conftest.er1
5891   ac_status=$?
5892   grep -v '^ *+' conftest.er1 >conftest.err
5893   rm -f conftest.er1
5894   cat conftest.err >&5
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); } &&
5897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899   (eval $ac_try) 2>&5
5900   ac_status=$?
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); }; } &&
5903          { ac_try='test -s conftest$ac_exeext'
5904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905   (eval $ac_try) 2>&5
5906   ac_status=$?
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); }; }; then
5909   ac_cv_type_unsigned_long_long=yes
5910 else
5911   echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5913
5914 ac_cv_type_unsigned_long_long=no
5915 fi
5916 rm -f conftest.err conftest.$ac_objext \
5917       conftest$ac_exeext conftest.$ac_ext
5918 fi
5919 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5920 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5921   if test $ac_cv_type_unsigned_long_long = yes; then
5922
5923 cat >>confdefs.h <<\_ACEOF
5924 #define HAVE_UNSIGNED_LONG_LONG 1
5925 _ACEOF
5926
5927   fi
5928
5929
5930
5931
5932   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5933
5934     test $ac_cv_type_unsigned_long_long = yes \
5935       && ac_type='unsigned long long' \
5936       || ac_type='unsigned long'
5937
5938 cat >>confdefs.h <<_ACEOF
5939 #define uintmax_t $ac_type
5940 _ACEOF
5941
5942   else
5943
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_UINTMAX_T 1
5946 _ACEOF
5947
5948   fi
5949
5950
5951   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5952 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5953 if test "${gt_cv_header_inttypes_h+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956
5957     cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 #include <sys/types.h>
5964 #include <inttypes.h>
5965 int
5966 main ()
5967 {
5968
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975   (eval $ac_compile) 2>conftest.er1
5976   ac_status=$?
5977   grep -v '^ *+' conftest.er1 >conftest.err
5978   rm -f conftest.er1
5979   cat conftest.err >&5
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; } &&
5988          { ac_try='test -s conftest.$ac_objext'
5989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990   (eval $ac_try) 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; }; then
5994   gt_cv_header_inttypes_h=yes
5995 else
5996   echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 gt_cv_header_inttypes_h=no
6000 fi
6001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002
6003 fi
6004 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6005 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6006   if test $gt_cv_header_inttypes_h = yes; then
6007
6008 cat >>confdefs.h <<_ACEOF
6009 #define HAVE_INTTYPES_H 1
6010 _ACEOF
6011
6012   fi
6013
6014
6015
6016   if test $gt_cv_header_inttypes_h = yes; then
6017     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6018 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6019 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022
6023         cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029 #include <inttypes.h>
6030 #ifdef PRId32
6031 char *p = PRId32;
6032 #endif
6033
6034 int
6035 main ()
6036 {
6037
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044   (eval $ac_compile) 2>conftest.er1
6045   ac_status=$?
6046   grep -v '^ *+' conftest.er1 >conftest.err
6047   rm -f conftest.er1
6048   cat conftest.err >&5
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } &&
6051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; } &&
6057          { ac_try='test -s conftest.$ac_objext'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; }; then
6063   gt_cv_inttypes_pri_broken=no
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 gt_cv_inttypes_pri_broken=yes
6069 fi
6070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071
6072 fi
6073 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6074 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6075   fi
6076   if test "$gt_cv_inttypes_pri_broken" = yes; then
6077
6078 cat >>confdefs.h <<_ACEOF
6079 #define PRI_MACROS_BROKEN 1
6080 _ACEOF
6081
6082   fi
6083
6084
6085
6086 for ac_header in stdint.h
6087 do
6088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6090   echo "$as_me:$LINENO: checking for $ac_header" >&5
6091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 fi
6095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6097 else
6098   # Is the header compilable?
6099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h.  */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h.  */
6107 $ac_includes_default
6108 #include <$ac_header>
6109 _ACEOF
6110 rm -f conftest.$ac_objext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112   (eval $ac_compile) 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121   (eval $ac_try) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; } &&
6125          { ac_try='test -s conftest.$ac_objext'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; }; then
6131   ac_header_compiler=yes
6132 else
6133   echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136 ac_header_compiler=no
6137 fi
6138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6140 echo "${ECHO_T}$ac_header_compiler" >&6
6141
6142 # Is the header present?
6143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #include <$ac_header>
6152 _ACEOF
6153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155   ac_status=$?
6156   grep -v '^ *+' conftest.er1 >conftest.err
6157   rm -f conftest.er1
6158   cat conftest.err >&5
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } >/dev/null; then
6161   if test -s conftest.err; then
6162     ac_cpp_err=$ac_c_preproc_warn_flag
6163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6164   else
6165     ac_cpp_err=
6166   fi
6167 else
6168   ac_cpp_err=yes
6169 fi
6170 if test -z "$ac_cpp_err"; then
6171   ac_header_preproc=yes
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176   ac_header_preproc=no
6177 fi
6178 rm -f conftest.err conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6180 echo "${ECHO_T}$ac_header_preproc" >&6
6181
6182 # So?  What about this header?
6183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6184   yes:no: )
6185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6189     ac_header_preproc=yes
6190     ;;
6191   no:yes:* )
6192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6204     (
6205       cat <<\_ASBOX
6206 ## ------------------------------------------ ##
6207 ## Report this to the AC_PACKAGE_NAME lists.  ##
6208 ## ------------------------------------------ ##
6209 _ASBOX
6210     ) |
6211       sed "s/^/$as_me: WARNING:     /" >&2
6212     ;;
6213 esac
6214 echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   eval "$as_ac_Header=\$ac_header_preproc"
6220 fi
6221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6223
6224 fi
6225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6226   cat >>confdefs.h <<_ACEOF
6227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6228 _ACEOF
6229
6230 fi
6231
6232 done
6233
6234     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6235 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6236   result=
6237   cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h.  */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h.  */
6243
6244 #include <limits.h>
6245 #if HAVE_STDINT_H
6246 #include <stdint.h>
6247 #endif
6248 #ifdef SIZE_MAX
6249 Found it
6250 #endif
6251
6252 _ACEOF
6253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6254   $EGREP "Found it" >/dev/null 2>&1; then
6255   result=yes
6256 fi
6257 rm -f conftest*
6258
6259   if test -z "$result"; then
6260                     if test "$cross_compiling" = yes; then
6261   # Depending upon the size, compute the lo and hi bounds.
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268 #include <stddef.h>
6269 int
6270 main ()
6271 {
6272 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6273 test_array [0] = 0
6274
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281   (eval $ac_compile) 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290   (eval $ac_try) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; } &&
6294          { ac_try='test -s conftest.$ac_objext'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; }; then
6300   ac_lo=0 ac_mid=0
6301   while :; do
6302     cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h.  */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h.  */
6308 #include <stddef.h>
6309 int
6310 main ()
6311 {
6312 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6313 test_array [0] = 0
6314
6315   ;
6316   return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321   (eval $ac_compile) 2>conftest.er1
6322   ac_status=$?
6323   grep -v '^ *+' conftest.er1 >conftest.err
6324   rm -f conftest.er1
6325   cat conftest.err >&5
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } &&
6328          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330   (eval $ac_try) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); }; } &&
6334          { ac_try='test -s conftest.$ac_objext'
6335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336   (eval $ac_try) 2>&5
6337   ac_status=$?
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); }; }; then
6340   ac_hi=$ac_mid; break
6341 else
6342   echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 ac_lo=`expr $ac_mid + 1`
6346                     if test $ac_lo -le $ac_mid; then
6347                       ac_lo= ac_hi=
6348                       break
6349                     fi
6350                     ac_mid=`expr 2 '*' $ac_mid + 1`
6351 fi
6352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6353   done
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h.  */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h.  */
6364 #include <stddef.h>
6365 int
6366 main ()
6367 {
6368 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6369 test_array [0] = 0
6370
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377   (eval $ac_compile) 2>conftest.er1
6378   ac_status=$?
6379   grep -v '^ *+' conftest.er1 >conftest.err
6380   rm -f conftest.er1
6381   cat conftest.err >&5
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); } &&
6384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386   (eval $ac_try) 2>&5
6387   ac_status=$?
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); }; } &&
6390          { ac_try='test -s conftest.$ac_objext'
6391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392   (eval $ac_try) 2>&5
6393   ac_status=$?
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); }; }; then
6396   ac_hi=-1 ac_mid=-1
6397   while :; do
6398     cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404 #include <stddef.h>
6405 int
6406 main ()
6407 {
6408 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6409 test_array [0] = 0
6410
6411   ;
6412   return 0;
6413 }
6414 _ACEOF
6415 rm -f conftest.$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417   (eval $ac_compile) 2>conftest.er1
6418   ac_status=$?
6419   grep -v '^ *+' conftest.er1 >conftest.err
6420   rm -f conftest.er1
6421   cat conftest.err >&5
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); } &&
6424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; } &&
6430          { ac_try='test -s conftest.$ac_objext'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; }; then
6436   ac_lo=$ac_mid; break
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 ac_hi=`expr '(' $ac_mid ')' - 1`
6442                        if test $ac_mid -le $ac_hi; then
6443                          ac_lo= ac_hi=
6444                          break
6445                        fi
6446                        ac_mid=`expr 2 '*' $ac_mid`
6447 fi
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449   done
6450 else
6451   echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454 ac_lo= ac_hi=
6455 fi
6456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459 # Binary search between lo and hi bounds.
6460 while test "x$ac_lo" != "x$ac_hi"; do
6461   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6462   cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468 #include <stddef.h>
6469 int
6470 main ()
6471 {
6472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6473 test_array [0] = 0
6474
6475   ;
6476   return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481   (eval $ac_compile) 2>conftest.er1
6482   ac_status=$?
6483   grep -v '^ *+' conftest.er1 >conftest.err
6484   rm -f conftest.er1
6485   cat conftest.err >&5
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); } &&
6488          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490   (eval $ac_try) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; } &&
6494          { ac_try='test -s conftest.$ac_objext'
6495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496   (eval $ac_try) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); }; }; then
6500   ac_hi=$ac_mid
6501 else
6502   echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6504
6505 ac_lo=`expr '(' $ac_mid ')' + 1`
6506 fi
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508 done
6509 case $ac_lo in
6510 ?*) res_hi=$ac_lo;;
6511 '') result=? ;;
6512 esac
6513 else
6514   if test "$cross_compiling" = yes; then
6515   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6516 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6517    { (exit 1); exit 1; }; }
6518 else
6519   cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525 #include <stddef.h>
6526 long longval () { return ~(size_t)0 / 10; }
6527 unsigned long ulongval () { return ~(size_t)0 / 10; }
6528 #include <stdio.h>
6529 #include <stdlib.h>
6530 int
6531 main ()
6532 {
6533
6534   FILE *f = fopen ("conftest.val", "w");
6535   if (! f)
6536     exit (1);
6537   if ((~(size_t)0 / 10) < 0)
6538     {
6539       long i = longval ();
6540       if (i != (~(size_t)0 / 10))
6541         exit (1);
6542       fprintf (f, "%ld\n", i);
6543     }
6544   else
6545     {
6546       unsigned long i = ulongval ();
6547       if (i != (~(size_t)0 / 10))
6548         exit (1);
6549       fprintf (f, "%lu\n", i);
6550     }
6551   exit (ferror (f) || fclose (f) != 0);
6552
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 rm -f conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559   (eval $ac_link) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564   (eval $ac_try) 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; }; then
6568   res_hi=`cat conftest.val`
6569 else
6570   echo "$as_me: program exited with status $ac_status" >&5
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 ( exit $ac_status )
6575 result=?
6576 fi
6577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6578 fi
6579 fi
6580 rm -f conftest.val
6581     if test "$cross_compiling" = yes; then
6582   # Depending upon the size, compute the lo and hi bounds.
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 #include <stddef.h>
6590 int
6591 main ()
6592 {
6593 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6594 test_array [0] = 0
6595
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602   (eval $ac_compile) 2>conftest.er1
6603   ac_status=$?
6604   grep -v '^ *+' conftest.er1 >conftest.err
6605   rm -f conftest.er1
6606   cat conftest.err >&5
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); } &&
6609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; } &&
6615          { ac_try='test -s conftest.$ac_objext'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; }; then
6621   ac_lo=0 ac_mid=0
6622   while :; do
6623     cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629 #include <stddef.h>
6630 int
6631 main ()
6632 {
6633 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6634 test_array [0] = 0
6635
6636   ;
6637   return 0;
6638 }
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642   (eval $ac_compile) 2>conftest.er1
6643   ac_status=$?
6644   grep -v '^ *+' conftest.er1 >conftest.err
6645   rm -f conftest.er1
6646   cat conftest.err >&5
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); } &&
6649          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651   (eval $ac_try) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); }; } &&
6655          { ac_try='test -s conftest.$ac_objext'
6656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657   (eval $ac_try) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; }; then
6661   ac_hi=$ac_mid; break
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 ac_lo=`expr $ac_mid + 1`
6667                     if test $ac_lo -le $ac_mid; then
6668                       ac_lo= ac_hi=
6669                       break
6670                     fi
6671                     ac_mid=`expr 2 '*' $ac_mid + 1`
6672 fi
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674   done
6675 else
6676   echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6678
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h.  */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h.  */
6685 #include <stddef.h>
6686 int
6687 main ()
6688 {
6689 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6690 test_array [0] = 0
6691
6692   ;
6693   return 0;
6694 }
6695 _ACEOF
6696 rm -f conftest.$ac_objext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6698   (eval $ac_compile) 2>conftest.er1
6699   ac_status=$?
6700   grep -v '^ *+' conftest.er1 >conftest.err
6701   rm -f conftest.er1
6702   cat conftest.err >&5
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); } &&
6705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; } &&
6711          { ac_try='test -s conftest.$ac_objext'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; }; then
6717   ac_hi=-1 ac_mid=-1
6718   while :; do
6719     cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725 #include <stddef.h>
6726 int
6727 main ()
6728 {
6729 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6730 test_array [0] = 0
6731
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738   (eval $ac_compile) 2>conftest.er1
6739   ac_status=$?
6740   grep -v '^ *+' conftest.er1 >conftest.err
6741   rm -f conftest.er1
6742   cat conftest.err >&5
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } &&
6745          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; } &&
6751          { ac_try='test -s conftest.$ac_objext'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; }; then
6757   ac_lo=$ac_mid; break
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 ac_hi=`expr '(' $ac_mid ')' - 1`
6763                        if test $ac_mid -le $ac_hi; then
6764                          ac_lo= ac_hi=
6765                          break
6766                        fi
6767                        ac_mid=`expr 2 '*' $ac_mid`
6768 fi
6769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770   done
6771 else
6772   echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_lo= ac_hi=
6776 fi
6777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6778 fi
6779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780 # Binary search between lo and hi bounds.
6781 while test "x$ac_lo" != "x$ac_hi"; do
6782   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6783   cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h.  */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h.  */
6789 #include <stddef.h>
6790 int
6791 main ()
6792 {
6793 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6794 test_array [0] = 0
6795
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802   (eval $ac_compile) 2>conftest.er1
6803   ac_status=$?
6804   grep -v '^ *+' conftest.er1 >conftest.err
6805   rm -f conftest.er1
6806   cat conftest.err >&5
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); } &&
6809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; } &&
6815          { ac_try='test -s conftest.$ac_objext'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821   ac_hi=$ac_mid
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 ac_lo=`expr '(' $ac_mid ')' + 1`
6827 fi
6828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6829 done
6830 case $ac_lo in
6831 ?*) res_lo=$ac_lo;;
6832 '') result=? ;;
6833 esac
6834 else
6835   if test "$cross_compiling" = yes; then
6836   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6837 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6838    { (exit 1); exit 1; }; }
6839 else
6840   cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h.  */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h.  */
6846 #include <stddef.h>
6847 long longval () { return ~(size_t)0 % 10; }
6848 unsigned long ulongval () { return ~(size_t)0 % 10; }
6849 #include <stdio.h>
6850 #include <stdlib.h>
6851 int
6852 main ()
6853 {
6854
6855   FILE *f = fopen ("conftest.val", "w");
6856   if (! f)
6857     exit (1);
6858   if ((~(size_t)0 % 10) < 0)
6859     {
6860       long i = longval ();
6861       if (i != (~(size_t)0 % 10))
6862         exit (1);
6863       fprintf (f, "%ld\n", i);
6864     }
6865   else
6866     {
6867       unsigned long i = ulongval ();
6868       if (i != (~(size_t)0 % 10))
6869         exit (1);
6870       fprintf (f, "%lu\n", i);
6871     }
6872   exit (ferror (f) || fclose (f) != 0);
6873
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 rm -f conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880   (eval $ac_link) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885   (eval $ac_try) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }; }; then
6889   res_lo=`cat conftest.val`
6890 else
6891   echo "$as_me: program exited with status $ac_status" >&5
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895 ( exit $ac_status )
6896 result=?
6897 fi
6898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6899 fi
6900 fi
6901 rm -f conftest.val
6902     if test "$cross_compiling" = yes; then
6903   # Depending upon the size, compute the lo and hi bounds.
6904 cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h.  */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h.  */
6910 #include <stddef.h>
6911 int
6912 main ()
6913 {
6914 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6915 test_array [0] = 0
6916
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 rm -f conftest.$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923   (eval $ac_compile) 2>conftest.er1
6924   ac_status=$?
6925   grep -v '^ *+' conftest.er1 >conftest.err
6926   rm -f conftest.er1
6927   cat conftest.err >&5
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); } &&
6930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932   (eval $ac_try) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); }; } &&
6936          { ac_try='test -s conftest.$ac_objext'
6937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938   (eval $ac_try) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); }; }; then
6942   ac_lo=0 ac_mid=0
6943   while :; do
6944     cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950 #include <stddef.h>
6951 int
6952 main ()
6953 {
6954 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6955 test_array [0] = 0
6956
6957   ;
6958   return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963   (eval $ac_compile) 2>conftest.er1
6964   ac_status=$?
6965   grep -v '^ *+' conftest.er1 >conftest.err
6966   rm -f conftest.er1
6967   cat conftest.err >&5
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); } &&
6970          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972   (eval $ac_try) 2>&5
6973   ac_status=$?
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); }; } &&
6976          { ac_try='test -s conftest.$ac_objext'
6977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978   (eval $ac_try) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; }; then
6982   ac_hi=$ac_mid; break
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987 ac_lo=`expr $ac_mid + 1`
6988                     if test $ac_lo -le $ac_mid; then
6989                       ac_lo= ac_hi=
6990                       break
6991                     fi
6992                     ac_mid=`expr 2 '*' $ac_mid + 1`
6993 fi
6994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995   done
6996 else
6997   echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h.  */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h.  */
7006 #include <stddef.h>
7007 int
7008 main ()
7009 {
7010 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7011 test_array [0] = 0
7012
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 rm -f conftest.$ac_objext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019   (eval $ac_compile) 2>conftest.er1
7020   ac_status=$?
7021   grep -v '^ *+' conftest.er1 >conftest.err
7022   rm -f conftest.er1
7023   cat conftest.err >&5
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); } &&
7026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; } &&
7032          { ac_try='test -s conftest.$ac_objext'
7033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034   (eval $ac_try) 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); }; }; then
7038   ac_hi=-1 ac_mid=-1
7039   while :; do
7040     cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046 #include <stddef.h>
7047 int
7048 main ()
7049 {
7050 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7051 test_array [0] = 0
7052
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059   (eval $ac_compile) 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } &&
7066          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068   (eval $ac_try) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; } &&
7072          { ac_try='test -s conftest.$ac_objext'
7073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074   (eval $ac_try) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }; }; then
7078   ac_lo=$ac_mid; break
7079 else
7080   echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ac_hi=`expr '(' $ac_mid ')' - 1`
7084                        if test $ac_mid -le $ac_hi; then
7085                          ac_lo= ac_hi=
7086                          break
7087                        fi
7088                        ac_mid=`expr 2 '*' $ac_mid`
7089 fi
7090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7091   done
7092 else
7093   echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 ac_lo= ac_hi=
7097 fi
7098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099 fi
7100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101 # Binary search between lo and hi bounds.
7102 while test "x$ac_lo" != "x$ac_hi"; do
7103   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7104   cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h.  */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h.  */
7110 #include <stddef.h>
7111 int
7112 main ()
7113 {
7114 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7115 test_array [0] = 0
7116
7117   ;
7118   return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123   (eval $ac_compile) 2>conftest.er1
7124   ac_status=$?
7125   grep -v '^ *+' conftest.er1 >conftest.err
7126   rm -f conftest.er1
7127   cat conftest.err >&5
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } &&
7130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132   (eval $ac_try) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); }; } &&
7136          { ac_try='test -s conftest.$ac_objext'
7137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138   (eval $ac_try) 2>&5
7139   ac_status=$?
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); }; }; then
7142   ac_hi=$ac_mid
7143 else
7144   echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7146
7147 ac_lo=`expr '(' $ac_mid ')' + 1`
7148 fi
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 done
7151 case $ac_lo in
7152 ?*) fits_in_uint=$ac_lo;;
7153 '') result=? ;;
7154 esac
7155 else
7156   if test "$cross_compiling" = yes; then
7157   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7158 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7159    { (exit 1); exit 1; }; }
7160 else
7161   cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h.  */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h.  */
7167 #include <stddef.h>
7168 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7169 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7170 #include <stdio.h>
7171 #include <stdlib.h>
7172 int
7173 main ()
7174 {
7175
7176   FILE *f = fopen ("conftest.val", "w");
7177   if (! f)
7178     exit (1);
7179   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7180     {
7181       long i = longval ();
7182       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7183         exit (1);
7184       fprintf (f, "%ld\n", i);
7185     }
7186   else
7187     {
7188       unsigned long i = ulongval ();
7189       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7190         exit (1);
7191       fprintf (f, "%lu\n", i);
7192     }
7193   exit (ferror (f) || fclose (f) != 0);
7194
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 rm -f conftest$ac_exeext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7201   (eval $ac_link) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206   (eval $ac_try) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; }; then
7210   fits_in_uint=`cat conftest.val`
7211 else
7212   echo "$as_me: program exited with status $ac_status" >&5
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 ( exit $ac_status )
7217 result=?
7218 fi
7219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 fi
7222 rm -f conftest.val
7223     if test "$fits_in_uint" = 1; then
7224                   cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h.  */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h.  */
7230 #include <stddef.h>
7231         extern size_t foo;
7232         extern unsigned long foo;
7233
7234 int
7235 main ()
7236 {
7237
7238   ;
7239   return 0;
7240 }
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244   (eval $ac_compile) 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } &&
7251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253   (eval $ac_try) 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); }; } &&
7257          { ac_try='test -s conftest.$ac_objext'
7258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259   (eval $ac_try) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); }; }; then
7263   fits_in_uint=0
7264 else
7265   echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 fi
7269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7270     fi
7271     if test -z "$result"; then
7272       if test "$fits_in_uint" = 1; then
7273         result="$res_hi$res_lo"U
7274       else
7275         result="$res_hi$res_lo"UL
7276       fi
7277     else
7278             result='~(size_t)0'
7279     fi
7280   fi
7281   echo "$as_me:$LINENO: result: $result" >&5
7282 echo "${ECHO_T}$result" >&6
7283   if test "$result" != yes; then
7284
7285 cat >>confdefs.h <<_ACEOF
7286 #define SIZE_MAX $result
7287 _ACEOF
7288
7289   fi
7290
7291
7292
7293
7294 for ac_header in stdint.h
7295 do
7296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7298   echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 fi
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7305 else
7306   # Is the header compilable?
7307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h.  */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h.  */
7315 $ac_includes_default
7316 #include <$ac_header>
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320   (eval $ac_compile) 2>conftest.er1
7321   ac_status=$?
7322   grep -v '^ *+' conftest.er1 >conftest.err
7323   rm -f conftest.er1
7324   cat conftest.err >&5
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); } &&
7327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329   (eval $ac_try) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; } &&
7333          { ac_try='test -s conftest.$ac_objext'
7334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335   (eval $ac_try) 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; }; then
7339   ac_header_compiler=yes
7340 else
7341   echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344 ac_header_compiler=no
7345 fi
7346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7349
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7359 #include <$ac_header>
7360 _ACEOF
7361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7363   ac_status=$?
7364   grep -v '^ *+' conftest.er1 >conftest.err
7365   rm -f conftest.er1
7366   cat conftest.err >&5
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); } >/dev/null; then
7369   if test -s conftest.err; then
7370     ac_cpp_err=$ac_c_preproc_warn_flag
7371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7372   else
7373     ac_cpp_err=
7374   fi
7375 else
7376   ac_cpp_err=yes
7377 fi
7378 if test -z "$ac_cpp_err"; then
7379   ac_header_preproc=yes
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384   ac_header_preproc=no
7385 fi
7386 rm -f conftest.err conftest.$ac_ext
7387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388 echo "${ECHO_T}$ac_header_preproc" >&6
7389
7390 # So?  What about this header?
7391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7392   yes:no: )
7393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7397     ac_header_preproc=yes
7398     ;;
7399   no:yes:* )
7400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7402     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7403 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7404     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7406     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7407 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7410     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7412     (
7413       cat <<\_ASBOX
7414 ## ------------------------------------------ ##
7415 ## Report this to the AC_PACKAGE_NAME lists.  ##
7416 ## ------------------------------------------ ##
7417 _ASBOX
7418     ) |
7419       sed "s/^/$as_me: WARNING:     /" >&2
7420     ;;
7421 esac
7422 echo "$as_me:$LINENO: checking for $ac_header" >&5
7423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   eval "$as_ac_Header=\$ac_header_preproc"
7428 fi
7429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431
7432 fi
7433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434   cat >>confdefs.h <<_ACEOF
7435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436 _ACEOF
7437
7438 fi
7439
7440 done
7441
7442
7443
7444       if test "X$prefix" = "XNONE"; then
7445     acl_final_prefix="$ac_default_prefix"
7446   else
7447     acl_final_prefix="$prefix"
7448   fi
7449   if test "X$exec_prefix" = "XNONE"; then
7450     acl_final_exec_prefix='${prefix}'
7451   else
7452     acl_final_exec_prefix="$exec_prefix"
7453   fi
7454   acl_save_prefix="$prefix"
7455   prefix="$acl_final_prefix"
7456   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7457   prefix="$acl_save_prefix"
7458
7459
7460 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7461 if test "${with_gnu_ld+set}" = set; then
7462   withval="$with_gnu_ld"
7463   test "$withval" = no || with_gnu_ld=yes
7464 else
7465   with_gnu_ld=no
7466 fi;
7467 # Prepare PATH_SEPARATOR.
7468 # The user is always right.
7469 if test "${PATH_SEPARATOR+set}" != set; then
7470   echo "#! /bin/sh" >conf$$.sh
7471   echo  "exit 0"   >>conf$$.sh
7472   chmod +x conf$$.sh
7473   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7474     PATH_SEPARATOR=';'
7475   else
7476     PATH_SEPARATOR=:
7477   fi
7478   rm -f conf$$.sh
7479 fi
7480 ac_prog=ld
7481 if test "$GCC" = yes; then
7482   # Check if gcc -print-prog-name=ld gives a path.
7483   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7484 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7485   case $host in
7486   *-*-mingw*)
7487     # gcc leaves a trailing carriage return which upsets mingw
7488     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7489   *)
7490     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7491   esac
7492   case $ac_prog in
7493     # Accept absolute paths.
7494     [\\/]* | [A-Za-z]:[\\/]*)
7495       re_direlt='/[^/][^/]*/\.\./'
7496       # Canonicalize the path of ld
7497       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7498       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7499         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7500       done
7501       test -z "$LD" && LD="$ac_prog"
7502       ;;
7503   "")
7504     # If it fails, then pretend we aren't using GCC.
7505     ac_prog=ld
7506     ;;
7507   *)
7508     # If it is relative, then search for the first ld in PATH.
7509     with_gnu_ld=unknown
7510     ;;
7511   esac
7512 elif test "$with_gnu_ld" = yes; then
7513   echo "$as_me:$LINENO: checking for GNU ld" >&5
7514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7515 else
7516   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7518 fi
7519 if test "${acl_cv_path_LD+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   if test -z "$LD"; then
7523   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7524   for ac_dir in $PATH; do
7525     test -z "$ac_dir" && ac_dir=.
7526     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7527       acl_cv_path_LD="$ac_dir/$ac_prog"
7528       # Check to see if the program is GNU ld.  I'd rather use --version,
7529       # but apparently some GNU ld's only accept -v.
7530       # Break only if it was the GNU/non-GNU ld that we prefer.
7531       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7532       *GNU* | *'with BFD'*)
7533         test "$with_gnu_ld" != no && break ;;
7534       *)
7535         test "$with_gnu_ld" != yes && break ;;
7536       esac
7537     fi
7538   done
7539   IFS="$ac_save_ifs"
7540 else
7541   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7542 fi
7543 fi
7544
7545 LD="$acl_cv_path_LD"
7546 if test -n "$LD"; then
7547   echo "$as_me:$LINENO: result: $LD" >&5
7548 echo "${ECHO_T}$LD" >&6
7549 else
7550   echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6
7552 fi
7553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7555    { (exit 1); exit 1; }; }
7556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7558 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7562 case `$LD -v 2>&1 </dev/null` in
7563 *GNU* | *'with BFD'*)
7564   acl_cv_prog_gnu_ld=yes ;;
7565 *)
7566   acl_cv_prog_gnu_ld=no ;;
7567 esac
7568 fi
7569 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7570 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7571 with_gnu_ld=$acl_cv_prog_gnu_ld
7572
7573
7574
7575                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7576 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7577 if test "${acl_cv_rpath+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580
7581     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7582     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7583     . ./conftest.sh
7584     rm -f ./conftest.sh
7585     acl_cv_rpath=done
7586
7587 fi
7588 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7589 echo "${ECHO_T}$acl_cv_rpath" >&6
7590   wl="$acl_cv_wl"
7591   libext="$acl_cv_libext"
7592   shlibext="$acl_cv_shlibext"
7593   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7594   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7595   hardcode_direct="$acl_cv_hardcode_direct"
7596   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7597     # Check whether --enable-rpath or --disable-rpath was given.
7598 if test "${enable_rpath+set}" = set; then
7599   enableval="$enable_rpath"
7600   :
7601 else
7602   enable_rpath=yes
7603 fi;
7604
7605
7606
7607
7608
7609
7610
7611     use_additional=yes
7612
7613   acl_save_prefix="$prefix"
7614   prefix="$acl_final_prefix"
7615   acl_save_exec_prefix="$exec_prefix"
7616   exec_prefix="$acl_final_exec_prefix"
7617
7618     eval additional_includedir=\"$includedir\"
7619     eval additional_libdir=\"$libdir\"
7620
7621   exec_prefix="$acl_save_exec_prefix"
7622   prefix="$acl_save_prefix"
7623
7624
7625 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7626 if test "${with_libiconv_prefix+set}" = set; then
7627   withval="$with_libiconv_prefix"
7628
7629     if test "X$withval" = "Xno"; then
7630       use_additional=no
7631     else
7632       if test "X$withval" = "X"; then
7633
7634   acl_save_prefix="$prefix"
7635   prefix="$acl_final_prefix"
7636   acl_save_exec_prefix="$exec_prefix"
7637   exec_prefix="$acl_final_exec_prefix"
7638
7639           eval additional_includedir=\"$includedir\"
7640           eval additional_libdir=\"$libdir\"
7641
7642   exec_prefix="$acl_save_exec_prefix"
7643   prefix="$acl_save_prefix"
7644
7645       else
7646         additional_includedir="$withval/include"
7647         additional_libdir="$withval/lib"
7648       fi
7649     fi
7650
7651 fi;
7652       LIBICONV=
7653   LTLIBICONV=
7654   INCICONV=
7655   rpathdirs=
7656   ltrpathdirs=
7657   names_already_handled=
7658   names_next_round='iconv '
7659   while test -n "$names_next_round"; do
7660     names_this_round="$names_next_round"
7661     names_next_round=
7662     for name in $names_this_round; do
7663       already_handled=
7664       for n in $names_already_handled; do
7665         if test "$n" = "$name"; then
7666           already_handled=yes
7667           break
7668         fi
7669       done
7670       if test -z "$already_handled"; then
7671         names_already_handled="$names_already_handled $name"
7672                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7673         eval value=\"\$HAVE_LIB$uppername\"
7674         if test -n "$value"; then
7675           if test "$value" = yes; then
7676             eval value=\"\$LIB$uppername\"
7677             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7678             eval value=\"\$LTLIB$uppername\"
7679             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7680           else
7681                                     :
7682           fi
7683         else
7684                               found_dir=
7685           found_la=
7686           found_so=
7687           found_a=
7688           if test $use_additional = yes; then
7689             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7690               found_dir="$additional_libdir"
7691               found_so="$additional_libdir/lib$name.$shlibext"
7692               if test -f "$additional_libdir/lib$name.la"; then
7693                 found_la="$additional_libdir/lib$name.la"
7694               fi
7695             else
7696               if test -f "$additional_libdir/lib$name.$libext"; then
7697                 found_dir="$additional_libdir"
7698                 found_a="$additional_libdir/lib$name.$libext"
7699                 if test -f "$additional_libdir/lib$name.la"; then
7700                   found_la="$additional_libdir/lib$name.la"
7701                 fi
7702               fi
7703             fi
7704           fi
7705           if test "X$found_dir" = "X"; then
7706             for x in $LDFLAGS $LTLIBICONV; do
7707
7708   acl_save_prefix="$prefix"
7709   prefix="$acl_final_prefix"
7710   acl_save_exec_prefix="$exec_prefix"
7711   exec_prefix="$acl_final_exec_prefix"
7712   eval x=\"$x\"
7713   exec_prefix="$acl_save_exec_prefix"
7714   prefix="$acl_save_prefix"
7715
7716               case "$x" in
7717                 -L*)
7718                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7719                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7720                     found_dir="$dir"
7721                     found_so="$dir/lib$name.$shlibext"
7722                     if test -f "$dir/lib$name.la"; then
7723                       found_la="$dir/lib$name.la"
7724                     fi
7725                   else
7726                     if test -f "$dir/lib$name.$libext"; then
7727                       found_dir="$dir"
7728                       found_a="$dir/lib$name.$libext"
7729                       if test -f "$dir/lib$name.la"; then
7730                         found_la="$dir/lib$name.la"
7731                       fi
7732                     fi
7733                   fi
7734                   ;;
7735               esac
7736               if test "X$found_dir" != "X"; then
7737                 break
7738               fi
7739             done
7740           fi
7741           if test "X$found_dir" != "X"; then
7742                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7743             if test "X$found_so" != "X"; then
7744                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7745                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7746               else
7747                                                                                 haveit=
7748                 for x in $ltrpathdirs; do
7749                   if test "X$x" = "X$found_dir"; then
7750                     haveit=yes
7751                     break
7752                   fi
7753                 done
7754                 if test -z "$haveit"; then
7755                   ltrpathdirs="$ltrpathdirs $found_dir"
7756                 fi
7757                                 if test "$hardcode_direct" = yes; then
7758                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7759                 else
7760                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7761                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7762                                                             haveit=
7763                     for x in $rpathdirs; do
7764                       if test "X$x" = "X$found_dir"; then
7765                         haveit=yes
7766                         break
7767                       fi
7768                     done
7769                     if test -z "$haveit"; then
7770                       rpathdirs="$rpathdirs $found_dir"
7771                     fi
7772                   else
7773                                                                                 haveit=
7774                     for x in $LDFLAGS $LIBICONV; do
7775
7776   acl_save_prefix="$prefix"
7777   prefix="$acl_final_prefix"
7778   acl_save_exec_prefix="$exec_prefix"
7779   exec_prefix="$acl_final_exec_prefix"
7780   eval x=\"$x\"
7781   exec_prefix="$acl_save_exec_prefix"
7782   prefix="$acl_save_prefix"
7783
7784                       if test "X$x" = "X-L$found_dir"; then
7785                         haveit=yes
7786                         break
7787                       fi
7788                     done
7789                     if test -z "$haveit"; then
7790                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7791                     fi
7792                     if test "$hardcode_minus_L" != no; then
7793                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7794                     else
7795                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7796                     fi
7797                   fi
7798                 fi
7799               fi
7800             else
7801               if test "X$found_a" != "X"; then
7802                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7803               else
7804                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7805               fi
7806             fi
7807                         additional_includedir=
7808             case "$found_dir" in
7809               */lib | */lib/)
7810                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7811                 additional_includedir="$basedir/include"
7812                 ;;
7813             esac
7814             if test "X$additional_includedir" != "X"; then
7815                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7816                 haveit=
7817                 if test "X$additional_includedir" = "X/usr/local/include"; then
7818                   if test -n "$GCC"; then
7819                     case $host_os in
7820                       linux*) haveit=yes;;
7821                     esac
7822                   fi
7823                 fi
7824                 if test -z "$haveit"; then
7825                   for x in $CPPFLAGS $INCICONV; do
7826
7827   acl_save_prefix="$prefix"
7828   prefix="$acl_final_prefix"
7829   acl_save_exec_prefix="$exec_prefix"
7830   exec_prefix="$acl_final_exec_prefix"
7831   eval x=\"$x\"
7832   exec_prefix="$acl_save_exec_prefix"
7833   prefix="$acl_save_prefix"
7834
7835                     if test "X$x" = "X-I$additional_includedir"; then
7836                       haveit=yes
7837                       break
7838                     fi
7839                   done
7840                   if test -z "$haveit"; then
7841                     if test -d "$additional_includedir"; then
7842                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7843                     fi
7844                   fi
7845                 fi
7846               fi
7847             fi
7848                         if test -n "$found_la"; then
7849                                                         save_libdir="$libdir"
7850               case "$found_la" in
7851                 */* | *\\*) . "$found_la" ;;
7852                 *) . "./$found_la" ;;
7853               esac
7854               libdir="$save_libdir"
7855                             for dep in $dependency_libs; do
7856                 case "$dep" in
7857                   -L*)
7858                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7859                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7860                       haveit=
7861                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7862                         if test -n "$GCC"; then
7863                           case $host_os in
7864                             linux*) haveit=yes;;
7865                           esac
7866                         fi
7867                       fi
7868                       if test -z "$haveit"; then
7869                         haveit=
7870                         for x in $LDFLAGS $LIBICONV; do
7871
7872   acl_save_prefix="$prefix"
7873   prefix="$acl_final_prefix"
7874   acl_save_exec_prefix="$exec_prefix"
7875   exec_prefix="$acl_final_exec_prefix"
7876   eval x=\"$x\"
7877   exec_prefix="$acl_save_exec_prefix"
7878   prefix="$acl_save_prefix"
7879
7880                           if test "X$x" = "X-L$additional_libdir"; then
7881                             haveit=yes
7882                             break
7883                           fi
7884                         done
7885                         if test -z "$haveit"; then
7886                           if test -d "$additional_libdir"; then
7887                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7888                           fi
7889                         fi
7890                         haveit=
7891                         for x in $LDFLAGS $LTLIBICONV; do
7892
7893   acl_save_prefix="$prefix"
7894   prefix="$acl_final_prefix"
7895   acl_save_exec_prefix="$exec_prefix"
7896   exec_prefix="$acl_final_exec_prefix"
7897   eval x=\"$x\"
7898   exec_prefix="$acl_save_exec_prefix"
7899   prefix="$acl_save_prefix"
7900
7901                           if test "X$x" = "X-L$additional_libdir"; then
7902                             haveit=yes
7903                             break
7904                           fi
7905                         done
7906                         if test -z "$haveit"; then
7907                           if test -d "$additional_libdir"; then
7908                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7909                           fi
7910                         fi
7911                       fi
7912                     fi
7913                     ;;
7914                   -R*)
7915                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7916                     if test "$enable_rpath" != no; then
7917                                                                   haveit=
7918                       for x in $rpathdirs; do
7919                         if test "X$x" = "X$dir"; then
7920                           haveit=yes
7921                           break
7922                         fi
7923                       done
7924                       if test -z "$haveit"; then
7925                         rpathdirs="$rpathdirs $dir"
7926                       fi
7927                                                                   haveit=
7928                       for x in $ltrpathdirs; do
7929                         if test "X$x" = "X$dir"; then
7930                           haveit=yes
7931                           break
7932                         fi
7933                       done
7934                       if test -z "$haveit"; then
7935                         ltrpathdirs="$ltrpathdirs $dir"
7936                       fi
7937                     fi
7938                     ;;
7939                   -l*)
7940                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7941                     ;;
7942                   *.la)
7943                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7944                     ;;
7945                   *)
7946                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7947                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7948                     ;;
7949                 esac
7950               done
7951             fi
7952           else
7953                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7954             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7955           fi
7956         fi
7957       fi
7958     done
7959   done
7960   if test "X$rpathdirs" != "X"; then
7961     if test -n "$hardcode_libdir_separator"; then
7962                         alldirs=
7963       for found_dir in $rpathdirs; do
7964         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7965       done
7966             acl_save_libdir="$libdir"
7967       libdir="$alldirs"
7968       eval flag=\"$hardcode_libdir_flag_spec\"
7969       libdir="$acl_save_libdir"
7970       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7971     else
7972             for found_dir in $rpathdirs; do
7973         acl_save_libdir="$libdir"
7974         libdir="$found_dir"
7975         eval flag=\"$hardcode_libdir_flag_spec\"
7976         libdir="$acl_save_libdir"
7977         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7978       done
7979     fi
7980   fi
7981   if test "X$ltrpathdirs" != "X"; then
7982             for found_dir in $ltrpathdirs; do
7983       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7984     done
7985   fi
7986
7987
7988
7989
7990
7991
7992
7993
7994   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
7995 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
7996 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005 $ac_includes_default
8006 int
8007 main ()
8008 {
8009 if ((ptrdiff_t *) 0)
8010   return 0;
8011 if (sizeof (ptrdiff_t))
8012   return 0;
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019   (eval $ac_compile) 2>conftest.er1
8020   ac_status=$?
8021   grep -v '^ *+' conftest.er1 >conftest.err
8022   rm -f conftest.er1
8023   cat conftest.err >&5
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } &&
8026          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; } &&
8032          { ac_try='test -s conftest.$ac_objext'
8033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034   (eval $ac_try) 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); }; }; then
8038   ac_cv_type_ptrdiff_t=yes
8039 else
8040   echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ac_cv_type_ptrdiff_t=no
8044 fi
8045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8046 fi
8047 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8048 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8049 if test $ac_cv_type_ptrdiff_t = yes; then
8050   :
8051 else
8052
8053 cat >>confdefs.h <<\_ACEOF
8054 #define ptrdiff_t long
8055 _ACEOF
8056
8057
8058 fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8071 stdlib.h string.h unistd.h sys/param.h
8072 do
8073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075   echo "$as_me:$LINENO: checking for $ac_header" >&5
8076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078   echo $ECHO_N "(cached) $ECHO_C" >&6
8079 fi
8080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8082 else
8083   # Is the header compilable?
8084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h.  */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h.  */
8092 $ac_includes_default
8093 #include <$ac_header>
8094 _ACEOF
8095 rm -f conftest.$ac_objext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097   (eval $ac_compile) 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } &&
8104          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106   (eval $ac_try) 2>&5
8107   ac_status=$?
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); }; } &&
8110          { ac_try='test -s conftest.$ac_objext'
8111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; }; then
8116   ac_header_compiler=yes
8117 else
8118   echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ac_header_compiler=no
8122 fi
8123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8125 echo "${ECHO_T}$ac_header_compiler" >&6
8126
8127 # Is the header present?
8128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 #include <$ac_header>
8137 _ACEOF
8138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } >/dev/null; then
8146   if test -s conftest.err; then
8147     ac_cpp_err=$ac_c_preproc_warn_flag
8148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8149   else
8150     ac_cpp_err=
8151   fi
8152 else
8153   ac_cpp_err=yes
8154 fi
8155 if test -z "$ac_cpp_err"; then
8156   ac_header_preproc=yes
8157 else
8158   echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161   ac_header_preproc=no
8162 fi
8163 rm -f conftest.err conftest.$ac_ext
8164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8165 echo "${ECHO_T}$ac_header_preproc" >&6
8166
8167 # So?  What about this header?
8168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8169   yes:no: )
8170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8174     ac_header_preproc=yes
8175     ;;
8176   no:yes:* )
8177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8189     (
8190       cat <<\_ASBOX
8191 ## ------------------------------------------ ##
8192 ## Report this to the AC_PACKAGE_NAME lists.  ##
8193 ## ------------------------------------------ ##
8194 _ASBOX
8195     ) |
8196       sed "s/^/$as_me: WARNING:     /" >&2
8197     ;;
8198 esac
8199 echo "$as_me:$LINENO: checking for $ac_header" >&5
8200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   eval "$as_ac_Header=\$ac_header_preproc"
8205 fi
8206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8208
8209 fi
8210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8211   cat >>confdefs.h <<_ACEOF
8212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8213 _ACEOF
8214
8215 fi
8216
8217 done
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8243 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8244 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8245 __fsetlocking
8246 do
8247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8248 echo "$as_me:$LINENO: checking for $ac_func" >&5
8249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8250 if eval "test \"\${$as_ac_var+set}\" = set"; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h.  */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h.  */
8259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8261 #define $ac_func innocuous_$ac_func
8262
8263 /* System header to define __stub macros and hopefully few prototypes,
8264     which can conflict with char $ac_func (); below.
8265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8266     <limits.h> exists even on freestanding compilers.  */
8267
8268 #ifdef __STDC__
8269 # include <limits.h>
8270 #else
8271 # include <assert.h>
8272 #endif
8273
8274 #undef $ac_func
8275
8276 /* Override any gcc2 internal prototype to avoid an error.  */
8277 #ifdef __cplusplus
8278 extern "C"
8279 {
8280 #endif
8281 /* We use char because int might match the return type of a gcc2
8282    builtin and then its argument prototype would still apply.  */
8283 char $ac_func ();
8284 /* The GNU C library defines this for functions which it implements
8285     to always fail with ENOSYS.  Some functions are actually named
8286     something starting with __ and the normal name is an alias.  */
8287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8288 choke me
8289 #else
8290 char (*f) () = $ac_func;
8291 #endif
8292 #ifdef __cplusplus
8293 }
8294 #endif
8295
8296 int
8297 main ()
8298 {
8299 return f != $ac_func;
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306   (eval $ac_link) 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } &&
8313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315   (eval $ac_try) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; } &&
8319          { ac_try='test -s conftest$ac_exeext'
8320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321   (eval $ac_try) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }; }; then
8325   eval "$as_ac_var=yes"
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 eval "$as_ac_var=no"
8331 fi
8332 rm -f conftest.err conftest.$ac_objext \
8333       conftest$ac_exeext conftest.$ac_ext
8334 fi
8335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8337 if test `eval echo '${'$as_ac_var'}'` = yes; then
8338   cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8340 _ACEOF
8341
8342 fi
8343 done
8344
8345
8346
8347   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8348 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8349 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358 #include <stdio.h>
8359 int
8360 main ()
8361 {
8362
8363 #ifndef _snprintf
8364   char *p = (char *) _snprintf;
8365 #endif
8366
8367   ;
8368   return 0;
8369 }
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373   (eval $ac_compile) 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } &&
8380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382   (eval $ac_try) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; } &&
8386          { ac_try='test -s conftest.$ac_objext'
8387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388   (eval $ac_try) 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); }; }; then
8392   ac_cv_have_decl__snprintf=yes
8393 else
8394   echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397 ac_cv_have_decl__snprintf=no
8398 fi
8399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8402 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8403   if test $ac_cv_have_decl__snprintf = yes; then
8404     gt_value=1
8405   else
8406     gt_value=0
8407   fi
8408
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_DECL__SNPRINTF $gt_value
8411 _ACEOF
8412
8413
8414
8415   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8416 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8417 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8418   echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420   cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h.  */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h.  */
8426 #include <stdio.h>
8427 int
8428 main ()
8429 {
8430
8431 #ifndef _snwprintf
8432   char *p = (char *) _snwprintf;
8433 #endif
8434
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441   (eval $ac_compile) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; } &&
8454          { ac_try='test -s conftest.$ac_objext'
8455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456   (eval $ac_try) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460   ac_cv_have_decl__snwprintf=yes
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 ac_cv_have_decl__snwprintf=no
8466 fi
8467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8468 fi
8469 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8470 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8471   if test $ac_cv_have_decl__snwprintf = yes; then
8472     gt_value=1
8473   else
8474     gt_value=0
8475   fi
8476
8477 cat >>confdefs.h <<_ACEOF
8478 #define HAVE_DECL__SNWPRINTF $gt_value
8479 _ACEOF
8480
8481
8482
8483
8484   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8485 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8486 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h.  */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h.  */
8495 #include <stdio.h>
8496 int
8497 main ()
8498 {
8499
8500 #ifndef feof_unlocked
8501   char *p = (char *) feof_unlocked;
8502 #endif
8503
8504   ;
8505   return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8510   (eval $ac_compile) 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } &&
8517          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; } &&
8523          { ac_try='test -s conftest.$ac_objext'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   ac_cv_have_decl_feof_unlocked=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 ac_cv_have_decl_feof_unlocked=no
8535 fi
8536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8537 fi
8538 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8539 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8540   if test $ac_cv_have_decl_feof_unlocked = yes; then
8541     gt_value=1
8542   else
8543     gt_value=0
8544   fi
8545
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8548 _ACEOF
8549
8550
8551
8552   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8553 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8554 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557   cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 #include <stdio.h>
8564 int
8565 main ()
8566 {
8567
8568 #ifndef fgets_unlocked
8569   char *p = (char *) fgets_unlocked;
8570 #endif
8571
8572   ;
8573   return 0;
8574 }
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578   (eval $ac_compile) 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } &&
8585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587   (eval $ac_try) 2>&5
8588   ac_status=$?
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); }; } &&
8591          { ac_try='test -s conftest.$ac_objext'
8592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593   (eval $ac_try) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }; }; then
8597   ac_cv_have_decl_fgets_unlocked=yes
8598 else
8599   echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 ac_cv_have_decl_fgets_unlocked=no
8603 fi
8604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8607 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8608   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8609     gt_value=1
8610   else
8611     gt_value=0
8612   fi
8613
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8616 _ACEOF
8617
8618
8619
8620   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8621 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8622 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8623   echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625   cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631 #include <stdio.h>
8632 int
8633 main ()
8634 {
8635
8636 #ifndef getc_unlocked
8637   char *p = (char *) getc_unlocked;
8638 #endif
8639
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646   (eval $ac_compile) 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } &&
8653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655   (eval $ac_try) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; } &&
8659          { ac_try='test -s conftest.$ac_objext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_cv_have_decl_getc_unlocked=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 ac_cv_have_decl_getc_unlocked=no
8671 fi
8672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8675 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8676   if test $ac_cv_have_decl_getc_unlocked = yes; then
8677     gt_value=1
8678   else
8679     gt_value=0
8680   fi
8681
8682 cat >>confdefs.h <<_ACEOF
8683 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8684 _ACEOF
8685
8686
8687
8688   case $gt_cv_func_printf_posix in
8689     *yes) HAVE_POSIX_PRINTF=1 ;;
8690     *) HAVE_POSIX_PRINTF=0 ;;
8691   esac
8692
8693   if test "$ac_cv_func_asprintf" = yes; then
8694     HAVE_ASPRINTF=1
8695   else
8696     HAVE_ASPRINTF=0
8697   fi
8698
8699   if test "$ac_cv_func_snprintf" = yes; then
8700     HAVE_SNPRINTF=1
8701   else
8702     HAVE_SNPRINTF=0
8703   fi
8704
8705   if test "$ac_cv_func_wprintf" = yes; then
8706     HAVE_WPRINTF=1
8707   else
8708     HAVE_WPRINTF=0
8709   fi
8710
8711
8712
8713
8714
8715
8716
8717           am_save_CPPFLAGS="$CPPFLAGS"
8718
8719   for element in $INCICONV; do
8720     haveit=
8721     for x in $CPPFLAGS; do
8722
8723   acl_save_prefix="$prefix"
8724   prefix="$acl_final_prefix"
8725   acl_save_exec_prefix="$exec_prefix"
8726   exec_prefix="$acl_final_exec_prefix"
8727   eval x=\"$x\"
8728   exec_prefix="$acl_save_exec_prefix"
8729   prefix="$acl_save_prefix"
8730
8731       if test "X$x" = "X$element"; then
8732         haveit=yes
8733         break
8734       fi
8735     done
8736     if test -z "$haveit"; then
8737       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8738     fi
8739   done
8740
8741
8742   echo "$as_me:$LINENO: checking for iconv" >&5
8743 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8744 if test "${am_cv_func_iconv+set}" = set; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747
8748     am_cv_func_iconv="no, consider installing GNU libiconv"
8749     am_cv_lib_iconv=no
8750     cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h.  */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h.  */
8756 #include <stdlib.h>
8757 #include <iconv.h>
8758 int
8759 main ()
8760 {
8761 iconv_t cd = iconv_open("","");
8762        iconv(cd,NULL,NULL,NULL,NULL);
8763        iconv_close(cd);
8764   ;
8765   return 0;
8766 }
8767 _ACEOF
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770   (eval $ac_link) 2>conftest.er1
8771   ac_status=$?
8772   grep -v '^ *+' conftest.er1 >conftest.err
8773   rm -f conftest.er1
8774   cat conftest.err >&5
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } &&
8777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; } &&
8783          { ac_try='test -s conftest$ac_exeext'
8784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785   (eval $ac_try) 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }; }; then
8789   am_cv_func_iconv=yes
8790 else
8791   echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 fi
8795 rm -f conftest.err conftest.$ac_objext \
8796       conftest$ac_exeext conftest.$ac_ext
8797     if test "$am_cv_func_iconv" != yes; then
8798       am_save_LIBS="$LIBS"
8799       LIBS="$LIBS $LIBICONV"
8800       cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806 #include <stdlib.h>
8807 #include <iconv.h>
8808 int
8809 main ()
8810 {
8811 iconv_t cd = iconv_open("","");
8812          iconv(cd,NULL,NULL,NULL,NULL);
8813          iconv_close(cd);
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820   (eval $ac_link) 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } &&
8827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; } &&
8833          { ac_try='test -s conftest$ac_exeext'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; }; then
8839   am_cv_lib_iconv=yes
8840         am_cv_func_iconv=yes
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845 fi
8846 rm -f conftest.err conftest.$ac_objext \
8847       conftest$ac_exeext conftest.$ac_ext
8848       LIBS="$am_save_LIBS"
8849     fi
8850
8851 fi
8852 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8853 echo "${ECHO_T}$am_cv_func_iconv" >&6
8854   if test "$am_cv_func_iconv" = yes; then
8855
8856 cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_ICONV 1
8858 _ACEOF
8859
8860   fi
8861   if test "$am_cv_lib_iconv" = yes; then
8862     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8863 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8864     echo "$as_me:$LINENO: result: $LIBICONV" >&5
8865 echo "${ECHO_T}$LIBICONV" >&6
8866   else
8867             CPPFLAGS="$am_save_CPPFLAGS"
8868     LIBICONV=
8869     LTLIBICONV=
8870   fi
8871
8872
8873
8874   if test "$am_cv_func_iconv" = yes; then
8875     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8876 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8877     if test "${am_cv_proto_iconv+set}" = set; then
8878   echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880
8881       cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887
8888 #include <stdlib.h>
8889 #include <iconv.h>
8890 extern
8891 #ifdef __cplusplus
8892 "C"
8893 #endif
8894 #if defined(__STDC__) || defined(__cplusplus)
8895 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8896 #else
8897 size_t iconv();
8898 #endif
8899
8900 int
8901 main ()
8902 {
8903
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910   (eval $ac_compile) 2>conftest.er1
8911   ac_status=$?
8912   grep -v '^ *+' conftest.er1 >conftest.err
8913   rm -f conftest.er1
8914   cat conftest.err >&5
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } &&
8917          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; } &&
8923          { ac_try='test -s conftest.$ac_objext'
8924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925   (eval $ac_try) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }; }; then
8929   am_cv_proto_iconv_arg1=""
8930 else
8931   echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 am_cv_proto_iconv_arg1="const"
8935 fi
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8937       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);"
8938 fi
8939
8940     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8941     echo "$as_me:$LINENO: result: ${ac_t:-
8942          }$am_cv_proto_iconv" >&5
8943 echo "${ECHO_T}${ac_t:-
8944          }$am_cv_proto_iconv" >&6
8945
8946 cat >>confdefs.h <<_ACEOF
8947 #define ICONV_CONST $am_cv_proto_iconv_arg1
8948 _ACEOF
8949
8950   fi
8951
8952
8953   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8954 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8955 if test "${am_cv_langinfo_codeset+set}" = set; then
8956   echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958   cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h.  */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h.  */
8964 #include <langinfo.h>
8965 int
8966 main ()
8967 {
8968 char* cs = nl_langinfo(CODESET);
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975   (eval $ac_link) 2>conftest.er1
8976   ac_status=$?
8977   grep -v '^ *+' conftest.er1 >conftest.err
8978   rm -f conftest.er1
8979   cat conftest.err >&5
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } &&
8982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; } &&
8988          { ac_try='test -s conftest$ac_exeext'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; }; then
8994   am_cv_langinfo_codeset=yes
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 am_cv_langinfo_codeset=no
9000 fi
9001 rm -f conftest.err conftest.$ac_objext \
9002       conftest$ac_exeext conftest.$ac_ext
9003
9004 fi
9005 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9006 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9007   if test $am_cv_langinfo_codeset = yes; then
9008
9009 cat >>confdefs.h <<\_ACEOF
9010 #define HAVE_LANGINFO_CODESET 1
9011 _ACEOF
9012
9013   fi
9014
9015   if test $ac_cv_header_locale_h = yes; then
9016
9017   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9018 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9019 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h.  */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h.  */
9028 #include <locale.h>
9029 int
9030 main ()
9031 {
9032 return LC_MESSAGES
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039   (eval $ac_link) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; } &&
9052          { ac_try='test -s conftest$ac_exeext'
9053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054   (eval $ac_try) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   am_cv_val_LC_MESSAGES=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 am_cv_val_LC_MESSAGES=no
9064 fi
9065 rm -f conftest.err conftest.$ac_objext \
9066       conftest$ac_exeext conftest.$ac_ext
9067 fi
9068 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9069 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9070   if test $am_cv_val_LC_MESSAGES = yes; then
9071
9072 cat >>confdefs.h <<\_ACEOF
9073 #define HAVE_LC_MESSAGES 1
9074 _ACEOF
9075
9076   fi
9077
9078   fi
9079
9080                       for ac_prog in bison
9081 do
9082   # Extract the first word of "$ac_prog", so it can be a program name with args.
9083 set dummy $ac_prog; ac_word=$2
9084 echo "$as_me:$LINENO: checking for $ac_word" >&5
9085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9086 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9087   echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089   if test -n "$INTLBISON"; then
9090   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9094 do
9095   IFS=$as_save_IFS
9096   test -z "$as_dir" && as_dir=.
9097   for ac_exec_ext in '' $ac_executable_extensions; do
9098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099     ac_cv_prog_INTLBISON="$ac_prog"
9100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9101     break 2
9102   fi
9103 done
9104 done
9105
9106 fi
9107 fi
9108 INTLBISON=$ac_cv_prog_INTLBISON
9109 if test -n "$INTLBISON"; then
9110   echo "$as_me:$LINENO: result: $INTLBISON" >&5
9111 echo "${ECHO_T}$INTLBISON" >&6
9112 else
9113   echo "$as_me:$LINENO: result: no" >&5
9114 echo "${ECHO_T}no" >&6
9115 fi
9116
9117   test -n "$INTLBISON" && break
9118 done
9119
9120   if test -z "$INTLBISON"; then
9121     ac_verc_fail=yes
9122   else
9123         echo "$as_me:$LINENO: checking version of bison" >&5
9124 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9125     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9126     case $ac_prog_version in
9127       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9128       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9129          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9130       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9131     esac
9132     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9133 echo "${ECHO_T}$ac_prog_version" >&6
9134   fi
9135   if test $ac_verc_fail = yes; then
9136     INTLBISON=:
9137   fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9155 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9156     # Check whether --enable-nls or --disable-nls was given.
9157 if test "${enable_nls+set}" = set; then
9158   enableval="$enable_nls"
9159   USE_NLS=$enableval
9160 else
9161   USE_NLS=yes
9162 fi;
9163   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9164 echo "${ECHO_T}$USE_NLS" >&6
9165
9166
9167
9168
9169     BUILD_INCLUDED_LIBINTL=no
9170     USE_INCLUDED_LIBINTL=no
9171
9172   LIBINTL=
9173   LTLIBINTL=
9174   POSUB=
9175
9176     if test "$USE_NLS" = "yes"; then
9177     gt_use_preinstalled_gnugettext=no
9178
9179       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9180 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9181
9182 # Check whether --with-included-gettext or --without-included-gettext was given.
9183 if test "${with_included_gettext+set}" = set; then
9184   withval="$with_included_gettext"
9185   nls_cv_force_use_gnu_gettext=$withval
9186 else
9187   nls_cv_force_use_gnu_gettext=no
9188 fi;
9189       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9190 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9191
9192       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9193       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9194
9195
9196
9197
9198
9199
9200         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9201 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9202 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h.  */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h.  */
9211 #include <libintl.h>
9212 extern int _nl_msg_cat_cntr;
9213 extern int *_nl_domain_bindings;
9214 int
9215 main ()
9216 {
9217 bindtextdomain ("", "");
9218 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9219   ;
9220   return 0;
9221 }
9222 _ACEOF
9223 rm -f conftest.$ac_objext conftest$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225   (eval $ac_link) 2>conftest.er1
9226   ac_status=$?
9227   grep -v '^ *+' conftest.er1 >conftest.err
9228   rm -f conftest.er1
9229   cat conftest.err >&5
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); } &&
9232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; } &&
9238          { ac_try='test -s conftest$ac_exeext'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; }; then
9244   gt_cv_func_gnugettext1_libc=yes
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 gt_cv_func_gnugettext1_libc=no
9250 fi
9251 rm -f conftest.err conftest.$ac_objext \
9252       conftest$ac_exeext conftest.$ac_ext
9253 fi
9254 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9255 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9256
9257         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9258
9259
9260
9261     use_additional=yes
9262
9263   acl_save_prefix="$prefix"
9264   prefix="$acl_final_prefix"
9265   acl_save_exec_prefix="$exec_prefix"
9266   exec_prefix="$acl_final_exec_prefix"
9267
9268     eval additional_includedir=\"$includedir\"
9269     eval additional_libdir=\"$libdir\"
9270
9271   exec_prefix="$acl_save_exec_prefix"
9272   prefix="$acl_save_prefix"
9273
9274
9275 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9276 if test "${with_libintl_prefix+set}" = set; then
9277   withval="$with_libintl_prefix"
9278
9279     if test "X$withval" = "Xno"; then
9280       use_additional=no
9281     else
9282       if test "X$withval" = "X"; then
9283
9284   acl_save_prefix="$prefix"
9285   prefix="$acl_final_prefix"
9286   acl_save_exec_prefix="$exec_prefix"
9287   exec_prefix="$acl_final_exec_prefix"
9288
9289           eval additional_includedir=\"$includedir\"
9290           eval additional_libdir=\"$libdir\"
9291
9292   exec_prefix="$acl_save_exec_prefix"
9293   prefix="$acl_save_prefix"
9294
9295       else
9296         additional_includedir="$withval/include"
9297         additional_libdir="$withval/lib"
9298       fi
9299     fi
9300
9301 fi;
9302       LIBINTL=
9303   LTLIBINTL=
9304   INCINTL=
9305   rpathdirs=
9306   ltrpathdirs=
9307   names_already_handled=
9308   names_next_round='intl '
9309   while test -n "$names_next_round"; do
9310     names_this_round="$names_next_round"
9311     names_next_round=
9312     for name in $names_this_round; do
9313       already_handled=
9314       for n in $names_already_handled; do
9315         if test "$n" = "$name"; then
9316           already_handled=yes
9317           break
9318         fi
9319       done
9320       if test -z "$already_handled"; then
9321         names_already_handled="$names_already_handled $name"
9322                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9323         eval value=\"\$HAVE_LIB$uppername\"
9324         if test -n "$value"; then
9325           if test "$value" = yes; then
9326             eval value=\"\$LIB$uppername\"
9327             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9328             eval value=\"\$LTLIB$uppername\"
9329             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9330           else
9331                                     :
9332           fi
9333         else
9334                               found_dir=
9335           found_la=
9336           found_so=
9337           found_a=
9338           if test $use_additional = yes; then
9339             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9340               found_dir="$additional_libdir"
9341               found_so="$additional_libdir/lib$name.$shlibext"
9342               if test -f "$additional_libdir/lib$name.la"; then
9343                 found_la="$additional_libdir/lib$name.la"
9344               fi
9345             else
9346               if test -f "$additional_libdir/lib$name.$libext"; then
9347                 found_dir="$additional_libdir"
9348                 found_a="$additional_libdir/lib$name.$libext"
9349                 if test -f "$additional_libdir/lib$name.la"; then
9350                   found_la="$additional_libdir/lib$name.la"
9351                 fi
9352               fi
9353             fi
9354           fi
9355           if test "X$found_dir" = "X"; then
9356             for x in $LDFLAGS $LTLIBINTL; do
9357
9358   acl_save_prefix="$prefix"
9359   prefix="$acl_final_prefix"
9360   acl_save_exec_prefix="$exec_prefix"
9361   exec_prefix="$acl_final_exec_prefix"
9362   eval x=\"$x\"
9363   exec_prefix="$acl_save_exec_prefix"
9364   prefix="$acl_save_prefix"
9365
9366               case "$x" in
9367                 -L*)
9368                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9369                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9370                     found_dir="$dir"
9371                     found_so="$dir/lib$name.$shlibext"
9372                     if test -f "$dir/lib$name.la"; then
9373                       found_la="$dir/lib$name.la"
9374                     fi
9375                   else
9376                     if test -f "$dir/lib$name.$libext"; then
9377                       found_dir="$dir"
9378                       found_a="$dir/lib$name.$libext"
9379                       if test -f "$dir/lib$name.la"; then
9380                         found_la="$dir/lib$name.la"
9381                       fi
9382                     fi
9383                   fi
9384                   ;;
9385               esac
9386               if test "X$found_dir" != "X"; then
9387                 break
9388               fi
9389             done
9390           fi
9391           if test "X$found_dir" != "X"; then
9392                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9393             if test "X$found_so" != "X"; then
9394                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9395                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9396               else
9397                                                                                 haveit=
9398                 for x in $ltrpathdirs; do
9399                   if test "X$x" = "X$found_dir"; then
9400                     haveit=yes
9401                     break
9402                   fi
9403                 done
9404                 if test -z "$haveit"; then
9405                   ltrpathdirs="$ltrpathdirs $found_dir"
9406                 fi
9407                                 if test "$hardcode_direct" = yes; then
9408                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9409                 else
9410                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9411                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9412                                                             haveit=
9413                     for x in $rpathdirs; do
9414                       if test "X$x" = "X$found_dir"; then
9415                         haveit=yes
9416                         break
9417                       fi
9418                     done
9419                     if test -z "$haveit"; then
9420                       rpathdirs="$rpathdirs $found_dir"
9421                     fi
9422                   else
9423                                                                                 haveit=
9424                     for x in $LDFLAGS $LIBINTL; do
9425
9426   acl_save_prefix="$prefix"
9427   prefix="$acl_final_prefix"
9428   acl_save_exec_prefix="$exec_prefix"
9429   exec_prefix="$acl_final_exec_prefix"
9430   eval x=\"$x\"
9431   exec_prefix="$acl_save_exec_prefix"
9432   prefix="$acl_save_prefix"
9433
9434                       if test "X$x" = "X-L$found_dir"; then
9435                         haveit=yes
9436                         break
9437                       fi
9438                     done
9439                     if test -z "$haveit"; then
9440                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9441                     fi
9442                     if test "$hardcode_minus_L" != no; then
9443                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9444                     else
9445                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9446                     fi
9447                   fi
9448                 fi
9449               fi
9450             else
9451               if test "X$found_a" != "X"; then
9452                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9453               else
9454                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9455               fi
9456             fi
9457                         additional_includedir=
9458             case "$found_dir" in
9459               */lib | */lib/)
9460                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9461                 additional_includedir="$basedir/include"
9462                 ;;
9463             esac
9464             if test "X$additional_includedir" != "X"; then
9465                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9466                 haveit=
9467                 if test "X$additional_includedir" = "X/usr/local/include"; then
9468                   if test -n "$GCC"; then
9469                     case $host_os in
9470                       linux*) haveit=yes;;
9471                     esac
9472                   fi
9473                 fi
9474                 if test -z "$haveit"; then
9475                   for x in $CPPFLAGS $INCINTL; do
9476
9477   acl_save_prefix="$prefix"
9478   prefix="$acl_final_prefix"
9479   acl_save_exec_prefix="$exec_prefix"
9480   exec_prefix="$acl_final_exec_prefix"
9481   eval x=\"$x\"
9482   exec_prefix="$acl_save_exec_prefix"
9483   prefix="$acl_save_prefix"
9484
9485                     if test "X$x" = "X-I$additional_includedir"; then
9486                       haveit=yes
9487                       break
9488                     fi
9489                   done
9490                   if test -z "$haveit"; then
9491                     if test -d "$additional_includedir"; then
9492                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9493                     fi
9494                   fi
9495                 fi
9496               fi
9497             fi
9498                         if test -n "$found_la"; then
9499                                                         save_libdir="$libdir"
9500               case "$found_la" in
9501                 */* | *\\*) . "$found_la" ;;
9502                 *) . "./$found_la" ;;
9503               esac
9504               libdir="$save_libdir"
9505                             for dep in $dependency_libs; do
9506                 case "$dep" in
9507                   -L*)
9508                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9509                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9510                       haveit=
9511                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9512                         if test -n "$GCC"; then
9513                           case $host_os in
9514                             linux*) haveit=yes;;
9515                           esac
9516                         fi
9517                       fi
9518                       if test -z "$haveit"; then
9519                         haveit=
9520                         for x in $LDFLAGS $LIBINTL; do
9521
9522   acl_save_prefix="$prefix"
9523   prefix="$acl_final_prefix"
9524   acl_save_exec_prefix="$exec_prefix"
9525   exec_prefix="$acl_final_exec_prefix"
9526   eval x=\"$x\"
9527   exec_prefix="$acl_save_exec_prefix"
9528   prefix="$acl_save_prefix"
9529
9530                           if test "X$x" = "X-L$additional_libdir"; then
9531                             haveit=yes
9532                             break
9533                           fi
9534                         done
9535                         if test -z "$haveit"; then
9536                           if test -d "$additional_libdir"; then
9537                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9538                           fi
9539                         fi
9540                         haveit=
9541                         for x in $LDFLAGS $LTLIBINTL; do
9542
9543   acl_save_prefix="$prefix"
9544   prefix="$acl_final_prefix"
9545   acl_save_exec_prefix="$exec_prefix"
9546   exec_prefix="$acl_final_exec_prefix"
9547   eval x=\"$x\"
9548   exec_prefix="$acl_save_exec_prefix"
9549   prefix="$acl_save_prefix"
9550
9551                           if test "X$x" = "X-L$additional_libdir"; then
9552                             haveit=yes
9553                             break
9554                           fi
9555                         done
9556                         if test -z "$haveit"; then
9557                           if test -d "$additional_libdir"; then
9558                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9559                           fi
9560                         fi
9561                       fi
9562                     fi
9563                     ;;
9564                   -R*)
9565                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9566                     if test "$enable_rpath" != no; then
9567                                                                   haveit=
9568                       for x in $rpathdirs; do
9569                         if test "X$x" = "X$dir"; then
9570                           haveit=yes
9571                           break
9572                         fi
9573                       done
9574                       if test -z "$haveit"; then
9575                         rpathdirs="$rpathdirs $dir"
9576                       fi
9577                                                                   haveit=
9578                       for x in $ltrpathdirs; do
9579                         if test "X$x" = "X$dir"; then
9580                           haveit=yes
9581                           break
9582                         fi
9583                       done
9584                       if test -z "$haveit"; then
9585                         ltrpathdirs="$ltrpathdirs $dir"
9586                       fi
9587                     fi
9588                     ;;
9589                   -l*)
9590                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9591                     ;;
9592                   *.la)
9593                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9594                     ;;
9595                   *)
9596                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9597                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9598                     ;;
9599                 esac
9600               done
9601             fi
9602           else
9603                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9604             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9605           fi
9606         fi
9607       fi
9608     done
9609   done
9610   if test "X$rpathdirs" != "X"; then
9611     if test -n "$hardcode_libdir_separator"; then
9612                         alldirs=
9613       for found_dir in $rpathdirs; do
9614         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9615       done
9616             acl_save_libdir="$libdir"
9617       libdir="$alldirs"
9618       eval flag=\"$hardcode_libdir_flag_spec\"
9619       libdir="$acl_save_libdir"
9620       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9621     else
9622             for found_dir in $rpathdirs; do
9623         acl_save_libdir="$libdir"
9624         libdir="$found_dir"
9625         eval flag=\"$hardcode_libdir_flag_spec\"
9626         libdir="$acl_save_libdir"
9627         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9628       done
9629     fi
9630   fi
9631   if test "X$ltrpathdirs" != "X"; then
9632             for found_dir in $ltrpathdirs; do
9633       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9634     done
9635   fi
9636
9637           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9638 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9639 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   gt_save_CPPFLAGS="$CPPFLAGS"
9643             CPPFLAGS="$CPPFLAGS $INCINTL"
9644             gt_save_LIBS="$LIBS"
9645             LIBS="$LIBS $LIBINTL"
9646                         cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652 #include <libintl.h>
9653 extern int _nl_msg_cat_cntr;
9654 extern
9655 #ifdef __cplusplus
9656 "C"
9657 #endif
9658 const char *_nl_expand_alias ();
9659 int
9660 main ()
9661 {
9662 bindtextdomain ("", "");
9663 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670   (eval $ac_link) 2>conftest.er1
9671   ac_status=$?
9672   grep -v '^ *+' conftest.er1 >conftest.err
9673   rm -f conftest.er1
9674   cat conftest.err >&5
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); }; } &&
9683          { ac_try='test -s conftest$ac_exeext'
9684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685   (eval $ac_try) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); }; }; then
9689   gt_cv_func_gnugettext1_libintl=yes
9690 else
9691   echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 gt_cv_func_gnugettext1_libintl=no
9695 fi
9696 rm -f conftest.err conftest.$ac_objext \
9697       conftest$ac_exeext conftest.$ac_ext
9698                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9699               LIBS="$LIBS $LIBICONV"
9700               cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h.  */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h.  */
9706 #include <libintl.h>
9707 extern int _nl_msg_cat_cntr;
9708 extern
9709 #ifdef __cplusplus
9710 "C"
9711 #endif
9712 const char *_nl_expand_alias ();
9713 int
9714 main ()
9715 {
9716 bindtextdomain ("", "");
9717 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724   (eval $ac_link) 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } &&
9731          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733   (eval $ac_try) 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; } &&
9737          { ac_try='test -s conftest$ac_exeext'
9738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739   (eval $ac_try) 2>&5
9740   ac_status=$?
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); }; }; then
9743   LIBINTL="$LIBINTL $LIBICONV"
9744                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9745                 gt_cv_func_gnugettext1_libintl=yes
9746
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 fi
9752 rm -f conftest.err conftest.$ac_objext \
9753       conftest$ac_exeext conftest.$ac_ext
9754             fi
9755             CPPFLAGS="$gt_save_CPPFLAGS"
9756             LIBS="$gt_save_LIBS"
9757 fi
9758 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9759 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9760         fi
9761
9762                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9763            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9764                 && test "$PACKAGE" != gettext-runtime \
9765                 && test "$PACKAGE" != gettext-tools; }; then
9766           gt_use_preinstalled_gnugettext=yes
9767         else
9768                     LIBINTL=
9769           LTLIBINTL=
9770           INCINTL=
9771         fi
9772
9773
9774         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9775                               nls_cv_use_gnu_gettext=yes
9776         fi
9777       fi
9778
9779       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9780                 BUILD_INCLUDED_LIBINTL=yes
9781         USE_INCLUDED_LIBINTL=yes
9782         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9783         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9784         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9785       fi
9786
9787       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9788          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9789                 CATOBJEXT=.gmo
9790       fi
9791
9792
9793     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9794        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9795
9796 cat >>confdefs.h <<\_ACEOF
9797 #define ENABLE_NLS 1
9798 _ACEOF
9799
9800     else
9801       USE_NLS=no
9802     fi
9803   fi
9804
9805   echo "$as_me:$LINENO: checking whether to use NLS" >&5
9806 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9807   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9808 echo "${ECHO_T}$USE_NLS" >&6
9809   if test "$USE_NLS" = "yes"; then
9810     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9811 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9812     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9813       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9814         gt_source="external libintl"
9815       else
9816         gt_source="libc"
9817       fi
9818     else
9819       gt_source="included intl directory"
9820     fi
9821     echo "$as_me:$LINENO: result: $gt_source" >&5
9822 echo "${ECHO_T}$gt_source" >&6
9823   fi
9824
9825   if test "$USE_NLS" = "yes"; then
9826
9827     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9828       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9829         echo "$as_me:$LINENO: checking how to link with libintl" >&5
9830 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9831         echo "$as_me:$LINENO: result: $LIBINTL" >&5
9832 echo "${ECHO_T}$LIBINTL" >&6
9833
9834   for element in $INCINTL; do
9835     haveit=
9836     for x in $CPPFLAGS; do
9837
9838   acl_save_prefix="$prefix"
9839   prefix="$acl_final_prefix"
9840   acl_save_exec_prefix="$exec_prefix"
9841   exec_prefix="$acl_final_exec_prefix"
9842   eval x=\"$x\"
9843   exec_prefix="$acl_save_exec_prefix"
9844   prefix="$acl_save_prefix"
9845
9846       if test "X$x" = "X$element"; then
9847         haveit=yes
9848         break
9849       fi
9850     done
9851     if test -z "$haveit"; then
9852       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9853     fi
9854   done
9855
9856       fi
9857
9858
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_GETTEXT 1
9861 _ACEOF
9862
9863
9864 cat >>confdefs.h <<\_ACEOF
9865 #define HAVE_DCGETTEXT 1
9866 _ACEOF
9867
9868     fi
9869
9870         POSUB=po
9871   fi
9872
9873
9874             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9875       BUILD_INCLUDED_LIBINTL=yes
9876     fi
9877
9878
9879
9880
9881
9882         nls_cv_header_intl=
9883     nls_cv_header_libgt=
9884
9885         DATADIRNAME=share
9886
9887
9888         INSTOBJEXT=.mo
9889
9890
9891         GENCAT=gencat
9892
9893
9894         if test "$USE_INCLUDED_LIBINTL" = yes; then
9895       INTLOBJS="\$(GETTOBJS)"
9896     fi
9897
9898
9899         INTL_LIBTOOL_SUFFIX_PREFIX=
9900
9901
9902
9903     INTLLIBS="$LIBINTL"
9904
9905
9906
9907
9908
9909
9910
9911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9915   echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917   cat >conftest.make <<\_ACEOF
9918 all:
9919         @echo 'ac_maketemp="$(MAKE)"'
9920 _ACEOF
9921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9923 if test -n "$ac_maketemp"; then
9924   eval ac_cv_prog_make_${ac_make}_set=yes
9925 else
9926   eval ac_cv_prog_make_${ac_make}_set=no
9927 fi
9928 rm -f conftest.make
9929 fi
9930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9931   echo "$as_me:$LINENO: result: yes" >&5
9932 echo "${ECHO_T}yes" >&6
9933   SET_MAKE=
9934 else
9935   echo "$as_me:$LINENO: result: no" >&5
9936 echo "${ECHO_T}no" >&6
9937   SET_MAKE="MAKE=${MAKE-make}"
9938 fi
9939
9940 # Extract the first word of "ln", so it can be a program name with args.
9941 set dummy ln; ac_word=$2
9942 echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9944 if test "${ac_cv_path_LN+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947   case $LN in
9948   [\\/]* | ?:[\\/]*)
9949   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9950   ;;
9951   *)
9952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9954 do
9955   IFS=$as_save_IFS
9956   test -z "$as_dir" && as_dir=.
9957   for ac_exec_ext in '' $ac_executable_extensions; do
9958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9961     break 2
9962   fi
9963 done
9964 done
9965
9966   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9967   ;;
9968 esac
9969 fi
9970 LN=$ac_cv_path_LN
9971
9972 if test -n "$LN"; then
9973   echo "$as_me:$LINENO: result: $LN" >&5
9974 echo "${ECHO_T}$LN" >&6
9975 else
9976   echo "$as_me:$LINENO: result: no" >&5
9977 echo "${ECHO_T}no" >&6
9978 fi
9979
9980 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9981 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9982 LN_S=$as_ln_s
9983 if test "$LN_S" = "ln -s"; then
9984   echo "$as_me:$LINENO: result: yes" >&5
9985 echo "${ECHO_T}yes" >&6
9986 else
9987   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9988 echo "${ECHO_T}no, using $LN_S" >&6
9989 fi
9990
9991 # Extract the first word of "mv", so it can be a program name with args.
9992 set dummy mv; ac_word=$2
9993 echo "$as_me:$LINENO: checking for $ac_word" >&5
9994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9995 if test "${ac_cv_path_MV+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   case $MV in
9999   [\\/]* | ?:[\\/]*)
10000   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10001   ;;
10002   *)
10003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006   IFS=$as_save_IFS
10007   test -z "$as_dir" && as_dir=.
10008   for ac_exec_ext in '' $ac_executable_extensions; do
10009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10012     break 2
10013   fi
10014 done
10015 done
10016
10017   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10018   ;;
10019 esac
10020 fi
10021 MV=$ac_cv_path_MV
10022
10023 if test -n "$MV"; then
10024   echo "$as_me:$LINENO: result: $MV" >&5
10025 echo "${ECHO_T}$MV" >&6
10026 else
10027   echo "$as_me:$LINENO: result: no" >&5
10028 echo "${ECHO_T}no" >&6
10029 fi
10030
10031 # Extract the first word of "cp", so it can be a program name with args.
10032 set dummy cp; ac_word=$2
10033 echo "$as_me:$LINENO: checking for $ac_word" >&5
10034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10035 if test "${ac_cv_path_CP+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   case $CP in
10039   [\\/]* | ?:[\\/]*)
10040   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10041   ;;
10042   *)
10043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046   IFS=$as_save_IFS
10047   test -z "$as_dir" && as_dir=.
10048   for ac_exec_ext in '' $ac_executable_extensions; do
10049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10052     break 2
10053   fi
10054 done
10055 done
10056
10057   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10058   ;;
10059 esac
10060 fi
10061 CP=$ac_cv_path_CP
10062
10063 if test -n "$CP"; then
10064   echo "$as_me:$LINENO: result: $CP" >&5
10065 echo "${ECHO_T}$CP" >&6
10066 else
10067   echo "$as_me:$LINENO: result: no" >&5
10068 echo "${ECHO_T}no" >&6
10069 fi
10070
10071 # Extract the first word of "rm", so it can be a program name with args.
10072 set dummy rm; ac_word=$2
10073 echo "$as_me:$LINENO: checking for $ac_word" >&5
10074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10075 if test "${ac_cv_path_RM+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   case $RM in
10079   [\\/]* | ?:[\\/]*)
10080   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10081   ;;
10082   *)
10083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10085 do
10086   IFS=$as_save_IFS
10087   test -z "$as_dir" && as_dir=.
10088   for ac_exec_ext in '' $ac_executable_extensions; do
10089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092     break 2
10093   fi
10094 done
10095 done
10096
10097   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10098   ;;
10099 esac
10100 fi
10101 RM=$ac_cv_path_RM
10102
10103 if test -n "$RM"; then
10104   echo "$as_me:$LINENO: result: $RM" >&5
10105 echo "${ECHO_T}$RM" >&6
10106 else
10107   echo "$as_me:$LINENO: result: no" >&5
10108 echo "${ECHO_T}no" >&6
10109 fi
10110
10111 # Extract the first word of "chmod", so it can be a program name with args.
10112 set dummy chmod; ac_word=$2
10113 echo "$as_me:$LINENO: checking for $ac_word" >&5
10114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10115 if test "${ac_cv_path_CHMOD+set}" = set; then
10116   echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118   case $CHMOD in
10119   [\\/]* | ?:[\\/]*)
10120   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10121   ;;
10122   *)
10123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10125 do
10126   IFS=$as_save_IFS
10127   test -z "$as_dir" && as_dir=.
10128   for ac_exec_ext in '' $ac_executable_extensions; do
10129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10132     break 2
10133   fi
10134 done
10135 done
10136
10137   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10138   ;;
10139 esac
10140 fi
10141 CHMOD=$ac_cv_path_CHMOD
10142
10143 if test -n "$CHMOD"; then
10144   echo "$as_me:$LINENO: result: $CHMOD" >&5
10145 echo "${ECHO_T}$CHMOD" >&6
10146 else
10147   echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10149 fi
10150
10151 for ac_prog in gawk mawk nawk awk
10152 do
10153   # Extract the first word of "$ac_prog", so it can be a program name with args.
10154 set dummy $ac_prog; ac_word=$2
10155 echo "$as_me:$LINENO: checking for $ac_word" >&5
10156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10157 if test "${ac_cv_prog_AWK+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   if test -n "$AWK"; then
10161   ac_cv_prog_AWK="$AWK" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166   IFS=$as_save_IFS
10167   test -z "$as_dir" && as_dir=.
10168   for ac_exec_ext in '' $ac_executable_extensions; do
10169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170     ac_cv_prog_AWK="$ac_prog"
10171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10172     break 2
10173   fi
10174 done
10175 done
10176
10177 fi
10178 fi
10179 AWK=$ac_cv_prog_AWK
10180 if test -n "$AWK"; then
10181   echo "$as_me:$LINENO: result: $AWK" >&5
10182 echo "${ECHO_T}$AWK" >&6
10183 else
10184   echo "$as_me:$LINENO: result: no" >&5
10185 echo "${ECHO_T}no" >&6
10186 fi
10187
10188   test -n "$AWK" && break
10189 done
10190
10191 echo "$as_me:$LINENO: checking for egrep" >&5
10192 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10193 if test "${ac_cv_prog_egrep+set}" = set; then
10194   echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10197     then ac_cv_prog_egrep='grep -E'
10198     else ac_cv_prog_egrep='egrep'
10199     fi
10200 fi
10201 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10202 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10203  EGREP=$ac_cv_prog_egrep
10204
10205
10206 # Extract the first word of "sed", so it can be a program name with args.
10207 set dummy sed; ac_word=$2
10208 echo "$as_me:$LINENO: checking for $ac_word" >&5
10209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10210 if test "${ac_cv_path_SED+set}" = set; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   case $SED in
10214   [\\/]* | ?:[\\/]*)
10215   ac_cv_path_SED="$SED" # Let the user override the test with a path.
10216   ;;
10217   *)
10218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10220 do
10221   IFS=$as_save_IFS
10222   test -z "$as_dir" && as_dir=.
10223   for ac_exec_ext in '' $ac_executable_extensions; do
10224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10225     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10227     break 2
10228   fi
10229 done
10230 done
10231
10232   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10233   ;;
10234 esac
10235 fi
10236 SED=$ac_cv_path_SED
10237
10238 if test -n "$SED"; then
10239   echo "$as_me:$LINENO: result: $SED" >&5
10240 echo "${ECHO_T}$SED" >&6
10241 else
10242   echo "$as_me:$LINENO: result: no" >&5
10243 echo "${ECHO_T}no" >&6
10244 fi
10245
10246 # Extract the first word of "perl", so it can be a program name with args.
10247 set dummy perl; ac_word=$2
10248 echo "$as_me:$LINENO: checking for $ac_word" >&5
10249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10250 if test "${ac_cv_path_PERL+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253   case $PERL in
10254   [\\/]* | ?:[\\/]*)
10255   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10256   ;;
10257   *)
10258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261   IFS=$as_save_IFS
10262   test -z "$as_dir" && as_dir=.
10263   for ac_exec_ext in '' $ac_executable_extensions; do
10264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10267     break 2
10268   fi
10269 done
10270 done
10271
10272   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10273   ;;
10274 esac
10275 fi
10276 PERL=$ac_cv_path_PERL
10277
10278 if test -n "$PERL"; then
10279   echo "$as_me:$LINENO: result: $PERL" >&5
10280 echo "${ECHO_T}$PERL" >&6
10281 else
10282   echo "$as_me:$LINENO: result: no" >&5
10283 echo "${ECHO_T}no" >&6
10284 fi
10285
10286 # Extract the first word of "ldconfig", so it can be a program name with args.
10287 set dummy ldconfig; ac_word=$2
10288 echo "$as_me:$LINENO: checking for $ac_word" >&5
10289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10290 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   case $LDCONFIG in
10294   [\\/]* | ?:[\\/]*)
10295   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10296   ;;
10297   *)
10298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10300 do
10301   IFS=$as_save_IFS
10302   test -z "$as_dir" && as_dir=.
10303   for ac_exec_ext in '' $ac_executable_extensions; do
10304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10307     break 2
10308   fi
10309 done
10310 done
10311
10312   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10313   ;;
10314 esac
10315 fi
10316 LDCONFIG=$ac_cv_path_LDCONFIG
10317
10318 if test -n "$LDCONFIG"; then
10319   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10320 echo "${ECHO_T}$LDCONFIG" >&6
10321 else
10322   echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6
10324 fi
10325
10326 if test -n "$ac_tool_prefix"; then
10327   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10328 set dummy ${ac_tool_prefix}ar; ac_word=$2
10329 echo "$as_me:$LINENO: checking for $ac_word" >&5
10330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10331 if test "${ac_cv_prog_AR+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334   if test -n "$AR"; then
10335   ac_cv_prog_AR="$AR" # Let the user override the test.
10336 else
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10339 do
10340   IFS=$as_save_IFS
10341   test -z "$as_dir" && as_dir=.
10342   for ac_exec_ext in '' $ac_executable_extensions; do
10343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10344     ac_cv_prog_AR="${ac_tool_prefix}ar"
10345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10346     break 2
10347   fi
10348 done
10349 done
10350
10351 fi
10352 fi
10353 AR=$ac_cv_prog_AR
10354 if test -n "$AR"; then
10355   echo "$as_me:$LINENO: result: $AR" >&5
10356 echo "${ECHO_T}$AR" >&6
10357 else
10358   echo "$as_me:$LINENO: result: no" >&5
10359 echo "${ECHO_T}no" >&6
10360 fi
10361
10362 fi
10363 if test -z "$ac_cv_prog_AR"; then
10364   ac_ct_AR=$AR
10365   # Extract the first word of "ar", so it can be a program name with args.
10366 set dummy ar; ac_word=$2
10367 echo "$as_me:$LINENO: checking for $ac_word" >&5
10368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10369 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10370   echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372   if test -n "$ac_ct_AR"; then
10373   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10374 else
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10377 do
10378   IFS=$as_save_IFS
10379   test -z "$as_dir" && as_dir=.
10380   for ac_exec_ext in '' $ac_executable_extensions; do
10381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382     ac_cv_prog_ac_ct_AR="ar"
10383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10384     break 2
10385   fi
10386 done
10387 done
10388
10389   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
10390 fi
10391 fi
10392 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10393 if test -n "$ac_ct_AR"; then
10394   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10395 echo "${ECHO_T}$ac_ct_AR" >&6
10396 else
10397   echo "$as_me:$LINENO: result: no" >&5
10398 echo "${ECHO_T}no" >&6
10399 fi
10400
10401   AR=$ac_ct_AR
10402 else
10403   AR="$ac_cv_prog_AR"
10404 fi
10405
10406 if test -n "$ac_tool_prefix"; then
10407   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10409 echo "$as_me:$LINENO: checking for $ac_word" >&5
10410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10411 if test "${ac_cv_prog_RANLIB+set}" = set; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414   if test -n "$RANLIB"; then
10415   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10416 else
10417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418 for as_dir in $PATH
10419 do
10420   IFS=$as_save_IFS
10421   test -z "$as_dir" && as_dir=.
10422   for ac_exec_ext in '' $ac_executable_extensions; do
10423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10426     break 2
10427   fi
10428 done
10429 done
10430
10431 fi
10432 fi
10433 RANLIB=$ac_cv_prog_RANLIB
10434 if test -n "$RANLIB"; then
10435   echo "$as_me:$LINENO: result: $RANLIB" >&5
10436 echo "${ECHO_T}$RANLIB" >&6
10437 else
10438   echo "$as_me:$LINENO: result: no" >&5
10439 echo "${ECHO_T}no" >&6
10440 fi
10441
10442 fi
10443 if test -z "$ac_cv_prog_RANLIB"; then
10444   ac_ct_RANLIB=$RANLIB
10445   # Extract the first word of "ranlib", so it can be a program name with args.
10446 set dummy ranlib; ac_word=$2
10447 echo "$as_me:$LINENO: checking for $ac_word" >&5
10448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10450   echo $ECHO_N "(cached) $ECHO_C" >&6
10451 else
10452   if test -n "$ac_ct_RANLIB"; then
10453   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10454 else
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10457 do
10458   IFS=$as_save_IFS
10459   test -z "$as_dir" && as_dir=.
10460   for ac_exec_ext in '' $ac_executable_extensions; do
10461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462     ac_cv_prog_ac_ct_RANLIB="ranlib"
10463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10464     break 2
10465   fi
10466 done
10467 done
10468
10469   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10470 fi
10471 fi
10472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10473 if test -n "$ac_ct_RANLIB"; then
10474   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10476 else
10477   echo "$as_me:$LINENO: result: no" >&5
10478 echo "${ECHO_T}no" >&6
10479 fi
10480
10481   RANLIB=$ac_ct_RANLIB
10482 else
10483   RANLIB="$ac_cv_prog_RANLIB"
10484 fi
10485
10486 if test -n "$ac_tool_prefix"; then
10487   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10488 set dummy ${ac_tool_prefix}strip; ac_word=$2
10489 echo "$as_me:$LINENO: checking for $ac_word" >&5
10490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10491 if test "${ac_cv_prog_STRIP+set}" = set; then
10492   echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494   if test -n "$STRIP"; then
10495   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10496 else
10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10499 do
10500   IFS=$as_save_IFS
10501   test -z "$as_dir" && as_dir=.
10502   for ac_exec_ext in '' $ac_executable_extensions; do
10503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10506     break 2
10507   fi
10508 done
10509 done
10510
10511 fi
10512 fi
10513 STRIP=$ac_cv_prog_STRIP
10514 if test -n "$STRIP"; then
10515   echo "$as_me:$LINENO: result: $STRIP" >&5
10516 echo "${ECHO_T}$STRIP" >&6
10517 else
10518   echo "$as_me:$LINENO: result: no" >&5
10519 echo "${ECHO_T}no" >&6
10520 fi
10521
10522 fi
10523 if test -z "$ac_cv_prog_STRIP"; then
10524   ac_ct_STRIP=$STRIP
10525   # Extract the first word of "strip", so it can be a program name with args.
10526 set dummy strip; ac_word=$2
10527 echo "$as_me:$LINENO: checking for $ac_word" >&5
10528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10529 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10530   echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532   if test -n "$ac_ct_STRIP"; then
10533   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10534 else
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10537 do
10538   IFS=$as_save_IFS
10539   test -z "$as_dir" && as_dir=.
10540   for ac_exec_ext in '' $ac_executable_extensions; do
10541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542     ac_cv_prog_ac_ct_STRIP="strip"
10543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10544     break 2
10545   fi
10546 done
10547 done
10548
10549   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10550 fi
10551 fi
10552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10553 if test -n "$ac_ct_STRIP"; then
10554   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10555 echo "${ECHO_T}$ac_ct_STRIP" >&6
10556 else
10557   echo "$as_me:$LINENO: result: no" >&5
10558 echo "${ECHO_T}no" >&6
10559 fi
10560
10561   STRIP=$ac_ct_STRIP
10562 else
10563   STRIP="$ac_cv_prog_STRIP"
10564 fi
10565
10566 # Find a good install program.  We prefer a C program (faster),
10567 # so one script is as good as another.  But avoid the broken or
10568 # incompatible versions:
10569 # SysV /etc/install, /usr/sbin/install
10570 # SunOS /usr/etc/install
10571 # IRIX /sbin/install
10572 # AIX /bin/install
10573 # AmigaOS /C/install, which installs bootblocks on floppy discs
10574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10577 # OS/2's system install, which has a completely different semantic
10578 # ./install, which can be erroneously created by make from ./install.sh.
10579 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10580 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10581 if test -z "$INSTALL"; then
10582 if test "${ac_cv_path_install+set}" = set; then
10583   echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10587 do
10588   IFS=$as_save_IFS
10589   test -z "$as_dir" && as_dir=.
10590   # Account for people who put trailing slashes in PATH elements.
10591 case $as_dir/ in
10592   ./ | .// | /cC/* | \
10593   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10594   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10595   /usr/ucb/* ) ;;
10596   *)
10597     # OSF1 and SCO ODT 3.0 have their own names for install.
10598     # Don't use installbsd from OSF since it installs stuff as root
10599     # by default.
10600     for ac_prog in ginstall scoinst install; do
10601       for ac_exec_ext in '' $ac_executable_extensions; do
10602         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10603           if test $ac_prog = install &&
10604             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10605             # AIX install.  It has an incompatible calling convention.
10606             :
10607           elif test $ac_prog = install &&
10608             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10609             # program-specific install script used by HP pwplus--don't use.
10610             :
10611           else
10612             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10613             break 3
10614           fi
10615         fi
10616       done
10617     done
10618     ;;
10619 esac
10620 done
10621
10622
10623 fi
10624   if test "${ac_cv_path_install+set}" = set; then
10625     INSTALL=$ac_cv_path_install
10626   else
10627     # As a last resort, use the slow shell script.  We don't cache a
10628     # path for INSTALL within a source directory, because that will
10629     # break other packages using the cache if that directory is
10630     # removed, or if the path is relative.
10631     INSTALL=$ac_install_sh
10632   fi
10633 fi
10634 echo "$as_me:$LINENO: result: $INSTALL" >&5
10635 echo "${ECHO_T}$INSTALL" >&6
10636
10637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10638 # It thinks the first close brace ends the variable substitution.
10639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10640
10641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10642
10643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10644
10645 # See if we need a separate native compiler.
10646 if test $cross_compiling = no; then
10647   BUILD_CC="$CC"
10648
10649 else
10650   for ac_prog in gcc cc
10651 do
10652   # Extract the first word of "$ac_prog", so it can be a program name with args.
10653 set dummy $ac_prog; ac_word=$2
10654 echo "$as_me:$LINENO: checking for $ac_word" >&5
10655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10656 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10657   echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659   if test -n "$BUILD_CC"; then
10660   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665   IFS=$as_save_IFS
10666   test -z "$as_dir" && as_dir=.
10667   for ac_exec_ext in '' $ac_executable_extensions; do
10668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669     ac_cv_prog_BUILD_CC="$ac_prog"
10670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10671     break 2
10672   fi
10673 done
10674 done
10675
10676 fi
10677 fi
10678 BUILD_CC=$ac_cv_prog_BUILD_CC
10679 if test -n "$BUILD_CC"; then
10680   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10681 echo "${ECHO_T}$BUILD_CC" >&6
10682 else
10683   echo "$as_me:$LINENO: result: no" >&5
10684 echo "${ECHO_T}no" >&6
10685 fi
10686
10687   test -n "$BUILD_CC" && break
10688 done
10689
10690 fi
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720 for 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/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
10721 do
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10724   echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 fi
10729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10731 else
10732   # Is the header compilable?
10733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h.  */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h.  */
10741 $ac_includes_default
10742 #include <$ac_header>
10743 _ACEOF
10744 rm -f conftest.$ac_objext
10745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10746   (eval $ac_compile) 2>conftest.er1
10747   ac_status=$?
10748   grep -v '^ *+' conftest.er1 >conftest.err
10749   rm -f conftest.er1
10750   cat conftest.err >&5
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } &&
10753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; } &&
10759          { ac_try='test -s conftest.$ac_objext'
10760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761   (eval $ac_try) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; }; then
10765   ac_header_compiler=yes
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 ac_header_compiler=no
10771 fi
10772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10774 echo "${ECHO_T}$ac_header_compiler" >&6
10775
10776 # Is the header present?
10777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785 #include <$ac_header>
10786 _ACEOF
10787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } >/dev/null; then
10795   if test -s conftest.err; then
10796     ac_cpp_err=$ac_c_preproc_warn_flag
10797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10798   else
10799     ac_cpp_err=
10800   fi
10801 else
10802   ac_cpp_err=yes
10803 fi
10804 if test -z "$ac_cpp_err"; then
10805   ac_header_preproc=yes
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810   ac_header_preproc=no
10811 fi
10812 rm -f conftest.err conftest.$ac_ext
10813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10814 echo "${ECHO_T}$ac_header_preproc" >&6
10815
10816 # So?  What about this header?
10817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10818   yes:no: )
10819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10823     ac_header_preproc=yes
10824     ;;
10825   no:yes:* )
10826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10828     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10829 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10830     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10832     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10833 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10836     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10838     (
10839       cat <<\_ASBOX
10840 ## ------------------------------------------ ##
10841 ## Report this to the AC_PACKAGE_NAME lists.  ##
10842 ## ------------------------------------------ ##
10843 _ASBOX
10844     ) |
10845       sed "s/^/$as_me: WARNING:     /" >&2
10846     ;;
10847 esac
10848 echo "$as_me:$LINENO: checking for $ac_header" >&5
10849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   eval "$as_ac_Header=\$ac_header_preproc"
10854 fi
10855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10857
10858 fi
10859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10860   cat >>confdefs.h <<_ACEOF
10861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10862 _ACEOF
10863
10864 fi
10865
10866 done
10867
10868
10869
10870 for ac_header in sys/disk.h sys/mount.h
10871 do
10872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10873 echo "$as_me:$LINENO: checking for $ac_header" >&5
10874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10876   echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878   cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884
10885 #if HAVE_SYS_QUEUE_H
10886 #include <sys/queue.h>
10887 #endif
10888
10889
10890 #include <$ac_header>
10891 _ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10894   (eval $ac_compile) 2>conftest.er1
10895   ac_status=$?
10896   grep -v '^ *+' conftest.er1 >conftest.err
10897   rm -f conftest.er1
10898   cat conftest.err >&5
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); } &&
10901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903   (eval $ac_try) 2>&5
10904   ac_status=$?
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); }; } &&
10907          { ac_try='test -s conftest.$ac_objext'
10908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909   (eval $ac_try) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; }; then
10913   eval "$as_ac_Header=yes"
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10917
10918 eval "$as_ac_Header=no"
10919 fi
10920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10921 fi
10922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10925   cat >>confdefs.h <<_ACEOF
10926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10927 _ACEOF
10928
10929 fi
10930
10931 done
10932
10933
10934 for ac_header in net/if.h
10935 do
10936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10940   echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942   cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h.  */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h.  */
10948
10949 #if HAVE_SYS_TYPES_H
10950 #include <sys/types.h>
10951 #endif
10952 #if HAVE_SYS_SOCKET
10953 #include <sys/socket.h>
10954 #endif
10955
10956
10957 #include <$ac_header>
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961   (eval $ac_compile) 2>conftest.er1
10962   ac_status=$?
10963   grep -v '^ *+' conftest.er1 >conftest.err
10964   rm -f conftest.er1
10965   cat conftest.err >&5
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); } &&
10968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970   (eval $ac_try) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); }; } &&
10974          { ac_try='test -s conftest.$ac_objext'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; }; then
10980   eval "$as_ac_Header=yes"
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985 eval "$as_ac_Header=no"
10986 fi
10987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10988 fi
10989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10992   cat >>confdefs.h <<_ACEOF
10993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10994 _ACEOF
10995
10996 fi
10997
10998 done
10999
11000
11001 for ac_func in vprintf
11002 do
11003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11004 echo "$as_me:$LINENO: checking for $ac_func" >&5
11005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11006 if eval "test \"\${$as_ac_var+set}\" = set"; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009   cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11017 #define $ac_func innocuous_$ac_func
11018
11019 /* System header to define __stub macros and hopefully few prototypes,
11020     which can conflict with char $ac_func (); below.
11021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022     <limits.h> exists even on freestanding compilers.  */
11023
11024 #ifdef __STDC__
11025 # include <limits.h>
11026 #else
11027 # include <assert.h>
11028 #endif
11029
11030 #undef $ac_func
11031
11032 /* Override any gcc2 internal prototype to avoid an error.  */
11033 #ifdef __cplusplus
11034 extern "C"
11035 {
11036 #endif
11037 /* We use char because int might match the return type of a gcc2
11038    builtin and then its argument prototype would still apply.  */
11039 char $ac_func ();
11040 /* The GNU C library defines this for functions which it implements
11041     to always fail with ENOSYS.  Some functions are actually named
11042     something starting with __ and the normal name is an alias.  */
11043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11044 choke me
11045 #else
11046 char (*f) () = $ac_func;
11047 #endif
11048 #ifdef __cplusplus
11049 }
11050 #endif
11051
11052 int
11053 main ()
11054 {
11055 return f != $ac_func;
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062   (eval $ac_link) 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; } &&
11075          { ac_try='test -s conftest$ac_exeext'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   eval "$as_ac_var=yes"
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 eval "$as_ac_var=no"
11087 fi
11088 rm -f conftest.err conftest.$ac_objext \
11089       conftest$ac_exeext conftest.$ac_ext
11090 fi
11091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11093 if test `eval echo '${'$as_ac_var'}'` = yes; then
11094   cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11096 _ACEOF
11097
11098 echo "$as_me:$LINENO: checking for _doprnt" >&5
11099 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11100 if test "${ac_cv_func__doprnt+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11111 #define _doprnt innocuous__doprnt
11112
11113 /* System header to define __stub macros and hopefully few prototypes,
11114     which can conflict with char _doprnt (); below.
11115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116     <limits.h> exists even on freestanding compilers.  */
11117
11118 #ifdef __STDC__
11119 # include <limits.h>
11120 #else
11121 # include <assert.h>
11122 #endif
11123
11124 #undef _doprnt
11125
11126 /* Override any gcc2 internal prototype to avoid an error.  */
11127 #ifdef __cplusplus
11128 extern "C"
11129 {
11130 #endif
11131 /* We use char because int might match the return type of a gcc2
11132    builtin and then its argument prototype would still apply.  */
11133 char _doprnt ();
11134 /* The GNU C library defines this for functions which it implements
11135     to always fail with ENOSYS.  Some functions are actually named
11136     something starting with __ and the normal name is an alias.  */
11137 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11138 choke me
11139 #else
11140 char (*f) () = _doprnt;
11141 #endif
11142 #ifdef __cplusplus
11143 }
11144 #endif
11145
11146 int
11147 main ()
11148 {
11149 return f != _doprnt;
11150   ;
11151   return 0;
11152 }
11153 _ACEOF
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156   (eval $ac_link) 2>conftest.er1
11157   ac_status=$?
11158   grep -v '^ *+' conftest.er1 >conftest.err
11159   rm -f conftest.er1
11160   cat conftest.err >&5
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); } &&
11163          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165   (eval $ac_try) 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest$ac_exeext'
11170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171   (eval $ac_try) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; }; then
11175   ac_cv_func__doprnt=yes
11176 else
11177   echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 ac_cv_func__doprnt=no
11181 fi
11182 rm -f conftest.err conftest.$ac_objext \
11183       conftest$ac_exeext conftest.$ac_ext
11184 fi
11185 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11186 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11187 if test $ac_cv_func__doprnt = yes; then
11188
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_DOPRNT 1
11191 _ACEOF
11192
11193 fi
11194
11195 fi
11196 done
11197
11198
11199 echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11200 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11201 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 #include <dirent.h>
11211
11212 int
11213 main ()
11214 {
11215 static struct dirent ac_aggr;
11216 if (ac_aggr.d_reclen)
11217 return 0;
11218   ;
11219   return 0;
11220 }
11221 _ACEOF
11222 rm -f conftest.$ac_objext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224   (eval $ac_compile) 2>conftest.er1
11225   ac_status=$?
11226   grep -v '^ *+' conftest.er1 >conftest.err
11227   rm -f conftest.er1
11228   cat conftest.err >&5
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } &&
11231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; } &&
11237          { ac_try='test -s conftest.$ac_objext'
11238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239   (eval $ac_try) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; }; then
11243   ac_cv_member_struct_dirent_d_reclen=yes
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h.  */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h.  */
11254 #include <dirent.h>
11255
11256 int
11257 main ()
11258 {
11259 static struct dirent ac_aggr;
11260 if (sizeof ac_aggr.d_reclen)
11261 return 0;
11262   ;
11263   return 0;
11264 }
11265 _ACEOF
11266 rm -f conftest.$ac_objext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11268   (eval $ac_compile) 2>conftest.er1
11269   ac_status=$?
11270   grep -v '^ *+' conftest.er1 >conftest.err
11271   rm -f conftest.er1
11272   cat conftest.err >&5
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); } &&
11275          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277   (eval $ac_try) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; } &&
11281          { ac_try='test -s conftest.$ac_objext'
11282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283   (eval $ac_try) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; }; then
11287   ac_cv_member_struct_dirent_d_reclen=yes
11288 else
11289   echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 ac_cv_member_struct_dirent_d_reclen=no
11293 fi
11294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295 fi
11296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11297 fi
11298 echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11299 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11300 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11301   cat >>confdefs.h <<\_ACEOF
11302 #define HAVE_RECLEN_DIRENT 1
11303 _ACEOF
11304
11305 fi
11306
11307 echo "$as_me:$LINENO: checking for ssize_t" >&5
11308 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11309 if test "${ac_cv_type_ssize_t+set}" = set; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h.  */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h.  */
11318 #include <sys/types.h>
11319
11320 int
11321 main ()
11322 {
11323 if ((ssize_t *) 0)
11324   return 0;
11325 if (sizeof (ssize_t))
11326   return 0;
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333   (eval $ac_compile) 2>conftest.er1
11334   ac_status=$?
11335   grep -v '^ *+' conftest.er1 >conftest.err
11336   rm -f conftest.er1
11337   cat conftest.err >&5
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); } &&
11340          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest.$ac_objext'
11347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348   (eval $ac_try) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   ac_cv_type_ssize_t=yes
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 ac_cv_type_ssize_t=no
11358 fi
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 fi
11361 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11362 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11363 if test $ac_cv_type_ssize_t = yes; then
11364   cat >>confdefs.h <<\_ACEOF
11365 #define HAVE_TYPE_SSIZE_T 1
11366 _ACEOF
11367
11368 fi
11369
11370 echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11371 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11372 if test "${ac_cv_have_decl_llseek+set}" = set; then
11373   echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375   cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 #include <unistd.h>
11382
11383 int
11384 main ()
11385 {
11386 #ifndef llseek
11387   char *p = (char *) llseek;
11388 #endif
11389
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11396   (eval $ac_compile) 2>conftest.er1
11397   ac_status=$?
11398   grep -v '^ *+' conftest.er1 >conftest.err
11399   rm -f conftest.er1
11400   cat conftest.err >&5
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); } &&
11403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; } &&
11409          { ac_try='test -s conftest.$ac_objext'
11410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411   (eval $ac_try) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; }; then
11415   ac_cv_have_decl_llseek=yes
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 ac_cv_have_decl_llseek=no
11421 fi
11422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11423 fi
11424 echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11425 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11426 if test $ac_cv_have_decl_llseek = yes; then
11427   cat >>confdefs.h <<\_ACEOF
11428 #define HAVE_LLSEEK_PROTOTYPE 1
11429 _ACEOF
11430
11431 fi
11432
11433 echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11434 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11435 if test "${ac_cv_have_decl_lseek64+set}" = set; then
11436   echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438   cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h.  */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h.  */
11444 #define _LARGEFILE_SOURCE
11445                  #define _LARGEFILE64_SOURCE
11446                  #include <unistd.h>
11447
11448 int
11449 main ()
11450 {
11451 #ifndef lseek64
11452   char *p = (char *) lseek64;
11453 #endif
11454
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461   (eval $ac_compile) 2>conftest.er1
11462   ac_status=$?
11463   grep -v '^ *+' conftest.er1 >conftest.err
11464   rm -f conftest.er1
11465   cat conftest.err >&5
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); } &&
11468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470   (eval $ac_try) 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; } &&
11474          { ac_try='test -s conftest.$ac_objext'
11475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476   (eval $ac_try) 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; }; then
11480   ac_cv_have_decl_lseek64=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_cv_have_decl_lseek64=no
11486 fi
11487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11488 fi
11489 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11490 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11491 if test $ac_cv_have_decl_lseek64 = yes; then
11492   cat >>confdefs.h <<\_ACEOF
11493 #define HAVE_LSEEK64_PROTOTYPE 1
11494 _ACEOF
11495
11496 fi
11497
11498 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
11499   # if cross-compiling, with no cached values, just assume something common.
11500   ac_cv_sizeof_short=2
11501   ac_cv_sizeof_int=4
11502   ac_cv_sizeof_long=4
11503   ac_cv_sizeof_long_long=8
11504   { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11505 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11506 fi
11507 echo "$as_me:$LINENO: checking for short" >&5
11508 echo $ECHO_N "checking for short... $ECHO_C" >&6
11509 if test "${ac_cv_type_short+set}" = set; then
11510   echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512   cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518 $ac_includes_default
11519 int
11520 main ()
11521 {
11522 if ((short *) 0)
11523   return 0;
11524 if (sizeof (short))
11525   return 0;
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532   (eval $ac_compile) 2>conftest.er1
11533   ac_status=$?
11534   grep -v '^ *+' conftest.er1 >conftest.err
11535   rm -f conftest.er1
11536   cat conftest.err >&5
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } &&
11539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541   (eval $ac_try) 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; } &&
11545          { ac_try='test -s conftest.$ac_objext'
11546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547   (eval $ac_try) 2>&5
11548   ac_status=$?
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); }; }; then
11551   ac_cv_type_short=yes
11552 else
11553   echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11555
11556 ac_cv_type_short=no
11557 fi
11558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11559 fi
11560 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11561 echo "${ECHO_T}$ac_cv_type_short" >&6
11562
11563 echo "$as_me:$LINENO: checking size of short" >&5
11564 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11565 if test "${ac_cv_sizeof_short+set}" = set; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568   if test "$ac_cv_type_short" = yes; then
11569   # The cast to unsigned long works around a bug in the HP C Compiler
11570   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11571   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11572   # This bug is HP SR number 8606223364.
11573   if test "$cross_compiling" = yes; then
11574   # Depending upon the size, compute the lo and hi bounds.
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h.  */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h.  */
11581 $ac_includes_default
11582 int
11583 main ()
11584 {
11585 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11586 test_array [0] = 0
11587
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594   (eval $ac_compile) 2>conftest.er1
11595   ac_status=$?
11596   grep -v '^ *+' conftest.er1 >conftest.err
11597   rm -f conftest.er1
11598   cat conftest.err >&5
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } &&
11601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; } &&
11607          { ac_try='test -s conftest.$ac_objext'
11608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609   (eval $ac_try) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; }; then
11613   ac_lo=0 ac_mid=0
11614   while :; do
11615     cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 $ac_includes_default
11622 int
11623 main ()
11624 {
11625 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11626 test_array [0] = 0
11627
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 rm -f conftest.$ac_objext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11634   (eval $ac_compile) 2>conftest.er1
11635   ac_status=$?
11636   grep -v '^ *+' conftest.er1 >conftest.err
11637   rm -f conftest.er1
11638   cat conftest.err >&5
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); } &&
11641          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643   (eval $ac_try) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; } &&
11647          { ac_try='test -s conftest.$ac_objext'
11648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649   (eval $ac_try) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); }; }; then
11653   ac_hi=$ac_mid; break
11654 else
11655   echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11657
11658 ac_lo=`expr $ac_mid + 1`
11659                     if test $ac_lo -le $ac_mid; then
11660                       ac_lo= ac_hi=
11661                       break
11662                     fi
11663                     ac_mid=`expr 2 '*' $ac_mid + 1`
11664 fi
11665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11666   done
11667 else
11668   echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677 $ac_includes_default
11678 int
11679 main ()
11680 {
11681 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11682 test_array [0] = 0
11683
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690   (eval $ac_compile) 2>conftest.er1
11691   ac_status=$?
11692   grep -v '^ *+' conftest.er1 >conftest.err
11693   rm -f conftest.er1
11694   cat conftest.err >&5
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); } &&
11697          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; } &&
11703          { ac_try='test -s conftest.$ac_objext'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; }; then
11709   ac_hi=-1 ac_mid=-1
11710   while :; do
11711     cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 $ac_includes_default
11718 int
11719 main ()
11720 {
11721 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11722 test_array [0] = 0
11723
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730   (eval $ac_compile) 2>conftest.er1
11731   ac_status=$?
11732   grep -v '^ *+' conftest.er1 >conftest.err
11733   rm -f conftest.er1
11734   cat conftest.err >&5
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } &&
11737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; } &&
11743          { ac_try='test -s conftest.$ac_objext'
11744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745   (eval $ac_try) 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; }; then
11749   ac_lo=$ac_mid; break
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 ac_hi=`expr '(' $ac_mid ')' - 1`
11755                        if test $ac_mid -le $ac_hi; then
11756                          ac_lo= ac_hi=
11757                          break
11758                        fi
11759                        ac_mid=`expr 2 '*' $ac_mid`
11760 fi
11761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11762   done
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767 ac_lo= ac_hi=
11768 fi
11769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770 fi
11771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11772 # Binary search between lo and hi bounds.
11773 while test "x$ac_lo" != "x$ac_hi"; do
11774   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11775   cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h.  */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h.  */
11781 $ac_includes_default
11782 int
11783 main ()
11784 {
11785 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11786 test_array [0] = 0
11787
11788   ;
11789   return 0;
11790 }
11791 _ACEOF
11792 rm -f conftest.$ac_objext
11793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11794   (eval $ac_compile) 2>conftest.er1
11795   ac_status=$?
11796   grep -v '^ *+' conftest.er1 >conftest.err
11797   rm -f conftest.er1
11798   cat conftest.err >&5
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); } &&
11801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; } &&
11807          { ac_try='test -s conftest.$ac_objext'
11808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809   (eval $ac_try) 2>&5
11810   ac_status=$?
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); }; }; then
11813   ac_hi=$ac_mid
11814 else
11815   echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_lo=`expr '(' $ac_mid ')' + 1`
11819 fi
11820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821 done
11822 case $ac_lo in
11823 ?*) ac_cv_sizeof_short=$ac_lo;;
11824 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11825 See \`config.log' for more details." >&5
11826 echo "$as_me: error: cannot compute sizeof (short), 77
11827 See \`config.log' for more details." >&2;}
11828    { (exit 1); exit 1; }; } ;;
11829 esac
11830 else
11831   if test "$cross_compiling" = yes; then
11832   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11833 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11834    { (exit 1); exit 1; }; }
11835 else
11836   cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h.  */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h.  */
11842 $ac_includes_default
11843 long longval () { return (long) (sizeof (short)); }
11844 unsigned long ulongval () { return (long) (sizeof (short)); }
11845 #include <stdio.h>
11846 #include <stdlib.h>
11847 int
11848 main ()
11849 {
11850
11851   FILE *f = fopen ("conftest.val", "w");
11852   if (! f)
11853     exit (1);
11854   if (((long) (sizeof (short))) < 0)
11855     {
11856       long i = longval ();
11857       if (i != ((long) (sizeof (short))))
11858         exit (1);
11859       fprintf (f, "%ld\n", i);
11860     }
11861   else
11862     {
11863       unsigned long i = ulongval ();
11864       if (i != ((long) (sizeof (short))))
11865         exit (1);
11866       fprintf (f, "%lu\n", i);
11867     }
11868   exit (ferror (f) || fclose (f) != 0);
11869
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876   (eval $ac_link) 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   ac_cv_sizeof_short=`cat conftest.val`
11886 else
11887   echo "$as_me: program exited with status $ac_status" >&5
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891 ( exit $ac_status )
11892 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11893 See \`config.log' for more details." >&5
11894 echo "$as_me: error: cannot compute sizeof (short), 77
11895 See \`config.log' for more details." >&2;}
11896    { (exit 1); exit 1; }; }
11897 fi
11898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 fi
11901 rm -f conftest.val
11902 else
11903   ac_cv_sizeof_short=0
11904 fi
11905 fi
11906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11907 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11908 cat >>confdefs.h <<_ACEOF
11909 #define SIZEOF_SHORT $ac_cv_sizeof_short
11910 _ACEOF
11911
11912
11913 echo "$as_me:$LINENO: checking for int" >&5
11914 echo $ECHO_N "checking for int... $ECHO_C" >&6
11915 if test "${ac_cv_type_int+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 $ac_includes_default
11925 int
11926 main ()
11927 {
11928 if ((int *) 0)
11929   return 0;
11930 if (sizeof (int))
11931   return 0;
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938   (eval $ac_compile) 2>conftest.er1
11939   ac_status=$?
11940   grep -v '^ *+' conftest.er1 >conftest.err
11941   rm -f conftest.er1
11942   cat conftest.err >&5
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } &&
11945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947   (eval $ac_try) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; } &&
11951          { ac_try='test -s conftest.$ac_objext'
11952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953   (eval $ac_try) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; }; then
11957   ac_cv_type_int=yes
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 ac_cv_type_int=no
11963 fi
11964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11965 fi
11966 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11967 echo "${ECHO_T}$ac_cv_type_int" >&6
11968
11969 echo "$as_me:$LINENO: checking size of int" >&5
11970 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11971 if test "${ac_cv_sizeof_int+set}" = set; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   if test "$ac_cv_type_int" = yes; then
11975   # The cast to unsigned long works around a bug in the HP C Compiler
11976   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11977   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11978   # This bug is HP SR number 8606223364.
11979   if test "$cross_compiling" = yes; then
11980   # Depending upon the size, compute the lo and hi bounds.
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987 $ac_includes_default
11988 int
11989 main ()
11990 {
11991 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11992 test_array [0] = 0
11993
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 rm -f conftest.$ac_objext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12000   (eval $ac_compile) 2>conftest.er1
12001   ac_status=$?
12002   grep -v '^ *+' conftest.er1 >conftest.err
12003   rm -f conftest.er1
12004   cat conftest.err >&5
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); } &&
12007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009   (eval $ac_try) 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; } &&
12013          { ac_try='test -s conftest.$ac_objext'
12014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015   (eval $ac_try) 2>&5
12016   ac_status=$?
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); }; }; then
12019   ac_lo=0 ac_mid=0
12020   while :; do
12021     cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h.  */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h.  */
12027 $ac_includes_default
12028 int
12029 main ()
12030 {
12031 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12032 test_array [0] = 0
12033
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040   (eval $ac_compile) 2>conftest.er1
12041   ac_status=$?
12042   grep -v '^ *+' conftest.er1 >conftest.err
12043   rm -f conftest.er1
12044   cat conftest.err >&5
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); } &&
12047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049   (eval $ac_try) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; } &&
12053          { ac_try='test -s conftest.$ac_objext'
12054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055   (eval $ac_try) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; }; then
12059   ac_hi=$ac_mid; break
12060 else
12061   echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 ac_lo=`expr $ac_mid + 1`
12065                     if test $ac_lo -le $ac_mid; then
12066                       ac_lo= ac_hi=
12067                       break
12068                     fi
12069                     ac_mid=`expr 2 '*' $ac_mid + 1`
12070 fi
12071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12072   done
12073 else
12074   echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083 $ac_includes_default
12084 int
12085 main ()
12086 {
12087 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12088 test_array [0] = 0
12089
12090   ;
12091   return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096   (eval $ac_compile) 2>conftest.er1
12097   ac_status=$?
12098   grep -v '^ *+' conftest.er1 >conftest.err
12099   rm -f conftest.er1
12100   cat conftest.err >&5
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); } &&
12103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105   (eval $ac_try) 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); }; } &&
12109          { ac_try='test -s conftest.$ac_objext'
12110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111   (eval $ac_try) 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; }; then
12115   ac_hi=-1 ac_mid=-1
12116   while :; do
12117     cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h.  */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h.  */
12123 $ac_includes_default
12124 int
12125 main ()
12126 {
12127 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12128 test_array [0] = 0
12129
12130   ;
12131   return 0;
12132 }
12133 _ACEOF
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136   (eval $ac_compile) 2>conftest.er1
12137   ac_status=$?
12138   grep -v '^ *+' conftest.er1 >conftest.err
12139   rm -f conftest.er1
12140   cat conftest.err >&5
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); } &&
12143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145   (eval $ac_try) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); }; } &&
12149          { ac_try='test -s conftest.$ac_objext'
12150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151   (eval $ac_try) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; }; then
12155   ac_lo=$ac_mid; break
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12159
12160 ac_hi=`expr '(' $ac_mid ')' - 1`
12161                        if test $ac_mid -le $ac_hi; then
12162                          ac_lo= ac_hi=
12163                          break
12164                        fi
12165                        ac_mid=`expr 2 '*' $ac_mid`
12166 fi
12167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12168   done
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 ac_lo= ac_hi=
12174 fi
12175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12176 fi
12177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12178 # Binary search between lo and hi bounds.
12179 while test "x$ac_lo" != "x$ac_hi"; do
12180   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12181   cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187 $ac_includes_default
12188 int
12189 main ()
12190 {
12191 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12192 test_array [0] = 0
12193
12194   ;
12195   return 0;
12196 }
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200   (eval $ac_compile) 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209   (eval $ac_try) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; } &&
12213          { ac_try='test -s conftest.$ac_objext'
12214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215   (eval $ac_try) 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); }; }; then
12219   ac_hi=$ac_mid
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 ac_lo=`expr '(' $ac_mid ')' + 1`
12225 fi
12226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12227 done
12228 case $ac_lo in
12229 ?*) ac_cv_sizeof_int=$ac_lo;;
12230 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12231 See \`config.log' for more details." >&5
12232 echo "$as_me: error: cannot compute sizeof (int), 77
12233 See \`config.log' for more details." >&2;}
12234    { (exit 1); exit 1; }; } ;;
12235 esac
12236 else
12237   if test "$cross_compiling" = yes; then
12238   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12239 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12240    { (exit 1); exit 1; }; }
12241 else
12242   cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h.  */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h.  */
12248 $ac_includes_default
12249 long longval () { return (long) (sizeof (int)); }
12250 unsigned long ulongval () { return (long) (sizeof (int)); }
12251 #include <stdio.h>
12252 #include <stdlib.h>
12253 int
12254 main ()
12255 {
12256
12257   FILE *f = fopen ("conftest.val", "w");
12258   if (! f)
12259     exit (1);
12260   if (((long) (sizeof (int))) < 0)
12261     {
12262       long i = longval ();
12263       if (i != ((long) (sizeof (int))))
12264         exit (1);
12265       fprintf (f, "%ld\n", i);
12266     }
12267   else
12268     {
12269       unsigned long i = ulongval ();
12270       if (i != ((long) (sizeof (int))))
12271         exit (1);
12272       fprintf (f, "%lu\n", i);
12273     }
12274   exit (ferror (f) || fclose (f) != 0);
12275
12276   ;
12277   return 0;
12278 }
12279 _ACEOF
12280 rm -f conftest$ac_exeext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282   (eval $ac_link) 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; }; then
12291   ac_cv_sizeof_int=`cat conftest.val`
12292 else
12293   echo "$as_me: program exited with status $ac_status" >&5
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297 ( exit $ac_status )
12298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12299 See \`config.log' for more details." >&5
12300 echo "$as_me: error: cannot compute sizeof (int), 77
12301 See \`config.log' for more details." >&2;}
12302    { (exit 1); exit 1; }; }
12303 fi
12304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12305 fi
12306 fi
12307 rm -f conftest.val
12308 else
12309   ac_cv_sizeof_int=0
12310 fi
12311 fi
12312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12313 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12314 cat >>confdefs.h <<_ACEOF
12315 #define SIZEOF_INT $ac_cv_sizeof_int
12316 _ACEOF
12317
12318
12319 echo "$as_me:$LINENO: checking for long" >&5
12320 echo $ECHO_N "checking for long... $ECHO_C" >&6
12321 if test "${ac_cv_type_long+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 $ac_includes_default
12331 int
12332 main ()
12333 {
12334 if ((long *) 0)
12335   return 0;
12336 if (sizeof (long))
12337   return 0;
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344   (eval $ac_compile) 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } &&
12351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; } &&
12357          { ac_try='test -s conftest.$ac_objext'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   ac_cv_type_long=yes
12364 else
12365   echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_cv_type_long=no
12369 fi
12370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371 fi
12372 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12373 echo "${ECHO_T}$ac_cv_type_long" >&6
12374
12375 echo "$as_me:$LINENO: checking size of long" >&5
12376 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12377 if test "${ac_cv_sizeof_long+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   if test "$ac_cv_type_long" = yes; then
12381   # The cast to unsigned long works around a bug in the HP C Compiler
12382   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12383   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12384   # This bug is HP SR number 8606223364.
12385   if test "$cross_compiling" = yes; then
12386   # Depending upon the size, compute the lo and hi bounds.
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393 $ac_includes_default
12394 int
12395 main ()
12396 {
12397 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12398 test_array [0] = 0
12399
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 rm -f conftest.$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406   (eval $ac_compile) 2>conftest.er1
12407   ac_status=$?
12408   grep -v '^ *+' conftest.er1 >conftest.err
12409   rm -f conftest.er1
12410   cat conftest.err >&5
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); } &&
12413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415   (eval $ac_try) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); }; } &&
12419          { ac_try='test -s conftest.$ac_objext'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; }; then
12425   ac_lo=0 ac_mid=0
12426   while :; do
12427     cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h.  */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h.  */
12433 $ac_includes_default
12434 int
12435 main ()
12436 {
12437 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12438 test_array [0] = 0
12439
12440   ;
12441   return 0;
12442 }
12443 _ACEOF
12444 rm -f conftest.$ac_objext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12446   (eval $ac_compile) 2>conftest.er1
12447   ac_status=$?
12448   grep -v '^ *+' conftest.er1 >conftest.err
12449   rm -f conftest.er1
12450   cat conftest.err >&5
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); } &&
12453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455   (eval $ac_try) 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; } &&
12459          { ac_try='test -s conftest.$ac_objext'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; }; then
12465   ac_hi=$ac_mid; break
12466 else
12467   echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 ac_lo=`expr $ac_mid + 1`
12471                     if test $ac_lo -le $ac_mid; then
12472                       ac_lo= ac_hi=
12473                       break
12474                     fi
12475                     ac_mid=`expr 2 '*' $ac_mid + 1`
12476 fi
12477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12478   done
12479 else
12480   echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489 $ac_includes_default
12490 int
12491 main ()
12492 {
12493 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12494 test_array [0] = 0
12495
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502   (eval $ac_compile) 2>conftest.er1
12503   ac_status=$?
12504   grep -v '^ *+' conftest.er1 >conftest.err
12505   rm -f conftest.er1
12506   cat conftest.err >&5
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } &&
12509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; } &&
12515          { ac_try='test -s conftest.$ac_objext'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521   ac_hi=-1 ac_mid=-1
12522   while :; do
12523     cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h.  */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h.  */
12529 $ac_includes_default
12530 int
12531 main ()
12532 {
12533 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12534 test_array [0] = 0
12535
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542   (eval $ac_compile) 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } &&
12549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; } &&
12555          { ac_try='test -s conftest.$ac_objext'
12556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557   (eval $ac_try) 2>&5
12558   ac_status=$?
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); }; }; then
12561   ac_lo=$ac_mid; break
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 ac_hi=`expr '(' $ac_mid ')' - 1`
12567                        if test $ac_mid -le $ac_hi; then
12568                          ac_lo= ac_hi=
12569                          break
12570                        fi
12571                        ac_mid=`expr 2 '*' $ac_mid`
12572 fi
12573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574   done
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_lo= ac_hi=
12580 fi
12581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582 fi
12583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12584 # Binary search between lo and hi bounds.
12585 while test "x$ac_lo" != "x$ac_hi"; do
12586   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12587   cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593 $ac_includes_default
12594 int
12595 main ()
12596 {
12597 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12598 test_array [0] = 0
12599
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606   (eval $ac_compile) 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } &&
12613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; } &&
12619          { ac_try='test -s conftest.$ac_objext'
12620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621   (eval $ac_try) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; }; then
12625   ac_hi=$ac_mid
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630 ac_lo=`expr '(' $ac_mid ')' + 1`
12631 fi
12632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12633 done
12634 case $ac_lo in
12635 ?*) ac_cv_sizeof_long=$ac_lo;;
12636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12637 See \`config.log' for more details." >&5
12638 echo "$as_me: error: cannot compute sizeof (long), 77
12639 See \`config.log' for more details." >&2;}
12640    { (exit 1); exit 1; }; } ;;
12641 esac
12642 else
12643   if test "$cross_compiling" = yes; then
12644   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12645 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12646    { (exit 1); exit 1; }; }
12647 else
12648   cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h.  */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h.  */
12654 $ac_includes_default
12655 long longval () { return (long) (sizeof (long)); }
12656 unsigned long ulongval () { return (long) (sizeof (long)); }
12657 #include <stdio.h>
12658 #include <stdlib.h>
12659 int
12660 main ()
12661 {
12662
12663   FILE *f = fopen ("conftest.val", "w");
12664   if (! f)
12665     exit (1);
12666   if (((long) (sizeof (long))) < 0)
12667     {
12668       long i = longval ();
12669       if (i != ((long) (sizeof (long))))
12670         exit (1);
12671       fprintf (f, "%ld\n", i);
12672     }
12673   else
12674     {
12675       unsigned long i = ulongval ();
12676       if (i != ((long) (sizeof (long))))
12677         exit (1);
12678       fprintf (f, "%lu\n", i);
12679     }
12680   exit (ferror (f) || fclose (f) != 0);
12681
12682   ;
12683   return 0;
12684 }
12685 _ACEOF
12686 rm -f conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688   (eval $ac_link) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693   (eval $ac_try) 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); }; }; then
12697   ac_cv_sizeof_long=`cat conftest.val`
12698 else
12699   echo "$as_me: program exited with status $ac_status" >&5
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703 ( exit $ac_status )
12704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12705 See \`config.log' for more details." >&5
12706 echo "$as_me: error: cannot compute sizeof (long), 77
12707 See \`config.log' for more details." >&2;}
12708    { (exit 1); exit 1; }; }
12709 fi
12710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12711 fi
12712 fi
12713 rm -f conftest.val
12714 else
12715   ac_cv_sizeof_long=0
12716 fi
12717 fi
12718 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12719 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12720 cat >>confdefs.h <<_ACEOF
12721 #define SIZEOF_LONG $ac_cv_sizeof_long
12722 _ACEOF
12723
12724
12725 echo "$as_me:$LINENO: checking for long long" >&5
12726 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12727 if test "${ac_cv_type_long_long+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736 $ac_includes_default
12737 int
12738 main ()
12739 {
12740 if ((long long *) 0)
12741   return 0;
12742 if (sizeof (long long))
12743   return 0;
12744   ;
12745   return 0;
12746 }
12747 _ACEOF
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750   (eval $ac_compile) 2>conftest.er1
12751   ac_status=$?
12752   grep -v '^ *+' conftest.er1 >conftest.err
12753   rm -f conftest.er1
12754   cat conftest.err >&5
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); } &&
12757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759   (eval $ac_try) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }; } &&
12763          { ac_try='test -s conftest.$ac_objext'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; }; then
12769   ac_cv_type_long_long=yes
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 ac_cv_type_long_long=no
12775 fi
12776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12777 fi
12778 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12779 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12780
12781 echo "$as_me:$LINENO: checking size of long long" >&5
12782 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12783 if test "${ac_cv_sizeof_long_long+set}" = set; then
12784   echo $ECHO_N "(cached) $ECHO_C" >&6
12785 else
12786   if test "$ac_cv_type_long_long" = yes; then
12787   # The cast to unsigned long works around a bug in the HP C Compiler
12788   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12789   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12790   # This bug is HP SR number 8606223364.
12791   if test "$cross_compiling" = yes; then
12792   # Depending upon the size, compute the lo and hi bounds.
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 $ac_includes_default
12800 int
12801 main ()
12802 {
12803 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12804 test_array [0] = 0
12805
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 rm -f conftest.$ac_objext
12811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812   (eval $ac_compile) 2>conftest.er1
12813   ac_status=$?
12814   grep -v '^ *+' conftest.er1 >conftest.err
12815   rm -f conftest.er1
12816   cat conftest.err >&5
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } &&
12819          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821   (eval $ac_try) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; } &&
12825          { ac_try='test -s conftest.$ac_objext'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; }; then
12831   ac_lo=0 ac_mid=0
12832   while :; do
12833     cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h.  */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h.  */
12839 $ac_includes_default
12840 int
12841 main ()
12842 {
12843 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12844 test_array [0] = 0
12845
12846   ;
12847   return 0;
12848 }
12849 _ACEOF
12850 rm -f conftest.$ac_objext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852   (eval $ac_compile) 2>conftest.er1
12853   ac_status=$?
12854   grep -v '^ *+' conftest.er1 >conftest.err
12855   rm -f conftest.er1
12856   cat conftest.err >&5
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } &&
12859          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; } &&
12865          { ac_try='test -s conftest.$ac_objext'
12866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867   (eval $ac_try) 2>&5
12868   ac_status=$?
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); }; }; then
12871   ac_hi=$ac_mid; break
12872 else
12873   echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 ac_lo=`expr $ac_mid + 1`
12877                     if test $ac_lo -le $ac_mid; then
12878                       ac_lo= ac_hi=
12879                       break
12880                     fi
12881                     ac_mid=`expr 2 '*' $ac_mid + 1`
12882 fi
12883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12884   done
12885 else
12886   echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h.  */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h.  */
12895 $ac_includes_default
12896 int
12897 main ()
12898 {
12899 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12900 test_array [0] = 0
12901
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908   (eval $ac_compile) 2>conftest.er1
12909   ac_status=$?
12910   grep -v '^ *+' conftest.er1 >conftest.err
12911   rm -f conftest.er1
12912   cat conftest.err >&5
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; } &&
12921          { ac_try='test -s conftest.$ac_objext'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; }; then
12927   ac_hi=-1 ac_mid=-1
12928   while :; do
12929     cat >conftest.$ac_ext <<_ACEOF
12930 /* confdefs.h.  */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h.  */
12935 $ac_includes_default
12936 int
12937 main ()
12938 {
12939 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12940 test_array [0] = 0
12941
12942   ;
12943   return 0;
12944 }
12945 _ACEOF
12946 rm -f conftest.$ac_objext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948   (eval $ac_compile) 2>conftest.er1
12949   ac_status=$?
12950   grep -v '^ *+' conftest.er1 >conftest.err
12951   rm -f conftest.er1
12952   cat conftest.err >&5
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); } &&
12955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957   (eval $ac_try) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; } &&
12961          { ac_try='test -s conftest.$ac_objext'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; }; then
12967   ac_lo=$ac_mid; break
12968 else
12969   echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 ac_hi=`expr '(' $ac_mid ')' - 1`
12973                        if test $ac_mid -le $ac_hi; then
12974                          ac_lo= ac_hi=
12975                          break
12976                        fi
12977                        ac_mid=`expr 2 '*' $ac_mid`
12978 fi
12979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980   done
12981 else
12982   echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12984
12985 ac_lo= ac_hi=
12986 fi
12987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988 fi
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12990 # Binary search between lo and hi bounds.
12991 while test "x$ac_lo" != "x$ac_hi"; do
12992   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12993   cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h.  */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h.  */
12999 $ac_includes_default
13000 int
13001 main ()
13002 {
13003 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13004 test_array [0] = 0
13005
13006   ;
13007   return 0;
13008 }
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012   (eval $ac_compile) 2>conftest.er1
13013   ac_status=$?
13014   grep -v '^ *+' conftest.er1 >conftest.err
13015   rm -f conftest.er1
13016   cat conftest.err >&5
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); } &&
13019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021   (eval $ac_try) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; } &&
13025          { ac_try='test -s conftest.$ac_objext'
13026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027   (eval $ac_try) 2>&5
13028   ac_status=$?
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); }; }; then
13031   ac_hi=$ac_mid
13032 else
13033   echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13035
13036 ac_lo=`expr '(' $ac_mid ')' + 1`
13037 fi
13038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13039 done
13040 case $ac_lo in
13041 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13042 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13043 See \`config.log' for more details." >&5
13044 echo "$as_me: error: cannot compute sizeof (long long), 77
13045 See \`config.log' for more details." >&2;}
13046    { (exit 1); exit 1; }; } ;;
13047 esac
13048 else
13049   if test "$cross_compiling" = yes; then
13050   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13051 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13052    { (exit 1); exit 1; }; }
13053 else
13054   cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h.  */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h.  */
13060 $ac_includes_default
13061 long longval () { return (long) (sizeof (long long)); }
13062 unsigned long ulongval () { return (long) (sizeof (long long)); }
13063 #include <stdio.h>
13064 #include <stdlib.h>
13065 int
13066 main ()
13067 {
13068
13069   FILE *f = fopen ("conftest.val", "w");
13070   if (! f)
13071     exit (1);
13072   if (((long) (sizeof (long long))) < 0)
13073     {
13074       long i = longval ();
13075       if (i != ((long) (sizeof (long long))))
13076         exit (1);
13077       fprintf (f, "%ld\n", i);
13078     }
13079   else
13080     {
13081       unsigned long i = ulongval ();
13082       if (i != ((long) (sizeof (long long))))
13083         exit (1);
13084       fprintf (f, "%lu\n", i);
13085     }
13086   exit (ferror (f) || fclose (f) != 0);
13087
13088   ;
13089   return 0;
13090 }
13091 _ACEOF
13092 rm -f conftest$ac_exeext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094   (eval $ac_link) 2>&5
13095   ac_status=$?
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099   (eval $ac_try) 2>&5
13100   ac_status=$?
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); }; }; then
13103   ac_cv_sizeof_long_long=`cat conftest.val`
13104 else
13105   echo "$as_me: program exited with status $ac_status" >&5
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109 ( exit $ac_status )
13110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13111 See \`config.log' for more details." >&5
13112 echo "$as_me: error: cannot compute sizeof (long long), 77
13113 See \`config.log' for more details." >&2;}
13114    { (exit 1); exit 1; }; }
13115 fi
13116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13117 fi
13118 fi
13119 rm -f conftest.val
13120 else
13121   ac_cv_sizeof_long_long=0
13122 fi
13123 fi
13124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13125 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13126 cat >>confdefs.h <<_ACEOF
13127 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13128 _ACEOF
13129
13130
13131 SIZEOF_SHORT=$ac_cv_sizeof_short
13132 SIZEOF_INT=$ac_cv_sizeof_int
13133 SIZEOF_LONG=$ac_cv_sizeof_long
13134 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13135
13136
13137
13138
13139 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13140 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13141 if test "${ac_cv_c_bigendian+set}" = set; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144   # See if sys/param.h defines the BYTE_ORDER macro.
13145 cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151 #include <sys/types.h>
13152 #include <sys/param.h>
13153
13154 int
13155 main ()
13156 {
13157 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13158  bogus endian macros
13159 #endif
13160
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167   (eval $ac_compile) 2>conftest.er1
13168   ac_status=$?
13169   grep -v '^ *+' conftest.er1 >conftest.err
13170   rm -f conftest.er1
13171   cat conftest.err >&5
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } &&
13174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; } &&
13180          { ac_try='test -s conftest.$ac_objext'
13181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182   (eval $ac_try) 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; }; then
13186   # It does; now see whether it defined to BIG_ENDIAN or not.
13187 cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193 #include <sys/types.h>
13194 #include <sys/param.h>
13195
13196 int
13197 main ()
13198 {
13199 #if BYTE_ORDER != BIG_ENDIAN
13200  not big endian
13201 #endif
13202
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209   (eval $ac_compile) 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } &&
13216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218   (eval $ac_try) 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); }; } &&
13222          { ac_try='test -s conftest.$ac_objext'
13223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224   (eval $ac_try) 2>&5
13225   ac_status=$?
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); }; }; then
13228   ac_cv_c_bigendian=yes
13229 else
13230   echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 ac_cv_c_bigendian=no
13234 fi
13235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13236 else
13237   echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 # It does not; compile a test program.
13241 if test "$cross_compiling" = yes; then
13242   # try to guess the endianness by grepping values into an object file
13243   ac_cv_c_bigendian=unknown
13244   cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h.  */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h.  */
13250 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13251 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13252 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13253 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13254 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13255 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13256 int
13257 main ()
13258 {
13259  _ascii (); _ebcdic ();
13260   ;
13261   return 0;
13262 }
13263 _ACEOF
13264 rm -f conftest.$ac_objext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266   (eval $ac_compile) 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } &&
13273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275   (eval $ac_try) 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; } &&
13279          { ac_try='test -s conftest.$ac_objext'
13280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281   (eval $ac_try) 2>&5
13282   ac_status=$?
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); }; }; then
13285   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13286   ac_cv_c_bigendian=yes
13287 fi
13288 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13289   if test "$ac_cv_c_bigendian" = unknown; then
13290     ac_cv_c_bigendian=no
13291   else
13292     # finding both strings is unlikely to happen, but who knows?
13293     ac_cv_c_bigendian=unknown
13294   fi
13295 fi
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300 fi
13301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13302 else
13303   cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h.  */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h.  */
13309 int
13310 main ()
13311 {
13312   /* Are we little or big endian?  From Harbison&Steele.  */
13313   union
13314   {
13315     long l;
13316     char c[sizeof (long)];
13317   } u;
13318   u.l = 1;
13319   exit (u.c[sizeof (long) - 1] == 1);
13320 }
13321 _ACEOF
13322 rm -f conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324   (eval $ac_link) 2>&5
13325   ac_status=$?
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329   (eval $ac_try) 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; }; then
13333   ac_cv_c_bigendian=no
13334 else
13335   echo "$as_me: program exited with status $ac_status" >&5
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339 ( exit $ac_status )
13340 ac_cv_c_bigendian=yes
13341 fi
13342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13343 fi
13344 fi
13345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13346 fi
13347 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13348 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13349 case $ac_cv_c_bigendian in
13350   yes)
13351
13352 cat >>confdefs.h <<\_ACEOF
13353 #define WORDS_BIGENDIAN 1
13354 _ACEOF
13355  ;;
13356   no)
13357      ;;
13358   *)
13359     { { echo "$as_me:$LINENO: error: unknown endianness
13360 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13361 echo "$as_me: error: unknown endianness
13362 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13363    { (exit 1); exit 1; }; } ;;
13364 esac
13365
13366
13367 for ac_header in inttypes.h
13368 do
13369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13371   echo "$as_me:$LINENO: checking for $ac_header" >&5
13372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13374   echo $ECHO_N "(cached) $ECHO_C" >&6
13375 fi
13376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13378 else
13379   # Is the header compilable?
13380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388 $ac_includes_default
13389 #include <$ac_header>
13390 _ACEOF
13391 rm -f conftest.$ac_objext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393   (eval $ac_compile) 2>conftest.er1
13394   ac_status=$?
13395   grep -v '^ *+' conftest.er1 >conftest.err
13396   rm -f conftest.er1
13397   cat conftest.err >&5
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } &&
13400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402   (eval $ac_try) 2>&5
13403   ac_status=$?
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); }; } &&
13406          { ac_try='test -s conftest.$ac_objext'
13407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408   (eval $ac_try) 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); }; }; then
13412   ac_header_compiler=yes
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 ac_header_compiler=no
13418 fi
13419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13421 echo "${ECHO_T}$ac_header_compiler" >&6
13422
13423 # Is the header present?
13424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13426 cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h.  */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h.  */
13432 #include <$ac_header>
13433 _ACEOF
13434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } >/dev/null; then
13442   if test -s conftest.err; then
13443     ac_cpp_err=$ac_c_preproc_warn_flag
13444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13445   else
13446     ac_cpp_err=
13447   fi
13448 else
13449   ac_cpp_err=yes
13450 fi
13451 if test -z "$ac_cpp_err"; then
13452   ac_header_preproc=yes
13453 else
13454   echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457   ac_header_preproc=no
13458 fi
13459 rm -f conftest.err conftest.$ac_ext
13460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13461 echo "${ECHO_T}$ac_header_preproc" >&6
13462
13463 # So?  What about this header?
13464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13465   yes:no: )
13466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13470     ac_header_preproc=yes
13471     ;;
13472   no:yes:* )
13473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13485     (
13486       cat <<\_ASBOX
13487 ## ------------------------------------------ ##
13488 ## Report this to the AC_PACKAGE_NAME lists.  ##
13489 ## ------------------------------------------ ##
13490 _ASBOX
13491     ) |
13492       sed "s/^/$as_me: WARNING:     /" >&2
13493     ;;
13494 esac
13495 echo "$as_me:$LINENO: checking for $ac_header" >&5
13496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   eval "$as_ac_Header=\$ac_header_preproc"
13501 fi
13502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13504
13505 fi
13506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13507   cat >>confdefs.h <<_ACEOF
13508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13509 _ACEOF
13510
13511 fi
13512
13513 done
13514
13515 echo "$as_me:$LINENO: checking for intptr_t" >&5
13516 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13517 if test "${ac_cv_type_intptr_t+set}" = set; then
13518   echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520   cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h.  */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h.  */
13526 $ac_includes_default
13527 int
13528 main ()
13529 {
13530 if ((intptr_t *) 0)
13531   return 0;
13532 if (sizeof (intptr_t))
13533   return 0;
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540   (eval $ac_compile) 2>conftest.er1
13541   ac_status=$?
13542   grep -v '^ *+' conftest.er1 >conftest.err
13543   rm -f conftest.er1
13544   cat conftest.err >&5
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); } &&
13547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549   (eval $ac_try) 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }; } &&
13553          { ac_try='test -s conftest.$ac_objext'
13554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555   (eval $ac_try) 2>&5
13556   ac_status=$?
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); }; }; then
13559   ac_cv_type_intptr_t=yes
13560 else
13561   echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13563
13564 ac_cv_type_intptr_t=no
13565 fi
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13567 fi
13568 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13569 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13570 if test $ac_cv_type_intptr_t = yes; then
13571
13572 cat >>confdefs.h <<_ACEOF
13573 #define HAVE_INTPTR_T 1
13574 _ACEOF
13575
13576
13577 fi
13578
13579 echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13580 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13581 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   cat >conftest.$ac_ext <<_ACEOF
13585 /* confdefs.h.  */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h.  */
13590 #include <sys/stat.h>
13591 int
13592 main ()
13593 {
13594 struct stat stat; stat.st_flags = 0;
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601   (eval $ac_compile) 2>conftest.er1
13602   ac_status=$?
13603   grep -v '^ *+' conftest.er1 >conftest.err
13604   rm -f conftest.er1
13605   cat conftest.err >&5
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610   (eval $ac_try) 2>&5
13611   ac_status=$?
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); }; } &&
13614          { ac_try='test -s conftest.$ac_objext'
13615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616   (eval $ac_try) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); }; }; then
13620   e2fsprogs_cv_struct_st_flags=yes
13621 else
13622   echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13624
13625 e2fsprogs_cv_struct_st_flags=no
13626 fi
13627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13628 fi
13629
13630 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13631 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
13632 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13633   echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13634 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13635   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 #include <sys/stat.h>
13645 int
13646 main ()
13647 {
13648 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655   (eval $ac_compile) 2>conftest.er1
13656   ac_status=$?
13657   grep -v '^ *+' conftest.er1 >conftest.err
13658   rm -f conftest.er1
13659   cat conftest.err >&5
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); } &&
13662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664   (eval $ac_try) 2>&5
13665   ac_status=$?
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); }; } &&
13668          { ac_try='test -s conftest.$ac_objext'
13669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670   (eval $ac_try) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); }; }; then
13674   e2fsprogs_cv_struct_st_flags_immut=yes
13675 else
13676   echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679 e2fsprogs_cv_struct_st_flags_immut=no
13680 fi
13681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13682 fi
13683
13684   echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13685 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
13686   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13687           cat >>confdefs.h <<\_ACEOF
13688 #define HAVE_STAT_FLAGS 1
13689 _ACEOF
13690
13691   fi
13692 fi
13693 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13694 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13695 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698   cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704 #include <sys/types.h>
13705          #include <sys/socket.h>
13706
13707 int
13708 main ()
13709 {
13710 static struct sockaddr ac_aggr;
13711 if (ac_aggr.sa_len)
13712 return 0;
13713   ;
13714   return 0;
13715 }
13716 _ACEOF
13717 rm -f conftest.$ac_objext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719   (eval $ac_compile) 2>conftest.er1
13720   ac_status=$?
13721   grep -v '^ *+' conftest.er1 >conftest.err
13722   rm -f conftest.er1
13723   cat conftest.err >&5
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } &&
13726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; } &&
13732          { ac_try='test -s conftest.$ac_objext'
13733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734   (eval $ac_try) 2>&5
13735   ac_status=$?
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); }; }; then
13738   ac_cv_member_struct_sockaddr_sa_len=yes
13739 else
13740   echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h.  */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h.  */
13749 #include <sys/types.h>
13750          #include <sys/socket.h>
13751
13752 int
13753 main ()
13754 {
13755 static struct sockaddr ac_aggr;
13756 if (sizeof ac_aggr.sa_len)
13757 return 0;
13758   ;
13759   return 0;
13760 }
13761 _ACEOF
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764   (eval $ac_compile) 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } &&
13771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773   (eval $ac_try) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; } &&
13777          { ac_try='test -s conftest.$ac_objext'
13778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779   (eval $ac_try) 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); }; }; then
13783   ac_cv_member_struct_sockaddr_sa_len=yes
13784 else
13785   echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13787
13788 ac_cv_member_struct_sockaddr_sa_len=no
13789 fi
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13791 fi
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 fi
13794 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13795 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13796 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13797
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_SA_LEN 1
13800 _ACEOF
13801
13802 fi
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
13824 do
13825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13826 echo "$as_me:$LINENO: checking for $ac_func" >&5
13827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13828 if eval "test \"\${$as_ac_var+set}\" = set"; then
13829   echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831   cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h.  */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h.  */
13837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13839 #define $ac_func innocuous_$ac_func
13840
13841 /* System header to define __stub macros and hopefully few prototypes,
13842     which can conflict with char $ac_func (); below.
13843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13844     <limits.h> exists even on freestanding compilers.  */
13845
13846 #ifdef __STDC__
13847 # include <limits.h>
13848 #else
13849 # include <assert.h>
13850 #endif
13851
13852 #undef $ac_func
13853
13854 /* Override any gcc2 internal prototype to avoid an error.  */
13855 #ifdef __cplusplus
13856 extern "C"
13857 {
13858 #endif
13859 /* We use char because int might match the return type of a gcc2
13860    builtin and then its argument prototype would still apply.  */
13861 char $ac_func ();
13862 /* The GNU C library defines this for functions which it implements
13863     to always fail with ENOSYS.  Some functions are actually named
13864     something starting with __ and the normal name is an alias.  */
13865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13866 choke me
13867 #else
13868 char (*f) () = $ac_func;
13869 #endif
13870 #ifdef __cplusplus
13871 }
13872 #endif
13873
13874 int
13875 main ()
13876 {
13877 return f != $ac_func;
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884   (eval $ac_link) 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; } &&
13897          { ac_try='test -s conftest$ac_exeext'
13898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899   (eval $ac_try) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; }; then
13903   eval "$as_ac_var=yes"
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908 eval "$as_ac_var=no"
13909 fi
13910 rm -f conftest.err conftest.$ac_objext \
13911       conftest$ac_exeext conftest.$ac_ext
13912 fi
13913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13915 if test `eval echo '${'$as_ac_var'}'` = yes; then
13916   cat >>confdefs.h <<_ACEOF
13917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13918 _ACEOF
13919
13920 fi
13921 done
13922
13923 SOCKET_LIB=''
13924 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13925 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13926 if test "${ac_cv_lib_socket_socket+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   ac_check_lib_save_LIBS=$LIBS
13930 LIBS="-lsocket  $LIBS"
13931 cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h.  */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h.  */
13937
13938 /* Override any gcc2 internal prototype to avoid an error.  */
13939 #ifdef __cplusplus
13940 extern "C"
13941 #endif
13942 /* We use char because int might match the return type of a gcc2
13943    builtin and then its argument prototype would still apply.  */
13944 char socket ();
13945 int
13946 main ()
13947 {
13948 socket ();
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955   (eval $ac_link) 2>conftest.er1
13956   ac_status=$?
13957   grep -v '^ *+' conftest.er1 >conftest.err
13958   rm -f conftest.er1
13959   cat conftest.err >&5
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); } &&
13962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964   (eval $ac_try) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; } &&
13968          { ac_try='test -s conftest$ac_exeext'
13969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970   (eval $ac_try) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; }; then
13974   ac_cv_lib_socket_socket=yes
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979 ac_cv_lib_socket_socket=no
13980 fi
13981 rm -f conftest.err conftest.$ac_objext \
13982       conftest$ac_exeext conftest.$ac_ext
13983 LIBS=$ac_check_lib_save_LIBS
13984 fi
13985 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13986 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
13987 if test $ac_cv_lib_socket_socket = yes; then
13988   SOCKET_LIB=-lsocket
13989 fi
13990
13991
13992 DLOPEN_LIB=''
13993 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-ldl  $LIBS"
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006
14007 /* Override any gcc2 internal prototype to avoid an error.  */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 /* We use char because int might match the return type of a gcc2
14012    builtin and then its argument prototype would still apply.  */
14013 char dlopen ();
14014 int
14015 main ()
14016 {
14017 dlopen ();
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024   (eval $ac_link) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; } &&
14037          { ac_try='test -s conftest$ac_exeext'
14038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039   (eval $ac_try) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }; }; then
14043   ac_cv_lib_dl_dlopen=yes
14044 else
14045   echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14047
14048 ac_cv_lib_dl_dlopen=no
14049 fi
14050 rm -f conftest.err conftest.$ac_objext \
14051       conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14053 fi
14054 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14056 if test $ac_cv_lib_dl_dlopen = yes; then
14057   DLOPEN_LIB=-ldl
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_DLOPEN 1
14060 _ACEOF
14061
14062 fi
14063
14064
14065 echo "$as_me:$LINENO: checking for optreset" >&5
14066 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14067 if test "${ac_cv_have_optreset+set}" = set; then
14068   echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070   cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076 #include <unistd.h>
14077
14078 _ACEOF
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080   $EGREP "optreset" >/dev/null 2>&1; then
14081   ac_cv_have_optreset=yes
14082 else
14083   ac_cv_have_optreset=no
14084 fi
14085 rm -f conftest*
14086
14087 fi
14088 echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14089 echo "${ECHO_T}$ac_cv_have_optreset" >&6
14090 if test $ac_cv_have_optreset = yes; then
14091   cat >>confdefs.h <<\_ACEOF
14092 #define HAVE_OPTRESET 1
14093 _ACEOF
14094
14095 fi
14096 case "$host_os" in
14097 linux*)
14098         cat >>confdefs.h <<\_ACEOF
14099 #define HAVE_EXT2_IOCTLS 1
14100 _ACEOF
14101
14102         ;;
14103 esac
14104 LINUX_CMT="#"
14105 CYGWIN_CMT="#"
14106 UNIX_CMT=
14107 case "$host_os" in
14108 linux*)
14109         LINUX_CMT=
14110         ;;
14111 cygwin)
14112         CYGWIN_CMT=
14113         UNIX_CMT="#"
14114         ;;
14115 esac
14116
14117
14118
14119 case "$host_os" in
14120 linux* | gnu* | k*bsd*-gnu)
14121         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14122                 root_prefix="";
14123                 echo "On $host_os systems, root_prefix defaults to ''"
14124         fi
14125         ;;
14126 esac
14127 case "$host_os" in
14128 linux* | gnu* | k*bsd*-gnu)
14129         if test "$prefix" = NONE ; then
14130                 prefix="/usr";
14131                 echo "On $host_os systems, prefix defaults to /usr"
14132                 if test "$mandir" = '${prefix}/man' ; then
14133                         echo "...and mandir defaults to /usr/share/man"
14134                         mandir=/usr/share/man
14135                 fi
14136         fi
14137 ;;
14138 esac
14139 if test "$root_prefix" = NONE ; then
14140         if test "$prefix" = NONE ; then
14141                 root_prefix="$ac_default_prefix"
14142         else
14143                 root_prefix="$prefix"
14144         fi
14145         root_bindir=$bindir
14146         root_sbindir=$sbindir
14147         root_libdir=$libdir
14148         root_sysconfdir=$sysconfdir
14149 else
14150         root_bindir='${root_prefix}/bin'
14151         root_sbindir='${root_prefix}/sbin'
14152         root_libdir='${root_prefix}/lib'
14153         root_sysconfdir='${root_prefix}/etc'
14154 fi
14155
14156
14157
14158
14159
14160 echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14161 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14162 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14166 cat >conftest.$ac_ext <<_ACEOF
14167 /* confdefs.h.  */
14168 _ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h.  */
14172 #include <stdio.h>
14173 int
14174 main ()
14175 {
14176 fflush(stdout);
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183   (eval $ac_link) 2>conftest.er1
14184   ac_status=$?
14185   grep -v '^ *+' conftest.er1 >conftest.err
14186   rm -f conftest.er1
14187   cat conftest.err >&5
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } &&
14190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192   (eval $ac_try) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; } &&
14196          { ac_try='test -s conftest$ac_exeext'
14197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198   (eval $ac_try) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; }; then
14202   ac_cv_e2fsprogs_use_static=yes
14203 else
14204   echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14206
14207 ac_cv_e2fsprogs_use_static=no
14208 fi
14209 rm -f conftest.err conftest.$ac_objext \
14210       conftest$ac_exeext conftest.$ac_ext
14211 LDFLAGS=$SAVE_LDFLAGS
14212 fi
14213
14214 case "$host_os" in
14215 solaris2.*)
14216         ac_cv_e2fsprogs_use_static=no
14217 ;;
14218 esac
14219 echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14220 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
14221 LDFLAG_STATIC=
14222 if test $ac_cv_e2fsprogs_use_static = yes; then
14223         LDFLAG_STATIC=-static
14224 fi
14225
14226 case "$host_os" in
14227 darwin*)
14228         echo "Using Apple Darwin / GNU libintl workaround"
14229         cat >>confdefs.h <<\_ACEOF
14230 #define _INTL_REDIRECT_MACROS 1
14231 _ACEOF
14232
14233         ;;
14234 esac
14235 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14236 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14237
14238
14239 if test "$cross_compiling" = yes ; then
14240   DO_TEST_SUITE=
14241 else
14242   DO_TEST_SUITE=check
14243 fi
14244
14245 INTL_FLAGS=
14246 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14247         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14248 fi
14249
14250 test -d lib || mkdir lib
14251 test -d include || mkdir include
14252 test -d include/linux || mkdir include/linux
14253 test -d include/asm || mkdir include/asm
14254 for i in MCONFIG Makefile e2fsprogs.spec \
14255         util/Makefile util/subst.conf util/gen-tarball \
14256         lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
14257         lib/uuid/Makefile lib/uuid/uuid_types.h \
14258         lib/blkid/Makefile lib/blkid/blkid_types.h \
14259         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14260         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14261         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14262         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14263         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14264         if test -d `dirname ${srcdir}/$i` ; then
14265                 outlist="$outlist $i"
14266         fi
14267 done
14268           ac_config_files="$ac_config_files $outlist"
14269 cat >confcache <<\_ACEOF
14270 # This file is a shell script that caches the results of configure
14271 # tests run on this system so they can be shared between configure
14272 # scripts and configure runs, see configure's option --config-cache.
14273 # It is not useful on other systems.  If it contains results you don't
14274 # want to keep, you may remove or edit it.
14275 #
14276 # config.status only pays attention to the cache file if you give it
14277 # the --recheck option to rerun configure.
14278 #
14279 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14280 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14281 # following values.
14282
14283 _ACEOF
14284
14285 # The following way of writing the cache mishandles newlines in values,
14286 # but we know of no workaround that is simple, portable, and efficient.
14287 # So, don't put newlines in cache variables' values.
14288 # Ultrix sh set writes to stderr and can't be redirected directly,
14289 # and sets the high bit in the cache file unless we assign to the vars.
14290 {
14291   (set) 2>&1 |
14292     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14293     *ac_space=\ *)
14294       # `set' does not quote correctly, so add quotes (double-quote
14295       # substitution turns \\\\ into \\, and sed turns \\ into \).
14296       sed -n \
14297         "s/'/'\\\\''/g;
14298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14299       ;;
14300     *)
14301       # `set' quotes correctly as required by POSIX, so do not add quotes.
14302       sed -n \
14303         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14304       ;;
14305     esac;
14306 } |
14307   sed '
14308      t clear
14309      : clear
14310      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14311      t end
14312      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14313      : end' >>confcache
14314 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14315   if test -w $cache_file; then
14316     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14317     cat confcache >$cache_file
14318   else
14319     echo "not updating unwritable cache $cache_file"
14320   fi
14321 fi
14322 rm -f confcache
14323
14324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14325 # Let make expand exec_prefix.
14326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14327
14328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14330 # trailing colons and then remove the whole line if VPATH becomes empty
14331 # (actually we leave an empty line to preserve line numbers).
14332 if test "x$srcdir" = x.; then
14333   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14334 s/:*\$(srcdir):*/:/;
14335 s/:*\${srcdir}:*/:/;
14336 s/:*@srcdir@:*/:/;
14337 s/^\([^=]*=[     ]*\):*/\1/;
14338 s/:*$//;
14339 s/^[^=]*=[       ]*$//;
14340 }'
14341 fi
14342
14343 # Transform confdefs.h into DEFS.
14344 # Protect against shell expansion while executing Makefile rules.
14345 # Protect against Makefile macro expansion.
14346 #
14347 # If the first sed substitution is executed (which looks for macros that
14348 # take arguments), then we branch to the quote section.  Otherwise,
14349 # look for a macro that doesn't take arguments.
14350 cat >confdef2opt.sed <<\_ACEOF
14351 t clear
14352 : clear
14353 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
14354 t quote
14355 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
14356 t quote
14357 d
14358 : quote
14359 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
14360 s,\[,\\&,g
14361 s,\],\\&,g
14362 s,\$,$$,g
14363 p
14364 _ACEOF
14365 # We use echo to avoid assuming a particular line-breaking character.
14366 # The extra dot is to prevent the shell from consuming trailing
14367 # line-breaks from the sub-command output.  A line-break within
14368 # single-quotes doesn't work because, if this script is created in a
14369 # platform that uses two characters for line-breaks (e.g., DOS), tr
14370 # would break.
14371 ac_LF_and_DOT=`echo; echo .`
14372 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14373 rm -f confdef2opt.sed
14374
14375
14376 ac_libobjs=
14377 ac_ltlibobjs=
14378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14379   # 1. Remove the extension, and $U if already installed.
14380   ac_i=`echo "$ac_i" |
14381          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14382   # 2. Add them.
14383   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14384   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14385 done
14386 LIBOBJS=$ac_libobjs
14387
14388 LTLIBOBJS=$ac_ltlibobjs
14389
14390
14391
14392 : ${CONFIG_STATUS=./config.status}
14393 ac_clean_files_save=$ac_clean_files
14394 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14395 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14396 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14397 cat >$CONFIG_STATUS <<_ACEOF
14398 #! $SHELL
14399 # Generated by $as_me.
14400 # Run this file to recreate the current configuration.
14401 # Compiler output produced by configure, useful for debugging
14402 # configure, is in config.log if it exists.
14403
14404 debug=false
14405 ac_cs_recheck=false
14406 ac_cs_silent=false
14407 SHELL=\${CONFIG_SHELL-$SHELL}
14408 _ACEOF
14409
14410 cat >>$CONFIG_STATUS <<\_ACEOF
14411 ## --------------------- ##
14412 ## M4sh Initialization.  ##
14413 ## --------------------- ##
14414
14415 # Be Bourne compatible
14416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14417   emulate sh
14418   NULLCMD=:
14419   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14420   # is contrary to our usage.  Disable this feature.
14421   alias -g '${1+"$@"}'='"$@"'
14422 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14423   set -o posix
14424 fi
14425 DUALCASE=1; export DUALCASE # for MKS sh
14426
14427 # Support unset when possible.
14428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14429   as_unset=unset
14430 else
14431   as_unset=false
14432 fi
14433
14434
14435 # Work around bugs in pre-3.0 UWIN ksh.
14436 $as_unset ENV MAIL MAILPATH
14437 PS1='$ '
14438 PS2='> '
14439 PS4='+ '
14440
14441 # NLS nuisances.
14442 for as_var in \
14443   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14444   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14445   LC_TELEPHONE LC_TIME
14446 do
14447   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14448     eval $as_var=C; export $as_var
14449   else
14450     $as_unset $as_var
14451   fi
14452 done
14453
14454 # Required to use basename.
14455 if expr a : '\(a\)' >/dev/null 2>&1; then
14456   as_expr=expr
14457 else
14458   as_expr=false
14459 fi
14460
14461 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14462   as_basename=basename
14463 else
14464   as_basename=false
14465 fi
14466
14467
14468 # Name of the executable.
14469 as_me=`$as_basename "$0" ||
14470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14471          X"$0" : 'X\(//\)$' \| \
14472          X"$0" : 'X\(/\)$' \| \
14473          .     : '\(.\)' 2>/dev/null ||
14474 echo X/"$0" |
14475     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14476           /^X\/\(\/\/\)$/{ s//\1/; q; }
14477           /^X\/\(\/\).*/{ s//\1/; q; }
14478           s/.*/./; q'`
14479
14480
14481 # PATH needs CR, and LINENO needs CR and PATH.
14482 # Avoid depending upon Character Ranges.
14483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14486 as_cr_digits='0123456789'
14487 as_cr_alnum=$as_cr_Letters$as_cr_digits
14488
14489 # The user is always right.
14490 if test "${PATH_SEPARATOR+set}" != set; then
14491   echo "#! /bin/sh" >conf$$.sh
14492   echo  "exit 0"   >>conf$$.sh
14493   chmod +x conf$$.sh
14494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14495     PATH_SEPARATOR=';'
14496   else
14497     PATH_SEPARATOR=:
14498   fi
14499   rm -f conf$$.sh
14500 fi
14501
14502
14503   as_lineno_1=$LINENO
14504   as_lineno_2=$LINENO
14505   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14506   test "x$as_lineno_1" != "x$as_lineno_2" &&
14507   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14508   # Find who we are.  Look in the path if we contain no path at all
14509   # relative or not.
14510   case $0 in
14511     *[\\/]* ) as_myself=$0 ;;
14512     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14513 for as_dir in $PATH
14514 do
14515   IFS=$as_save_IFS
14516   test -z "$as_dir" && as_dir=.
14517   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14518 done
14519
14520        ;;
14521   esac
14522   # We did not find ourselves, most probably we were run as `sh COMMAND'
14523   # in which case we are not to be found in the path.
14524   if test "x$as_myself" = x; then
14525     as_myself=$0
14526   fi
14527   if test ! -f "$as_myself"; then
14528     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14530    { (exit 1); exit 1; }; }
14531   fi
14532   case $CONFIG_SHELL in
14533   '')
14534     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14536 do
14537   IFS=$as_save_IFS
14538   test -z "$as_dir" && as_dir=.
14539   for as_base in sh bash ksh sh5; do
14540          case $as_dir in
14541          /*)
14542            if ("$as_dir/$as_base" -c '
14543   as_lineno_1=$LINENO
14544   as_lineno_2=$LINENO
14545   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14546   test "x$as_lineno_1" != "x$as_lineno_2" &&
14547   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14548              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14549              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14550              CONFIG_SHELL=$as_dir/$as_base
14551              export CONFIG_SHELL
14552              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14553            fi;;
14554          esac
14555        done
14556 done
14557 ;;
14558   esac
14559
14560   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14561   # uniformly replaced by the line number.  The first 'sed' inserts a
14562   # line-number line before each line; the second 'sed' does the real
14563   # work.  The second script uses 'N' to pair each line-number line
14564   # with the numbered line, and appends trailing '-' during
14565   # substitution so that $LINENO is not a special case at line end.
14566   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14567   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14568   sed '=' <$as_myself |
14569     sed '
14570       N
14571       s,$,-,
14572       : loop
14573       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14574       t loop
14575       s,-$,,
14576       s,^['$as_cr_digits']*\n,,
14577     ' >$as_me.lineno &&
14578   chmod +x $as_me.lineno ||
14579     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14580 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14581    { (exit 1); exit 1; }; }
14582
14583   # Don't try to exec as it changes $[0], causing all sort of problems
14584   # (the dirname of $[0] is not the place where we might find the
14585   # original and so on.  Autoconf is especially sensible to this).
14586   . ./$as_me.lineno
14587   # Exit status is that of the last command.
14588   exit
14589 }
14590
14591
14592 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14593   *c*,-n*) ECHO_N= ECHO_C='
14594 ' ECHO_T='      ' ;;
14595   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14596   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14597 esac
14598
14599 if expr a : '\(a\)' >/dev/null 2>&1; then
14600   as_expr=expr
14601 else
14602   as_expr=false
14603 fi
14604
14605 rm -f conf$$ conf$$.exe conf$$.file
14606 echo >conf$$.file
14607 if ln -s conf$$.file conf$$ 2>/dev/null; then
14608   # We could just check for DJGPP; but this test a) works b) is more generic
14609   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14610   if test -f conf$$.exe; then
14611     # Don't use ln at all; we don't have any links
14612     as_ln_s='cp -p'
14613   else
14614     as_ln_s='ln -s'
14615   fi
14616 elif ln conf$$.file conf$$ 2>/dev/null; then
14617   as_ln_s=ln
14618 else
14619   as_ln_s='cp -p'
14620 fi
14621 rm -f conf$$ conf$$.exe conf$$.file
14622
14623 if mkdir -p . 2>/dev/null; then
14624   as_mkdir_p=:
14625 else
14626   test -d ./-p && rmdir ./-p
14627   as_mkdir_p=false
14628 fi
14629
14630 as_executable_p="test -f"
14631
14632 # Sed expression to map a string onto a valid CPP name.
14633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14634
14635 # Sed expression to map a string onto a valid variable name.
14636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14637
14638
14639 # IFS
14640 # We need space, tab and new line, in precisely that order.
14641 as_nl='
14642 '
14643 IFS="   $as_nl"
14644
14645 # CDPATH.
14646 $as_unset CDPATH
14647
14648 exec 6>&1
14649
14650 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14651 # report actual input values of CONFIG_FILES etc. instead of their
14652 # values after options handling.  Logging --version etc. is OK.
14653 exec 5>>config.log
14654 {
14655   echo
14656   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14657 ## Running $as_me. ##
14658 _ASBOX
14659 } >&5
14660 cat >&5 <<_CSEOF
14661
14662 This file was extended by $as_me, which was
14663 generated by GNU Autoconf 2.59.  Invocation command line was
14664
14665   CONFIG_FILES    = $CONFIG_FILES
14666   CONFIG_HEADERS  = $CONFIG_HEADERS
14667   CONFIG_LINKS    = $CONFIG_LINKS
14668   CONFIG_COMMANDS = $CONFIG_COMMANDS
14669   $ $0 $@
14670
14671 _CSEOF
14672 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14673 echo >&5
14674 _ACEOF
14675
14676 # Files that config.status was made for.
14677 if test -n "$ac_config_files"; then
14678   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14679 fi
14680
14681 if test -n "$ac_config_headers"; then
14682   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14683 fi
14684
14685 if test -n "$ac_config_links"; then
14686   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14687 fi
14688
14689 if test -n "$ac_config_commands"; then
14690   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14691 fi
14692
14693 cat >>$CONFIG_STATUS <<\_ACEOF
14694
14695 ac_cs_usage="\
14696 \`$as_me' instantiates files from templates according to the
14697 current configuration.
14698
14699 Usage: $0 [OPTIONS] [FILE]...
14700
14701   -h, --help       print this help, then exit
14702   -V, --version    print version number, then exit
14703   -q, --quiet      do not print progress messages
14704   -d, --debug      don't remove temporary files
14705       --recheck    update $as_me by reconfiguring in the same conditions
14706   --file=FILE[:TEMPLATE]
14707                    instantiate the configuration file FILE
14708
14709 Configuration files:
14710 $config_files
14711
14712 Configuration commands:
14713 $config_commands
14714
14715 Report bugs to <bug-autoconf@gnu.org>."
14716 _ACEOF
14717
14718 cat >>$CONFIG_STATUS <<_ACEOF
14719 ac_cs_version="\\
14720 config.status
14721 configured by $0, generated by GNU Autoconf 2.59,
14722   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14723
14724 Copyright (C) 2003 Free Software Foundation, Inc.
14725 This config.status script is free software; the Free Software Foundation
14726 gives unlimited permission to copy, distribute and modify it."
14727 srcdir=$srcdir
14728 INSTALL="$INSTALL"
14729 _ACEOF
14730
14731 cat >>$CONFIG_STATUS <<\_ACEOF
14732 # If no file are specified by the user, then we need to provide default
14733 # value.  By we need to know if files were specified by the user.
14734 ac_need_defaults=:
14735 while test $# != 0
14736 do
14737   case $1 in
14738   --*=*)
14739     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14740     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14741     ac_shift=:
14742     ;;
14743   -*)
14744     ac_option=$1
14745     ac_optarg=$2
14746     ac_shift=shift
14747     ;;
14748   *) # This is not an option, so the user has probably given explicit
14749      # arguments.
14750      ac_option=$1
14751      ac_need_defaults=false;;
14752   esac
14753
14754   case $ac_option in
14755   # Handling of the options.
14756 _ACEOF
14757 cat >>$CONFIG_STATUS <<\_ACEOF
14758   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14759     ac_cs_recheck=: ;;
14760   --version | --vers* | -V )
14761     echo "$ac_cs_version"; exit 0 ;;
14762   --he | --h)
14763     # Conflict between --help and --header
14764     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14765 Try \`$0 --help' for more information." >&5
14766 echo "$as_me: error: ambiguous option: $1
14767 Try \`$0 --help' for more information." >&2;}
14768    { (exit 1); exit 1; }; };;
14769   --help | --hel | -h )
14770     echo "$ac_cs_usage"; exit 0 ;;
14771   --debug | --d* | -d )
14772     debug=: ;;
14773   --file | --fil | --fi | --f )
14774     $ac_shift
14775     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14776     ac_need_defaults=false;;
14777   --header | --heade | --head | --hea )
14778     $ac_shift
14779     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14780     ac_need_defaults=false;;
14781   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14782   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14783     ac_cs_silent=: ;;
14784
14785   # This is an error.
14786   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14787 Try \`$0 --help' for more information." >&5
14788 echo "$as_me: error: unrecognized option: $1
14789 Try \`$0 --help' for more information." >&2;}
14790    { (exit 1); exit 1; }; } ;;
14791
14792   *) ac_config_targets="$ac_config_targets $1" ;;
14793
14794   esac
14795   shift
14796 done
14797
14798 ac_configure_extra_args=
14799
14800 if $ac_cs_silent; then
14801   exec 6>/dev/null
14802   ac_configure_extra_args="$ac_configure_extra_args --silent"
14803 fi
14804
14805 _ACEOF
14806 cat >>$CONFIG_STATUS <<_ACEOF
14807 if \$ac_cs_recheck; then
14808   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14809   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14810 fi
14811
14812 _ACEOF
14813
14814 cat >>$CONFIG_STATUS <<_ACEOF
14815 #
14816 # INIT-COMMANDS section.
14817 #
14818
14819 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14820     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14821     # from automake.
14822     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14823     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14824     LINGUAS="${LINGUAS-%UNSET%}"
14825
14826
14827 _ACEOF
14828
14829
14830
14831 cat >>$CONFIG_STATUS <<\_ACEOF
14832 for ac_config_target in $ac_config_targets
14833 do
14834   case "$ac_config_target" in
14835   # Handling of arguments.
14836   "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14837   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14838   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14839 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14840    { (exit 1); exit 1; }; };;
14841   esac
14842 done
14843
14844 # If the user did not use the arguments to specify the items to instantiate,
14845 # then the envvar interface is used.  Set only those that are not.
14846 # We use the long form for the default assignment because of an extremely
14847 # bizarre bug on SunOS 4.1.3.
14848 if $ac_need_defaults; then
14849   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14850   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14851 fi
14852
14853 # Have a temporary directory for convenience.  Make it in the build tree
14854 # simply because there is no reason to put it here, and in addition,
14855 # creating and moving files from /tmp can sometimes cause problems.
14856 # Create a temporary directory, and hook for its removal unless debugging.
14857 $debug ||
14858 {
14859   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14860   trap '{ (exit 1); exit 1; }' 1 2 13 15
14861 }
14862
14863 # Create a (secure) tmp directory for tmp files.
14864
14865 {
14866   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14867   test -n "$tmp" && test -d "$tmp"
14868 }  ||
14869 {
14870   tmp=./confstat$$-$RANDOM
14871   (umask 077 && mkdir $tmp)
14872 } ||
14873 {
14874    echo "$me: cannot create a temporary directory in ." >&2
14875    { (exit 1); exit 1; }
14876 }
14877
14878 _ACEOF
14879
14880 cat >>$CONFIG_STATUS <<_ACEOF
14881
14882 #
14883 # CONFIG_FILES section.
14884 #
14885
14886 # No need to generate the scripts if there are no CONFIG_FILES.
14887 # This happens for instance when ./config.status config.h
14888 if test -n "\$CONFIG_FILES"; then
14889   # Protect against being on the right side of a sed subst in config.status.
14890   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14891    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14892 s,@SHELL@,$SHELL,;t t
14893 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14894 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14895 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14896 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14897 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14898 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14899 s,@exec_prefix@,$exec_prefix,;t t
14900 s,@prefix@,$prefix,;t t
14901 s,@program_transform_name@,$program_transform_name,;t t
14902 s,@bindir@,$bindir,;t t
14903 s,@sbindir@,$sbindir,;t t
14904 s,@libexecdir@,$libexecdir,;t t
14905 s,@datadir@,$datadir,;t t
14906 s,@sysconfdir@,$sysconfdir,;t t
14907 s,@sharedstatedir@,$sharedstatedir,;t t
14908 s,@localstatedir@,$localstatedir,;t t
14909 s,@libdir@,$libdir,;t t
14910 s,@includedir@,$includedir,;t t
14911 s,@oldincludedir@,$oldincludedir,;t t
14912 s,@infodir@,$infodir,;t t
14913 s,@mandir@,$mandir,;t t
14914 s,@build_alias@,$build_alias,;t t
14915 s,@host_alias@,$host_alias,;t t
14916 s,@target_alias@,$target_alias,;t t
14917 s,@DEFS@,$DEFS,;t t
14918 s,@ECHO_C@,$ECHO_C,;t t
14919 s,@ECHO_N@,$ECHO_N,;t t
14920 s,@ECHO_T@,$ECHO_T,;t t
14921 s,@LIBS@,$LIBS,;t t
14922 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14923 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14924 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14925 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14926 s,@build@,$build,;t t
14927 s,@build_cpu@,$build_cpu,;t t
14928 s,@build_vendor@,$build_vendor,;t t
14929 s,@build_os@,$build_os,;t t
14930 s,@host@,$host,;t t
14931 s,@host_cpu@,$host_cpu,;t t
14932 s,@host_vendor@,$host_vendor,;t t
14933 s,@host_os@,$host_os,;t t
14934 s,@CC@,$CC,;t t
14935 s,@CFLAGS@,$CFLAGS,;t t
14936 s,@LDFLAGS@,$LDFLAGS,;t t
14937 s,@CPPFLAGS@,$CPPFLAGS,;t t
14938 s,@ac_ct_CC@,$ac_ct_CC,;t t
14939 s,@EXEEXT@,$EXEEXT,;t t
14940 s,@OBJEXT@,$OBJEXT,;t t
14941 s,@LD@,$LD,;t t
14942 s,@CPP@,$CPP,;t t
14943 s,@EGREP@,$EGREP,;t t
14944 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14945 s,@HTREE_CMT@,$HTREE_CMT,;t t
14946 s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
14947 s,@ELF_CMT@,$ELF_CMT,;t t
14948 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14949 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14950 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14951 s,@LIB_EXT@,$LIB_EXT,;t t
14952 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14953 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14954 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14955 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14956 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14957 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14958 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14959 s,@FSCK_PROG@,$FSCK_PROG,;t t
14960 s,@FSCK_MAN@,$FSCK_MAN,;t t
14961 s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14962 s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14963 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14964 s,@PACKAGE@,$PACKAGE,;t t
14965 s,@VERSION@,$VERSION,;t t
14966 s,@SET_MAKE@,$SET_MAKE,;t t
14967 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14968 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14969 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14970 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14971 s,@USE_NLS@,$USE_NLS,;t t
14972 s,@MSGFMT@,$MSGFMT,;t t
14973 s,@GMSGFMT@,$GMSGFMT,;t t
14974 s,@XGETTEXT@,$XGETTEXT,;t t
14975 s,@MSGMERGE@,$MSGMERGE,;t t
14976 s,@RANLIB@,$RANLIB,;t t
14977 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14978 s,@ALLOCA@,$ALLOCA,;t t
14979 s,@GLIBC21@,$GLIBC21,;t t
14980 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14981 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
14982 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
14983 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
14984 s,@LIBICONV@,$LIBICONV,;t t
14985 s,@LTLIBICONV@,$LTLIBICONV,;t t
14986 s,@INTLBISON@,$INTLBISON,;t t
14987 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14988 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14989 s,@CATOBJEXT@,$CATOBJEXT,;t t
14990 s,@DATADIRNAME@,$DATADIRNAME,;t t
14991 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14992 s,@GENCAT@,$GENCAT,;t t
14993 s,@INTLOBJS@,$INTLOBJS,;t t
14994 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14995 s,@INTLLIBS@,$INTLLIBS,;t t
14996 s,@LIBINTL@,$LIBINTL,;t t
14997 s,@LTLIBINTL@,$LTLIBINTL,;t t
14998 s,@POSUB@,$POSUB,;t t
14999 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15000 s,@LN@,$LN,;t t
15001 s,@LN_S@,$LN_S,;t t
15002 s,@MV@,$MV,;t t
15003 s,@CP@,$CP,;t t
15004 s,@RM@,$RM,;t t
15005 s,@CHMOD@,$CHMOD,;t t
15006 s,@AWK@,$AWK,;t t
15007 s,@SED@,$SED,;t t
15008 s,@PERL@,$PERL,;t t
15009 s,@LDCONFIG@,$LDCONFIG,;t t
15010 s,@AR@,$AR,;t t
15011 s,@ac_ct_AR@,$ac_ct_AR,;t t
15012 s,@STRIP@,$STRIP,;t t
15013 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15014 s,@BUILD_CC@,$BUILD_CC,;t t
15015 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15016 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15017 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15018 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15019 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15020 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15021 s,@LINUX_CMT@,$LINUX_CMT,;t t
15022 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15023 s,@UNIX_CMT@,$UNIX_CMT,;t t
15024 s,@root_prefix@,$root_prefix,;t t
15025 s,@root_bindir@,$root_bindir,;t t
15026 s,@root_sbindir@,$root_sbindir,;t t
15027 s,@root_libdir@,$root_libdir,;t t
15028 s,@root_sysconfdir@,$root_sysconfdir,;t t
15029 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15030 s,@SS_DIR@,$SS_DIR,;t t
15031 s,@ET_DIR@,$ET_DIR,;t t
15032 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15033 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
15034 s,@LIBOBJS@,$LIBOBJS,;t t
15035 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15036 /@MCONFIG@/r $MCONFIG
15037 s,@MCONFIG@,,;t t
15038 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
15039 s,@MAKEFILE_ELF@,,;t t
15040 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15041 s,@MAKEFILE_BSDLIB@,,;t t
15042 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15043 s,@MAKEFILE_PROFILE@,,;t t
15044 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15045 s,@MAKEFILE_CHECKER@,,;t t
15046 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15047 s,@MAKEFILE_LIBRARY@,,;t t
15048 CEOF
15049
15050 _ACEOF
15051
15052   cat >>$CONFIG_STATUS <<\_ACEOF
15053   # Split the substitutions into bite-sized pieces for seds with
15054   # small command number limits, like on Digital OSF/1 and HP-UX.
15055   ac_max_sed_lines=48
15056   ac_sed_frag=1 # Number of current file.
15057   ac_beg=1 # First line for current file.
15058   ac_end=$ac_max_sed_lines # Line after last line for current file.
15059   ac_more_lines=:
15060   ac_sed_cmds=
15061   while $ac_more_lines; do
15062     if test $ac_beg -gt 1; then
15063       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15064     else
15065       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15066     fi
15067     if test ! -s $tmp/subs.frag; then
15068       ac_more_lines=false
15069     else
15070       # The purpose of the label and of the branching condition is to
15071       # speed up the sed processing (if there are no `@' at all, there
15072       # is no need to browse any of the substitutions).
15073       # These are the two extra sed commands mentioned above.
15074       (echo ':t
15075   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15076       if test -z "$ac_sed_cmds"; then
15077         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15078       else
15079         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15080       fi
15081       ac_sed_frag=`expr $ac_sed_frag + 1`
15082       ac_beg=$ac_end
15083       ac_end=`expr $ac_end + $ac_max_sed_lines`
15084     fi
15085   done
15086   if test -z "$ac_sed_cmds"; then
15087     ac_sed_cmds=cat
15088   fi
15089 fi # test -n "$CONFIG_FILES"
15090
15091 _ACEOF
15092 cat >>$CONFIG_STATUS <<\_ACEOF
15093 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15094   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15095   case $ac_file in
15096   - | *:- | *:-:* ) # input from stdin
15097         cat >$tmp/stdin
15098         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15099         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15100   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15101         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15102   * )   ac_file_in=$ac_file.in ;;
15103   esac
15104
15105   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15106   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15108          X"$ac_file" : 'X\(//\)[^/]' \| \
15109          X"$ac_file" : 'X\(//\)$' \| \
15110          X"$ac_file" : 'X\(/\)' \| \
15111          .     : '\(.\)' 2>/dev/null ||
15112 echo X"$ac_file" |
15113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15114           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15115           /^X\(\/\/\)$/{ s//\1/; q; }
15116           /^X\(\/\).*/{ s//\1/; q; }
15117           s/.*/./; q'`
15118   { if $as_mkdir_p; then
15119     mkdir -p "$ac_dir"
15120   else
15121     as_dir="$ac_dir"
15122     as_dirs=
15123     while test ! -d "$as_dir"; do
15124       as_dirs="$as_dir $as_dirs"
15125       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15126 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15127          X"$as_dir" : 'X\(//\)[^/]' \| \
15128          X"$as_dir" : 'X\(//\)$' \| \
15129          X"$as_dir" : 'X\(/\)' \| \
15130          .     : '\(.\)' 2>/dev/null ||
15131 echo X"$as_dir" |
15132     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15133           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15134           /^X\(\/\/\)$/{ s//\1/; q; }
15135           /^X\(\/\).*/{ s//\1/; q; }
15136           s/.*/./; q'`
15137     done
15138     test ! -n "$as_dirs" || mkdir $as_dirs
15139   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15140 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15141    { (exit 1); exit 1; }; }; }
15142
15143   ac_builddir=.
15144
15145 if test "$ac_dir" != .; then
15146   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15147   # A "../" for each directory in $ac_dir_suffix.
15148   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15149 else
15150   ac_dir_suffix= ac_top_builddir=
15151 fi
15152
15153 case $srcdir in
15154   .)  # No --srcdir option.  We are building in place.
15155     ac_srcdir=.
15156     if test -z "$ac_top_builddir"; then
15157        ac_top_srcdir=.
15158     else
15159        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15160     fi ;;
15161   [\\/]* | ?:[\\/]* )  # Absolute path.
15162     ac_srcdir=$srcdir$ac_dir_suffix;
15163     ac_top_srcdir=$srcdir ;;
15164   *) # Relative path.
15165     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15166     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15167 esac
15168
15169 # Do not use `cd foo && pwd` to compute absolute paths, because
15170 # the directories may not exist.
15171 case `pwd` in
15172 .) ac_abs_builddir="$ac_dir";;
15173 *)
15174   case "$ac_dir" in
15175   .) ac_abs_builddir=`pwd`;;
15176   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15177   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15178   esac;;
15179 esac
15180 case $ac_abs_builddir in
15181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15182 *)
15183   case ${ac_top_builddir}. in
15184   .) ac_abs_top_builddir=$ac_abs_builddir;;
15185   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15186   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15187   esac;;
15188 esac
15189 case $ac_abs_builddir in
15190 .) ac_abs_srcdir=$ac_srcdir;;
15191 *)
15192   case $ac_srcdir in
15193   .) ac_abs_srcdir=$ac_abs_builddir;;
15194   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15195   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15196   esac;;
15197 esac
15198 case $ac_abs_builddir in
15199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15200 *)
15201   case $ac_top_srcdir in
15202   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15203   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15204   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15205   esac;;
15206 esac
15207
15208
15209   case $INSTALL in
15210   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15211   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15212   esac
15213
15214   # Let's still pretend it is `configure' which instantiates (i.e., don't
15215   # use $as_me), people would be surprised to read:
15216   #    /* config.h.  Generated by config.status.  */
15217   if test x"$ac_file" = x-; then
15218     configure_input=
15219   else
15220     configure_input="$ac_file.  "
15221   fi
15222   configure_input=$configure_input"Generated from `echo $ac_file_in |
15223                                      sed 's,.*/,,'` by configure."
15224
15225   # First look for the input files in the build tree, otherwise in the
15226   # src tree.
15227   ac_file_inputs=`IFS=:
15228     for f in $ac_file_in; do
15229       case $f in
15230       -) echo $tmp/stdin ;;
15231       [\\/$]*)
15232          # Absolute (can't be DOS-style, as IFS=:)
15233          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15234 echo "$as_me: error: cannot find input file: $f" >&2;}
15235    { (exit 1); exit 1; }; }
15236          echo "$f";;
15237       *) # Relative
15238          if test -f "$f"; then
15239            # Build tree
15240            echo "$f"
15241          elif test -f "$srcdir/$f"; then
15242            # Source tree
15243            echo "$srcdir/$f"
15244          else
15245            # /dev/null tree
15246            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15247 echo "$as_me: error: cannot find input file: $f" >&2;}
15248    { (exit 1); exit 1; }; }
15249          fi;;
15250       esac
15251     done` || { (exit 1); exit 1; }
15252
15253   if test x"$ac_file" != x-; then
15254     { echo "$as_me:$LINENO: creating $ac_file" >&5
15255 echo "$as_me: creating $ac_file" >&6;}
15256     rm -f "$ac_file"
15257   fi
15258 _ACEOF
15259 cat >>$CONFIG_STATUS <<_ACEOF
15260   sed "$ac_vpsub
15261 $extrasub
15262 _ACEOF
15263 cat >>$CONFIG_STATUS <<\_ACEOF
15264 :t
15265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15266 s,@configure_input@,$configure_input,;t t
15267 s,@srcdir@,$ac_srcdir,;t t
15268 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15269 s,@top_srcdir@,$ac_top_srcdir,;t t
15270 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15271 s,@builddir@,$ac_builddir,;t t
15272 s,@abs_builddir@,$ac_abs_builddir,;t t
15273 s,@top_builddir@,$ac_top_builddir,;t t
15274 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15275 s,@INSTALL@,$ac_INSTALL,;t t
15276 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15277   rm -f $tmp/stdin
15278   if test x"$ac_file" != x-; then
15279     mv $tmp/out $ac_file
15280   else
15281     cat $tmp/out
15282     rm -f $tmp/out
15283   fi
15284
15285 done
15286 _ACEOF
15287 cat >>$CONFIG_STATUS <<\_ACEOF
15288
15289 #
15290 # CONFIG_COMMANDS section.
15291 #
15292 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15293   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15294   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15295   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15296 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15297          X"$ac_dest" : 'X\(//\)[^/]' \| \
15298          X"$ac_dest" : 'X\(//\)$' \| \
15299          X"$ac_dest" : 'X\(/\)' \| \
15300          .     : '\(.\)' 2>/dev/null ||
15301 echo X"$ac_dest" |
15302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15303           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15304           /^X\(\/\/\)$/{ s//\1/; q; }
15305           /^X\(\/\).*/{ s//\1/; q; }
15306           s/.*/./; q'`
15307   { if $as_mkdir_p; then
15308     mkdir -p "$ac_dir"
15309   else
15310     as_dir="$ac_dir"
15311     as_dirs=
15312     while test ! -d "$as_dir"; do
15313       as_dirs="$as_dir $as_dirs"
15314       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15316          X"$as_dir" : 'X\(//\)[^/]' \| \
15317          X"$as_dir" : 'X\(//\)$' \| \
15318          X"$as_dir" : 'X\(/\)' \| \
15319          .     : '\(.\)' 2>/dev/null ||
15320 echo X"$as_dir" |
15321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15322           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15323           /^X\(\/\/\)$/{ s//\1/; q; }
15324           /^X\(\/\).*/{ s//\1/; q; }
15325           s/.*/./; q'`
15326     done
15327     test ! -n "$as_dirs" || mkdir $as_dirs
15328   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15329 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15330    { (exit 1); exit 1; }; }; }
15331
15332   ac_builddir=.
15333
15334 if test "$ac_dir" != .; then
15335   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15336   # A "../" for each directory in $ac_dir_suffix.
15337   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15338 else
15339   ac_dir_suffix= ac_top_builddir=
15340 fi
15341
15342 case $srcdir in
15343   .)  # No --srcdir option.  We are building in place.
15344     ac_srcdir=.
15345     if test -z "$ac_top_builddir"; then
15346        ac_top_srcdir=.
15347     else
15348        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15349     fi ;;
15350   [\\/]* | ?:[\\/]* )  # Absolute path.
15351     ac_srcdir=$srcdir$ac_dir_suffix;
15352     ac_top_srcdir=$srcdir ;;
15353   *) # Relative path.
15354     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15355     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15356 esac
15357
15358 # Do not use `cd foo && pwd` to compute absolute paths, because
15359 # the directories may not exist.
15360 case `pwd` in
15361 .) ac_abs_builddir="$ac_dir";;
15362 *)
15363   case "$ac_dir" in
15364   .) ac_abs_builddir=`pwd`;;
15365   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15366   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15367   esac;;
15368 esac
15369 case $ac_abs_builddir in
15370 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15371 *)
15372   case ${ac_top_builddir}. in
15373   .) ac_abs_top_builddir=$ac_abs_builddir;;
15374   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15375   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15376   esac;;
15377 esac
15378 case $ac_abs_builddir in
15379 .) ac_abs_srcdir=$ac_srcdir;;
15380 *)
15381   case $ac_srcdir in
15382   .) ac_abs_srcdir=$ac_abs_builddir;;
15383   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15384   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15385   esac;;
15386 esac
15387 case $ac_abs_builddir in
15388 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15389 *)
15390   case $ac_top_srcdir in
15391   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15392   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15393   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15394   esac;;
15395 esac
15396
15397
15398   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15399 echo "$as_me: executing $ac_dest commands" >&6;}
15400   case $ac_dest in
15401     default-1 )
15402     for ac_file in $CONFIG_FILES; do
15403       # Support "outfile[:infile[:infile...]]"
15404       case "$ac_file" in
15405         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15406       esac
15407       # PO directories have a Makefile.in generated from Makefile.in.in.
15408       case "$ac_file" in */Makefile.in)
15409         # Adjust a relative srcdir.
15410         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15411         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15412         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15413         # In autoconf-2.13 it is called $ac_given_srcdir.
15414         # In autoconf-2.50 it is called $srcdir.
15415         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15416         case "$ac_given_srcdir" in
15417           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15418           /*) top_srcdir="$ac_given_srcdir" ;;
15419           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15420         esac
15421         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15422           rm -f "$ac_dir/POTFILES"
15423           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15424           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15425           POMAKEFILEDEPS="POTFILES.in"
15426           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15427           # on $ac_dir but don't depend on user-specified configuration
15428           # parameters.
15429           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15430             # The LINGUAS file contains the set of available languages.
15431             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15432               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15433             fi
15434             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15435             # Hide the ALL_LINGUAS assigment from automake.
15436             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15437             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15438           else
15439             # The set of available languages was given in configure.in.
15440             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15441           fi
15442           # Compute POFILES
15443           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15444           # Compute UPDATEPOFILES
15445           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15446           # Compute DUMMYPOFILES
15447           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15448           # Compute GMOFILES
15449           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15450           case "$ac_given_srcdir" in
15451             .) srcdirpre= ;;
15452             *) srcdirpre='$(srcdir)/' ;;
15453           esac
15454           POFILES=
15455           UPDATEPOFILES=
15456           DUMMYPOFILES=
15457           GMOFILES=
15458           for lang in $ALL_LINGUAS; do
15459             POFILES="$POFILES $srcdirpre$lang.po"
15460             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15461             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15462             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15463           done
15464           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15465           # environment variable.
15466           INST_LINGUAS=
15467           if test -n "$ALL_LINGUAS"; then
15468             for presentlang in $ALL_LINGUAS; do
15469               useit=no
15470               if test "%UNSET%" != "$LINGUAS"; then
15471                 desiredlanguages="$LINGUAS"
15472               else
15473                 desiredlanguages="$ALL_LINGUAS"
15474               fi
15475               for desiredlang in $desiredlanguages; do
15476                 # Use the presentlang catalog if desiredlang is
15477                 #   a. equal to presentlang, or
15478                 #   b. a variant of presentlang (because in this case,
15479                 #      presentlang can be used as a fallback for messages
15480                 #      which are not translated in the desiredlang catalog).
15481                 case "$desiredlang" in
15482                   "$presentlang"*) useit=yes;;
15483                 esac
15484               done
15485               if test $useit = yes; then
15486                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15487               fi
15488             done
15489           fi
15490           CATALOGS=
15491           if test -n "$INST_LINGUAS"; then
15492             for lang in $INST_LINGUAS; do
15493               CATALOGS="$CATALOGS $lang.gmo"
15494             done
15495           fi
15496           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15497           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"
15498           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15499             if test -f "$f"; then
15500               case "$f" in
15501                 *.orig | *.bak | *~) ;;
15502                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15503               esac
15504             fi
15505           done
15506         fi
15507         ;;
15508       esac
15509     done ;;
15510   esac
15511 done
15512 _ACEOF
15513
15514 cat >>$CONFIG_STATUS <<\_ACEOF
15515
15516 { (exit 0); exit 0; }
15517 _ACEOF
15518 chmod +x $CONFIG_STATUS
15519 ac_clean_files=$ac_clean_files_save
15520
15521
15522 # configure is writing to config.log, and then calls config.status.
15523 # config.status does its own redirection, appending to config.log.
15524 # Unfortunately, on DOS this fails, as config.log is still kept open
15525 # by configure, so config.status won't be able to write to it; its
15526 # output is simply discarded.  So we exec the FD to /dev/null,
15527 # effectively closing config.log, so it can be properly (re)opened and
15528 # appended to by config.status.  When coming back to configure, we
15529 # need to make the FD available again.
15530 if test "$no_create" != yes; then
15531   ac_cs_success=:
15532   ac_config_status_args=
15533   test "$silent" = yes &&
15534     ac_config_status_args="$ac_config_status_args --quiet"
15535   exec 5>/dev/null
15536   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15537   exec 5>>config.log
15538   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15539   # would make configure fail if this is the last instruction.
15540   $ac_cs_success || { (exit 1); exit 1; }
15541 fi
15542