Whamcloud - gitweb
517139a093ef7b92d5c892aa15de73ce1567d061
[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   --enable-old-bitops     Use old (non-standard but native) bitmask operations
865   --disable-nls           do not use Native Language Support
866   --disable-rpath         do not hardcode runtime library paths
867
868 Optional Packages:
869   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
870   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
871   --with-diet-libc      Use diet libc
872   --with-cc=COMPILER      select compiler to use
873   --with-linker=LINKER    select linker to use
874   --with-ccopts=CCOPTS    select compiler command line options
875   --with-ldopts=LDOPTS    select linker command line options
876   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
877   --with-gnu-ld           assume the C compiler uses GNU ld default=no
878   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
879   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
880   --with-included-gettext use the GNU gettext library included here
881   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
882   --without-libintl-prefix     don't search for libintl in includedir and libdir
883
884 Some influential environment variables:
885   CC          C compiler command
886   CFLAGS      C compiler flags
887   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
888               nonstandard directory <lib dir>
889   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
890               headers in a nonstandard directory <include dir>
891   CPP         C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903     test -d $ac_dir || continue
904     ac_builddir=.
905
906 if test "$ac_dir" != .; then
907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908   # A "../" for each directory in $ac_dir_suffix.
909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911   ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915   .)  # No --srcdir option.  We are building in place.
916     ac_srcdir=.
917     if test -z "$ac_top_builddir"; then
918        ac_top_srcdir=.
919     else
920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921     fi ;;
922   [\\/]* | ?:[\\/]* )  # Absolute path.
923     ac_srcdir=$srcdir$ac_dir_suffix;
924     ac_top_srcdir=$srcdir ;;
925   *) # Relative path.
926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
934 *)
935   case "$ac_dir" in
936   .) ac_abs_builddir=`pwd`;;
937   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938   *) ac_abs_builddir=`pwd`/"$ac_dir";;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *)
944   case ${ac_top_builddir}. in
945   .) ac_abs_top_builddir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
952 *)
953   case $ac_srcdir in
954   .) ac_abs_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *)
962   case $ac_top_srcdir in
963   .) ac_abs_top_srcdir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966   esac;;
967 esac
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd "$ac_popdir"
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996   exit 0
997 fi
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1002
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.59.  Invocation command line was
1005
1006   $ $0 $@
1007
1008 _ACEOF
1009 {
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1014
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1023
1024 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1025 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1028 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1029 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1030 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1031
1032 _ASUNAME
1033
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1036 do
1037   IFS=$as_save_IFS
1038   test -z "$as_dir" && as_dir=.
1039   echo "PATH: $as_dir"
1040 done
1041
1042 } >&5
1043
1044 cat >&5 <<_ACEOF
1045
1046
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1050
1051 _ACEOF
1052
1053
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1065 do
1066   for ac_arg
1067   do
1068     case $ac_arg in
1069     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071     | -silent | --silent | --silen | --sile | --sil)
1072       continue ;;
1073     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075     esac
1076     case $ac_pass in
1077     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078     2)
1079       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080       if test $ac_must_keep_next = true; then
1081         ac_must_keep_next=false # Got value, back to normal.
1082       else
1083         case $ac_arg in
1084           *=* | --config-cache | -C | -disable-* | --disable-* \
1085           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087           | -with-* | --with-* | -without-* | --without-* | --x)
1088             case "$ac_configure_args0 " in
1089               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090             esac
1091             ;;
1092           -* ) ac_must_keep_next=true ;;
1093         esac
1094       fi
1095       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096       # Get rid of the leading space.
1097       ac_sep=" "
1098       ;;
1099     esac
1100   done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log.  We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111   # Save into config.log some information that might help in debugging.
1112   {
1113     echo
1114
1115     cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120     echo
1121     # The following way of writing the cache mishandles newlines in values,
1122 {
1123   (set) 2>&1 |
1124     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125     *ac_space=\ *)
1126       sed -n \
1127         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129       ;;
1130     *)
1131       sed -n \
1132         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133       ;;
1134     esac;
1135 }
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143     echo
1144     for ac_var in $ac_subst_vars
1145     do
1146       eval ac_val=$`echo $ac_var`
1147       echo "$ac_var='"'"'$ac_val'"'"'"
1148     done | sort
1149     echo
1150
1151     if test -n "$ac_subst_files"; then
1152       cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157       echo
1158       for ac_var in $ac_subst_files
1159       do
1160         eval ac_val=$`echo $ac_var`
1161         echo "$ac_var='"'"'$ac_val'"'"'"
1162       done | sort
1163       echo
1164     fi
1165
1166     if test -s confdefs.h; then
1167       cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172       echo
1173       sed "/^$/d" confdefs.h | sort
1174       echo
1175     fi
1176     test "$ac_signal" != 0 &&
1177       echo "$as_me: caught signal $ac_signal"
1178     echo "$as_me: exit $exit_status"
1179   } >&5
1180   rm -f core *.core &&
1181   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182     exit $exit_status
1183      ' 0
1184 for ac_signal in 1 2 13 15; do
1185   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1188
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1193
1194 # Predefined preprocessor variables.
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1219
1220
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224   if test "x$prefix" != xNONE; then
1225     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226   else
1227     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228   fi
1229 fi
1230 for ac_site_file in $CONFIG_SITE; do
1231   if test -r "$ac_site_file"; then
1232     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234     sed 's/^/| /' "$ac_site_file" >&5
1235     . "$ac_site_file"
1236   fi
1237 done
1238
1239 if test -r "$cache_file"; then
1240   # Some versions of bash will fail to source /dev/null (special
1241   # files actually), so we avoid doing that.
1242   if test -f "$cache_file"; then
1243     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245     case $cache_file in
1246       [\\/]* | ?:[\\/]* ) . $cache_file;;
1247       *)                      . ./$cache_file;;
1248     esac
1249   fi
1250 else
1251   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253   >$cache_file
1254 fi
1255
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262   eval ac_new_set=\$ac_env_${ac_var}_set
1263   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264   eval ac_new_val="\$ac_env_${ac_var}_value"
1265   case $ac_old_set,$ac_new_set in
1266     set,)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,set)
1271       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273       ac_cache_corrupted=: ;;
1274     ,);;
1275     *)
1276       if test "x$ac_old_val" != "x$ac_new_val"; then
1277         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1280 echo "$as_me:   former value:  $ac_old_val" >&2;}
1281         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1282 echo "$as_me:   current value: $ac_new_val" >&2;}
1283         ac_cache_corrupted=:
1284       fi;;
1285   esac
1286   # Pass precious variables to config.status.
1287   if test "$ac_new_set" = set; then
1288     case $ac_new_val in
1289     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291     *) ac_arg=$ac_var=$ac_new_val ;;
1292     esac
1293     case " $ac_configure_args " in
1294       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1295       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296     esac
1297   fi
1298 done
1299 if $ac_cache_corrupted; then
1300   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304    { (exit 1); exit 1; }; }
1305 fi
1306
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 ac_aux_dir=
1333 for ac_dir in config $srcdir/config; do
1334   if test -f $ac_dir/install-sh; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/install-sh -c"
1337     break
1338   elif test -f $ac_dir/install.sh; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/install.sh -c"
1341     break
1342   elif test -f $ac_dir/shtool; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/shtool install -c"
1345     break
1346   fi
1347 done
1348 if test -z "$ac_aux_dir"; then
1349   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1351    { (exit 1); exit 1; }; }
1352 fi
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356
1357 MCONFIG=./MCONFIG
1358
1359 BINARY_TYPE=bin
1360 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1361         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1362 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1363         | tr \" " "`
1364 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1365 MONTH=`echo $DATE | awk -F- '{print $2}'`
1366 YEAR=`echo $DATE | awk -F- '{print $3}'`
1367
1368 if expr $YEAR ">" 1900 > /dev/null ; then
1369         E2FSPROGS_YEAR=$YEAR
1370 elif expr $YEAR ">" 90 >/dev/null ; then
1371         E2FSPROGS_YEAR=19$YEAR
1372 else
1373         E2FSPROGS_YEAR=20$YEAR
1374 fi
1375
1376 case $MONTH in
1377 Jan)    E2FSPROGS_MONTH="January" ;;
1378 Feb)    E2FSPROGS_MONTH="February" ;;
1379 Mar)    E2FSPROGS_MONTH="March" ;;
1380 Apr)    E2FSPROGS_MONTH="April" ;;
1381 May)    E2FSPROGS_MONTH="May" ;;
1382 Jun)    E2FSPROGS_MONTH="June" ;;
1383 Jul)    E2FSPROGS_MONTH="July" ;;
1384 Aug)    E2FSPROGS_MONTH="August" ;;
1385 Sep)    E2FSPROGS_MONTH="September" ;;
1386 Oct)    E2FSPROGS_MONTH="October" ;;
1387 Nov)    E2FSPROGS_MONTH="November" ;;
1388 Dec)    E2FSPROGS_MONTH="December" ;;
1389 *)      echo "Unknown month $MONTH??" ;;
1390 esac
1391
1392 unset DATE MONTH YEAR
1393 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1394 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1395
1396
1397
1398
1399 # Make sure we can run config.sub.
1400 $ac_config_sub sun4 >/dev/null 2>&1 ||
1401   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403    { (exit 1); exit 1; }; }
1404
1405 echo "$as_me:$LINENO: checking build system type" >&5
1406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407 if test "${ac_cv_build+set}" = set; then
1408   echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410   ac_cv_build_alias=$build_alias
1411 test -z "$ac_cv_build_alias" &&
1412   ac_cv_build_alias=`$ac_config_guess`
1413 test -z "$ac_cv_build_alias" &&
1414   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416    { (exit 1); exit 1; }; }
1417 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420    { (exit 1); exit 1; }; }
1421
1422 fi
1423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424 echo "${ECHO_T}$ac_cv_build" >&6
1425 build=$ac_cv_build
1426 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431 echo "$as_me:$LINENO: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438   ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442    { (exit 1); exit 1; }; }
1443
1444 fi
1445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1447 host=$ac_cv_host
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451
1452
1453
1454 # Check whether --with-diet-libc or --without-diet-libc was given.
1455 if test "${with_diet_libc+set}" = set; then
1456   withval="$with_diet_libc"
1457   CC="diet cc -nostdinc"
1458 echo "$as_me:$LINENO: result: CC=$CC" >&5
1459 echo "${ECHO_T}CC=$CC" >&6
1460 fi;
1461 # Check whether --with-cc or --without-cc was given.
1462 if test "${with_cc+set}" = set; then
1463   withval="$with_cc"
1464   echo "$as_me:$LINENO: result: CC=$withval" >&5
1465 echo "${ECHO_T}CC=$withval" >&6
1466 CC=$withval
1467 else
1468   if test -z "$CC" ; then CC=cc; fi
1469 echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1470 echo "${ECHO_T}CC defaults to $CC" >&6
1471 fi; export CC
1472
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478 if test -n "$ac_tool_prefix"; then
1479   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_CC+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   if test -n "$CC"; then
1487   ac_cv_prog_CC="$CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503 fi
1504 fi
1505 CC=$ac_cv_prog_CC
1506 if test -n "$CC"; then
1507   echo "$as_me:$LINENO: result: $CC" >&5
1508 echo "${ECHO_T}$CC" >&6
1509 else
1510   echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1512 fi
1513
1514 fi
1515 if test -z "$ac_cv_prog_CC"; then
1516   ac_ct_CC=$CC
1517   # Extract the first word of "gcc", so it can be a program name with args.
1518 set dummy gcc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   if test -n "$ac_ct_CC"; then
1525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     ac_cv_prog_ac_ct_CC="gcc"
1535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536     break 2
1537   fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544 if test -n "$ac_ct_CC"; then
1545   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546 echo "${ECHO_T}$ac_ct_CC" >&6
1547 else
1548   echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552   CC=$ac_ct_CC
1553 else
1554   CC="$ac_cv_prog_CC"
1555 fi
1556
1557 if test -z "$CC"; then
1558   if test -n "$ac_tool_prefix"; then
1559   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1560 set dummy ${ac_tool_prefix}cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_CC+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   if test -n "$CC"; then
1567   ac_cv_prog_CC="$CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572   IFS=$as_save_IFS
1573   test -z "$as_dir" && as_dir=.
1574   for ac_exec_ext in '' $ac_executable_extensions; do
1575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576     ac_cv_prog_CC="${ac_tool_prefix}cc"
1577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578     break 2
1579   fi
1580 done
1581 done
1582
1583 fi
1584 fi
1585 CC=$ac_cv_prog_CC
1586 if test -n "$CC"; then
1587   echo "$as_me:$LINENO: result: $CC" >&5
1588 echo "${ECHO_T}$CC" >&6
1589 else
1590   echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 fi
1593
1594 fi
1595 if test -z "$ac_cv_prog_CC"; then
1596   ac_ct_CC=$CC
1597   # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$ac_ct_CC"; then
1605   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606 else
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   for ac_exec_ext in '' $ac_executable_extensions; do
1613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614     ac_cv_prog_ac_ct_CC="cc"
1615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616     break 2
1617   fi
1618 done
1619 done
1620
1621 fi
1622 fi
1623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1624 if test -n "$ac_ct_CC"; then
1625   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1626 echo "${ECHO_T}$ac_ct_CC" >&6
1627 else
1628   echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1630 fi
1631
1632   CC=$ac_ct_CC
1633 else
1634   CC="$ac_cv_prog_CC"
1635 fi
1636
1637 fi
1638 if test -z "$CC"; then
1639   # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_CC+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   if test -n "$CC"; then
1647   ac_cv_prog_CC="$CC" # Let the user override the test.
1648 else
1649   ac_prog_rejected=no
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1652 do
1653   IFS=$as_save_IFS
1654   test -z "$as_dir" && as_dir=.
1655   for ac_exec_ext in '' $ac_executable_extensions; do
1656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1658        ac_prog_rejected=yes
1659        continue
1660      fi
1661     ac_cv_prog_CC="cc"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 if test $ac_prog_rejected = yes; then
1669   # We found a bogon in the path, so make sure we never use it.
1670   set dummy $ac_cv_prog_CC
1671   shift
1672   if test $# != 0; then
1673     # We chose a different compiler from the bogus one.
1674     # However, it has the same basename, so the bogon will be chosen
1675     # first if we set CC to just the basename; use the full file name.
1676     shift
1677     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1678   fi
1679 fi
1680 fi
1681 fi
1682 CC=$ac_cv_prog_CC
1683 if test -n "$CC"; then
1684   echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691 fi
1692 if test -z "$CC"; then
1693   if test -n "$ac_tool_prefix"; then
1694   for ac_prog in cl
1695   do
1696     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$CC"; then
1704   ac_cv_prog_CC="$CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   for ac_exec_ext in '' $ac_executable_extensions; do
1712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715     break 2
1716   fi
1717 done
1718 done
1719
1720 fi
1721 fi
1722 CC=$ac_cv_prog_CC
1723 if test -n "$CC"; then
1724   echo "$as_me:$LINENO: result: $CC" >&5
1725 echo "${ECHO_T}$CC" >&6
1726 else
1727   echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 fi
1730
1731     test -n "$CC" && break
1732   done
1733 fi
1734 if test -z "$CC"; then
1735   ac_ct_CC=$CC
1736   for ac_prog in cl
1737 do
1738   # Extract the first word of "$ac_prog", so it can be a program name with args.
1739 set dummy $ac_prog; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   if test -n "$ac_ct_CC"; then
1746   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   for ac_exec_ext in '' $ac_executable_extensions; do
1754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755     ac_cv_prog_ac_ct_CC="$ac_prog"
1756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757     break 2
1758   fi
1759 done
1760 done
1761
1762 fi
1763 fi
1764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765 if test -n "$ac_ct_CC"; then
1766   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767 echo "${ECHO_T}$ac_ct_CC" >&6
1768 else
1769   echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1771 fi
1772
1773   test -n "$ac_ct_CC" && break
1774 done
1775
1776   CC=$ac_ct_CC
1777 fi
1778
1779 fi
1780
1781
1782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1783 See \`config.log' for more details." >&5
1784 echo "$as_me: error: no acceptable C compiler found in \$PATH
1785 See \`config.log' for more details." >&2;}
1786    { (exit 1); exit 1; }; }
1787
1788 # Provide some information about the compiler.
1789 echo "$as_me:$LINENO:" \
1790      "checking for C compiler version" >&5
1791 ac_compiler=`set X $ac_compile; echo $2`
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1793   (eval $ac_compiler --version </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1798   (eval $ac_compiler -v </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1803   (eval $ac_compiler -V </dev/null >&5) 2>&5
1804   ac_status=$?
1805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806   (exit $ac_status); }
1807
1808 cat >conftest.$ac_ext <<_ACEOF
1809 /* confdefs.h.  */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h.  */
1814
1815 int
1816 main ()
1817 {
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1827 # of exeext.
1828 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1829 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832   (eval $ac_link_default) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }; then
1836   # Find the output, starting from the most likely.  This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838 # resort.
1839
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 ac_cv_exeext=
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 do
1846   test -f "$ac_file" || continue
1847   case $ac_file in
1848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849         ;;
1850     conftest.$ac_ext )
1851         # This is the source file.
1852         ;;
1853     [ab].out )
1854         # We found the default executable, but exeext='' is most
1855         # certainly right.
1856         break;;
1857     *.* )
1858         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859         # FIXME: I believe we export ac_cv_exeext for Libtool,
1860         # but it would be cool to find out if it's true.  Does anybody
1861         # maintain Libtool? --akim.
1862         export ac_cv_exeext
1863         break;;
1864     * )
1865         break;;
1866   esac
1867 done
1868 else
1869   echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876    { (exit 77); exit 77; }; }
1877 fi
1878
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1882
1883 # Check the compiler produces executables we can run.  If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890   if { ac_try='./$ac_file'
1891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892   (eval $ac_try) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; }; then
1896     cross_compiling=no
1897   else
1898     if test "$cross_compiling" = maybe; then
1899         cross_compiling=yes
1900     else
1901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908     fi
1909   fi
1910 fi
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1913
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run.  If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1922
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926   (eval $ac_link) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; then
1930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 # `rm'.
1934 for ac_file in conftest.exe conftest conftest.*; do
1935   test -f "$ac_file" || continue
1936   case $ac_file in
1937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939           export ac_cv_exeext
1940           break;;
1941     * ) break;;
1942   esac
1943 done
1944 else
1945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1955
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1958 ac_exeext=$EXEEXT
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h.  */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h.  */
1970
1971 int
1972 main ()
1973 {
1974
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 rm -f conftest.o conftest.obj
1980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1981   (eval $ac_compile) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }; then
1985   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1988     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1989        break;;
1990   esac
1991 done
1992 else
1993   echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1999 See \`config.log' for more details." >&2;}
2000    { (exit 1); exit 1; }; }
2001 fi
2002
2003 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2004 fi
2005 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2006 echo "${ECHO_T}$ac_cv_objext" >&6
2007 OBJEXT=$ac_cv_objext
2008 ac_objext=$OBJEXT
2009 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2010 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h.  */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h.  */
2020
2021 int
2022 main ()
2023 {
2024 #ifndef __GNUC__
2025        choke me
2026 #endif
2027
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 rm -f conftest.$ac_objext
2033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034   (eval $ac_compile) 2>conftest.er1
2035   ac_status=$?
2036   grep -v '^ *+' conftest.er1 >conftest.err
2037   rm -f conftest.er1
2038   cat conftest.err >&5
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); } &&
2041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043   (eval $ac_try) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); }; } &&
2047          { ac_try='test -s conftest.$ac_objext'
2048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049   (eval $ac_try) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; }; then
2053   ac_compiler_gnu=yes
2054 else
2055   echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2057
2058 ac_compiler_gnu=no
2059 fi
2060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2062
2063 fi
2064 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066 GCC=`test $ac_compiler_gnu = yes && echo yes`
2067 ac_test_CFLAGS=${CFLAGS+set}
2068 ac_save_CFLAGS=$CFLAGS
2069 CFLAGS="-g"
2070 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_g+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>conftest.er1
2093   ac_status=$?
2094   grep -v '^ *+' conftest.er1 >conftest.err
2095   rm -f conftest.er1
2096   cat conftest.err >&5
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; } &&
2105          { ac_try='test -s conftest.$ac_objext'
2106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107   (eval $ac_try) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }; }; then
2111   ac_cv_prog_cc_g=yes
2112 else
2113   echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 ac_cv_prog_cc_g=no
2117 fi
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 fi
2120 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2121 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2122 if test "$ac_test_CFLAGS" = set; then
2123   CFLAGS=$ac_save_CFLAGS
2124 elif test $ac_cv_prog_cc_g = yes; then
2125   if test "$GCC" = yes; then
2126     CFLAGS="-g -O2"
2127   else
2128     CFLAGS="-g"
2129   fi
2130 else
2131   if test "$GCC" = yes; then
2132     CFLAGS="-O2"
2133   else
2134     CFLAGS=
2135   fi
2136 fi
2137 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2138 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2139 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   ac_cv_prog_cc_stdc=no
2143 ac_save_CC=$CC
2144 cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150 #include <stdarg.h>
2151 #include <stdio.h>
2152 #include <sys/types.h>
2153 #include <sys/stat.h>
2154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2155 struct buf { int x; };
2156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2157 static char *e (p, i)
2158      char **p;
2159      int i;
2160 {
2161   return p[i];
2162 }
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2164 {
2165   char *s;
2166   va_list v;
2167   va_start (v,p);
2168   s = g (p, va_arg (v,int));
2169   va_end (v);
2170   return s;
2171 }
2172
2173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2174    function prototypes and stuff, but not '\xHH' hex character constants.
2175    These don't provoke an error unfortunately, instead are silently treated
2176    as 'x'.  The following induces an error, until -std1 is added to get
2177    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2178    array size at least.  It's necessary to write '\x00'==0 to get something
2179    that's true only with -std1.  */
2180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2181
2182 int test (int i, double x);
2183 struct s1 {int (*f) (int a);};
2184 struct s2 {int (*f) (double a);};
2185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2186 int argc;
2187 char **argv;
2188 int
2189 main ()
2190 {
2191 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 # Don't try gcc -ansi; that turns off useful extensions and
2197 # breaks some systems' header files.
2198 # AIX                   -qlanglvl=ansi
2199 # Ultrix and OSF/1      -std1
2200 # HP-UX 10.20 and later -Ae
2201 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2202 # SVR4                  -Xc -D__EXTENSIONS__
2203 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2204 do
2205   CC="$ac_save_CC $ac_arg"
2206   rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208   (eval $ac_compile) 2>conftest.er1
2209   ac_status=$?
2210   grep -v '^ *+' conftest.er1 >conftest.err
2211   rm -f conftest.er1
2212   cat conftest.err >&5
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); } &&
2215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; } &&
2221          { ac_try='test -s conftest.$ac_objext'
2222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223   (eval $ac_try) 2>&5
2224   ac_status=$?
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); }; }; then
2227   ac_cv_prog_cc_stdc=$ac_arg
2228 break
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 fi
2234 rm -f conftest.err conftest.$ac_objext
2235 done
2236 rm -f conftest.$ac_ext conftest.$ac_objext
2237 CC=$ac_save_CC
2238
2239 fi
2240
2241 case "x$ac_cv_prog_cc_stdc" in
2242   x|xno)
2243     echo "$as_me:$LINENO: result: none needed" >&5
2244 echo "${ECHO_T}none needed" >&6 ;;
2245   *)
2246     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2247 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2248     CC="$CC $ac_cv_prog_cc_stdc" ;;
2249 esac
2250
2251 # Some people use a C++ compiler to compile C.  Since we use `exit',
2252 # in C++ we need to declare it.  In case someone uses the same compiler
2253 # for both compiling C and C++ we need to have the C++ compiler decide
2254 # the declaration of exit, since it's the most demanding environment.
2255 cat >conftest.$ac_ext <<_ACEOF
2256 #ifndef __cplusplus
2257   choke me
2258 #endif
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>conftest.er1
2263   ac_status=$?
2264   grep -v '^ *+' conftest.er1 >conftest.err
2265   rm -f conftest.er1
2266   cat conftest.err >&5
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; } &&
2275          { ac_try='test -s conftest.$ac_objext'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; }; then
2281   for ac_declaration in \
2282    '' \
2283    'extern "C" void std::exit (int) throw (); using std::exit;' \
2284    'extern "C" void std::exit (int); using std::exit;' \
2285    'extern "C" void exit (int) throw ();' \
2286    'extern "C" void exit (int);' \
2287    'void exit (int);'
2288 do
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295 $ac_declaration
2296 #include <stdlib.h>
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   :
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 continue
2332 fi
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334   cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 $ac_declaration
2341 int
2342 main ()
2343 {
2344 exit (42);
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   (eval $ac_compile) 2>conftest.er1
2352   ac_status=$?
2353   grep -v '^ *+' conftest.er1 >conftest.err
2354   rm -f conftest.er1
2355   cat conftest.err >&5
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); } &&
2358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360   (eval $ac_try) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; } &&
2364          { ac_try='test -s conftest.$ac_objext'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; }; then
2370   break
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 fi
2376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377 done
2378 rm -f conftest*
2379 if test -n "$ac_declaration"; then
2380   echo '#ifdef __cplusplus' >>confdefs.h
2381   echo $ac_declaration      >>confdefs.h
2382   echo '#endif'             >>confdefs.h
2383 fi
2384
2385 else
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 fi
2390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 ac_ext=c
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
2397
2398 # Check whether --with-linker or --without-linker was given.
2399 if test "${with_linker+set}" = set; then
2400   withval="$with_linker"
2401   echo "$as_me:$LINENO: result: LD=$withval" >&5
2402 echo "${ECHO_T}LD=$withval" >&6
2403 LD=$withval
2404 else
2405   if test -z "$LD" ; then LD=$CC; fi
2406 echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2407 echo "${ECHO_T}LD defaults to $LD" >&6
2408 fi; export LD
2409
2410
2411 # Check whether --with-ccopts or --without-ccopts was given.
2412 if test "${with_ccopts+set}" = set; then
2413   withval="$with_ccopts"
2414   echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2415 echo "${ECHO_T}CCOPTS is $withval" >&6
2416 CFLAGS=$withval
2417 fi;
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2424 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2425 # On Suns, sometimes $CPP names a directory.
2426 if test -n "$CPP" && test -d "$CPP"; then
2427   CPP=
2428 fi
2429 if test -z "$CPP"; then
2430   if test "${ac_cv_prog_CPP+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433       # Double quotes because CPP needs to be expanded
2434     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2435     do
2436       ac_preproc_ok=false
2437 for ac_c_preproc_warn_flag in '' yes
2438 do
2439   # Use a header file that comes with gcc, so configuring glibc
2440   # with a fresh cross-compiler works.
2441   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442   # <limits.h> exists even on freestanding compilers.
2443   # On the NeXT, cc -E runs the code through the compiler's parser,
2444   # not just through cpp. "Syntax error" is here to catch this case.
2445   cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451 #ifdef __STDC__
2452 # include <limits.h>
2453 #else
2454 # include <assert.h>
2455 #endif
2456                      Syntax error
2457 _ACEOF
2458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460   ac_status=$?
2461   grep -v '^ *+' conftest.er1 >conftest.err
2462   rm -f conftest.er1
2463   cat conftest.err >&5
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); } >/dev/null; then
2466   if test -s conftest.err; then
2467     ac_cpp_err=$ac_c_preproc_warn_flag
2468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469   else
2470     ac_cpp_err=
2471   fi
2472 else
2473   ac_cpp_err=yes
2474 fi
2475 if test -z "$ac_cpp_err"; then
2476   :
2477 else
2478   echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481   # Broken: fails on valid input.
2482 continue
2483 fi
2484 rm -f conftest.err conftest.$ac_ext
2485
2486   # OK, works on sane cases.  Now check whether non-existent headers
2487   # can be detected and how.
2488   cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494 #include <ac_nonexistent.h>
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } >/dev/null; then
2504   if test -s conftest.err; then
2505     ac_cpp_err=$ac_c_preproc_warn_flag
2506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2507   else
2508     ac_cpp_err=
2509   fi
2510 else
2511   ac_cpp_err=yes
2512 fi
2513 if test -z "$ac_cpp_err"; then
2514   # Broken: success on invalid input.
2515 continue
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520   # Passes both tests.
2521 ac_preproc_ok=:
2522 break
2523 fi
2524 rm -f conftest.err conftest.$ac_ext
2525
2526 done
2527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528 rm -f conftest.err conftest.$ac_ext
2529 if $ac_preproc_ok; then
2530   break
2531 fi
2532
2533     done
2534     ac_cv_prog_CPP=$CPP
2535
2536 fi
2537   CPP=$ac_cv_prog_CPP
2538 else
2539   ac_cv_prog_CPP=$CPP
2540 fi
2541 echo "$as_me:$LINENO: result: $CPP" >&5
2542 echo "${ECHO_T}$CPP" >&6
2543 ac_preproc_ok=false
2544 for ac_c_preproc_warn_flag in '' yes
2545 do
2546   # Use a header file that comes with gcc, so configuring glibc
2547   # with a fresh cross-compiler works.
2548   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2549   # <limits.h> exists even on freestanding compilers.
2550   # On the NeXT, cc -E runs the code through the compiler's parser,
2551   # not just through cpp. "Syntax error" is here to catch this case.
2552   cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558 #ifdef __STDC__
2559 # include <limits.h>
2560 #else
2561 # include <assert.h>
2562 #endif
2563                      Syntax error
2564 _ACEOF
2565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567   ac_status=$?
2568   grep -v '^ *+' conftest.er1 >conftest.err
2569   rm -f conftest.er1
2570   cat conftest.err >&5
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } >/dev/null; then
2573   if test -s conftest.err; then
2574     ac_cpp_err=$ac_c_preproc_warn_flag
2575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2576   else
2577     ac_cpp_err=
2578   fi
2579 else
2580   ac_cpp_err=yes
2581 fi
2582 if test -z "$ac_cpp_err"; then
2583   :
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588   # Broken: fails on valid input.
2589 continue
2590 fi
2591 rm -f conftest.err conftest.$ac_ext
2592
2593   # OK, works on sane cases.  Now check whether non-existent headers
2594   # can be detected and how.
2595   cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601 #include <ac_nonexistent.h>
2602 _ACEOF
2603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605   ac_status=$?
2606   grep -v '^ *+' conftest.er1 >conftest.err
2607   rm -f conftest.er1
2608   cat conftest.err >&5
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } >/dev/null; then
2611   if test -s conftest.err; then
2612     ac_cpp_err=$ac_c_preproc_warn_flag
2613     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2614   else
2615     ac_cpp_err=
2616   fi
2617 else
2618   ac_cpp_err=yes
2619 fi
2620 if test -z "$ac_cpp_err"; then
2621   # Broken: success on invalid input.
2622 continue
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627   # Passes both tests.
2628 ac_preproc_ok=:
2629 break
2630 fi
2631 rm -f conftest.err conftest.$ac_ext
2632
2633 done
2634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2635 rm -f conftest.err conftest.$ac_ext
2636 if $ac_preproc_ok; then
2637   :
2638 else
2639   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2642 See \`config.log' for more details." >&2;}
2643    { (exit 1); exit 1; }; }
2644 fi
2645
2646 ac_ext=c
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651
2652
2653 echo "$as_me:$LINENO: checking for egrep" >&5
2654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2655 if test "${ac_cv_prog_egrep+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2659     then ac_cv_prog_egrep='grep -E'
2660     else ac_cv_prog_egrep='egrep'
2661     fi
2662 fi
2663 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2664 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2665  EGREP=$ac_cv_prog_egrep
2666
2667
2668 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2669 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2670 if test "${ac_cv_header_stdc+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679 #include <stdlib.h>
2680 #include <stdarg.h>
2681 #include <string.h>
2682 #include <float.h>
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; } &&
2707          { ac_try='test -s conftest.$ac_objext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   ac_cv_header_stdc=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 ac_cv_header_stdc=no
2719 fi
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721
2722 if test $ac_cv_header_stdc = yes; then
2723   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2724   cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730 #include <string.h>
2731
2732 _ACEOF
2733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734   $EGREP "memchr" >/dev/null 2>&1; then
2735   :
2736 else
2737   ac_cv_header_stdc=no
2738 fi
2739 rm -f conftest*
2740
2741 fi
2742
2743 if test $ac_cv_header_stdc = yes; then
2744   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2745   cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751 #include <stdlib.h>
2752
2753 _ACEOF
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755   $EGREP "free" >/dev/null 2>&1; then
2756   :
2757 else
2758   ac_cv_header_stdc=no
2759 fi
2760 rm -f conftest*
2761
2762 fi
2763
2764 if test $ac_cv_header_stdc = yes; then
2765   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2766   if test "$cross_compiling" = yes; then
2767   :
2768 else
2769   cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775 #include <ctype.h>
2776 #if ((' ' & 0x0FF) == 0x020)
2777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2779 #else
2780 # define ISLOWER(c) \
2781                    (('a' <= (c) && (c) <= 'i') \
2782                      || ('j' <= (c) && (c) <= 'r') \
2783                      || ('s' <= (c) && (c) <= 'z'))
2784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2785 #endif
2786
2787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2788 int
2789 main ()
2790 {
2791   int i;
2792   for (i = 0; i < 256; i++)
2793     if (XOR (islower (i), ISLOWER (i))
2794         || toupper (i) != TOUPPER (i))
2795       exit(2);
2796   exit (0);
2797 }
2798 _ACEOF
2799 rm -f conftest$ac_exeext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801   (eval $ac_link) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; }; then
2810   :
2811 else
2812   echo "$as_me: program exited with status $ac_status" >&5
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 ( exit $ac_status )
2817 ac_cv_header_stdc=no
2818 fi
2819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2820 fi
2821 fi
2822 fi
2823 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2824 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2825 if test $ac_cv_header_stdc = yes; then
2826
2827 cat >>confdefs.h <<\_ACEOF
2828 #define STDC_HEADERS 1
2829 _ACEOF
2830
2831 fi
2832
2833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2844                   inttypes.h stdint.h unistd.h
2845 do
2846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2847 echo "$as_me:$LINENO: checking for $ac_header" >&5
2848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2850   echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852   cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858 $ac_includes_default
2859
2860 #include <$ac_header>
2861 _ACEOF
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864   (eval $ac_compile) 2>conftest.er1
2865   ac_status=$?
2866   grep -v '^ *+' conftest.er1 >conftest.err
2867   rm -f conftest.er1
2868   cat conftest.err >&5
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } &&
2871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   eval "$as_ac_Header=yes"
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 eval "$as_ac_Header=no"
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 fi
2892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2895   cat >>confdefs.h <<_ACEOF
2896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2897 _ACEOF
2898
2899 fi
2900
2901 done
2902
2903
2904 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2905   echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2906 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2907 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 fi
2910 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2911 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2912 else
2913   # Is the header compilable?
2914 echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2915 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h.  */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h.  */
2922 $ac_includes_default
2923 #include <linux/fs.h>
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>conftest.er1
2928   ac_status=$?
2929   grep -v '^ *+' conftest.er1 >conftest.err
2930   rm -f conftest.er1
2931   cat conftest.err >&5
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } &&
2934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; } &&
2940          { ac_try='test -s conftest.$ac_objext'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; }; then
2946   ac_header_compiler=yes
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 ac_header_compiler=no
2952 fi
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2955 echo "${ECHO_T}$ac_header_compiler" >&6
2956
2957 # Is the header present?
2958 echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2959 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 #include <linux/fs.h>
2967 _ACEOF
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } >/dev/null; then
2976   if test -s conftest.err; then
2977     ac_cpp_err=$ac_c_preproc_warn_flag
2978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979   else
2980     ac_cpp_err=
2981   fi
2982 else
2983   ac_cpp_err=yes
2984 fi
2985 if test -z "$ac_cpp_err"; then
2986   ac_header_preproc=yes
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991   ac_header_preproc=no
2992 fi
2993 rm -f conftest.err conftest.$ac_ext
2994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2995 echo "${ECHO_T}$ac_header_preproc" >&6
2996
2997 # So?  What about this header?
2998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2999   yes:no: )
3000     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3001 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3002     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3003 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3004     ac_header_preproc=yes
3005     ;;
3006   no:yes:* )
3007     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3008 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3009     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3010 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3011     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3012 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3013     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3014 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3015     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3016 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3017     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3018 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3019     (
3020       cat <<\_ASBOX
3021 ## ------------------------------------------ ##
3022 ## Report this to the AC_PACKAGE_NAME lists.  ##
3023 ## ------------------------------------------ ##
3024 _ASBOX
3025     ) |
3026       sed "s/^/$as_me: WARNING:     /" >&2
3027     ;;
3028 esac
3029 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3030 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3031 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   ac_cv_header_linux_fs_h=$ac_header_preproc
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3037 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3038
3039 fi
3040 if test $ac_cv_header_linux_fs_h = yes; then
3041   linux_headers=yes
3042 else
3043   linux_headers=no
3044 fi
3045
3046
3047 if test "$linux_headers" != yes; then
3048   LINUX_INCLUDE='-I$(top_builddir)/include'
3049 fi
3050
3051 echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3052 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
3053 if test "$GCC" = yes
3054 then
3055     case "$host_cpu" in
3056         alpha)          addcflags="-mieee" ;;
3057     esac
3058 fi
3059 if test "x$addcflags" != x
3060 then
3061     echo "$as_me:$LINENO: result: $addcflags" >&5
3062 echo "${ECHO_T}$addcflags" >&6
3063     CFLAGS="$addcflags $CFLAGS"
3064 else
3065     echo "$as_me:$LINENO: result: (none)" >&5
3066 echo "${ECHO_T}(none)" >&6
3067 fi
3068 LIB_EXT=.a
3069 STATIC_LIB_EXT=.a
3070 PROFILE_LIB_EXT=.a
3071
3072 # Check whether --with-ldopts or --without-ldopts was given.
3073 if test "${with_ldopts+set}" = set; then
3074   withval="$with_ldopts"
3075   echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3076 echo "${ECHO_T}LDFLAGS is $withval" >&6
3077 LDFLAGS=$withval
3078 else
3079   LDFLAGS=
3080 fi;
3081
3082 # Check whether --with-root-prefix or --without-root-prefix was given.
3083 if test "${with_root_prefix+set}" = set; then
3084   withval="$with_root_prefix"
3085   root_prefix=$withval
3086 else
3087   root_prefix=NONE
3088 fi; # Check whether --enable-compression or --disable-compression was given.
3089 if test "${enable_compression+set}" = set; then
3090   enableval="$enable_compression"
3091   if test "$enableval" = "no"
3092 then
3093         echo "Disabling compression support"
3094 else
3095         cat >>confdefs.h <<\_ACEOF
3096 #define ENABLE_COMPRESSION 1
3097 _ACEOF
3098
3099         echo "Enabling compression support"
3100         echo "WARNING: Compression support is experimental"
3101 fi
3102
3103 else
3104   echo "Disabling compression support by default"
3105
3106 fi;
3107 # Check whether --enable-htree or --disable-htree was given.
3108 if test "${enable_htree+set}" = set; then
3109   enableval="$enable_htree"
3110   if test "$enableval" = "no"
3111 then
3112         HTREE_CMT=#
3113         echo "Disabling htree directory support"
3114 else
3115         HTREE_CMT=
3116         cat >>confdefs.h <<\_ACEOF
3117 #define ENABLE_HTREE 1
3118 _ACEOF
3119
3120         echo "Enabling htree directory support"
3121 fi
3122
3123 else
3124   HTREE_CMT=
3125 cat >>confdefs.h <<\_ACEOF
3126 #define ENABLE_HTREE 1
3127 _ACEOF
3128
3129 echo "Enabling htree directory support by default"
3130
3131 fi;
3132
3133 # Check whether --enable-htree-clear or --disable-htree-clear was given.
3134 if test "${enable_htree_clear+set}" = set; then
3135   enableval="$enable_htree_clear"
3136   if test "$enableval" = "no"
3137 then
3138         HTREE_CLR_CMT=#
3139         echo "Disabling htree clearing"
3140 else
3141         HTREE_CLR_CMT=
3142         cat >>confdefs.h <<\_ACEOF
3143 #define ENABLE_HTREE_CLEAR 1
3144 _ACEOF
3145
3146         echo "Enabling htree clearing"
3147 fi
3148
3149 else
3150   HTREE_CLR_CMT=#
3151 echo "Disabling htree clearing by default"
3152
3153 fi;
3154
3155 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3156 if test "${enable_elf_shlibs+set}" = set; then
3157   enableval="$enable_elf_shlibs"
3158   if test "$enableval" = "no"
3159 then
3160         ELF_CMT=#
3161         MAKEFILE_ELF=/dev/null
3162         echo "Disabling ELF shared libraries"
3163 else
3164         ELF_CMT=
3165         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3166         case "$host_os" in
3167         solaris2.*)
3168                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3169         ;;
3170         esac
3171         BINARY_TYPE=elfbin
3172         LIB_EXT=.so
3173         echo "Enabling ELF shared libraries"
3174 fi
3175
3176 else
3177   MAKEFILE_ELF=/dev/null
3178 ELF_CMT=#
3179 echo "Disabling ELF shared libraries by default"
3180
3181 fi;
3182
3183
3184 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3185 if test "${enable_bsd_shlibs+set}" = set; then
3186   enableval="$enable_bsd_shlibs"
3187   if test "$enableval" = "no"
3188 then
3189         BSDLIB_CMT=#
3190         MAKEFILE_BSDLIB=/dev/null
3191         echo "Disabling BSD shared libraries"
3192 else
3193         BSDLIB_CMT=
3194         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3195         LIB_EXT=.so
3196         case "$host_os" in
3197         darwin*)
3198                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3199                 LIB_EXT=.dylib
3200         ;;
3201         esac
3202         echo "Enabling BSD shared libraries"
3203 fi
3204
3205 else
3206   MAKEFILE_BSDLIB=/dev/null
3207 BSDLIB_CMT=#
3208 echo "Disabling BSD shared libraries by default"
3209
3210 fi;
3211
3212
3213 # Check whether --enable-profile or --disable-profile was given.
3214 if test "${enable_profile+set}" = set; then
3215   enableval="$enable_profile"
3216   if test "$enableval" = "no"
3217 then
3218         PROFILE_CMT=#
3219         MAKEFILE_PROFILE=/dev/null
3220         echo "Disabling profiling libraries"
3221 else
3222         PROFILE_CMT=
3223         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3224         PROFILED_LIB_EXT=_p.a
3225         echo "Building profiling libraries"
3226 fi
3227
3228 else
3229   PROFILE_CMT=#
3230 MAKEFILE_PROFILE=/dev/null
3231 echo "Disabling profiling libraries by default"
3232
3233 fi;
3234
3235
3236 # Check whether --enable-checker or --disable-checker was given.
3237 if test "${enable_checker+set}" = set; then
3238   enableval="$enable_checker"
3239   if test "$enableval" = "no"
3240 then
3241         CHECKER_CMT=#
3242         MAKEFILE_CHECKER=/dev/null
3243         echo "Disabling checker libraries"
3244 else
3245         CHECKER_CMT=
3246         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3247         echo "Building checker libraries"
3248 fi
3249
3250 else
3251   CHECKER_CMT=#
3252 MAKEFILE_CHECKER=/dev/null
3253 echo "Disabling checker libraries by default"
3254
3255 fi;
3256
3257
3258
3259
3260
3261 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3262 if test "${enable_jbd_debug+set}" = set; then
3263   enableval="$enable_jbd_debug"
3264   if test "$enableval" = "no"
3265 then
3266         echo "Disabling journal debugging"
3267 else
3268         cat >>confdefs.h <<\_ACEOF
3269 #define CONFIG_JBD_DEBUG 1
3270 _ACEOF
3271
3272         echo "Enabling journal debugging"
3273 fi
3274
3275 else
3276   echo "Disabling journal debugging by default"
3277
3278 fi;
3279 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3280 if test "${enable_blkid_debug+set}" = set; then
3281   enableval="$enable_blkid_debug"
3282   if test "$enableval" = "no"
3283 then
3284         echo "Disabling blkid debugging"
3285 else
3286         cat >>confdefs.h <<\_ACEOF
3287 #define CONFIG_BLKID_DEBUG 1
3288 _ACEOF
3289
3290         echo "Enabling blkid debugging"
3291 fi
3292
3293 else
3294   echo "Disabling blkid debugging by default"
3295
3296 fi;
3297 # Check whether --enable-testio-debug or --disable-testio-debug was given.
3298 if test "${enable_testio_debug+set}" = set; then
3299   enableval="$enable_testio_debug"
3300   if test "$enableval" = "no"
3301 then
3302         echo "Disabling testio debugging"
3303 else
3304         cat >>confdefs.h <<\_ACEOF
3305 #define CONFIG_TESTIO_DEBUG 1
3306 _ACEOF
3307
3308         echo "Enabling testio debugging"
3309 fi
3310
3311 else
3312   echo "Disabling testio debugging by default"
3313
3314 fi;
3315 # Check whether --enable-swapfs or --disable-swapfs was given.
3316 if test "${enable_swapfs+set}" = set; then
3317   enableval="$enable_swapfs"
3318   if test "$enableval" = "no"
3319 then
3320         SWAPFS_CMT=#
3321         echo "Disabling swapfs support"
3322 else
3323         SWAPFS_CMT=
3324         cat >>confdefs.h <<\_ACEOF
3325 #define ENABLE_SWAPFS 1
3326 _ACEOF
3327
3328         echo "Enabling swapfs support"
3329 fi
3330
3331 else
3332   SWAPFS_CMT=
3333 echo "Enabling swapfs support by default"
3334 cat >>confdefs.h <<\_ACEOF
3335 #define ENABLE_SWAPFS 1
3336 _ACEOF
3337
3338
3339 fi;
3340
3341 # Check whether --enable-debugfs or --disable-debugfs was given.
3342 if test "${enable_debugfs+set}" = set; then
3343   enableval="$enable_debugfs"
3344   if test "$enableval" = "no"
3345 then
3346         echo "Disabling debugfs support"
3347         DEBUGFS_CMT="#"
3348 else
3349         DEBUGFS_CMT=
3350         echo "Enabling debugfs support"
3351 fi
3352
3353 else
3354   echo "Enabling debugfs support by default"
3355 DEBUGFS_CMT=
3356
3357 fi;
3358
3359 # Check whether --enable-imager or --disable-imager was given.
3360 if test "${enable_imager+set}" = set; then
3361   enableval="$enable_imager"
3362   if test "$enableval" = "no"
3363 then
3364         echo "Disabling e2image support"
3365         IMAGER_CMT="#"
3366 else
3367         IMAGER_CMT=
3368         echo "Enabling e2image support"
3369 fi
3370
3371 else
3372   echo "Enabling e2image support by default"
3373 IMAGER_CMT=
3374
3375 fi;
3376
3377 # Check whether --enable-resizer or --disable-resizer was given.
3378 if test "${enable_resizer+set}" = set; then
3379   enableval="$enable_resizer"
3380   if test "$enableval" = "no"
3381 then
3382         echo "Disabling e2resize support"
3383         RESIZER_CMT="#"
3384 else
3385         RESIZER_CMT=
3386         echo "Enabling e2resize support"
3387 fi
3388
3389 else
3390   echo "Enabling e2resize support by default"
3391 RESIZER_CMT=
3392
3393 fi;
3394
3395 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3396 if test "${enable_dynamic_e2fsck+set}" = set; then
3397   enableval="$enable_dynamic_e2fsck"
3398   if test "$enableval" = "no"
3399 then
3400         E2FSCK_TYPE=static
3401         echo "Building e2fsck statically"
3402 else
3403         E2FSCK_TYPE=shared
3404         echo "Building e2fsck dynamically"
3405 fi
3406
3407 else
3408   E2FSCK_TYPE=static
3409 echo "Building e2fsck statically by default"
3410
3411 fi;
3412
3413 # Check whether --enable-fsck or --disable-fsck was given.
3414 if test "${enable_fsck+set}" = set; then
3415   enableval="$enable_fsck"
3416   if test "$enableval" = "no"
3417 then
3418         FSCK_PROG='' FSCK_MAN=''
3419         echo "Not building fsck wrapper"
3420 else
3421         FSCK_PROG=fsck FSCK_MAN=fsck.8
3422         echo "Building fsck wrapper"
3423 fi
3424
3425 else
3426   case "$host_os" in
3427   gnu*)
3428     FSCK_PROG='' FSCK_MAN=''
3429     echo "Not building fsck wrapper by default"
3430     ;;
3431   *)
3432     FSCK_PROG=fsck FSCK_MAN=fsck.8
3433     echo "Building fsck wrapper by default"
3434 esac
3435
3436 fi;
3437
3438
3439 # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3440 if test "${enable_e2initrd_helper+set}" = set; then
3441   enableval="$enable_e2initrd_helper"
3442   if test "$enableval" = "no"
3443 then
3444         E2INITRD_PROG='' E2INITRD_MAN=''
3445         echo "Not building e2initrd helper"
3446 else
3447         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3448         echo "Building e2initrd helper"
3449 fi
3450
3451 else
3452   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3453 echo "Building e2initrd helper by default"
3454
3455 fi;
3456
3457
3458 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3459
3460 # Check whether --enable-old-bitops or --disable-old-bitops was given.
3461 if test "${enable_old_bitops+set}" = set; then
3462   enableval="$enable_old_bitops"
3463   if test "$enableval" = "no"
3464 then
3465         echo "Using new (standard) bitmask operations"
3466 else
3467         cat >>confdefs.h <<\_ACEOF
3468 #define EXT2_OLD_BITOPS 1
3469 _ACEOF
3470
3471         echo "Using old (native) bitmask operations"
3472
3473 fi
3474
3475 else
3476   echo "Using standard bitmask operations by default"
3477
3478 fi;
3479 GETTEXT_PACKAGE=e2fsprogs
3480 PACKAGE=e2fsprogs
3481 VERSION="$E2FSPROGS_VERSION"
3482 VERSION=0.14.1
3483 cat >>confdefs.h <<_ACEOF
3484 #define PACKAGE "$PACKAGE"
3485 _ACEOF
3486
3487 cat >>confdefs.h <<_ACEOF
3488 #define VERSION "$VERSION"
3489 _ACEOF
3490
3491
3492
3493
3494
3495 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3497 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3498 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   cat >conftest.make <<\_ACEOF
3502 all:
3503         @echo 'ac_maketemp="$(MAKE)"'
3504 _ACEOF
3505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3506 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3507 if test -n "$ac_maketemp"; then
3508   eval ac_cv_prog_make_${ac_make}_set=yes
3509 else
3510   eval ac_cv_prog_make_${ac_make}_set=no
3511 fi
3512 rm -f conftest.make
3513 fi
3514 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3515   echo "$as_me:$LINENO: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6
3517   SET_MAKE=
3518 else
3519   echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521   SET_MAKE="MAKE=${MAKE-make}"
3522 fi
3523
3524 # Find a good install program.  We prefer a C program (faster),
3525 # so one script is as good as another.  But avoid the broken or
3526 # incompatible versions:
3527 # SysV /etc/install, /usr/sbin/install
3528 # SunOS /usr/etc/install
3529 # IRIX /sbin/install
3530 # AIX /bin/install
3531 # AmigaOS /C/install, which installs bootblocks on floppy discs
3532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3535 # OS/2's system install, which has a completely different semantic
3536 # ./install, which can be erroneously created by make from ./install.sh.
3537 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3538 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3539 if test -z "$INSTALL"; then
3540 if test "${ac_cv_path_install+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546   IFS=$as_save_IFS
3547   test -z "$as_dir" && as_dir=.
3548   # Account for people who put trailing slashes in PATH elements.
3549 case $as_dir/ in
3550   ./ | .// | /cC/* | \
3551   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3552   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3553   /usr/ucb/* ) ;;
3554   *)
3555     # OSF1 and SCO ODT 3.0 have their own names for install.
3556     # Don't use installbsd from OSF since it installs stuff as root
3557     # by default.
3558     for ac_prog in ginstall scoinst install; do
3559       for ac_exec_ext in '' $ac_executable_extensions; do
3560         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3561           if test $ac_prog = install &&
3562             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3563             # AIX install.  It has an incompatible calling convention.
3564             :
3565           elif test $ac_prog = install &&
3566             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567             # program-specific install script used by HP pwplus--don't use.
3568             :
3569           else
3570             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3571             break 3
3572           fi
3573         fi
3574       done
3575     done
3576     ;;
3577 esac
3578 done
3579
3580
3581 fi
3582   if test "${ac_cv_path_install+set}" = set; then
3583     INSTALL=$ac_cv_path_install
3584   else
3585     # As a last resort, use the slow shell script.  We don't cache a
3586     # path for INSTALL within a source directory, because that will
3587     # break other packages using the cache if that directory is
3588     # removed, or if the path is relative.
3589     INSTALL=$ac_install_sh
3590   fi
3591 fi
3592 echo "$as_me:$LINENO: result: $INSTALL" >&5
3593 echo "${ECHO_T}$INSTALL" >&6
3594
3595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3596 # It thinks the first close brace ends the variable substitution.
3597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598
3599 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3600
3601 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3602
3603
3604         MKINSTALLDIRS=
3605   if test -n "$ac_aux_dir"; then
3606     case "$ac_aux_dir" in
3607       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3608       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3609     esac
3610   fi
3611   if test -z "$MKINSTALLDIRS"; then
3612     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3613   fi
3614
3615
3616
3617   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3618 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3619     # Check whether --enable-nls or --disable-nls was given.
3620 if test "${enable_nls+set}" = set; then
3621   enableval="$enable_nls"
3622   USE_NLS=$enableval
3623 else
3624   USE_NLS=yes
3625 fi;
3626   echo "$as_me:$LINENO: result: $USE_NLS" >&5
3627 echo "${ECHO_T}$USE_NLS" >&6
3628
3629
3630
3631
3632
3633
3634 # Prepare PATH_SEPARATOR.
3635 # The user is always right.
3636 if test "${PATH_SEPARATOR+set}" != set; then
3637   echo "#! /bin/sh" >conf$$.sh
3638   echo  "exit 0"   >>conf$$.sh
3639   chmod +x conf$$.sh
3640   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3641     PATH_SEPARATOR=';'
3642   else
3643     PATH_SEPARATOR=:
3644   fi
3645   rm -f conf$$.sh
3646 fi
3647
3648 # Find out how to test for executable files. Don't use a zero-byte file,
3649 # as systems may use methods other than mode bits to determine executability.
3650 cat >conf$$.file <<_ASEOF
3651 #! /bin/sh
3652 exit 0
3653 _ASEOF
3654 chmod +x conf$$.file
3655 if test -x conf$$.file >/dev/null 2>&1; then
3656   ac_executable_p="test -x"
3657 else
3658   ac_executable_p="test -f"
3659 fi
3660 rm -f conf$$.file
3661
3662 # Extract the first word of "msgfmt", so it can be a program name with args.
3663 set dummy msgfmt; ac_word=$2
3664 echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3666 if test "${ac_cv_path_MSGFMT+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   case "$MSGFMT" in
3670   [\\/]* | ?:[\\/]*)
3671     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3672     ;;
3673   *)
3674     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3675     for ac_dir in $PATH; do
3676       IFS="$ac_save_IFS"
3677       test -z "$ac_dir" && ac_dir=.
3678       for ac_exec_ext in '' $ac_executable_extensions; do
3679         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3680           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3681      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3682             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3683             break 2
3684           fi
3685         fi
3686       done
3687     done
3688     IFS="$ac_save_IFS"
3689   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3690     ;;
3691 esac
3692 fi
3693 MSGFMT="$ac_cv_path_MSGFMT"
3694 if test "$MSGFMT" != ":"; then
3695   echo "$as_me:$LINENO: result: $MSGFMT" >&5
3696 echo "${ECHO_T}$MSGFMT" >&6
3697 else
3698   echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3700 fi
3701
3702   # Extract the first word of "gmsgfmt", so it can be a program name with args.
3703 set dummy gmsgfmt; ac_word=$2
3704 echo "$as_me:$LINENO: checking for $ac_word" >&5
3705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3706 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   case $GMSGFMT in
3710   [\\/]* | ?:[\\/]*)
3711   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3712   ;;
3713   *)
3714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719   for ac_exec_ext in '' $ac_executable_extensions; do
3720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723     break 2
3724   fi
3725 done
3726 done
3727
3728   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3729   ;;
3730 esac
3731 fi
3732 GMSGFMT=$ac_cv_path_GMSGFMT
3733
3734 if test -n "$GMSGFMT"; then
3735   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3736 echo "${ECHO_T}$GMSGFMT" >&6
3737 else
3738   echo "$as_me:$LINENO: result: no" >&5
3739 echo "${ECHO_T}no" >&6
3740 fi
3741
3742
3743
3744 # Prepare PATH_SEPARATOR.
3745 # The user is always right.
3746 if test "${PATH_SEPARATOR+set}" != set; then
3747   echo "#! /bin/sh" >conf$$.sh
3748   echo  "exit 0"   >>conf$$.sh
3749   chmod +x conf$$.sh
3750   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3751     PATH_SEPARATOR=';'
3752   else
3753     PATH_SEPARATOR=:
3754   fi
3755   rm -f conf$$.sh
3756 fi
3757
3758 # Find out how to test for executable files. Don't use a zero-byte file,
3759 # as systems may use methods other than mode bits to determine executability.
3760 cat >conf$$.file <<_ASEOF
3761 #! /bin/sh
3762 exit 0
3763 _ASEOF
3764 chmod +x conf$$.file
3765 if test -x conf$$.file >/dev/null 2>&1; then
3766   ac_executable_p="test -x"
3767 else
3768   ac_executable_p="test -f"
3769 fi
3770 rm -f conf$$.file
3771
3772 # Extract the first word of "xgettext", so it can be a program name with args.
3773 set dummy xgettext; ac_word=$2
3774 echo "$as_me:$LINENO: checking for $ac_word" >&5
3775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3776 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   case "$XGETTEXT" in
3780   [\\/]* | ?:[\\/]*)
3781     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3782     ;;
3783   *)
3784     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3785     for ac_dir in $PATH; do
3786       IFS="$ac_save_IFS"
3787       test -z "$ac_dir" && ac_dir=.
3788       for ac_exec_ext in '' $ac_executable_extensions; do
3789         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3790           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3791      (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
3792             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3793             break 2
3794           fi
3795         fi
3796       done
3797     done
3798     IFS="$ac_save_IFS"
3799   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3800     ;;
3801 esac
3802 fi
3803 XGETTEXT="$ac_cv_path_XGETTEXT"
3804 if test "$XGETTEXT" != ":"; then
3805   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3806 echo "${ECHO_T}$XGETTEXT" >&6
3807 else
3808   echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6
3810 fi
3811
3812     rm -f messages.po
3813
3814
3815 # Prepare PATH_SEPARATOR.
3816 # The user is always right.
3817 if test "${PATH_SEPARATOR+set}" != set; then
3818   echo "#! /bin/sh" >conf$$.sh
3819   echo  "exit 0"   >>conf$$.sh
3820   chmod +x conf$$.sh
3821   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3822     PATH_SEPARATOR=';'
3823   else
3824     PATH_SEPARATOR=:
3825   fi
3826   rm -f conf$$.sh
3827 fi
3828
3829 # Find out how to test for executable files. Don't use a zero-byte file,
3830 # as systems may use methods other than mode bits to determine executability.
3831 cat >conf$$.file <<_ASEOF
3832 #! /bin/sh
3833 exit 0
3834 _ASEOF
3835 chmod +x conf$$.file
3836 if test -x conf$$.file >/dev/null 2>&1; then
3837   ac_executable_p="test -x"
3838 else
3839   ac_executable_p="test -f"
3840 fi
3841 rm -f conf$$.file
3842
3843 # Extract the first word of "msgmerge", so it can be a program name with args.
3844 set dummy msgmerge; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   case "$MSGMERGE" in
3851   [\\/]* | ?:[\\/]*)
3852     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3853     ;;
3854   *)
3855     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3856     for ac_dir in $PATH; do
3857       IFS="$ac_save_IFS"
3858       test -z "$ac_dir" && ac_dir=.
3859       for ac_exec_ext in '' $ac_executable_extensions; do
3860         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3861           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3862             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3863             break 2
3864           fi
3865         fi
3866       done
3867     done
3868     IFS="$ac_save_IFS"
3869   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3870     ;;
3871 esac
3872 fi
3873 MSGMERGE="$ac_cv_path_MSGMERGE"
3874 if test "$MSGMERGE" != ":"; then
3875   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3876 echo "${ECHO_T}$MSGMERGE" >&6
3877 else
3878   echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881
3882
3883       if test "$GMSGFMT" != ":"; then
3884             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3885        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3886       : ;
3887     else
3888       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3889       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3890 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3891       GMSGFMT=":"
3892     fi
3893   fi
3894
3895       if test "$XGETTEXT" != ":"; then
3896             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3897        (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
3898       : ;
3899     else
3900       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3901 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3902       XGETTEXT=":"
3903     fi
3904         rm -f messages.po
3905   fi
3906
3907             ac_config_commands="$ac_config_commands default-1"
3908
3909
3910 if test -n "$ac_tool_prefix"; then
3911   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_RANLIB+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   if test -n "$RANLIB"; then
3919   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935 fi
3936 fi
3937 RANLIB=$ac_cv_prog_RANLIB
3938 if test -n "$RANLIB"; then
3939   echo "$as_me:$LINENO: result: $RANLIB" >&5
3940 echo "${ECHO_T}$RANLIB" >&6
3941 else
3942   echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944 fi
3945
3946 fi
3947 if test -z "$ac_cv_prog_RANLIB"; then
3948   ac_ct_RANLIB=$RANLIB
3949   # Extract the first word of "ranlib", so it can be a program name with args.
3950 set dummy ranlib; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if test -n "$ac_ct_RANLIB"; then
3957   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964   for ac_exec_ext in '' $ac_executable_extensions; do
3965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966     ac_cv_prog_ac_ct_RANLIB="ranlib"
3967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968     break 2
3969   fi
3970 done
3971 done
3972
3973   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3974 fi
3975 fi
3976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3977 if test -n "$ac_ct_RANLIB"; then
3978   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3979 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3980 else
3981   echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3983 fi
3984
3985   RANLIB=$ac_ct_RANLIB
3986 else
3987   RANLIB="$ac_cv_prog_RANLIB"
3988 fi
3989
3990
3991         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3992 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3993 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   ac_check_lib_save_LIBS=$LIBS
3997 LIBS="-lcposix  $LIBS"
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h.  */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h.  */
4004
4005 /* Override any gcc2 internal prototype to avoid an error.  */
4006 #ifdef __cplusplus
4007 extern "C"
4008 #endif
4009 /* We use char because int might match the return type of a gcc2
4010    builtin and then its argument prototype would still apply.  */
4011 char strerror ();
4012 int
4013 main ()
4014 {
4015 strerror ();
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext conftest$ac_exeext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022   (eval $ac_link) 2>conftest.er1
4023   ac_status=$?
4024   grep -v '^ *+' conftest.er1 >conftest.err
4025   rm -f conftest.er1
4026   cat conftest.err >&5
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } &&
4029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031   (eval $ac_try) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }; } &&
4035          { ac_try='test -s conftest$ac_exeext'
4036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037   (eval $ac_try) 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); }; }; then
4041   ac_cv_lib_cposix_strerror=yes
4042 else
4043   echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046 ac_cv_lib_cposix_strerror=no
4047 fi
4048 rm -f conftest.err conftest.$ac_objext \
4049       conftest$ac_exeext conftest.$ac_ext
4050 LIBS=$ac_check_lib_save_LIBS
4051 fi
4052 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4053 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4054 if test $ac_cv_lib_cposix_strerror = yes; then
4055   LIBS="$LIBS -lcposix"
4056 fi
4057
4058
4059
4060 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4061 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4062 if test "${ac_cv_c_const+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071
4072 int
4073 main ()
4074 {
4075 /* FIXME: Include the comments suggested by Paul. */
4076 #ifndef __cplusplus
4077   /* Ultrix mips cc rejects this.  */
4078   typedef int charset[2];
4079   const charset x;
4080   /* SunOS 4.1.1 cc rejects this.  */
4081   char const *const *ccp;
4082   char **p;
4083   /* NEC SVR4.0.2 mips cc rejects this.  */
4084   struct point {int x, y;};
4085   static struct point const zero = {0,0};
4086   /* AIX XL C 1.02.0.0 rejects this.
4087      It does not let you subtract one const X* pointer from another in
4088      an arm of an if-expression whose if-part is not a constant
4089      expression */
4090   const char *g = "string";
4091   ccp = &g + (g ? g-g : 0);
4092   /* HPUX 7.0 cc rejects these. */
4093   ++ccp;
4094   p = (char**) ccp;
4095   ccp = (char const *const *) p;
4096   { /* SCO 3.2v4 cc rejects this.  */
4097     char *t;
4098     char const *s = 0 ? (char *) 0 : (char const *) 0;
4099
4100     *t++ = 0;
4101   }
4102   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4103     int x[] = {25, 17};
4104     const int *foo = &x[0];
4105     ++foo;
4106   }
4107   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4108     typedef const int *iptr;
4109     iptr p = 0;
4110     ++p;
4111   }
4112   { /* AIX XL C 1.02.0.0 rejects this saying
4113        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4114     struct s { int j; const int *ap[3]; };
4115     struct s *b; b->j = 5;
4116   }
4117   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4118     const int foo = 10;
4119   }
4120 #endif
4121
4122   ;
4123   return 0;
4124 }
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128   (eval $ac_compile) 2>conftest.er1
4129   ac_status=$?
4130   grep -v '^ *+' conftest.er1 >conftest.err
4131   rm -f conftest.er1
4132   cat conftest.err >&5
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } &&
4135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137   (eval $ac_try) 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; } &&
4141          { ac_try='test -s conftest.$ac_objext'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; }; then
4147   ac_cv_c_const=yes
4148 else
4149   echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 ac_cv_c_const=no
4153 fi
4154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155 fi
4156 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4157 echo "${ECHO_T}$ac_cv_c_const" >&6
4158 if test $ac_cv_c_const = no; then
4159
4160 cat >>confdefs.h <<\_ACEOF
4161 #define const
4162 _ACEOF
4163
4164 fi
4165
4166
4167   echo "$as_me:$LINENO: checking for signed" >&5
4168 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4169 if test "${bh_cv_c_signed+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178
4179 int
4180 main ()
4181 {
4182 signed char x;
4183   ;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189   (eval $ac_compile) 2>conftest.er1
4190   ac_status=$?
4191   grep -v '^ *+' conftest.er1 >conftest.err
4192   rm -f conftest.er1
4193   cat conftest.err >&5
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } &&
4196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; } &&
4202          { ac_try='test -s conftest.$ac_objext'
4203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204   (eval $ac_try) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; }; then
4208   bh_cv_c_signed=yes
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 bh_cv_c_signed=no
4214 fi
4215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4216 fi
4217 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4218 echo "${ECHO_T}$bh_cv_c_signed" >&6
4219   if test $bh_cv_c_signed = no; then
4220
4221 cat >>confdefs.h <<\_ACEOF
4222 #define signed
4223 _ACEOF
4224
4225   fi
4226
4227 echo "$as_me:$LINENO: checking for inline" >&5
4228 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4229 if test "${ac_cv_c_inline+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   ac_cv_c_inline=no
4233 for ac_kw in inline __inline__ __inline; do
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240 #ifndef __cplusplus
4241 typedef int foo_t;
4242 static $ac_kw foo_t static_foo () {return 0; }
4243 $ac_kw foo_t foo () {return 0; }
4244 #endif
4245
4246 _ACEOF
4247 rm -f conftest.$ac_objext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249   (eval $ac_compile) 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } &&
4256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258   (eval $ac_try) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; } &&
4262          { ac_try='test -s conftest.$ac_objext'
4263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264   (eval $ac_try) 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; }; then
4268   ac_cv_c_inline=$ac_kw; break
4269 else
4270   echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 fi
4274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4275 done
4276
4277 fi
4278 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4279 echo "${ECHO_T}$ac_cv_c_inline" >&6
4280
4281
4282 case $ac_cv_c_inline in
4283   inline | yes) ;;
4284   *)
4285     case $ac_cv_c_inline in
4286       no) ac_val=;;
4287       *) ac_val=$ac_cv_c_inline;;
4288     esac
4289     cat >>confdefs.h <<_ACEOF
4290 #ifndef __cplusplus
4291 #define inline $ac_val
4292 #endif
4293 _ACEOF
4294     ;;
4295 esac
4296
4297 echo "$as_me:$LINENO: checking for off_t" >&5
4298 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4299 if test "${ac_cv_type_off_t+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h.  */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h.  */
4308 $ac_includes_default
4309 int
4310 main ()
4311 {
4312 if ((off_t *) 0)
4313   return 0;
4314 if (sizeof (off_t))
4315   return 0;
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 rm -f conftest.$ac_objext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322   (eval $ac_compile) 2>conftest.er1
4323   ac_status=$?
4324   grep -v '^ *+' conftest.er1 >conftest.err
4325   rm -f conftest.er1
4326   cat conftest.err >&5
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } &&
4329          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; } &&
4335          { ac_try='test -s conftest.$ac_objext'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   ac_cv_type_off_t=yes
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 ac_cv_type_off_t=no
4347 fi
4348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349 fi
4350 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4351 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4352 if test $ac_cv_type_off_t = yes; then
4353   :
4354 else
4355
4356 cat >>confdefs.h <<_ACEOF
4357 #define off_t long
4358 _ACEOF
4359
4360 fi
4361
4362 echo "$as_me:$LINENO: checking for size_t" >&5
4363 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4364 if test "${ac_cv_type_size_t+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 $ac_includes_default
4374 int
4375 main ()
4376 {
4377 if ((size_t *) 0)
4378   return 0;
4379 if (sizeof (size_t))
4380   return 0;
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387   (eval $ac_compile) 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; } &&
4400          { ac_try='test -s conftest.$ac_objext'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   ac_cv_type_size_t=yes
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_cv_type_size_t=no
4412 fi
4413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4416 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4417 if test $ac_cv_type_size_t = yes; then
4418   :
4419 else
4420
4421 cat >>confdefs.h <<_ACEOF
4422 #define size_t unsigned
4423 _ACEOF
4424
4425 fi
4426
4427
4428   echo "$as_me:$LINENO: checking for long long" >&5
4429 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4430 if test "${ac_cv_type_long_long+set}" = set; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 long long ll = 1LL; int i = 63;
4440 int
4441 main ()
4442 {
4443 long long llmax = (long long) -1;
4444      return ll << i | ll >> i | llmax / ll | llmax % ll;
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext conftest$ac_exeext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451   (eval $ac_link) 2>conftest.er1
4452   ac_status=$?
4453   grep -v '^ *+' conftest.er1 >conftest.err
4454   rm -f conftest.er1
4455   cat conftest.err >&5
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); } &&
4458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460   (eval $ac_try) 2>&5
4461   ac_status=$?
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); }; } &&
4464          { ac_try='test -s conftest$ac_exeext'
4465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466   (eval $ac_try) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; }; then
4470   ac_cv_type_long_long=yes
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 ac_cv_type_long_long=no
4476 fi
4477 rm -f conftest.err conftest.$ac_objext \
4478       conftest$ac_exeext conftest.$ac_ext
4479 fi
4480 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4481 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4482   if test $ac_cv_type_long_long = yes; then
4483
4484 cat >>confdefs.h <<\_ACEOF
4485 #define HAVE_LONG_LONG 1
4486 _ACEOF
4487
4488   fi
4489
4490
4491   echo "$as_me:$LINENO: checking for long double" >&5
4492 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4493 if test "${gt_cv_c_long_double+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   if test "$GCC" = yes; then
4497        gt_cv_c_long_double=yes
4498      else
4499        cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h.  */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h.  */
4505
4506          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
4507          long double foo = 0.0;
4508          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4509          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4510
4511 int
4512 main ()
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521   (eval $ac_compile) 2>conftest.er1
4522   ac_status=$?
4523   grep -v '^ *+' conftest.er1 >conftest.err
4524   rm -f conftest.er1
4525   cat conftest.err >&5
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); } &&
4528          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; } &&
4534          { ac_try='test -s conftest.$ac_objext'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; }; then
4540   gt_cv_c_long_double=yes
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 gt_cv_c_long_double=no
4546 fi
4547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548      fi
4549 fi
4550 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4551 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4552   if test $gt_cv_c_long_double = yes; then
4553
4554 cat >>confdefs.h <<\_ACEOF
4555 #define HAVE_LONG_DOUBLE 1
4556 _ACEOF
4557
4558   fi
4559
4560
4561   echo "$as_me:$LINENO: checking for wchar_t" >&5
4562 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4563 if test "${gt_cv_c_wchar_t+set}" = set; then
4564   echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566   cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572 #include <stddef.h>
4573        wchar_t foo = (wchar_t)'\0';
4574 int
4575 main ()
4576 {
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584   (eval $ac_compile) 2>conftest.er1
4585   ac_status=$?
4586   grep -v '^ *+' conftest.er1 >conftest.err
4587   rm -f conftest.er1
4588   cat conftest.err >&5
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); } &&
4591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; } &&
4597          { ac_try='test -s conftest.$ac_objext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   gt_cv_c_wchar_t=yes
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 gt_cv_c_wchar_t=no
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4613 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4614   if test $gt_cv_c_wchar_t = yes; then
4615
4616 cat >>confdefs.h <<\_ACEOF
4617 #define HAVE_WCHAR_T 1
4618 _ACEOF
4619
4620   fi
4621
4622
4623   echo "$as_me:$LINENO: checking for wint_t" >&5
4624 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4625 if test "${gt_cv_c_wint_t+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <wchar.h>
4635        wint_t foo = (wchar_t)'\0';
4636 int
4637 main ()
4638 {
4639
4640   ;
4641   return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646   (eval $ac_compile) 2>conftest.er1
4647   ac_status=$?
4648   grep -v '^ *+' conftest.er1 >conftest.err
4649   rm -f conftest.er1
4650   cat conftest.err >&5
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); } &&
4653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655   (eval $ac_try) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; } &&
4659          { ac_try='test -s conftest.$ac_objext'
4660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661   (eval $ac_try) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; }; then
4665   gt_cv_c_wint_t=yes
4666 else
4667   echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670 gt_cv_c_wint_t=no
4671 fi
4672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4673 fi
4674 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4675 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4676   if test $gt_cv_c_wint_t = yes; then
4677
4678 cat >>confdefs.h <<\_ACEOF
4679 #define HAVE_WINT_T 1
4680 _ACEOF
4681
4682   fi
4683
4684
4685   echo "$as_me:$LINENO: checking for inttypes.h" >&5
4686 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4687 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696 #include <sys/types.h>
4697 #include <inttypes.h>
4698 int
4699 main ()
4700 {
4701 uintmax_t i = (uintmax_t) -1;
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708   (eval $ac_compile) 2>conftest.er1
4709   ac_status=$?
4710   grep -v '^ *+' conftest.er1 >conftest.err
4711   rm -f conftest.er1
4712   cat conftest.err >&5
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } &&
4715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; } &&
4721          { ac_try='test -s conftest.$ac_objext'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; }; then
4727   jm_ac_cv_header_inttypes_h=yes
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 jm_ac_cv_header_inttypes_h=no
4733 fi
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4737 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4738   if test $jm_ac_cv_header_inttypes_h = yes; then
4739
4740 cat >>confdefs.h <<_ACEOF
4741 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4742 _ACEOF
4743
4744   fi
4745
4746
4747   echo "$as_me:$LINENO: checking for stdint.h" >&5
4748 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4749 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758 #include <sys/types.h>
4759 #include <stdint.h>
4760 int
4761 main ()
4762 {
4763 uintmax_t i = (uintmax_t) -1;
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770   (eval $ac_compile) 2>conftest.er1
4771   ac_status=$?
4772   grep -v '^ *+' conftest.er1 >conftest.err
4773   rm -f conftest.er1
4774   cat conftest.err >&5
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } &&
4777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779   (eval $ac_try) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); }; } &&
4783          { ac_try='test -s conftest.$ac_objext'
4784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785   (eval $ac_try) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; }; then
4789   jm_ac_cv_header_stdint_h=yes
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794 jm_ac_cv_header_stdint_h=no
4795 fi
4796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4799 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4800   if test $jm_ac_cv_header_stdint_h = yes; then
4801
4802 cat >>confdefs.h <<_ACEOF
4803 #define HAVE_STDINT_H_WITH_UINTMAX 1
4804 _ACEOF
4805
4806   fi
4807
4808
4809
4810
4811   echo "$as_me:$LINENO: checking for intmax_t" >&5
4812 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4813 if test "${gt_cv_c_intmax_t+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822
4823 #include <stddef.h>
4824 #include <stdlib.h>
4825 #if HAVE_STDINT_H_WITH_UINTMAX
4826 #include <stdint.h>
4827 #endif
4828 #if HAVE_INTTYPES_H_WITH_UINTMAX
4829 #include <inttypes.h>
4830 #endif
4831
4832 int
4833 main ()
4834 {
4835 intmax_t x = -1;
4836   ;
4837   return 0;
4838 }
4839 _ACEOF
4840 rm -f conftest.$ac_objext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842   (eval $ac_compile) 2>conftest.er1
4843   ac_status=$?
4844   grep -v '^ *+' conftest.er1 >conftest.err
4845   rm -f conftest.er1
4846   cat conftest.err >&5
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } &&
4849          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851   (eval $ac_try) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }; } &&
4855          { ac_try='test -s conftest.$ac_objext'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; }; then
4861   gt_cv_c_intmax_t=yes
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 gt_cv_c_intmax_t=no
4867 fi
4868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4869 fi
4870 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4871 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4872   if test $gt_cv_c_intmax_t = yes; then
4873
4874 cat >>confdefs.h <<\_ACEOF
4875 #define HAVE_INTMAX_T 1
4876 _ACEOF
4877
4878   fi
4879
4880
4881
4882   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4883 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4884 if test "${gt_cv_func_printf_posix+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887
4888       if test "$cross_compiling" = yes; then
4889
4890         cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h.  */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h.  */
4896
4897 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4898   notposix
4899 #endif
4900
4901 _ACEOF
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903   $EGREP "notposix" >/dev/null 2>&1; then
4904   gt_cv_func_printf_posix="guessing no"
4905 else
4906   gt_cv_func_printf_posix="guessing yes"
4907 fi
4908 rm -f conftest*
4909
4910
4911 else
4912   cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918
4919 #include <stdio.h>
4920 #include <string.h>
4921 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4922    dollar expansion (possibly an autoconf bug).  */
4923 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4924 static char buf[100];
4925 int main ()
4926 {
4927   sprintf (buf, format, 33, 55);
4928   return (strcmp (buf, "55 33") != 0);
4929 }
4930 _ACEOF
4931 rm -f conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933   (eval $ac_link) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   gt_cv_func_printf_posix=yes
4943 else
4944   echo "$as_me: program exited with status $ac_status" >&5
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ( exit $ac_status )
4949 gt_cv_func_printf_posix=no
4950 fi
4951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4952 fi
4953
4954 fi
4955 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4956 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4957   case $gt_cv_func_printf_posix in
4958     *yes)
4959
4960 cat >>confdefs.h <<\_ACEOF
4961 #define HAVE_POSIX_PRINTF 1
4962 _ACEOF
4963
4964       ;;
4965   esac
4966
4967 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4968 # for constant arguments.  Useless!
4969 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4970 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4971 if test "${ac_cv_working_alloca_h+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #include <alloca.h>
4981 int
4982 main ()
4983 {
4984 char *p = (char *) alloca (2 * sizeof (int));
4985   ;
4986   return 0;
4987 }
4988 _ACEOF
4989 rm -f conftest.$ac_objext conftest$ac_exeext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991   (eval $ac_link) 2>conftest.er1
4992   ac_status=$?
4993   grep -v '^ *+' conftest.er1 >conftest.err
4994   rm -f conftest.er1
4995   cat conftest.err >&5
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); } &&
4998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; } &&
5004          { ac_try='test -s conftest$ac_exeext'
5005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006   (eval $ac_try) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); }; }; then
5010   ac_cv_working_alloca_h=yes
5011 else
5012   echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 ac_cv_working_alloca_h=no
5016 fi
5017 rm -f conftest.err conftest.$ac_objext \
5018       conftest$ac_exeext conftest.$ac_ext
5019 fi
5020 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5021 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5022 if test $ac_cv_working_alloca_h = yes; then
5023
5024 cat >>confdefs.h <<\_ACEOF
5025 #define HAVE_ALLOCA_H 1
5026 _ACEOF
5027
5028 fi
5029
5030 echo "$as_me:$LINENO: checking for alloca" >&5
5031 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5032 if test "${ac_cv_func_alloca_works+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 #ifdef __GNUC__
5042 # define alloca __builtin_alloca
5043 #else
5044 # ifdef _MSC_VER
5045 #  include <malloc.h>
5046 #  define alloca _alloca
5047 # else
5048 #  if HAVE_ALLOCA_H
5049 #   include <alloca.h>
5050 #  else
5051 #   ifdef _AIX
5052  #pragma alloca
5053 #   else
5054 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5055 char *alloca ();
5056 #    endif
5057 #   endif
5058 #  endif
5059 # endif
5060 #endif
5061
5062 int
5063 main ()
5064 {
5065 char *p = (char *) alloca (1);
5066   ;
5067   return 0;
5068 }
5069 _ACEOF
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072   (eval $ac_link) 2>conftest.er1
5073   ac_status=$?
5074   grep -v '^ *+' conftest.er1 >conftest.err
5075   rm -f conftest.er1
5076   cat conftest.err >&5
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } &&
5079          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081   (eval $ac_try) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); }; } &&
5085          { ac_try='test -s conftest$ac_exeext'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; }; then
5091   ac_cv_func_alloca_works=yes
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_cv_func_alloca_works=no
5097 fi
5098 rm -f conftest.err conftest.$ac_objext \
5099       conftest$ac_exeext conftest.$ac_ext
5100 fi
5101 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5102 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5103
5104 if test $ac_cv_func_alloca_works = yes; then
5105
5106 cat >>confdefs.h <<\_ACEOF
5107 #define HAVE_ALLOCA 1
5108 _ACEOF
5109
5110 else
5111   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5112 # that cause trouble.  Some versions do not even contain alloca or
5113 # contain a buggy version.  If you still want to use their alloca,
5114 # use ar to extract alloca.o from them instead of compiling alloca.c.
5115
5116 ALLOCA=alloca.$ac_objext
5117
5118 cat >>confdefs.h <<\_ACEOF
5119 #define C_ALLOCA 1
5120 _ACEOF
5121
5122
5123 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5124 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5125 if test "${ac_cv_os_cray+set}" = set; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h.  */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h.  */
5134 #if defined(CRAY) && ! defined(CRAY2)
5135 webecray
5136 #else
5137 wenotbecray
5138 #endif
5139
5140 _ACEOF
5141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142   $EGREP "webecray" >/dev/null 2>&1; then
5143   ac_cv_os_cray=yes
5144 else
5145   ac_cv_os_cray=no
5146 fi
5147 rm -f conftest*
5148
5149 fi
5150 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5151 echo "${ECHO_T}$ac_cv_os_cray" >&6
5152 if test $ac_cv_os_cray = yes; then
5153   for ac_func in _getb67 GETB67 getb67; do
5154     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5155 echo "$as_me:$LINENO: checking for $ac_func" >&5
5156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5157 if eval "test \"\${$as_ac_var+set}\" = set"; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5168 #define $ac_func innocuous_$ac_func
5169
5170 /* System header to define __stub macros and hopefully few prototypes,
5171     which can conflict with char $ac_func (); below.
5172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173     <limits.h> exists even on freestanding compilers.  */
5174
5175 #ifdef __STDC__
5176 # include <limits.h>
5177 #else
5178 # include <assert.h>
5179 #endif
5180
5181 #undef $ac_func
5182
5183 /* Override any gcc2 internal prototype to avoid an error.  */
5184 #ifdef __cplusplus
5185 extern "C"
5186 {
5187 #endif
5188 /* We use char because int might match the return type of a gcc2
5189    builtin and then its argument prototype would still apply.  */
5190 char $ac_func ();
5191 /* The GNU C library defines this for functions which it implements
5192     to always fail with ENOSYS.  Some functions are actually named
5193     something starting with __ and the normal name is an alias.  */
5194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5195 choke me
5196 #else
5197 char (*f) () = $ac_func;
5198 #endif
5199 #ifdef __cplusplus
5200 }
5201 #endif
5202
5203 int
5204 main ()
5205 {
5206 return f != $ac_func;
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213   (eval $ac_link) 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; } &&
5226          { ac_try='test -s conftest$ac_exeext'
5227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228   (eval $ac_try) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; }; then
5232   eval "$as_ac_var=yes"
5233 else
5234   echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 eval "$as_ac_var=no"
5238 fi
5239 rm -f conftest.err conftest.$ac_objext \
5240       conftest$ac_exeext conftest.$ac_ext
5241 fi
5242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5244 if test `eval echo '${'$as_ac_var'}'` = yes; then
5245
5246 cat >>confdefs.h <<_ACEOF
5247 #define CRAY_STACKSEG_END $ac_func
5248 _ACEOF
5249
5250     break
5251 fi
5252
5253   done
5254 fi
5255
5256 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5257 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5258 if test "${ac_cv_c_stack_direction+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   if test "$cross_compiling" = yes; then
5262   ac_cv_c_stack_direction=0
5263 else
5264   cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h.  */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h.  */
5270 int
5271 find_stack_direction ()
5272 {
5273   static char *addr = 0;
5274   auto char dummy;
5275   if (addr == 0)
5276     {
5277       addr = &dummy;
5278       return find_stack_direction ();
5279     }
5280   else
5281     return (&dummy > addr) ? 1 : -1;
5282 }
5283
5284 int
5285 main ()
5286 {
5287   exit (find_stack_direction () < 0);
5288 }
5289 _ACEOF
5290 rm -f conftest$ac_exeext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292   (eval $ac_link) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   ac_cv_c_stack_direction=1
5302 else
5303   echo "$as_me: program exited with status $ac_status" >&5
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307 ( exit $ac_status )
5308 ac_cv_c_stack_direction=-1
5309 fi
5310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5311 fi
5312 fi
5313 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5314 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define STACK_DIRECTION $ac_cv_c_stack_direction
5318 _ACEOF
5319
5320
5321 fi
5322
5323
5324
5325 for ac_header in stdlib.h unistd.h
5326 do
5327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5329   echo "$as_me:$LINENO: checking for $ac_header" >&5
5330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 fi
5334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336 else
5337   # Is the header compilable?
5338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346 $ac_includes_default
5347 #include <$ac_header>
5348 _ACEOF
5349 rm -f conftest.$ac_objext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351   (eval $ac_compile) 2>conftest.er1
5352   ac_status=$?
5353   grep -v '^ *+' conftest.er1 >conftest.err
5354   rm -f conftest.er1
5355   cat conftest.err >&5
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } &&
5358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; } &&
5364          { ac_try='test -s conftest.$ac_objext'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; }; then
5370   ac_header_compiler=yes
5371 else
5372   echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_header_compiler=no
5376 fi
5377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5379 echo "${ECHO_T}$ac_header_compiler" >&6
5380
5381 # Is the header present?
5382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h.  */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h.  */
5390 #include <$ac_header>
5391 _ACEOF
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } >/dev/null; then
5400   if test -s conftest.err; then
5401     ac_cpp_err=$ac_c_preproc_warn_flag
5402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403   else
5404     ac_cpp_err=
5405   fi
5406 else
5407   ac_cpp_err=yes
5408 fi
5409 if test -z "$ac_cpp_err"; then
5410   ac_header_preproc=yes
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415   ac_header_preproc=no
5416 fi
5417 rm -f conftest.err conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5419 echo "${ECHO_T}$ac_header_preproc" >&6
5420
5421 # So?  What about this header?
5422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5423   yes:no: )
5424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5428     ac_header_preproc=yes
5429     ;;
5430   no:yes:* )
5431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5443     (
5444       cat <<\_ASBOX
5445 ## ------------------------------------------ ##
5446 ## Report this to the AC_PACKAGE_NAME lists.  ##
5447 ## ------------------------------------------ ##
5448 _ASBOX
5449     ) |
5450       sed "s/^/$as_me: WARNING:     /" >&2
5451     ;;
5452 esac
5453 echo "$as_me:$LINENO: checking for $ac_header" >&5
5454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5456   echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458   eval "$as_ac_Header=\$ac_header_preproc"
5459 fi
5460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5462
5463 fi
5464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5465   cat >>confdefs.h <<_ACEOF
5466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5467 _ACEOF
5468
5469 fi
5470
5471 done
5472
5473
5474 for ac_func in getpagesize
5475 do
5476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5477 echo "$as_me:$LINENO: checking for $ac_func" >&5
5478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5479 if eval "test \"\${$as_ac_var+set}\" = set"; then
5480   echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482   cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5490 #define $ac_func innocuous_$ac_func
5491
5492 /* System header to define __stub macros and hopefully few prototypes,
5493     which can conflict with char $ac_func (); below.
5494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495     <limits.h> exists even on freestanding compilers.  */
5496
5497 #ifdef __STDC__
5498 # include <limits.h>
5499 #else
5500 # include <assert.h>
5501 #endif
5502
5503 #undef $ac_func
5504
5505 /* Override any gcc2 internal prototype to avoid an error.  */
5506 #ifdef __cplusplus
5507 extern "C"
5508 {
5509 #endif
5510 /* We use char because int might match the return type of a gcc2
5511    builtin and then its argument prototype would still apply.  */
5512 char $ac_func ();
5513 /* The GNU C library defines this for functions which it implements
5514     to always fail with ENOSYS.  Some functions are actually named
5515     something starting with __ and the normal name is an alias.  */
5516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5517 choke me
5518 #else
5519 char (*f) () = $ac_func;
5520 #endif
5521 #ifdef __cplusplus
5522 }
5523 #endif
5524
5525 int
5526 main ()
5527 {
5528 return f != $ac_func;
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext conftest$ac_exeext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535   (eval $ac_link) 2>conftest.er1
5536   ac_status=$?
5537   grep -v '^ *+' conftest.er1 >conftest.err
5538   rm -f conftest.er1
5539   cat conftest.err >&5
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } &&
5542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; } &&
5548          { ac_try='test -s conftest$ac_exeext'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; }; then
5554   eval "$as_ac_var=yes"
5555 else
5556   echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5558
5559 eval "$as_ac_var=no"
5560 fi
5561 rm -f conftest.err conftest.$ac_objext \
5562       conftest$ac_exeext conftest.$ac_ext
5563 fi
5564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5566 if test `eval echo '${'$as_ac_var'}'` = yes; then
5567   cat >>confdefs.h <<_ACEOF
5568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5569 _ACEOF
5570
5571 fi
5572 done
5573
5574 echo "$as_me:$LINENO: checking for working mmap" >&5
5575 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5576 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   if test "$cross_compiling" = yes; then
5580   ac_cv_func_mmap_fixed_mapped=no
5581 else
5582   cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588 $ac_includes_default
5589 /* malloc might have been renamed as rpl_malloc. */
5590 #undef malloc
5591
5592 /* Thanks to Mike Haertel and Jim Avera for this test.
5593    Here is a matrix of mmap possibilities:
5594         mmap private not fixed
5595         mmap private fixed at somewhere currently unmapped
5596         mmap private fixed at somewhere already mapped
5597         mmap shared not fixed
5598         mmap shared fixed at somewhere currently unmapped
5599         mmap shared fixed at somewhere already mapped
5600    For private mappings, we should verify that changes cannot be read()
5601    back from the file, nor mmap's back from the file at a different
5602    address.  (There have been systems where private was not correctly
5603    implemented like the infamous i386 svr4.0, and systems where the
5604    VM page cache was not coherent with the file system buffer cache
5605    like early versions of FreeBSD and possibly contemporary NetBSD.)
5606    For shared mappings, we should conversely verify that changes get
5607    propagated back to all the places they're supposed to be.
5608
5609    Grep wants private fixed already mapped.
5610    The main things grep needs to know about mmap are:
5611    * does it exist and is it safe to write into the mmap'd area
5612    * how to use it (BSD variants)  */
5613
5614 #include <fcntl.h>
5615 #include <sys/mman.h>
5616
5617 #if !STDC_HEADERS && !HAVE_STDLIB_H
5618 char *malloc ();
5619 #endif
5620
5621 /* This mess was copied from the GNU getpagesize.h.  */
5622 #if !HAVE_GETPAGESIZE
5623 /* Assume that all systems that can run configure have sys/param.h.  */
5624 # if !HAVE_SYS_PARAM_H
5625 #  define HAVE_SYS_PARAM_H 1
5626 # endif
5627
5628 # ifdef _SC_PAGESIZE
5629 #  define getpagesize() sysconf(_SC_PAGESIZE)
5630 # else /* no _SC_PAGESIZE */
5631 #  if HAVE_SYS_PARAM_H
5632 #   include <sys/param.h>
5633 #   ifdef EXEC_PAGESIZE
5634 #    define getpagesize() EXEC_PAGESIZE
5635 #   else /* no EXEC_PAGESIZE */
5636 #    ifdef NBPG
5637 #     define getpagesize() NBPG * CLSIZE
5638 #     ifndef CLSIZE
5639 #      define CLSIZE 1
5640 #     endif /* no CLSIZE */
5641 #    else /* no NBPG */
5642 #     ifdef NBPC
5643 #      define getpagesize() NBPC
5644 #     else /* no NBPC */
5645 #      ifdef PAGESIZE
5646 #       define getpagesize() PAGESIZE
5647 #      endif /* PAGESIZE */
5648 #     endif /* no NBPC */
5649 #    endif /* no NBPG */
5650 #   endif /* no EXEC_PAGESIZE */
5651 #  else /* no HAVE_SYS_PARAM_H */
5652 #   define getpagesize() 8192   /* punt totally */
5653 #  endif /* no HAVE_SYS_PARAM_H */
5654 # endif /* no _SC_PAGESIZE */
5655
5656 #endif /* no HAVE_GETPAGESIZE */
5657
5658 int
5659 main ()
5660 {
5661   char *data, *data2, *data3;
5662   int i, pagesize;
5663   int fd;
5664
5665   pagesize = getpagesize ();
5666
5667   /* First, make a file with some known garbage in it. */
5668   data = (char *) malloc (pagesize);
5669   if (!data)
5670     exit (1);
5671   for (i = 0; i < pagesize; ++i)
5672     *(data + i) = rand ();
5673   umask (0);
5674   fd = creat ("conftest.mmap", 0600);
5675   if (fd < 0)
5676     exit (1);
5677   if (write (fd, data, pagesize) != pagesize)
5678     exit (1);
5679   close (fd);
5680
5681   /* Next, try to mmap the file at a fixed address which already has
5682      something else allocated at it.  If we can, also make sure that
5683      we see the same garbage.  */
5684   fd = open ("conftest.mmap", O_RDWR);
5685   if (fd < 0)
5686     exit (1);
5687   data2 = (char *) malloc (2 * pagesize);
5688   if (!data2)
5689     exit (1);
5690   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5691   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5692                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5693     exit (1);
5694   for (i = 0; i < pagesize; ++i)
5695     if (*(data + i) != *(data2 + i))
5696       exit (1);
5697
5698   /* Finally, make sure that changes to the mapped area do not
5699      percolate back to the file as seen by read().  (This is a bug on
5700      some variants of i386 svr4.0.)  */
5701   for (i = 0; i < pagesize; ++i)
5702     *(data2 + i) = *(data2 + i) + 1;
5703   data3 = (char *) malloc (pagesize);
5704   if (!data3)
5705     exit (1);
5706   if (read (fd, data3, pagesize) != pagesize)
5707     exit (1);
5708   for (i = 0; i < pagesize; ++i)
5709     if (*(data + i) != *(data3 + i))
5710       exit (1);
5711   close (fd);
5712   exit (0);
5713 }
5714 _ACEOF
5715 rm -f conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717   (eval $ac_link) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; }; then
5726   ac_cv_func_mmap_fixed_mapped=yes
5727 else
5728   echo "$as_me: program exited with status $ac_status" >&5
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ( exit $ac_status )
5733 ac_cv_func_mmap_fixed_mapped=no
5734 fi
5735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5736 fi
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5739 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5740 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5741
5742 cat >>confdefs.h <<\_ACEOF
5743 #define HAVE_MMAP 1
5744 _ACEOF
5745
5746 fi
5747 rm -f conftest.mmap
5748
5749
5750     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5751 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5752 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761
5762 #include <features.h>
5763 #ifdef __GNU_LIBRARY__
5764  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5765   Lucky GNU user
5766  #endif
5767 #endif
5768
5769 _ACEOF
5770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5771   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5772   ac_cv_gnu_library_2_1=yes
5773 else
5774   ac_cv_gnu_library_2_1=no
5775 fi
5776 rm -f conftest*
5777
5778
5779
5780 fi
5781 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5782 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5783
5784     GLIBC21="$ac_cv_gnu_library_2_1"
5785
5786
5787
5788
5789   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5790 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5791 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794
5795       if test "$cross_compiling" = yes; then
5796
5797           # Guess based on the CPU.
5798           case "$host_cpu" in
5799             alpha* | i3456786 | m68k | s390*)
5800               gt_cv_int_divbyzero_sigfpe="guessing yes";;
5801             *)
5802               gt_cv_int_divbyzero_sigfpe="guessing no";;
5803           esac
5804
5805 else
5806   cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812
5813 #include <stdlib.h>
5814 #include <signal.h>
5815
5816 static void
5817 #ifdef __cplusplus
5818 sigfpe_handler (int sig)
5819 #else
5820 sigfpe_handler (sig) int sig;
5821 #endif
5822 {
5823   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5824   exit (sig != SIGFPE);
5825 }
5826
5827 int x = 1;
5828 int y = 0;
5829 int z;
5830 int nan;
5831
5832 int main ()
5833 {
5834   signal (SIGFPE, sigfpe_handler);
5835 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5836 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5837   signal (SIGTRAP, sigfpe_handler);
5838 #endif
5839 /* Linux/SPARC yields signal SIGILL.  */
5840 #if defined (__sparc__) && defined (__linux__)
5841   signal (SIGILL, sigfpe_handler);
5842 #endif
5843
5844   z = x / y;
5845   nan = y / y;
5846   exit (1);
5847 }
5848
5849 _ACEOF
5850 rm -f conftest$ac_exeext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852   (eval $ac_link) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857   (eval $ac_try) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }; }; then
5861   gt_cv_int_divbyzero_sigfpe=yes
5862 else
5863   echo "$as_me: program exited with status $ac_status" >&5
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 ( exit $ac_status )
5868 gt_cv_int_divbyzero_sigfpe=no
5869 fi
5870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5871 fi
5872
5873 fi
5874 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5875 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5876   case "$gt_cv_int_divbyzero_sigfpe" in
5877     *yes) value=1;;
5878     *) value=0;;
5879   esac
5880
5881 cat >>confdefs.h <<_ACEOF
5882 #define INTDIV0_RAISES_SIGFPE $value
5883 _ACEOF
5884
5885
5886
5887   echo "$as_me:$LINENO: checking for unsigned long long" >&5
5888 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5889 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 unsigned long long ull = 1ULL; int i = 63;
5899 int
5900 main ()
5901 {
5902 unsigned long long ullmax = (unsigned long long) -1;
5903      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5904   ;
5905   return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910   (eval $ac_link) 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } &&
5917          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; } &&
5923          { ac_try='test -s conftest$ac_exeext'
5924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925   (eval $ac_try) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; }; then
5929   ac_cv_type_unsigned_long_long=yes
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 ac_cv_type_unsigned_long_long=no
5935 fi
5936 rm -f conftest.err conftest.$ac_objext \
5937       conftest$ac_exeext conftest.$ac_ext
5938 fi
5939 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5940 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5941   if test $ac_cv_type_unsigned_long_long = yes; then
5942
5943 cat >>confdefs.h <<\_ACEOF
5944 #define HAVE_UNSIGNED_LONG_LONG 1
5945 _ACEOF
5946
5947   fi
5948
5949
5950
5951
5952   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5953
5954     test $ac_cv_type_unsigned_long_long = yes \
5955       && ac_type='unsigned long long' \
5956       || ac_type='unsigned long'
5957
5958 cat >>confdefs.h <<_ACEOF
5959 #define uintmax_t $ac_type
5960 _ACEOF
5961
5962   else
5963
5964 cat >>confdefs.h <<\_ACEOF
5965 #define HAVE_UINTMAX_T 1
5966 _ACEOF
5967
5968   fi
5969
5970
5971   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5972 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5973 if test "${gt_cv_header_inttypes_h+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976
5977     cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h.  */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h.  */
5983 #include <sys/types.h>
5984 #include <inttypes.h>
5985 int
5986 main ()
5987 {
5988
5989   ;
5990   return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest.$ac_objext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995   (eval $ac_compile) 2>conftest.er1
5996   ac_status=$?
5997   grep -v '^ *+' conftest.er1 >conftest.err
5998   rm -f conftest.er1
5999   cat conftest.err >&5
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); } &&
6002          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; } &&
6008          { ac_try='test -s conftest.$ac_objext'
6009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010   (eval $ac_try) 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }; }; then
6014   gt_cv_header_inttypes_h=yes
6015 else
6016   echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 gt_cv_header_inttypes_h=no
6020 fi
6021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6022
6023 fi
6024 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6025 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6026   if test $gt_cv_header_inttypes_h = yes; then
6027
6028 cat >>confdefs.h <<_ACEOF
6029 #define HAVE_INTTYPES_H 1
6030 _ACEOF
6031
6032   fi
6033
6034
6035
6036   if test $gt_cv_header_inttypes_h = yes; then
6037     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6038 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6039 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042
6043         cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h.  */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h.  */
6049 #include <inttypes.h>
6050 #ifdef PRId32
6051 char *p = PRId32;
6052 #endif
6053
6054 int
6055 main ()
6056 {
6057
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 rm -f conftest.$ac_objext
6063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064   (eval $ac_compile) 2>conftest.er1
6065   ac_status=$?
6066   grep -v '^ *+' conftest.er1 >conftest.err
6067   rm -f conftest.er1
6068   cat conftest.err >&5
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); } &&
6071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073   (eval $ac_try) 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; } &&
6077          { ac_try='test -s conftest.$ac_objext'
6078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079   (eval $ac_try) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); }; }; then
6083   gt_cv_inttypes_pri_broken=no
6084 else
6085   echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6087
6088 gt_cv_inttypes_pri_broken=yes
6089 fi
6090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6091
6092 fi
6093 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6094 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6095   fi
6096   if test "$gt_cv_inttypes_pri_broken" = yes; then
6097
6098 cat >>confdefs.h <<_ACEOF
6099 #define PRI_MACROS_BROKEN 1
6100 _ACEOF
6101
6102   fi
6103
6104
6105
6106 for ac_header in stdint.h
6107 do
6108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6110   echo "$as_me:$LINENO: checking for $ac_header" >&5
6111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 fi
6115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6117 else
6118   # Is the header compilable?
6119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h.  */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h.  */
6127 $ac_includes_default
6128 #include <$ac_header>
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132   (eval $ac_compile) 2>conftest.er1
6133   ac_status=$?
6134   grep -v '^ *+' conftest.er1 >conftest.err
6135   rm -f conftest.er1
6136   cat conftest.err >&5
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); } &&
6139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; } &&
6145          { ac_try='test -s conftest.$ac_objext'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; }; then
6151   ac_header_compiler=yes
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 ac_header_compiler=no
6157 fi
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160 echo "${ECHO_T}$ac_header_compiler" >&6
6161
6162 # Is the header present?
6163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h.  */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h.  */
6171 #include <$ac_header>
6172 _ACEOF
6173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } >/dev/null; then
6181   if test -s conftest.err; then
6182     ac_cpp_err=$ac_c_preproc_warn_flag
6183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184   else
6185     ac_cpp_err=
6186   fi
6187 else
6188   ac_cpp_err=yes
6189 fi
6190 if test -z "$ac_cpp_err"; then
6191   ac_header_preproc=yes
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196   ac_header_preproc=no
6197 fi
6198 rm -f conftest.err conftest.$ac_ext
6199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6200 echo "${ECHO_T}$ac_header_preproc" >&6
6201
6202 # So?  What about this header?
6203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6204   yes:no: )
6205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6209     ac_header_preproc=yes
6210     ;;
6211   no:yes:* )
6212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6224     (
6225       cat <<\_ASBOX
6226 ## ------------------------------------------ ##
6227 ## Report this to the AC_PACKAGE_NAME lists.  ##
6228 ## ------------------------------------------ ##
6229 _ASBOX
6230     ) |
6231       sed "s/^/$as_me: WARNING:     /" >&2
6232     ;;
6233 esac
6234 echo "$as_me:$LINENO: checking for $ac_header" >&5
6235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   eval "$as_ac_Header=\$ac_header_preproc"
6240 fi
6241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6243
6244 fi
6245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246   cat >>confdefs.h <<_ACEOF
6247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 _ACEOF
6249
6250 fi
6251
6252 done
6253
6254     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6255 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6256   result=
6257   cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263
6264 #include <limits.h>
6265 #if HAVE_STDINT_H
6266 #include <stdint.h>
6267 #endif
6268 #ifdef SIZE_MAX
6269 Found it
6270 #endif
6271
6272 _ACEOF
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274   $EGREP "Found it" >/dev/null 2>&1; then
6275   result=yes
6276 fi
6277 rm -f conftest*
6278
6279   if test -z "$result"; then
6280                     if test "$cross_compiling" = yes; then
6281   # Depending upon the size, compute the lo and hi bounds.
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288 #include <stddef.h>
6289 int
6290 main ()
6291 {
6292 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6293 test_array [0] = 0
6294
6295   ;
6296   return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301   (eval $ac_compile) 2>conftest.er1
6302   ac_status=$?
6303   grep -v '^ *+' conftest.er1 >conftest.err
6304   rm -f conftest.er1
6305   cat conftest.err >&5
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); } &&
6308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310   (eval $ac_try) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; } &&
6314          { ac_try='test -s conftest.$ac_objext'
6315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; }; then
6320   ac_lo=0 ac_mid=0
6321   while :; do
6322     cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h.  */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h.  */
6328 #include <stddef.h>
6329 int
6330 main ()
6331 {
6332 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6333 test_array [0] = 0
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341   (eval $ac_compile) 2>conftest.er1
6342   ac_status=$?
6343   grep -v '^ *+' conftest.er1 >conftest.err
6344   rm -f conftest.er1
6345   cat conftest.err >&5
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); } &&
6348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; } &&
6354          { ac_try='test -s conftest.$ac_objext'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; }; then
6360   ac_hi=$ac_mid; break
6361 else
6362   echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 ac_lo=`expr $ac_mid + 1`
6366                     if test $ac_lo -le $ac_mid; then
6367                       ac_lo= ac_hi=
6368                       break
6369                     fi
6370                     ac_mid=`expr 2 '*' $ac_mid + 1`
6371 fi
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373   done
6374 else
6375   echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384 #include <stddef.h>
6385 int
6386 main ()
6387 {
6388 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6389 test_array [0] = 0
6390
6391   ;
6392   return 0;
6393 }
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397   (eval $ac_compile) 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } &&
6404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; } &&
6410          { ac_try='test -s conftest.$ac_objext'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; }; then
6416   ac_hi=-1 ac_mid=-1
6417   while :; do
6418     cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 #include <stddef.h>
6425 int
6426 main ()
6427 {
6428 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6429 test_array [0] = 0
6430
6431   ;
6432   return 0;
6433 }
6434 _ACEOF
6435 rm -f conftest.$ac_objext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437   (eval $ac_compile) 2>conftest.er1
6438   ac_status=$?
6439   grep -v '^ *+' conftest.er1 >conftest.err
6440   rm -f conftest.er1
6441   cat conftest.err >&5
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } &&
6444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; } &&
6450          { ac_try='test -s conftest.$ac_objext'
6451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452   (eval $ac_try) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; }; then
6456   ac_lo=$ac_mid; break
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 ac_hi=`expr '(' $ac_mid ')' - 1`
6462                        if test $ac_mid -le $ac_hi; then
6463                          ac_lo= ac_hi=
6464                          break
6465                        fi
6466                        ac_mid=`expr 2 '*' $ac_mid`
6467 fi
6468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469   done
6470 else
6471   echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ac_lo= ac_hi=
6475 fi
6476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477 fi
6478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 # Binary search between lo and hi bounds.
6480 while test "x$ac_lo" != "x$ac_hi"; do
6481   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6482   cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h.  */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h.  */
6488 #include <stddef.h>
6489 int
6490 main ()
6491 {
6492 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6493 test_array [0] = 0
6494
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 rm -f conftest.$ac_objext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501   (eval $ac_compile) 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
6505   cat conftest.err >&5
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } &&
6508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; } &&
6514          { ac_try='test -s conftest.$ac_objext'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; }; then
6520   ac_hi=$ac_mid
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_lo=`expr '(' $ac_mid ')' + 1`
6526 fi
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528 done
6529 case $ac_lo in
6530 ?*) res_hi=$ac_lo;;
6531 '') result=? ;;
6532 esac
6533 else
6534   if test "$cross_compiling" = yes; then
6535   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6536 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6537    { (exit 1); exit 1; }; }
6538 else
6539   cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h.  */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h.  */
6545 #include <stddef.h>
6546 long longval () { return ~(size_t)0 / 10; }
6547 unsigned long ulongval () { return ~(size_t)0 / 10; }
6548 #include <stdio.h>
6549 #include <stdlib.h>
6550 int
6551 main ()
6552 {
6553
6554   FILE *f = fopen ("conftest.val", "w");
6555   if (! f)
6556     exit (1);
6557   if ((~(size_t)0 / 10) < 0)
6558     {
6559       long i = longval ();
6560       if (i != (~(size_t)0 / 10))
6561         exit (1);
6562       fprintf (f, "%ld\n", i);
6563     }
6564   else
6565     {
6566       unsigned long i = ulongval ();
6567       if (i != (~(size_t)0 / 10))
6568         exit (1);
6569       fprintf (f, "%lu\n", i);
6570     }
6571   exit (ferror (f) || fclose (f) != 0);
6572
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 rm -f conftest$ac_exeext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579   (eval $ac_link) 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; }; then
6588   res_hi=`cat conftest.val`
6589 else
6590   echo "$as_me: program exited with status $ac_status" >&5
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ( exit $ac_status )
6595 result=?
6596 fi
6597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6598 fi
6599 fi
6600 rm -f conftest.val
6601     if test "$cross_compiling" = yes; then
6602   # Depending upon the size, compute the lo and hi bounds.
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h.  */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h.  */
6609 #include <stddef.h>
6610 int
6611 main ()
6612 {
6613 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6614 test_array [0] = 0
6615
6616   ;
6617   return 0;
6618 }
6619 _ACEOF
6620 rm -f conftest.$ac_objext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622   (eval $ac_compile) 2>conftest.er1
6623   ac_status=$?
6624   grep -v '^ *+' conftest.er1 >conftest.err
6625   rm -f conftest.er1
6626   cat conftest.err >&5
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } &&
6629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631   (eval $ac_try) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); }; } &&
6635          { ac_try='test -s conftest.$ac_objext'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; }; then
6641   ac_lo=0 ac_mid=0
6642   while :; do
6643     cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h.  */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h.  */
6649 #include <stddef.h>
6650 int
6651 main ()
6652 {
6653 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6654 test_array [0] = 0
6655
6656   ;
6657   return 0;
6658 }
6659 _ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662   (eval $ac_compile) 2>conftest.er1
6663   ac_status=$?
6664   grep -v '^ *+' conftest.er1 >conftest.err
6665   rm -f conftest.er1
6666   cat conftest.err >&5
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); } &&
6669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; } &&
6675          { ac_try='test -s conftest.$ac_objext'
6676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677   (eval $ac_try) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); }; }; then
6681   ac_hi=$ac_mid; break
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 ac_lo=`expr $ac_mid + 1`
6687                     if test $ac_lo -le $ac_mid; then
6688                       ac_lo= ac_hi=
6689                       break
6690                     fi
6691                     ac_mid=`expr 2 '*' $ac_mid + 1`
6692 fi
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694   done
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h.  */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h.  */
6705 #include <stddef.h>
6706 int
6707 main ()
6708 {
6709 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6710 test_array [0] = 0
6711
6712   ;
6713   return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718   (eval $ac_compile) 2>conftest.er1
6719   ac_status=$?
6720   grep -v '^ *+' conftest.er1 >conftest.err
6721   rm -f conftest.er1
6722   cat conftest.err >&5
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); } &&
6725          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727   (eval $ac_try) 2>&5
6728   ac_status=$?
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); }; } &&
6731          { ac_try='test -s conftest.$ac_objext'
6732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733   (eval $ac_try) 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); }; }; then
6737   ac_hi=-1 ac_mid=-1
6738   while :; do
6739     cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h.  */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h.  */
6745 #include <stddef.h>
6746 int
6747 main ()
6748 {
6749 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6750 test_array [0] = 0
6751
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758   (eval $ac_compile) 2>conftest.er1
6759   ac_status=$?
6760   grep -v '^ *+' conftest.er1 >conftest.err
6761   rm -f conftest.er1
6762   cat conftest.err >&5
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); } &&
6765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767   (eval $ac_try) 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); }; } &&
6771          { ac_try='test -s conftest.$ac_objext'
6772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773   (eval $ac_try) 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); }; }; then
6777   ac_lo=$ac_mid; break
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 ac_hi=`expr '(' $ac_mid ')' - 1`
6783                        if test $ac_mid -le $ac_hi; then
6784                          ac_lo= ac_hi=
6785                          break
6786                        fi
6787                        ac_mid=`expr 2 '*' $ac_mid`
6788 fi
6789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790   done
6791 else
6792   echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 ac_lo= ac_hi=
6796 fi
6797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 fi
6799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800 # Binary search between lo and hi bounds.
6801 while test "x$ac_lo" != "x$ac_hi"; do
6802   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6803   cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h.  */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h.  */
6809 #include <stddef.h>
6810 int
6811 main ()
6812 {
6813 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6814 test_array [0] = 0
6815
6816   ;
6817   return 0;
6818 }
6819 _ACEOF
6820 rm -f conftest.$ac_objext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822   (eval $ac_compile) 2>conftest.er1
6823   ac_status=$?
6824   grep -v '^ *+' conftest.er1 >conftest.err
6825   rm -f conftest.er1
6826   cat conftest.err >&5
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); } &&
6829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831   (eval $ac_try) 2>&5
6832   ac_status=$?
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); }; } &&
6835          { ac_try='test -s conftest.$ac_objext'
6836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837   (eval $ac_try) 2>&5
6838   ac_status=$?
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); }; }; then
6841   ac_hi=$ac_mid
6842 else
6843   echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846 ac_lo=`expr '(' $ac_mid ')' + 1`
6847 fi
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849 done
6850 case $ac_lo in
6851 ?*) res_lo=$ac_lo;;
6852 '') result=? ;;
6853 esac
6854 else
6855   if test "$cross_compiling" = yes; then
6856   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6857 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6858    { (exit 1); exit 1; }; }
6859 else
6860   cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h.  */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h.  */
6866 #include <stddef.h>
6867 long longval () { return ~(size_t)0 % 10; }
6868 unsigned long ulongval () { return ~(size_t)0 % 10; }
6869 #include <stdio.h>
6870 #include <stdlib.h>
6871 int
6872 main ()
6873 {
6874
6875   FILE *f = fopen ("conftest.val", "w");
6876   if (! f)
6877     exit (1);
6878   if ((~(size_t)0 % 10) < 0)
6879     {
6880       long i = longval ();
6881       if (i != (~(size_t)0 % 10))
6882         exit (1);
6883       fprintf (f, "%ld\n", i);
6884     }
6885   else
6886     {
6887       unsigned long i = ulongval ();
6888       if (i != (~(size_t)0 % 10))
6889         exit (1);
6890       fprintf (f, "%lu\n", i);
6891     }
6892   exit (ferror (f) || fclose (f) != 0);
6893
6894   ;
6895   return 0;
6896 }
6897 _ACEOF
6898 rm -f conftest$ac_exeext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900   (eval $ac_link) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; }; then
6909   res_lo=`cat conftest.val`
6910 else
6911   echo "$as_me: program exited with status $ac_status" >&5
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 ( exit $ac_status )
6916 result=?
6917 fi
6918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6919 fi
6920 fi
6921 rm -f conftest.val
6922     if test "$cross_compiling" = yes; then
6923   # Depending upon the size, compute the lo and hi bounds.
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h.  */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h.  */
6930 #include <stddef.h>
6931 int
6932 main ()
6933 {
6934 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6935 test_array [0] = 0
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943   (eval $ac_compile) 2>conftest.er1
6944   ac_status=$?
6945   grep -v '^ *+' conftest.er1 >conftest.err
6946   rm -f conftest.er1
6947   cat conftest.err >&5
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } &&
6950          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952   (eval $ac_try) 2>&5
6953   ac_status=$?
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); }; } &&
6956          { ac_try='test -s conftest.$ac_objext'
6957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958   (eval $ac_try) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; }; then
6962   ac_lo=0 ac_mid=0
6963   while :; do
6964     cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970 #include <stddef.h>
6971 int
6972 main ()
6973 {
6974 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6975 test_array [0] = 0
6976
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983   (eval $ac_compile) 2>conftest.er1
6984   ac_status=$?
6985   grep -v '^ *+' conftest.er1 >conftest.err
6986   rm -f conftest.er1
6987   cat conftest.err >&5
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } &&
6990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; } &&
6996          { ac_try='test -s conftest.$ac_objext'
6997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998   (eval $ac_try) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; }; then
7002   ac_hi=$ac_mid; break
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 ac_lo=`expr $ac_mid + 1`
7008                     if test $ac_lo -le $ac_mid; then
7009                       ac_lo= ac_hi=
7010                       break
7011                     fi
7012                     ac_mid=`expr 2 '*' $ac_mid + 1`
7013 fi
7014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7015   done
7016 else
7017   echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026 #include <stddef.h>
7027 int
7028 main ()
7029 {
7030 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7031 test_array [0] = 0
7032
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 rm -f conftest.$ac_objext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039   (eval $ac_compile) 2>conftest.er1
7040   ac_status=$?
7041   grep -v '^ *+' conftest.er1 >conftest.err
7042   rm -f conftest.er1
7043   cat conftest.err >&5
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); } &&
7046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048   (eval $ac_try) 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); }; } &&
7052          { ac_try='test -s conftest.$ac_objext'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; }; then
7058   ac_hi=-1 ac_mid=-1
7059   while :; do
7060     cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h.  */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h.  */
7066 #include <stddef.h>
7067 int
7068 main ()
7069 {
7070 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7071 test_array [0] = 0
7072
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079   (eval $ac_compile) 2>conftest.er1
7080   ac_status=$?
7081   grep -v '^ *+' conftest.er1 >conftest.err
7082   rm -f conftest.er1
7083   cat conftest.err >&5
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); } &&
7086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest.$ac_objext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098   ac_lo=$ac_mid; break
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 ac_hi=`expr '(' $ac_mid ')' - 1`
7104                        if test $ac_mid -le $ac_hi; then
7105                          ac_lo= ac_hi=
7106                          break
7107                        fi
7108                        ac_mid=`expr 2 '*' $ac_mid`
7109 fi
7110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7111   done
7112 else
7113   echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116 ac_lo= ac_hi=
7117 fi
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119 fi
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 # Binary search between lo and hi bounds.
7122 while test "x$ac_lo" != "x$ac_hi"; do
7123   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7124   cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 #include <stddef.h>
7131 int
7132 main ()
7133 {
7134 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7135 test_array [0] = 0
7136
7137   ;
7138   return 0;
7139 }
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143   (eval $ac_compile) 2>conftest.er1
7144   ac_status=$?
7145   grep -v '^ *+' conftest.er1 >conftest.err
7146   rm -f conftest.er1
7147   cat conftest.err >&5
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); } &&
7150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152   (eval $ac_try) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; } &&
7156          { ac_try='test -s conftest.$ac_objext'
7157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158   (eval $ac_try) 2>&5
7159   ac_status=$?
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); }; }; then
7162   ac_hi=$ac_mid
7163 else
7164   echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167 ac_lo=`expr '(' $ac_mid ')' + 1`
7168 fi
7169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170 done
7171 case $ac_lo in
7172 ?*) fits_in_uint=$ac_lo;;
7173 '') result=? ;;
7174 esac
7175 else
7176   if test "$cross_compiling" = yes; then
7177   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7178 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7179    { (exit 1); exit 1; }; }
7180 else
7181   cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187 #include <stddef.h>
7188 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7189 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7190 #include <stdio.h>
7191 #include <stdlib.h>
7192 int
7193 main ()
7194 {
7195
7196   FILE *f = fopen ("conftest.val", "w");
7197   if (! f)
7198     exit (1);
7199   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7200     {
7201       long i = longval ();
7202       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7203         exit (1);
7204       fprintf (f, "%ld\n", i);
7205     }
7206   else
7207     {
7208       unsigned long i = ulongval ();
7209       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7210         exit (1);
7211       fprintf (f, "%lu\n", i);
7212     }
7213   exit (ferror (f) || fclose (f) != 0);
7214
7215   ;
7216   return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest$ac_exeext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221   (eval $ac_link) 2>&5
7222   ac_status=$?
7223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   fits_in_uint=`cat conftest.val`
7231 else
7232   echo "$as_me: program exited with status $ac_status" >&5
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236 ( exit $ac_status )
7237 result=?
7238 fi
7239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7240 fi
7241 fi
7242 rm -f conftest.val
7243     if test "$fits_in_uint" = 1; then
7244                   cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250 #include <stddef.h>
7251         extern size_t foo;
7252         extern unsigned long foo;
7253
7254 int
7255 main ()
7256 {
7257
7258   ;
7259   return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264   (eval $ac_compile) 2>conftest.er1
7265   ac_status=$?
7266   grep -v '^ *+' conftest.er1 >conftest.err
7267   rm -f conftest.er1
7268   cat conftest.err >&5
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); } &&
7271          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; } &&
7277          { ac_try='test -s conftest.$ac_objext'
7278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279   (eval $ac_try) 2>&5
7280   ac_status=$?
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); }; }; then
7283   fits_in_uint=0
7284 else
7285   echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288 fi
7289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7290     fi
7291     if test -z "$result"; then
7292       if test "$fits_in_uint" = 1; then
7293         result="$res_hi$res_lo"U
7294       else
7295         result="$res_hi$res_lo"UL
7296       fi
7297     else
7298             result='~(size_t)0'
7299     fi
7300   fi
7301   echo "$as_me:$LINENO: result: $result" >&5
7302 echo "${ECHO_T}$result" >&6
7303   if test "$result" != yes; then
7304
7305 cat >>confdefs.h <<_ACEOF
7306 #define SIZE_MAX $result
7307 _ACEOF
7308
7309   fi
7310
7311
7312
7313
7314 for ac_header in stdint.h
7315 do
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318   echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 fi
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325 else
7326   # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 $ac_includes_default
7336 #include <$ac_header>
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340   (eval $ac_compile) 2>conftest.er1
7341   ac_status=$?
7342   grep -v '^ *+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } &&
7347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349   (eval $ac_try) 2>&5
7350   ac_status=$?
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); }; } &&
7353          { ac_try='test -s conftest.$ac_objext'
7354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355   (eval $ac_try) 2>&5
7356   ac_status=$?
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); }; }; then
7359   ac_header_compiler=yes
7360 else
7361   echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364 ac_header_compiler=no
7365 fi
7366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7368 echo "${ECHO_T}$ac_header_compiler" >&6
7369
7370 # Is the header present?
7371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7373 cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h.  */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h.  */
7379 #include <$ac_header>
7380 _ACEOF
7381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7383   ac_status=$?
7384   grep -v '^ *+' conftest.er1 >conftest.err
7385   rm -f conftest.er1
7386   cat conftest.err >&5
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); } >/dev/null; then
7389   if test -s conftest.err; then
7390     ac_cpp_err=$ac_c_preproc_warn_flag
7391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7392   else
7393     ac_cpp_err=
7394   fi
7395 else
7396   ac_cpp_err=yes
7397 fi
7398 if test -z "$ac_cpp_err"; then
7399   ac_header_preproc=yes
7400 else
7401   echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7403
7404   ac_header_preproc=no
7405 fi
7406 rm -f conftest.err conftest.$ac_ext
7407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7408 echo "${ECHO_T}$ac_header_preproc" >&6
7409
7410 # So?  What about this header?
7411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7412   yes:no: )
7413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7417     ac_header_preproc=yes
7418     ;;
7419   no:yes:* )
7420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7432     (
7433       cat <<\_ASBOX
7434 ## ------------------------------------------ ##
7435 ## Report this to the AC_PACKAGE_NAME lists.  ##
7436 ## ------------------------------------------ ##
7437 _ASBOX
7438     ) |
7439       sed "s/^/$as_me: WARNING:     /" >&2
7440     ;;
7441 esac
7442 echo "$as_me:$LINENO: checking for $ac_header" >&5
7443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   eval "$as_ac_Header=\$ac_header_preproc"
7448 fi
7449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7451
7452 fi
7453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7454   cat >>confdefs.h <<_ACEOF
7455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7456 _ACEOF
7457
7458 fi
7459
7460 done
7461
7462
7463
7464       if test "X$prefix" = "XNONE"; then
7465     acl_final_prefix="$ac_default_prefix"
7466   else
7467     acl_final_prefix="$prefix"
7468   fi
7469   if test "X$exec_prefix" = "XNONE"; then
7470     acl_final_exec_prefix='${prefix}'
7471   else
7472     acl_final_exec_prefix="$exec_prefix"
7473   fi
7474   acl_save_prefix="$prefix"
7475   prefix="$acl_final_prefix"
7476   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7477   prefix="$acl_save_prefix"
7478
7479
7480 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7481 if test "${with_gnu_ld+set}" = set; then
7482   withval="$with_gnu_ld"
7483   test "$withval" = no || with_gnu_ld=yes
7484 else
7485   with_gnu_ld=no
7486 fi;
7487 # Prepare PATH_SEPARATOR.
7488 # The user is always right.
7489 if test "${PATH_SEPARATOR+set}" != set; then
7490   echo "#! /bin/sh" >conf$$.sh
7491   echo  "exit 0"   >>conf$$.sh
7492   chmod +x conf$$.sh
7493   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7494     PATH_SEPARATOR=';'
7495   else
7496     PATH_SEPARATOR=:
7497   fi
7498   rm -f conf$$.sh
7499 fi
7500 ac_prog=ld
7501 if test "$GCC" = yes; then
7502   # Check if gcc -print-prog-name=ld gives a path.
7503   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7504 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7505   case $host in
7506   *-*-mingw*)
7507     # gcc leaves a trailing carriage return which upsets mingw
7508     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7509   *)
7510     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7511   esac
7512   case $ac_prog in
7513     # Accept absolute paths.
7514     [\\/]* | [A-Za-z]:[\\/]*)
7515       re_direlt='/[^/][^/]*/\.\./'
7516       # Canonicalize the path of ld
7517       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7518       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7519         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7520       done
7521       test -z "$LD" && LD="$ac_prog"
7522       ;;
7523   "")
7524     # If it fails, then pretend we aren't using GCC.
7525     ac_prog=ld
7526     ;;
7527   *)
7528     # If it is relative, then search for the first ld in PATH.
7529     with_gnu_ld=unknown
7530     ;;
7531   esac
7532 elif test "$with_gnu_ld" = yes; then
7533   echo "$as_me:$LINENO: checking for GNU ld" >&5
7534 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7535 else
7536   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7537 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7538 fi
7539 if test "${acl_cv_path_LD+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   if test -z "$LD"; then
7543   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7544   for ac_dir in $PATH; do
7545     test -z "$ac_dir" && ac_dir=.
7546     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7547       acl_cv_path_LD="$ac_dir/$ac_prog"
7548       # Check to see if the program is GNU ld.  I'd rather use --version,
7549       # but apparently some GNU ld's only accept -v.
7550       # Break only if it was the GNU/non-GNU ld that we prefer.
7551       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7552       *GNU* | *'with BFD'*)
7553         test "$with_gnu_ld" != no && break ;;
7554       *)
7555         test "$with_gnu_ld" != yes && break ;;
7556       esac
7557     fi
7558   done
7559   IFS="$ac_save_ifs"
7560 else
7561   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7562 fi
7563 fi
7564
7565 LD="$acl_cv_path_LD"
7566 if test -n "$LD"; then
7567   echo "$as_me:$LINENO: result: $LD" >&5
7568 echo "${ECHO_T}$LD" >&6
7569 else
7570   echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6
7572 fi
7573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7575    { (exit 1); exit 1; }; }
7576 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7578 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7582 case `$LD -v 2>&1 </dev/null` in
7583 *GNU* | *'with BFD'*)
7584   acl_cv_prog_gnu_ld=yes ;;
7585 *)
7586   acl_cv_prog_gnu_ld=no ;;
7587 esac
7588 fi
7589 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7590 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7591 with_gnu_ld=$acl_cv_prog_gnu_ld
7592
7593
7594
7595                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7596 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7597 if test "${acl_cv_rpath+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600
7601     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7602     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7603     . ./conftest.sh
7604     rm -f ./conftest.sh
7605     acl_cv_rpath=done
7606
7607 fi
7608 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7609 echo "${ECHO_T}$acl_cv_rpath" >&6
7610   wl="$acl_cv_wl"
7611   libext="$acl_cv_libext"
7612   shlibext="$acl_cv_shlibext"
7613   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7614   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7615   hardcode_direct="$acl_cv_hardcode_direct"
7616   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7617     # Check whether --enable-rpath or --disable-rpath was given.
7618 if test "${enable_rpath+set}" = set; then
7619   enableval="$enable_rpath"
7620   :
7621 else
7622   enable_rpath=yes
7623 fi;
7624
7625
7626
7627
7628
7629
7630
7631     use_additional=yes
7632
7633   acl_save_prefix="$prefix"
7634   prefix="$acl_final_prefix"
7635   acl_save_exec_prefix="$exec_prefix"
7636   exec_prefix="$acl_final_exec_prefix"
7637
7638     eval additional_includedir=\"$includedir\"
7639     eval additional_libdir=\"$libdir\"
7640
7641   exec_prefix="$acl_save_exec_prefix"
7642   prefix="$acl_save_prefix"
7643
7644
7645 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7646 if test "${with_libiconv_prefix+set}" = set; then
7647   withval="$with_libiconv_prefix"
7648
7649     if test "X$withval" = "Xno"; then
7650       use_additional=no
7651     else
7652       if test "X$withval" = "X"; then
7653
7654   acl_save_prefix="$prefix"
7655   prefix="$acl_final_prefix"
7656   acl_save_exec_prefix="$exec_prefix"
7657   exec_prefix="$acl_final_exec_prefix"
7658
7659           eval additional_includedir=\"$includedir\"
7660           eval additional_libdir=\"$libdir\"
7661
7662   exec_prefix="$acl_save_exec_prefix"
7663   prefix="$acl_save_prefix"
7664
7665       else
7666         additional_includedir="$withval/include"
7667         additional_libdir="$withval/lib"
7668       fi
7669     fi
7670
7671 fi;
7672       LIBICONV=
7673   LTLIBICONV=
7674   INCICONV=
7675   rpathdirs=
7676   ltrpathdirs=
7677   names_already_handled=
7678   names_next_round='iconv '
7679   while test -n "$names_next_round"; do
7680     names_this_round="$names_next_round"
7681     names_next_round=
7682     for name in $names_this_round; do
7683       already_handled=
7684       for n in $names_already_handled; do
7685         if test "$n" = "$name"; then
7686           already_handled=yes
7687           break
7688         fi
7689       done
7690       if test -z "$already_handled"; then
7691         names_already_handled="$names_already_handled $name"
7692                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7693         eval value=\"\$HAVE_LIB$uppername\"
7694         if test -n "$value"; then
7695           if test "$value" = yes; then
7696             eval value=\"\$LIB$uppername\"
7697             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7698             eval value=\"\$LTLIB$uppername\"
7699             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7700           else
7701                                     :
7702           fi
7703         else
7704                               found_dir=
7705           found_la=
7706           found_so=
7707           found_a=
7708           if test $use_additional = yes; then
7709             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7710               found_dir="$additional_libdir"
7711               found_so="$additional_libdir/lib$name.$shlibext"
7712               if test -f "$additional_libdir/lib$name.la"; then
7713                 found_la="$additional_libdir/lib$name.la"
7714               fi
7715             else
7716               if test -f "$additional_libdir/lib$name.$libext"; then
7717                 found_dir="$additional_libdir"
7718                 found_a="$additional_libdir/lib$name.$libext"
7719                 if test -f "$additional_libdir/lib$name.la"; then
7720                   found_la="$additional_libdir/lib$name.la"
7721                 fi
7722               fi
7723             fi
7724           fi
7725           if test "X$found_dir" = "X"; then
7726             for x in $LDFLAGS $LTLIBICONV; do
7727
7728   acl_save_prefix="$prefix"
7729   prefix="$acl_final_prefix"
7730   acl_save_exec_prefix="$exec_prefix"
7731   exec_prefix="$acl_final_exec_prefix"
7732   eval x=\"$x\"
7733   exec_prefix="$acl_save_exec_prefix"
7734   prefix="$acl_save_prefix"
7735
7736               case "$x" in
7737                 -L*)
7738                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7739                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7740                     found_dir="$dir"
7741                     found_so="$dir/lib$name.$shlibext"
7742                     if test -f "$dir/lib$name.la"; then
7743                       found_la="$dir/lib$name.la"
7744                     fi
7745                   else
7746                     if test -f "$dir/lib$name.$libext"; then
7747                       found_dir="$dir"
7748                       found_a="$dir/lib$name.$libext"
7749                       if test -f "$dir/lib$name.la"; then
7750                         found_la="$dir/lib$name.la"
7751                       fi
7752                     fi
7753                   fi
7754                   ;;
7755               esac
7756               if test "X$found_dir" != "X"; then
7757                 break
7758               fi
7759             done
7760           fi
7761           if test "X$found_dir" != "X"; then
7762                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7763             if test "X$found_so" != "X"; then
7764                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7765                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7766               else
7767                                                                                 haveit=
7768                 for x in $ltrpathdirs; do
7769                   if test "X$x" = "X$found_dir"; then
7770                     haveit=yes
7771                     break
7772                   fi
7773                 done
7774                 if test -z "$haveit"; then
7775                   ltrpathdirs="$ltrpathdirs $found_dir"
7776                 fi
7777                                 if test "$hardcode_direct" = yes; then
7778                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7779                 else
7780                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7781                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7782                                                             haveit=
7783                     for x in $rpathdirs; do
7784                       if test "X$x" = "X$found_dir"; then
7785                         haveit=yes
7786                         break
7787                       fi
7788                     done
7789                     if test -z "$haveit"; then
7790                       rpathdirs="$rpathdirs $found_dir"
7791                     fi
7792                   else
7793                                                                                 haveit=
7794                     for x in $LDFLAGS $LIBICONV; do
7795
7796   acl_save_prefix="$prefix"
7797   prefix="$acl_final_prefix"
7798   acl_save_exec_prefix="$exec_prefix"
7799   exec_prefix="$acl_final_exec_prefix"
7800   eval x=\"$x\"
7801   exec_prefix="$acl_save_exec_prefix"
7802   prefix="$acl_save_prefix"
7803
7804                       if test "X$x" = "X-L$found_dir"; then
7805                         haveit=yes
7806                         break
7807                       fi
7808                     done
7809                     if test -z "$haveit"; then
7810                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7811                     fi
7812                     if test "$hardcode_minus_L" != no; then
7813                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7814                     else
7815                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7816                     fi
7817                   fi
7818                 fi
7819               fi
7820             else
7821               if test "X$found_a" != "X"; then
7822                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7823               else
7824                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7825               fi
7826             fi
7827                         additional_includedir=
7828             case "$found_dir" in
7829               */lib | */lib/)
7830                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7831                 additional_includedir="$basedir/include"
7832                 ;;
7833             esac
7834             if test "X$additional_includedir" != "X"; then
7835                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7836                 haveit=
7837                 if test "X$additional_includedir" = "X/usr/local/include"; then
7838                   if test -n "$GCC"; then
7839                     case $host_os in
7840                       linux*) haveit=yes;;
7841                     esac
7842                   fi
7843                 fi
7844                 if test -z "$haveit"; then
7845                   for x in $CPPFLAGS $INCICONV; do
7846
7847   acl_save_prefix="$prefix"
7848   prefix="$acl_final_prefix"
7849   acl_save_exec_prefix="$exec_prefix"
7850   exec_prefix="$acl_final_exec_prefix"
7851   eval x=\"$x\"
7852   exec_prefix="$acl_save_exec_prefix"
7853   prefix="$acl_save_prefix"
7854
7855                     if test "X$x" = "X-I$additional_includedir"; then
7856                       haveit=yes
7857                       break
7858                     fi
7859                   done
7860                   if test -z "$haveit"; then
7861                     if test -d "$additional_includedir"; then
7862                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7863                     fi
7864                   fi
7865                 fi
7866               fi
7867             fi
7868                         if test -n "$found_la"; then
7869                                                         save_libdir="$libdir"
7870               case "$found_la" in
7871                 */* | *\\*) . "$found_la" ;;
7872                 *) . "./$found_la" ;;
7873               esac
7874               libdir="$save_libdir"
7875                             for dep in $dependency_libs; do
7876                 case "$dep" in
7877                   -L*)
7878                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7879                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7880                       haveit=
7881                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7882                         if test -n "$GCC"; then
7883                           case $host_os in
7884                             linux*) haveit=yes;;
7885                           esac
7886                         fi
7887                       fi
7888                       if test -z "$haveit"; then
7889                         haveit=
7890                         for x in $LDFLAGS $LIBICONV; do
7891
7892   acl_save_prefix="$prefix"
7893   prefix="$acl_final_prefix"
7894   acl_save_exec_prefix="$exec_prefix"
7895   exec_prefix="$acl_final_exec_prefix"
7896   eval x=\"$x\"
7897   exec_prefix="$acl_save_exec_prefix"
7898   prefix="$acl_save_prefix"
7899
7900                           if test "X$x" = "X-L$additional_libdir"; then
7901                             haveit=yes
7902                             break
7903                           fi
7904                         done
7905                         if test -z "$haveit"; then
7906                           if test -d "$additional_libdir"; then
7907                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7908                           fi
7909                         fi
7910                         haveit=
7911                         for x in $LDFLAGS $LTLIBICONV; do
7912
7913   acl_save_prefix="$prefix"
7914   prefix="$acl_final_prefix"
7915   acl_save_exec_prefix="$exec_prefix"
7916   exec_prefix="$acl_final_exec_prefix"
7917   eval x=\"$x\"
7918   exec_prefix="$acl_save_exec_prefix"
7919   prefix="$acl_save_prefix"
7920
7921                           if test "X$x" = "X-L$additional_libdir"; then
7922                             haveit=yes
7923                             break
7924                           fi
7925                         done
7926                         if test -z "$haveit"; then
7927                           if test -d "$additional_libdir"; then
7928                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7929                           fi
7930                         fi
7931                       fi
7932                     fi
7933                     ;;
7934                   -R*)
7935                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7936                     if test "$enable_rpath" != no; then
7937                                                                   haveit=
7938                       for x in $rpathdirs; do
7939                         if test "X$x" = "X$dir"; then
7940                           haveit=yes
7941                           break
7942                         fi
7943                       done
7944                       if test -z "$haveit"; then
7945                         rpathdirs="$rpathdirs $dir"
7946                       fi
7947                                                                   haveit=
7948                       for x in $ltrpathdirs; do
7949                         if test "X$x" = "X$dir"; then
7950                           haveit=yes
7951                           break
7952                         fi
7953                       done
7954                       if test -z "$haveit"; then
7955                         ltrpathdirs="$ltrpathdirs $dir"
7956                       fi
7957                     fi
7958                     ;;
7959                   -l*)
7960                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7961                     ;;
7962                   *.la)
7963                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7964                     ;;
7965                   *)
7966                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7967                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7968                     ;;
7969                 esac
7970               done
7971             fi
7972           else
7973                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7974             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7975           fi
7976         fi
7977       fi
7978     done
7979   done
7980   if test "X$rpathdirs" != "X"; then
7981     if test -n "$hardcode_libdir_separator"; then
7982                         alldirs=
7983       for found_dir in $rpathdirs; do
7984         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7985       done
7986             acl_save_libdir="$libdir"
7987       libdir="$alldirs"
7988       eval flag=\"$hardcode_libdir_flag_spec\"
7989       libdir="$acl_save_libdir"
7990       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7991     else
7992             for found_dir in $rpathdirs; do
7993         acl_save_libdir="$libdir"
7994         libdir="$found_dir"
7995         eval flag=\"$hardcode_libdir_flag_spec\"
7996         libdir="$acl_save_libdir"
7997         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7998       done
7999     fi
8000   fi
8001   if test "X$ltrpathdirs" != "X"; then
8002             for found_dir in $ltrpathdirs; do
8003       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8004     done
8005   fi
8006
8007
8008
8009
8010
8011
8012
8013
8014   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8015 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8016 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 $ac_includes_default
8026 int
8027 main ()
8028 {
8029 if ((ptrdiff_t *) 0)
8030   return 0;
8031 if (sizeof (ptrdiff_t))
8032   return 0;
8033   ;
8034   return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039   (eval $ac_compile) 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } &&
8046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048   (eval $ac_try) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; } &&
8052          { ac_try='test -s conftest.$ac_objext'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; }; then
8058   ac_cv_type_ptrdiff_t=yes
8059 else
8060   echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_cv_type_ptrdiff_t=no
8064 fi
8065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066 fi
8067 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8068 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8069 if test $ac_cv_type_ptrdiff_t = yes; then
8070   :
8071 else
8072
8073 cat >>confdefs.h <<\_ACEOF
8074 #define ptrdiff_t long
8075 _ACEOF
8076
8077
8078 fi
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8091 stdlib.h string.h unistd.h sys/param.h
8092 do
8093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095   echo "$as_me:$LINENO: checking for $ac_header" >&5
8096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 fi
8100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8102 else
8103   # Is the header compilable?
8104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 $ac_includes_default
8113 #include <$ac_header>
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117   (eval $ac_compile) 2>conftest.er1
8118   ac_status=$?
8119   grep -v '^ *+' conftest.er1 >conftest.err
8120   rm -f conftest.er1
8121   cat conftest.err >&5
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest.$ac_objext'
8131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132   (eval $ac_try) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; }; then
8136   ac_header_compiler=yes
8137 else
8138   echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 ac_header_compiler=no
8142 fi
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8146
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h.  */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h.  */
8156 #include <$ac_header>
8157 _ACEOF
8158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } >/dev/null; then
8166   if test -s conftest.err; then
8167     ac_cpp_err=$ac_c_preproc_warn_flag
8168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8169   else
8170     ac_cpp_err=
8171   fi
8172 else
8173   ac_cpp_err=yes
8174 fi
8175 if test -z "$ac_cpp_err"; then
8176   ac_header_preproc=yes
8177 else
8178   echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181   ac_header_preproc=no
8182 fi
8183 rm -f conftest.err conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185 echo "${ECHO_T}$ac_header_preproc" >&6
8186
8187 # So?  What about this header?
8188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8189   yes:no: )
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8194     ac_header_preproc=yes
8195     ;;
8196   no:yes:* )
8197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8209     (
8210       cat <<\_ASBOX
8211 ## ------------------------------------------ ##
8212 ## Report this to the AC_PACKAGE_NAME lists.  ##
8213 ## ------------------------------------------ ##
8214 _ASBOX
8215     ) |
8216       sed "s/^/$as_me: WARNING:     /" >&2
8217     ;;
8218 esac
8219 echo "$as_me:$LINENO: checking for $ac_header" >&5
8220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222   echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224   eval "$as_ac_Header=\$ac_header_preproc"
8225 fi
8226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8228
8229 fi
8230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231   cat >>confdefs.h <<_ACEOF
8232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233 _ACEOF
8234
8235 fi
8236
8237 done
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8263 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8264 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8265 __fsetlocking
8266 do
8267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 echo "$as_me:$LINENO: checking for $ac_func" >&5
8269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8270 if eval "test \"\${$as_ac_var+set}\" = set"; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8281 #define $ac_func innocuous_$ac_func
8282
8283 /* System header to define __stub macros and hopefully few prototypes,
8284     which can conflict with char $ac_func (); below.
8285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8286     <limits.h> exists even on freestanding compilers.  */
8287
8288 #ifdef __STDC__
8289 # include <limits.h>
8290 #else
8291 # include <assert.h>
8292 #endif
8293
8294 #undef $ac_func
8295
8296 /* Override any gcc2 internal prototype to avoid an error.  */
8297 #ifdef __cplusplus
8298 extern "C"
8299 {
8300 #endif
8301 /* We use char because int might match the return type of a gcc2
8302    builtin and then its argument prototype would still apply.  */
8303 char $ac_func ();
8304 /* The GNU C library defines this for functions which it implements
8305     to always fail with ENOSYS.  Some functions are actually named
8306     something starting with __ and the normal name is an alias.  */
8307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8308 choke me
8309 #else
8310 char (*f) () = $ac_func;
8311 #endif
8312 #ifdef __cplusplus
8313 }
8314 #endif
8315
8316 int
8317 main ()
8318 {
8319 return f != $ac_func;
8320   ;
8321   return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326   (eval $ac_link) 2>conftest.er1
8327   ac_status=$?
8328   grep -v '^ *+' conftest.er1 >conftest.err
8329   rm -f conftest.er1
8330   cat conftest.err >&5
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); } &&
8333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335   (eval $ac_try) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; } &&
8339          { ac_try='test -s conftest$ac_exeext'
8340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341   (eval $ac_try) 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); }; }; then
8345   eval "$as_ac_var=yes"
8346 else
8347   echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350 eval "$as_ac_var=no"
8351 fi
8352 rm -f conftest.err conftest.$ac_objext \
8353       conftest$ac_exeext conftest.$ac_ext
8354 fi
8355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8357 if test `eval echo '${'$as_ac_var'}'` = yes; then
8358   cat >>confdefs.h <<_ACEOF
8359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8360 _ACEOF
8361
8362 fi
8363 done
8364
8365
8366
8367   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8368 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8369 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372   cat >conftest.$ac_ext <<_ACEOF
8373 /* confdefs.h.  */
8374 _ACEOF
8375 cat confdefs.h >>conftest.$ac_ext
8376 cat >>conftest.$ac_ext <<_ACEOF
8377 /* end confdefs.h.  */
8378 #include <stdio.h>
8379 int
8380 main ()
8381 {
8382
8383 #ifndef _snprintf
8384   char *p = (char *) _snprintf;
8385 #endif
8386
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 rm -f conftest.$ac_objext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8393   (eval $ac_compile) 2>conftest.er1
8394   ac_status=$?
8395   grep -v '^ *+' conftest.er1 >conftest.err
8396   rm -f conftest.er1
8397   cat conftest.err >&5
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } &&
8400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; } &&
8406          { ac_try='test -s conftest.$ac_objext'
8407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408   (eval $ac_try) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; }; then
8412   ac_cv_have_decl__snprintf=yes
8413 else
8414   echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417 ac_cv_have_decl__snprintf=no
8418 fi
8419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8422 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8423   if test $ac_cv_have_decl__snprintf = yes; then
8424     gt_value=1
8425   else
8426     gt_value=0
8427   fi
8428
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_DECL__SNPRINTF $gt_value
8431 _ACEOF
8432
8433
8434
8435   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8436 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8437 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446 #include <stdio.h>
8447 int
8448 main ()
8449 {
8450
8451 #ifndef _snwprintf
8452   char *p = (char *) _snwprintf;
8453 #endif
8454
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 rm -f conftest.$ac_objext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461   (eval $ac_compile) 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } &&
8468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470   (eval $ac_try) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; } &&
8474          { ac_try='test -s conftest.$ac_objext'
8475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476   (eval $ac_try) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; }; then
8480   ac_cv_have_decl__snwprintf=yes
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485 ac_cv_have_decl__snwprintf=no
8486 fi
8487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8490 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8491   if test $ac_cv_have_decl__snwprintf = yes; then
8492     gt_value=1
8493   else
8494     gt_value=0
8495   fi
8496
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_DECL__SNWPRINTF $gt_value
8499 _ACEOF
8500
8501
8502
8503
8504   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8505 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8506 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515 #include <stdio.h>
8516 int
8517 main ()
8518 {
8519
8520 #ifndef feof_unlocked
8521   char *p = (char *) feof_unlocked;
8522 #endif
8523
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
8528 rm -f conftest.$ac_objext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530   (eval $ac_compile) 2>conftest.er1
8531   ac_status=$?
8532   grep -v '^ *+' conftest.er1 >conftest.err
8533   rm -f conftest.er1
8534   cat conftest.err >&5
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); } &&
8537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest.$ac_objext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   ac_cv_have_decl_feof_unlocked=yes
8550 else
8551   echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 ac_cv_have_decl_feof_unlocked=no
8555 fi
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557 fi
8558 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8559 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8560   if test $ac_cv_have_decl_feof_unlocked = yes; then
8561     gt_value=1
8562   else
8563     gt_value=0
8564   fi
8565
8566 cat >>confdefs.h <<_ACEOF
8567 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8568 _ACEOF
8569
8570
8571
8572   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8573 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8574 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8575   echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577   cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583 #include <stdio.h>
8584 int
8585 main ()
8586 {
8587
8588 #ifndef fgets_unlocked
8589   char *p = (char *) fgets_unlocked;
8590 #endif
8591
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8598   (eval $ac_compile) 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } &&
8605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607   (eval $ac_try) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; } &&
8611          { ac_try='test -s conftest.$ac_objext'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   ac_cv_have_decl_fgets_unlocked=yes
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 ac_cv_have_decl_fgets_unlocked=no
8623 fi
8624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8627 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8628   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8629     gt_value=1
8630   else
8631     gt_value=0
8632   fi
8633
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8636 _ACEOF
8637
8638
8639
8640   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8641 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8642 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8643   echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645   cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h.  */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h.  */
8651 #include <stdio.h>
8652 int
8653 main ()
8654 {
8655
8656 #ifndef getc_unlocked
8657   char *p = (char *) getc_unlocked;
8658 #endif
8659
8660   ;
8661   return 0;
8662 }
8663 _ACEOF
8664 rm -f conftest.$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666   (eval $ac_compile) 2>conftest.er1
8667   ac_status=$?
8668   grep -v '^ *+' conftest.er1 >conftest.err
8669   rm -f conftest.er1
8670   cat conftest.err >&5
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } &&
8673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675   (eval $ac_try) 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); }; } &&
8679          { ac_try='test -s conftest.$ac_objext'
8680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681   (eval $ac_try) 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); }; }; then
8685   ac_cv_have_decl_getc_unlocked=yes
8686 else
8687   echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690 ac_cv_have_decl_getc_unlocked=no
8691 fi
8692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693 fi
8694 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8695 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8696   if test $ac_cv_have_decl_getc_unlocked = yes; then
8697     gt_value=1
8698   else
8699     gt_value=0
8700   fi
8701
8702 cat >>confdefs.h <<_ACEOF
8703 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8704 _ACEOF
8705
8706
8707
8708   case $gt_cv_func_printf_posix in
8709     *yes) HAVE_POSIX_PRINTF=1 ;;
8710     *) HAVE_POSIX_PRINTF=0 ;;
8711   esac
8712
8713   if test "$ac_cv_func_asprintf" = yes; then
8714     HAVE_ASPRINTF=1
8715   else
8716     HAVE_ASPRINTF=0
8717   fi
8718
8719   if test "$ac_cv_func_snprintf" = yes; then
8720     HAVE_SNPRINTF=1
8721   else
8722     HAVE_SNPRINTF=0
8723   fi
8724
8725   if test "$ac_cv_func_wprintf" = yes; then
8726     HAVE_WPRINTF=1
8727   else
8728     HAVE_WPRINTF=0
8729   fi
8730
8731
8732
8733
8734
8735
8736
8737           am_save_CPPFLAGS="$CPPFLAGS"
8738
8739   for element in $INCICONV; do
8740     haveit=
8741     for x in $CPPFLAGS; do
8742
8743   acl_save_prefix="$prefix"
8744   prefix="$acl_final_prefix"
8745   acl_save_exec_prefix="$exec_prefix"
8746   exec_prefix="$acl_final_exec_prefix"
8747   eval x=\"$x\"
8748   exec_prefix="$acl_save_exec_prefix"
8749   prefix="$acl_save_prefix"
8750
8751       if test "X$x" = "X$element"; then
8752         haveit=yes
8753         break
8754       fi
8755     done
8756     if test -z "$haveit"; then
8757       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8758     fi
8759   done
8760
8761
8762   echo "$as_me:$LINENO: checking for iconv" >&5
8763 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8764 if test "${am_cv_func_iconv+set}" = set; then
8765   echo $ECHO_N "(cached) $ECHO_C" >&6
8766 else
8767
8768     am_cv_func_iconv="no, consider installing GNU libiconv"
8769     am_cv_lib_iconv=no
8770     cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h.  */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h.  */
8776 #include <stdlib.h>
8777 #include <iconv.h>
8778 int
8779 main ()
8780 {
8781 iconv_t cd = iconv_open("","");
8782        iconv(cd,NULL,NULL,NULL,NULL);
8783        iconv_close(cd);
8784   ;
8785   return 0;
8786 }
8787 _ACEOF
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790   (eval $ac_link) 2>conftest.er1
8791   ac_status=$?
8792   grep -v '^ *+' conftest.er1 >conftest.err
8793   rm -f conftest.er1
8794   cat conftest.err >&5
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); } &&
8797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799   (eval $ac_try) 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; } &&
8803          { ac_try='test -s conftest$ac_exeext'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; }; then
8809   am_cv_func_iconv=yes
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 fi
8815 rm -f conftest.err conftest.$ac_objext \
8816       conftest$ac_exeext conftest.$ac_ext
8817     if test "$am_cv_func_iconv" != yes; then
8818       am_save_LIBS="$LIBS"
8819       LIBS="$LIBS $LIBICONV"
8820       cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826 #include <stdlib.h>
8827 #include <iconv.h>
8828 int
8829 main ()
8830 {
8831 iconv_t cd = iconv_open("","");
8832          iconv(cd,NULL,NULL,NULL,NULL);
8833          iconv_close(cd);
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840   (eval $ac_link) 2>conftest.er1
8841   ac_status=$?
8842   grep -v '^ *+' conftest.er1 >conftest.err
8843   rm -f conftest.er1
8844   cat conftest.err >&5
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } &&
8847          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; } &&
8853          { ac_try='test -s conftest$ac_exeext'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   am_cv_lib_iconv=yes
8860         am_cv_func_iconv=yes
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 fi
8866 rm -f conftest.err conftest.$ac_objext \
8867       conftest$ac_exeext conftest.$ac_ext
8868       LIBS="$am_save_LIBS"
8869     fi
8870
8871 fi
8872 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8873 echo "${ECHO_T}$am_cv_func_iconv" >&6
8874   if test "$am_cv_func_iconv" = yes; then
8875
8876 cat >>confdefs.h <<\_ACEOF
8877 #define HAVE_ICONV 1
8878 _ACEOF
8879
8880   fi
8881   if test "$am_cv_lib_iconv" = yes; then
8882     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8883 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8884     echo "$as_me:$LINENO: result: $LIBICONV" >&5
8885 echo "${ECHO_T}$LIBICONV" >&6
8886   else
8887             CPPFLAGS="$am_save_CPPFLAGS"
8888     LIBICONV=
8889     LTLIBICONV=
8890   fi
8891
8892
8893
8894   if test "$am_cv_func_iconv" = yes; then
8895     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8896 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8897     if test "${am_cv_proto_iconv+set}" = set; then
8898   echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900
8901       cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h.  */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h.  */
8907
8908 #include <stdlib.h>
8909 #include <iconv.h>
8910 extern
8911 #ifdef __cplusplus
8912 "C"
8913 #endif
8914 #if defined(__STDC__) || defined(__cplusplus)
8915 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8916 #else
8917 size_t iconv();
8918 #endif
8919
8920 int
8921 main ()
8922 {
8923
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8930   (eval $ac_compile) 2>conftest.er1
8931   ac_status=$?
8932   grep -v '^ *+' conftest.er1 >conftest.err
8933   rm -f conftest.er1
8934   cat conftest.err >&5
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } &&
8937          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; } &&
8943          { ac_try='test -s conftest.$ac_objext'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; }; then
8949   am_cv_proto_iconv_arg1=""
8950 else
8951   echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954 am_cv_proto_iconv_arg1="const"
8955 fi
8956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8957       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);"
8958 fi
8959
8960     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8961     echo "$as_me:$LINENO: result: ${ac_t:-
8962          }$am_cv_proto_iconv" >&5
8963 echo "${ECHO_T}${ac_t:-
8964          }$am_cv_proto_iconv" >&6
8965
8966 cat >>confdefs.h <<_ACEOF
8967 #define ICONV_CONST $am_cv_proto_iconv_arg1
8968 _ACEOF
8969
8970   fi
8971
8972
8973   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8974 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8975 if test "${am_cv_langinfo_codeset+set}" = set; then
8976   echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978   cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984 #include <langinfo.h>
8985 int
8986 main ()
8987 {
8988 char* cs = nl_langinfo(CODESET);
8989   ;
8990   return 0;
8991 }
8992 _ACEOF
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995   (eval $ac_link) 2>conftest.er1
8996   ac_status=$?
8997   grep -v '^ *+' conftest.er1 >conftest.err
8998   rm -f conftest.er1
8999   cat conftest.err >&5
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); } &&
9002          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004   (eval $ac_try) 2>&5
9005   ac_status=$?
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); }; } &&
9008          { ac_try='test -s conftest$ac_exeext'
9009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010   (eval $ac_try) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; }; then
9014   am_cv_langinfo_codeset=yes
9015 else
9016   echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019 am_cv_langinfo_codeset=no
9020 fi
9021 rm -f conftest.err conftest.$ac_objext \
9022       conftest$ac_exeext conftest.$ac_ext
9023
9024 fi
9025 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9026 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9027   if test $am_cv_langinfo_codeset = yes; then
9028
9029 cat >>confdefs.h <<\_ACEOF
9030 #define HAVE_LANGINFO_CODESET 1
9031 _ACEOF
9032
9033   fi
9034
9035   if test $ac_cv_header_locale_h = yes; then
9036
9037   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9038 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9039 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042   cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h.  */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h.  */
9048 #include <locale.h>
9049 int
9050 main ()
9051 {
9052 return LC_MESSAGES
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059   (eval $ac_link) 2>conftest.er1
9060   ac_status=$?
9061   grep -v '^ *+' conftest.er1 >conftest.err
9062   rm -f conftest.er1
9063   cat conftest.err >&5
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); } &&
9066          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; } &&
9072          { ac_try='test -s conftest$ac_exeext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   am_cv_val_LC_MESSAGES=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 am_cv_val_LC_MESSAGES=no
9084 fi
9085 rm -f conftest.err conftest.$ac_objext \
9086       conftest$ac_exeext conftest.$ac_ext
9087 fi
9088 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9089 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9090   if test $am_cv_val_LC_MESSAGES = yes; then
9091
9092 cat >>confdefs.h <<\_ACEOF
9093 #define HAVE_LC_MESSAGES 1
9094 _ACEOF
9095
9096   fi
9097
9098   fi
9099
9100                       for ac_prog in bison
9101 do
9102   # Extract the first word of "$ac_prog", so it can be a program name with args.
9103 set dummy $ac_prog; ac_word=$2
9104 echo "$as_me:$LINENO: checking for $ac_word" >&5
9105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9106 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   if test -n "$INTLBISON"; then
9110   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9111 else
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9114 do
9115   IFS=$as_save_IFS
9116   test -z "$as_dir" && as_dir=.
9117   for ac_exec_ext in '' $ac_executable_extensions; do
9118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119     ac_cv_prog_INTLBISON="$ac_prog"
9120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9121     break 2
9122   fi
9123 done
9124 done
9125
9126 fi
9127 fi
9128 INTLBISON=$ac_cv_prog_INTLBISON
9129 if test -n "$INTLBISON"; then
9130   echo "$as_me:$LINENO: result: $INTLBISON" >&5
9131 echo "${ECHO_T}$INTLBISON" >&6
9132 else
9133   echo "$as_me:$LINENO: result: no" >&5
9134 echo "${ECHO_T}no" >&6
9135 fi
9136
9137   test -n "$INTLBISON" && break
9138 done
9139
9140   if test -z "$INTLBISON"; then
9141     ac_verc_fail=yes
9142   else
9143         echo "$as_me:$LINENO: checking version of bison" >&5
9144 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9145     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9146     case $ac_prog_version in
9147       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9148       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9149          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9150       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9151     esac
9152     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9153 echo "${ECHO_T}$ac_prog_version" >&6
9154   fi
9155   if test $ac_verc_fail = yes; then
9156     INTLBISON=:
9157   fi
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9175 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9176     # Check whether --enable-nls or --disable-nls was given.
9177 if test "${enable_nls+set}" = set; then
9178   enableval="$enable_nls"
9179   USE_NLS=$enableval
9180 else
9181   USE_NLS=yes
9182 fi;
9183   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9184 echo "${ECHO_T}$USE_NLS" >&6
9185
9186
9187
9188
9189     BUILD_INCLUDED_LIBINTL=no
9190     USE_INCLUDED_LIBINTL=no
9191
9192   LIBINTL=
9193   LTLIBINTL=
9194   POSUB=
9195
9196     if test "$USE_NLS" = "yes"; then
9197     gt_use_preinstalled_gnugettext=no
9198
9199       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9200 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9201
9202 # Check whether --with-included-gettext or --without-included-gettext was given.
9203 if test "${with_included_gettext+set}" = set; then
9204   withval="$with_included_gettext"
9205   nls_cv_force_use_gnu_gettext=$withval
9206 else
9207   nls_cv_force_use_gnu_gettext=no
9208 fi;
9209       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9210 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9211
9212       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9213       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9214
9215
9216
9217
9218
9219
9220         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9221 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9222 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231 #include <libintl.h>
9232 extern int _nl_msg_cat_cntr;
9233 extern int *_nl_domain_bindings;
9234 int
9235 main ()
9236 {
9237 bindtextdomain ("", "");
9238 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9239   ;
9240   return 0;
9241 }
9242 _ACEOF
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245   (eval $ac_link) 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } &&
9252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; } &&
9258          { ac_try='test -s conftest$ac_exeext'
9259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260   (eval $ac_try) 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; }; then
9264   gt_cv_func_gnugettext1_libc=yes
9265 else
9266   echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9268
9269 gt_cv_func_gnugettext1_libc=no
9270 fi
9271 rm -f conftest.err conftest.$ac_objext \
9272       conftest$ac_exeext conftest.$ac_ext
9273 fi
9274 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9275 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9276
9277         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9278
9279
9280
9281     use_additional=yes
9282
9283   acl_save_prefix="$prefix"
9284   prefix="$acl_final_prefix"
9285   acl_save_exec_prefix="$exec_prefix"
9286   exec_prefix="$acl_final_exec_prefix"
9287
9288     eval additional_includedir=\"$includedir\"
9289     eval additional_libdir=\"$libdir\"
9290
9291   exec_prefix="$acl_save_exec_prefix"
9292   prefix="$acl_save_prefix"
9293
9294
9295 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9296 if test "${with_libintl_prefix+set}" = set; then
9297   withval="$with_libintl_prefix"
9298
9299     if test "X$withval" = "Xno"; then
9300       use_additional=no
9301     else
9302       if test "X$withval" = "X"; then
9303
9304   acl_save_prefix="$prefix"
9305   prefix="$acl_final_prefix"
9306   acl_save_exec_prefix="$exec_prefix"
9307   exec_prefix="$acl_final_exec_prefix"
9308
9309           eval additional_includedir=\"$includedir\"
9310           eval additional_libdir=\"$libdir\"
9311
9312   exec_prefix="$acl_save_exec_prefix"
9313   prefix="$acl_save_prefix"
9314
9315       else
9316         additional_includedir="$withval/include"
9317         additional_libdir="$withval/lib"
9318       fi
9319     fi
9320
9321 fi;
9322       LIBINTL=
9323   LTLIBINTL=
9324   INCINTL=
9325   rpathdirs=
9326   ltrpathdirs=
9327   names_already_handled=
9328   names_next_round='intl '
9329   while test -n "$names_next_round"; do
9330     names_this_round="$names_next_round"
9331     names_next_round=
9332     for name in $names_this_round; do
9333       already_handled=
9334       for n in $names_already_handled; do
9335         if test "$n" = "$name"; then
9336           already_handled=yes
9337           break
9338         fi
9339       done
9340       if test -z "$already_handled"; then
9341         names_already_handled="$names_already_handled $name"
9342                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9343         eval value=\"\$HAVE_LIB$uppername\"
9344         if test -n "$value"; then
9345           if test "$value" = yes; then
9346             eval value=\"\$LIB$uppername\"
9347             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9348             eval value=\"\$LTLIB$uppername\"
9349             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9350           else
9351                                     :
9352           fi
9353         else
9354                               found_dir=
9355           found_la=
9356           found_so=
9357           found_a=
9358           if test $use_additional = yes; then
9359             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9360               found_dir="$additional_libdir"
9361               found_so="$additional_libdir/lib$name.$shlibext"
9362               if test -f "$additional_libdir/lib$name.la"; then
9363                 found_la="$additional_libdir/lib$name.la"
9364               fi
9365             else
9366               if test -f "$additional_libdir/lib$name.$libext"; then
9367                 found_dir="$additional_libdir"
9368                 found_a="$additional_libdir/lib$name.$libext"
9369                 if test -f "$additional_libdir/lib$name.la"; then
9370                   found_la="$additional_libdir/lib$name.la"
9371                 fi
9372               fi
9373             fi
9374           fi
9375           if test "X$found_dir" = "X"; then
9376             for x in $LDFLAGS $LTLIBINTL; do
9377
9378   acl_save_prefix="$prefix"
9379   prefix="$acl_final_prefix"
9380   acl_save_exec_prefix="$exec_prefix"
9381   exec_prefix="$acl_final_exec_prefix"
9382   eval x=\"$x\"
9383   exec_prefix="$acl_save_exec_prefix"
9384   prefix="$acl_save_prefix"
9385
9386               case "$x" in
9387                 -L*)
9388                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9389                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9390                     found_dir="$dir"
9391                     found_so="$dir/lib$name.$shlibext"
9392                     if test -f "$dir/lib$name.la"; then
9393                       found_la="$dir/lib$name.la"
9394                     fi
9395                   else
9396                     if test -f "$dir/lib$name.$libext"; then
9397                       found_dir="$dir"
9398                       found_a="$dir/lib$name.$libext"
9399                       if test -f "$dir/lib$name.la"; then
9400                         found_la="$dir/lib$name.la"
9401                       fi
9402                     fi
9403                   fi
9404                   ;;
9405               esac
9406               if test "X$found_dir" != "X"; then
9407                 break
9408               fi
9409             done
9410           fi
9411           if test "X$found_dir" != "X"; then
9412                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9413             if test "X$found_so" != "X"; then
9414                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9415                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9416               else
9417                                                                                 haveit=
9418                 for x in $ltrpathdirs; do
9419                   if test "X$x" = "X$found_dir"; then
9420                     haveit=yes
9421                     break
9422                   fi
9423                 done
9424                 if test -z "$haveit"; then
9425                   ltrpathdirs="$ltrpathdirs $found_dir"
9426                 fi
9427                                 if test "$hardcode_direct" = yes; then
9428                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9429                 else
9430                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9431                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9432                                                             haveit=
9433                     for x in $rpathdirs; do
9434                       if test "X$x" = "X$found_dir"; then
9435                         haveit=yes
9436                         break
9437                       fi
9438                     done
9439                     if test -z "$haveit"; then
9440                       rpathdirs="$rpathdirs $found_dir"
9441                     fi
9442                   else
9443                                                                                 haveit=
9444                     for x in $LDFLAGS $LIBINTL; do
9445
9446   acl_save_prefix="$prefix"
9447   prefix="$acl_final_prefix"
9448   acl_save_exec_prefix="$exec_prefix"
9449   exec_prefix="$acl_final_exec_prefix"
9450   eval x=\"$x\"
9451   exec_prefix="$acl_save_exec_prefix"
9452   prefix="$acl_save_prefix"
9453
9454                       if test "X$x" = "X-L$found_dir"; then
9455                         haveit=yes
9456                         break
9457                       fi
9458                     done
9459                     if test -z "$haveit"; then
9460                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9461                     fi
9462                     if test "$hardcode_minus_L" != no; then
9463                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9464                     else
9465                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9466                     fi
9467                   fi
9468                 fi
9469               fi
9470             else
9471               if test "X$found_a" != "X"; then
9472                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9473               else
9474                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9475               fi
9476             fi
9477                         additional_includedir=
9478             case "$found_dir" in
9479               */lib | */lib/)
9480                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9481                 additional_includedir="$basedir/include"
9482                 ;;
9483             esac
9484             if test "X$additional_includedir" != "X"; then
9485                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9486                 haveit=
9487                 if test "X$additional_includedir" = "X/usr/local/include"; then
9488                   if test -n "$GCC"; then
9489                     case $host_os in
9490                       linux*) haveit=yes;;
9491                     esac
9492                   fi
9493                 fi
9494                 if test -z "$haveit"; then
9495                   for x in $CPPFLAGS $INCINTL; do
9496
9497   acl_save_prefix="$prefix"
9498   prefix="$acl_final_prefix"
9499   acl_save_exec_prefix="$exec_prefix"
9500   exec_prefix="$acl_final_exec_prefix"
9501   eval x=\"$x\"
9502   exec_prefix="$acl_save_exec_prefix"
9503   prefix="$acl_save_prefix"
9504
9505                     if test "X$x" = "X-I$additional_includedir"; then
9506                       haveit=yes
9507                       break
9508                     fi
9509                   done
9510                   if test -z "$haveit"; then
9511                     if test -d "$additional_includedir"; then
9512                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9513                     fi
9514                   fi
9515                 fi
9516               fi
9517             fi
9518                         if test -n "$found_la"; then
9519                                                         save_libdir="$libdir"
9520               case "$found_la" in
9521                 */* | *\\*) . "$found_la" ;;
9522                 *) . "./$found_la" ;;
9523               esac
9524               libdir="$save_libdir"
9525                             for dep in $dependency_libs; do
9526                 case "$dep" in
9527                   -L*)
9528                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9529                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9530                       haveit=
9531                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9532                         if test -n "$GCC"; then
9533                           case $host_os in
9534                             linux*) haveit=yes;;
9535                           esac
9536                         fi
9537                       fi
9538                       if test -z "$haveit"; then
9539                         haveit=
9540                         for x in $LDFLAGS $LIBINTL; do
9541
9542   acl_save_prefix="$prefix"
9543   prefix="$acl_final_prefix"
9544   acl_save_exec_prefix="$exec_prefix"
9545   exec_prefix="$acl_final_exec_prefix"
9546   eval x=\"$x\"
9547   exec_prefix="$acl_save_exec_prefix"
9548   prefix="$acl_save_prefix"
9549
9550                           if test "X$x" = "X-L$additional_libdir"; then
9551                             haveit=yes
9552                             break
9553                           fi
9554                         done
9555                         if test -z "$haveit"; then
9556                           if test -d "$additional_libdir"; then
9557                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9558                           fi
9559                         fi
9560                         haveit=
9561                         for x in $LDFLAGS $LTLIBINTL; do
9562
9563   acl_save_prefix="$prefix"
9564   prefix="$acl_final_prefix"
9565   acl_save_exec_prefix="$exec_prefix"
9566   exec_prefix="$acl_final_exec_prefix"
9567   eval x=\"$x\"
9568   exec_prefix="$acl_save_exec_prefix"
9569   prefix="$acl_save_prefix"
9570
9571                           if test "X$x" = "X-L$additional_libdir"; then
9572                             haveit=yes
9573                             break
9574                           fi
9575                         done
9576                         if test -z "$haveit"; then
9577                           if test -d "$additional_libdir"; then
9578                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9579                           fi
9580                         fi
9581                       fi
9582                     fi
9583                     ;;
9584                   -R*)
9585                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9586                     if test "$enable_rpath" != no; then
9587                                                                   haveit=
9588                       for x in $rpathdirs; do
9589                         if test "X$x" = "X$dir"; then
9590                           haveit=yes
9591                           break
9592                         fi
9593                       done
9594                       if test -z "$haveit"; then
9595                         rpathdirs="$rpathdirs $dir"
9596                       fi
9597                                                                   haveit=
9598                       for x in $ltrpathdirs; do
9599                         if test "X$x" = "X$dir"; then
9600                           haveit=yes
9601                           break
9602                         fi
9603                       done
9604                       if test -z "$haveit"; then
9605                         ltrpathdirs="$ltrpathdirs $dir"
9606                       fi
9607                     fi
9608                     ;;
9609                   -l*)
9610                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9611                     ;;
9612                   *.la)
9613                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9614                     ;;
9615                   *)
9616                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9617                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9618                     ;;
9619                 esac
9620               done
9621             fi
9622           else
9623                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9624             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9625           fi
9626         fi
9627       fi
9628     done
9629   done
9630   if test "X$rpathdirs" != "X"; then
9631     if test -n "$hardcode_libdir_separator"; then
9632                         alldirs=
9633       for found_dir in $rpathdirs; do
9634         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9635       done
9636             acl_save_libdir="$libdir"
9637       libdir="$alldirs"
9638       eval flag=\"$hardcode_libdir_flag_spec\"
9639       libdir="$acl_save_libdir"
9640       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9641     else
9642             for found_dir in $rpathdirs; do
9643         acl_save_libdir="$libdir"
9644         libdir="$found_dir"
9645         eval flag=\"$hardcode_libdir_flag_spec\"
9646         libdir="$acl_save_libdir"
9647         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9648       done
9649     fi
9650   fi
9651   if test "X$ltrpathdirs" != "X"; then
9652             for found_dir in $ltrpathdirs; do
9653       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9654     done
9655   fi
9656
9657           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9658 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9659 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   gt_save_CPPFLAGS="$CPPFLAGS"
9663             CPPFLAGS="$CPPFLAGS $INCINTL"
9664             gt_save_LIBS="$LIBS"
9665             LIBS="$LIBS $LIBINTL"
9666                         cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h.  */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h.  */
9672 #include <libintl.h>
9673 extern int _nl_msg_cat_cntr;
9674 extern
9675 #ifdef __cplusplus
9676 "C"
9677 #endif
9678 const char *_nl_expand_alias ();
9679 int
9680 main ()
9681 {
9682 bindtextdomain ("", "");
9683 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9684   ;
9685   return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9690   (eval $ac_link) 2>conftest.er1
9691   ac_status=$?
9692   grep -v '^ *+' conftest.er1 >conftest.err
9693   rm -f conftest.er1
9694   cat conftest.err >&5
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } &&
9697          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699   (eval $ac_try) 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; } &&
9703          { ac_try='test -s conftest$ac_exeext'
9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705   (eval $ac_try) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; }; then
9709   gt_cv_func_gnugettext1_libintl=yes
9710 else
9711   echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 gt_cv_func_gnugettext1_libintl=no
9715 fi
9716 rm -f conftest.err conftest.$ac_objext \
9717       conftest$ac_exeext conftest.$ac_ext
9718                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9719               LIBS="$LIBS $LIBICONV"
9720               cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726 #include <libintl.h>
9727 extern int _nl_msg_cat_cntr;
9728 extern
9729 #ifdef __cplusplus
9730 "C"
9731 #endif
9732 const char *_nl_expand_alias ();
9733 int
9734 main ()
9735 {
9736 bindtextdomain ("", "");
9737 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744   (eval $ac_link) 2>conftest.er1
9745   ac_status=$?
9746   grep -v '^ *+' conftest.er1 >conftest.err
9747   rm -f conftest.er1
9748   cat conftest.err >&5
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } &&
9751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; } &&
9757          { ac_try='test -s conftest$ac_exeext'
9758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759   (eval $ac_try) 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; }; then
9763   LIBINTL="$LIBINTL $LIBICONV"
9764                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9765                 gt_cv_func_gnugettext1_libintl=yes
9766
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771 fi
9772 rm -f conftest.err conftest.$ac_objext \
9773       conftest$ac_exeext conftest.$ac_ext
9774             fi
9775             CPPFLAGS="$gt_save_CPPFLAGS"
9776             LIBS="$gt_save_LIBS"
9777 fi
9778 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9779 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9780         fi
9781
9782                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9783            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9784                 && test "$PACKAGE" != gettext-runtime \
9785                 && test "$PACKAGE" != gettext-tools; }; then
9786           gt_use_preinstalled_gnugettext=yes
9787         else
9788                     LIBINTL=
9789           LTLIBINTL=
9790           INCINTL=
9791         fi
9792
9793
9794         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9795                               nls_cv_use_gnu_gettext=yes
9796         fi
9797       fi
9798
9799       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9800                 BUILD_INCLUDED_LIBINTL=yes
9801         USE_INCLUDED_LIBINTL=yes
9802         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9803         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9804         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9805       fi
9806
9807       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9808          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9809                 CATOBJEXT=.gmo
9810       fi
9811
9812
9813     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9814        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9815
9816 cat >>confdefs.h <<\_ACEOF
9817 #define ENABLE_NLS 1
9818 _ACEOF
9819
9820     else
9821       USE_NLS=no
9822     fi
9823   fi
9824
9825   echo "$as_me:$LINENO: checking whether to use NLS" >&5
9826 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9827   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9828 echo "${ECHO_T}$USE_NLS" >&6
9829   if test "$USE_NLS" = "yes"; then
9830     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9831 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9832     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9833       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9834         gt_source="external libintl"
9835       else
9836         gt_source="libc"
9837       fi
9838     else
9839       gt_source="included intl directory"
9840     fi
9841     echo "$as_me:$LINENO: result: $gt_source" >&5
9842 echo "${ECHO_T}$gt_source" >&6
9843   fi
9844
9845   if test "$USE_NLS" = "yes"; then
9846
9847     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9848       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9849         echo "$as_me:$LINENO: checking how to link with libintl" >&5
9850 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9851         echo "$as_me:$LINENO: result: $LIBINTL" >&5
9852 echo "${ECHO_T}$LIBINTL" >&6
9853
9854   for element in $INCINTL; do
9855     haveit=
9856     for x in $CPPFLAGS; do
9857
9858   acl_save_prefix="$prefix"
9859   prefix="$acl_final_prefix"
9860   acl_save_exec_prefix="$exec_prefix"
9861   exec_prefix="$acl_final_exec_prefix"
9862   eval x=\"$x\"
9863   exec_prefix="$acl_save_exec_prefix"
9864   prefix="$acl_save_prefix"
9865
9866       if test "X$x" = "X$element"; then
9867         haveit=yes
9868         break
9869       fi
9870     done
9871     if test -z "$haveit"; then
9872       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9873     fi
9874   done
9875
9876       fi
9877
9878
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_GETTEXT 1
9881 _ACEOF
9882
9883
9884 cat >>confdefs.h <<\_ACEOF
9885 #define HAVE_DCGETTEXT 1
9886 _ACEOF
9887
9888     fi
9889
9890         POSUB=po
9891   fi
9892
9893
9894             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9895       BUILD_INCLUDED_LIBINTL=yes
9896     fi
9897
9898
9899
9900
9901
9902         nls_cv_header_intl=
9903     nls_cv_header_libgt=
9904
9905         DATADIRNAME=share
9906
9907
9908         INSTOBJEXT=.mo
9909
9910
9911         GENCAT=gencat
9912
9913
9914         if test "$USE_INCLUDED_LIBINTL" = yes; then
9915       INTLOBJS="\$(GETTOBJS)"
9916     fi
9917
9918
9919         INTL_LIBTOOL_SUFFIX_PREFIX=
9920
9921
9922
9923     INTLLIBS="$LIBINTL"
9924
9925
9926
9927
9928
9929
9930
9931 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9932 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9933 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9934 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9935   echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937   cat >conftest.make <<\_ACEOF
9938 all:
9939         @echo 'ac_maketemp="$(MAKE)"'
9940 _ACEOF
9941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9942 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9943 if test -n "$ac_maketemp"; then
9944   eval ac_cv_prog_make_${ac_make}_set=yes
9945 else
9946   eval ac_cv_prog_make_${ac_make}_set=no
9947 fi
9948 rm -f conftest.make
9949 fi
9950 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9951   echo "$as_me:$LINENO: result: yes" >&5
9952 echo "${ECHO_T}yes" >&6
9953   SET_MAKE=
9954 else
9955   echo "$as_me:$LINENO: result: no" >&5
9956 echo "${ECHO_T}no" >&6
9957   SET_MAKE="MAKE=${MAKE-make}"
9958 fi
9959
9960 # Extract the first word of "ln", so it can be a program name with args.
9961 set dummy ln; ac_word=$2
9962 echo "$as_me:$LINENO: checking for $ac_word" >&5
9963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9964 if test "${ac_cv_path_LN+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   case $LN in
9968   [\\/]* | ?:[\\/]*)
9969   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9970   ;;
9971   *)
9972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977   for ac_exec_ext in '' $ac_executable_extensions; do
9978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9981     break 2
9982   fi
9983 done
9984 done
9985
9986   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9987   ;;
9988 esac
9989 fi
9990 LN=$ac_cv_path_LN
9991
9992 if test -n "$LN"; then
9993   echo "$as_me:$LINENO: result: $LN" >&5
9994 echo "${ECHO_T}$LN" >&6
9995 else
9996   echo "$as_me:$LINENO: result: no" >&5
9997 echo "${ECHO_T}no" >&6
9998 fi
9999
10000 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10001 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10002 LN_S=$as_ln_s
10003 if test "$LN_S" = "ln -s"; then
10004   echo "$as_me:$LINENO: result: yes" >&5
10005 echo "${ECHO_T}yes" >&6
10006 else
10007   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10008 echo "${ECHO_T}no, using $LN_S" >&6
10009 fi
10010
10011 # Extract the first word of "mv", so it can be a program name with args.
10012 set dummy mv; ac_word=$2
10013 echo "$as_me:$LINENO: checking for $ac_word" >&5
10014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10015 if test "${ac_cv_path_MV+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   case $MV in
10019   [\\/]* | ?:[\\/]*)
10020   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10021   ;;
10022   *)
10023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024 for as_dir in $PATH
10025 do
10026   IFS=$as_save_IFS
10027   test -z "$as_dir" && as_dir=.
10028   for ac_exec_ext in '' $ac_executable_extensions; do
10029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10030     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10032     break 2
10033   fi
10034 done
10035 done
10036
10037   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10038   ;;
10039 esac
10040 fi
10041 MV=$ac_cv_path_MV
10042
10043 if test -n "$MV"; then
10044   echo "$as_me:$LINENO: result: $MV" >&5
10045 echo "${ECHO_T}$MV" >&6
10046 else
10047   echo "$as_me:$LINENO: result: no" >&5
10048 echo "${ECHO_T}no" >&6
10049 fi
10050
10051 # Extract the first word of "cp", so it can be a program name with args.
10052 set dummy cp; ac_word=$2
10053 echo "$as_me:$LINENO: checking for $ac_word" >&5
10054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10055 if test "${ac_cv_path_CP+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   case $CP in
10059   [\\/]* | ?:[\\/]*)
10060   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10061   ;;
10062   *)
10063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066   IFS=$as_save_IFS
10067   test -z "$as_dir" && as_dir=.
10068   for ac_exec_ext in '' $ac_executable_extensions; do
10069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10072     break 2
10073   fi
10074 done
10075 done
10076
10077   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10078   ;;
10079 esac
10080 fi
10081 CP=$ac_cv_path_CP
10082
10083 if test -n "$CP"; then
10084   echo "$as_me:$LINENO: result: $CP" >&5
10085 echo "${ECHO_T}$CP" >&6
10086 else
10087   echo "$as_me:$LINENO: result: no" >&5
10088 echo "${ECHO_T}no" >&6
10089 fi
10090
10091 # Extract the first word of "rm", so it can be a program name with args.
10092 set dummy rm; ac_word=$2
10093 echo "$as_me:$LINENO: checking for $ac_word" >&5
10094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10095 if test "${ac_cv_path_RM+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   case $RM in
10099   [\\/]* | ?:[\\/]*)
10100   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10101   ;;
10102   *)
10103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10105 do
10106   IFS=$as_save_IFS
10107   test -z "$as_dir" && as_dir=.
10108   for ac_exec_ext in '' $ac_executable_extensions; do
10109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112     break 2
10113   fi
10114 done
10115 done
10116
10117   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10118   ;;
10119 esac
10120 fi
10121 RM=$ac_cv_path_RM
10122
10123 if test -n "$RM"; then
10124   echo "$as_me:$LINENO: result: $RM" >&5
10125 echo "${ECHO_T}$RM" >&6
10126 else
10127   echo "$as_me:$LINENO: result: no" >&5
10128 echo "${ECHO_T}no" >&6
10129 fi
10130
10131 # Extract the first word of "chmod", so it can be a program name with args.
10132 set dummy chmod; ac_word=$2
10133 echo "$as_me:$LINENO: checking for $ac_word" >&5
10134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10135 if test "${ac_cv_path_CHMOD+set}" = set; then
10136   echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138   case $CHMOD in
10139   [\\/]* | ?:[\\/]*)
10140   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10141   ;;
10142   *)
10143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144 for as_dir in $PATH
10145 do
10146   IFS=$as_save_IFS
10147   test -z "$as_dir" && as_dir=.
10148   for ac_exec_ext in '' $ac_executable_extensions; do
10149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10150     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10152     break 2
10153   fi
10154 done
10155 done
10156
10157   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10158   ;;
10159 esac
10160 fi
10161 CHMOD=$ac_cv_path_CHMOD
10162
10163 if test -n "$CHMOD"; then
10164   echo "$as_me:$LINENO: result: $CHMOD" >&5
10165 echo "${ECHO_T}$CHMOD" >&6
10166 else
10167   echo "$as_me:$LINENO: result: no" >&5
10168 echo "${ECHO_T}no" >&6
10169 fi
10170
10171 for ac_prog in gawk mawk nawk awk
10172 do
10173   # Extract the first word of "$ac_prog", so it can be a program name with args.
10174 set dummy $ac_prog; ac_word=$2
10175 echo "$as_me:$LINENO: checking for $ac_word" >&5
10176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177 if test "${ac_cv_prog_AWK+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180   if test -n "$AWK"; then
10181   ac_cv_prog_AWK="$AWK" # Let the user override the test.
10182 else
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10185 do
10186   IFS=$as_save_IFS
10187   test -z "$as_dir" && as_dir=.
10188   for ac_exec_ext in '' $ac_executable_extensions; do
10189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190     ac_cv_prog_AWK="$ac_prog"
10191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192     break 2
10193   fi
10194 done
10195 done
10196
10197 fi
10198 fi
10199 AWK=$ac_cv_prog_AWK
10200 if test -n "$AWK"; then
10201   echo "$as_me:$LINENO: result: $AWK" >&5
10202 echo "${ECHO_T}$AWK" >&6
10203 else
10204   echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6
10206 fi
10207
10208   test -n "$AWK" && break
10209 done
10210
10211 echo "$as_me:$LINENO: checking for egrep" >&5
10212 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10213 if test "${ac_cv_prog_egrep+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10217     then ac_cv_prog_egrep='grep -E'
10218     else ac_cv_prog_egrep='egrep'
10219     fi
10220 fi
10221 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10222 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10223  EGREP=$ac_cv_prog_egrep
10224
10225
10226 # Extract the first word of "sed", so it can be a program name with args.
10227 set dummy sed; ac_word=$2
10228 echo "$as_me:$LINENO: checking for $ac_word" >&5
10229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10230 if test "${ac_cv_path_SED+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   case $SED in
10234   [\\/]* | ?:[\\/]*)
10235   ac_cv_path_SED="$SED" # Let the user override the test with a path.
10236   ;;
10237   *)
10238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10240 do
10241   IFS=$as_save_IFS
10242   test -z "$as_dir" && as_dir=.
10243   for ac_exec_ext in '' $ac_executable_extensions; do
10244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10247     break 2
10248   fi
10249 done
10250 done
10251
10252   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10253   ;;
10254 esac
10255 fi
10256 SED=$ac_cv_path_SED
10257
10258 if test -n "$SED"; then
10259   echo "$as_me:$LINENO: result: $SED" >&5
10260 echo "${ECHO_T}$SED" >&6
10261 else
10262   echo "$as_me:$LINENO: result: no" >&5
10263 echo "${ECHO_T}no" >&6
10264 fi
10265
10266 # Extract the first word of "perl", so it can be a program name with args.
10267 set dummy perl; ac_word=$2
10268 echo "$as_me:$LINENO: checking for $ac_word" >&5
10269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10270 if test "${ac_cv_path_PERL+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   case $PERL in
10274   [\\/]* | ?:[\\/]*)
10275   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10276   ;;
10277   *)
10278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10280 do
10281   IFS=$as_save_IFS
10282   test -z "$as_dir" && as_dir=.
10283   for ac_exec_ext in '' $ac_executable_extensions; do
10284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10287     break 2
10288   fi
10289 done
10290 done
10291
10292   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10293   ;;
10294 esac
10295 fi
10296 PERL=$ac_cv_path_PERL
10297
10298 if test -n "$PERL"; then
10299   echo "$as_me:$LINENO: result: $PERL" >&5
10300 echo "${ECHO_T}$PERL" >&6
10301 else
10302   echo "$as_me:$LINENO: result: no" >&5
10303 echo "${ECHO_T}no" >&6
10304 fi
10305
10306 # Extract the first word of "ldconfig", so it can be a program name with args.
10307 set dummy ldconfig; ac_word=$2
10308 echo "$as_me:$LINENO: checking for $ac_word" >&5
10309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10310 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10311   echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313   case $LDCONFIG in
10314   [\\/]* | ?:[\\/]*)
10315   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10316   ;;
10317   *)
10318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10320 do
10321   IFS=$as_save_IFS
10322   test -z "$as_dir" && as_dir=.
10323   for ac_exec_ext in '' $ac_executable_extensions; do
10324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10327     break 2
10328   fi
10329 done
10330 done
10331
10332   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10333   ;;
10334 esac
10335 fi
10336 LDCONFIG=$ac_cv_path_LDCONFIG
10337
10338 if test -n "$LDCONFIG"; then
10339   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10340 echo "${ECHO_T}$LDCONFIG" >&6
10341 else
10342   echo "$as_me:$LINENO: result: no" >&5
10343 echo "${ECHO_T}no" >&6
10344 fi
10345
10346 if test -n "$ac_tool_prefix"; then
10347   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10348 set dummy ${ac_tool_prefix}ar; ac_word=$2
10349 echo "$as_me:$LINENO: checking for $ac_word" >&5
10350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10351 if test "${ac_cv_prog_AR+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354   if test -n "$AR"; then
10355   ac_cv_prog_AR="$AR" # Let the user override the test.
10356 else
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10359 do
10360   IFS=$as_save_IFS
10361   test -z "$as_dir" && as_dir=.
10362   for ac_exec_ext in '' $ac_executable_extensions; do
10363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364     ac_cv_prog_AR="${ac_tool_prefix}ar"
10365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10366     break 2
10367   fi
10368 done
10369 done
10370
10371 fi
10372 fi
10373 AR=$ac_cv_prog_AR
10374 if test -n "$AR"; then
10375   echo "$as_me:$LINENO: result: $AR" >&5
10376 echo "${ECHO_T}$AR" >&6
10377 else
10378   echo "$as_me:$LINENO: result: no" >&5
10379 echo "${ECHO_T}no" >&6
10380 fi
10381
10382 fi
10383 if test -z "$ac_cv_prog_AR"; then
10384   ac_ct_AR=$AR
10385   # Extract the first word of "ar", so it can be a program name with args.
10386 set dummy ar; ac_word=$2
10387 echo "$as_me:$LINENO: checking for $ac_word" >&5
10388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   if test -n "$ac_ct_AR"; then
10393   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10394 else
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10397 do
10398   IFS=$as_save_IFS
10399   test -z "$as_dir" && as_dir=.
10400   for ac_exec_ext in '' $ac_executable_extensions; do
10401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402     ac_cv_prog_ac_ct_AR="ar"
10403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404     break 2
10405   fi
10406 done
10407 done
10408
10409   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
10410 fi
10411 fi
10412 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10413 if test -n "$ac_ct_AR"; then
10414   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10415 echo "${ECHO_T}$ac_ct_AR" >&6
10416 else
10417   echo "$as_me:$LINENO: result: no" >&5
10418 echo "${ECHO_T}no" >&6
10419 fi
10420
10421   AR=$ac_ct_AR
10422 else
10423   AR="$ac_cv_prog_AR"
10424 fi
10425
10426 if test -n "$ac_tool_prefix"; then
10427   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10429 echo "$as_me:$LINENO: checking for $ac_word" >&5
10430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10431 if test "${ac_cv_prog_RANLIB+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   if test -n "$RANLIB"; then
10435   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10439 do
10440   IFS=$as_save_IFS
10441   test -z "$as_dir" && as_dir=.
10442   for ac_exec_ext in '' $ac_executable_extensions; do
10443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10446     break 2
10447   fi
10448 done
10449 done
10450
10451 fi
10452 fi
10453 RANLIB=$ac_cv_prog_RANLIB
10454 if test -n "$RANLIB"; then
10455   echo "$as_me:$LINENO: result: $RANLIB" >&5
10456 echo "${ECHO_T}$RANLIB" >&6
10457 else
10458   echo "$as_me:$LINENO: result: no" >&5
10459 echo "${ECHO_T}no" >&6
10460 fi
10461
10462 fi
10463 if test -z "$ac_cv_prog_RANLIB"; then
10464   ac_ct_RANLIB=$RANLIB
10465   # Extract the first word of "ranlib", so it can be a program name with args.
10466 set dummy ranlib; ac_word=$2
10467 echo "$as_me:$LINENO: checking for $ac_word" >&5
10468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10470   echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472   if test -n "$ac_ct_RANLIB"; then
10473   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10474 else
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10477 do
10478   IFS=$as_save_IFS
10479   test -z "$as_dir" && as_dir=.
10480   for ac_exec_ext in '' $ac_executable_extensions; do
10481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482     ac_cv_prog_ac_ct_RANLIB="ranlib"
10483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10484     break 2
10485   fi
10486 done
10487 done
10488
10489   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10490 fi
10491 fi
10492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10493 if test -n "$ac_ct_RANLIB"; then
10494   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10495 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10496 else
10497   echo "$as_me:$LINENO: result: no" >&5
10498 echo "${ECHO_T}no" >&6
10499 fi
10500
10501   RANLIB=$ac_ct_RANLIB
10502 else
10503   RANLIB="$ac_cv_prog_RANLIB"
10504 fi
10505
10506 if test -n "$ac_tool_prefix"; then
10507   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10508 set dummy ${ac_tool_prefix}strip; ac_word=$2
10509 echo "$as_me:$LINENO: checking for $ac_word" >&5
10510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10511 if test "${ac_cv_prog_STRIP+set}" = set; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514   if test -n "$STRIP"; then
10515   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10516 else
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10519 do
10520   IFS=$as_save_IFS
10521   test -z "$as_dir" && as_dir=.
10522   for ac_exec_ext in '' $ac_executable_extensions; do
10523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10526     break 2
10527   fi
10528 done
10529 done
10530
10531 fi
10532 fi
10533 STRIP=$ac_cv_prog_STRIP
10534 if test -n "$STRIP"; then
10535   echo "$as_me:$LINENO: result: $STRIP" >&5
10536 echo "${ECHO_T}$STRIP" >&6
10537 else
10538   echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6
10540 fi
10541
10542 fi
10543 if test -z "$ac_cv_prog_STRIP"; then
10544   ac_ct_STRIP=$STRIP
10545   # Extract the first word of "strip", so it can be a program name with args.
10546 set dummy strip; ac_word=$2
10547 echo "$as_me:$LINENO: checking for $ac_word" >&5
10548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   if test -n "$ac_ct_STRIP"; then
10553   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10554 else
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10557 do
10558   IFS=$as_save_IFS
10559   test -z "$as_dir" && as_dir=.
10560   for ac_exec_ext in '' $ac_executable_extensions; do
10561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562     ac_cv_prog_ac_ct_STRIP="strip"
10563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10564     break 2
10565   fi
10566 done
10567 done
10568
10569   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10570 fi
10571 fi
10572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10573 if test -n "$ac_ct_STRIP"; then
10574   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10575 echo "${ECHO_T}$ac_ct_STRIP" >&6
10576 else
10577   echo "$as_me:$LINENO: result: no" >&5
10578 echo "${ECHO_T}no" >&6
10579 fi
10580
10581   STRIP=$ac_ct_STRIP
10582 else
10583   STRIP="$ac_cv_prog_STRIP"
10584 fi
10585
10586 # Find a good install program.  We prefer a C program (faster),
10587 # so one script is as good as another.  But avoid the broken or
10588 # incompatible versions:
10589 # SysV /etc/install, /usr/sbin/install
10590 # SunOS /usr/etc/install
10591 # IRIX /sbin/install
10592 # AIX /bin/install
10593 # AmigaOS /C/install, which installs bootblocks on floppy discs
10594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10597 # OS/2's system install, which has a completely different semantic
10598 # ./install, which can be erroneously created by make from ./install.sh.
10599 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10600 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10601 if test -z "$INSTALL"; then
10602 if test "${ac_cv_path_install+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606 for as_dir in $PATH
10607 do
10608   IFS=$as_save_IFS
10609   test -z "$as_dir" && as_dir=.
10610   # Account for people who put trailing slashes in PATH elements.
10611 case $as_dir/ in
10612   ./ | .// | /cC/* | \
10613   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10614   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10615   /usr/ucb/* ) ;;
10616   *)
10617     # OSF1 and SCO ODT 3.0 have their own names for install.
10618     # Don't use installbsd from OSF since it installs stuff as root
10619     # by default.
10620     for ac_prog in ginstall scoinst install; do
10621       for ac_exec_ext in '' $ac_executable_extensions; do
10622         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10623           if test $ac_prog = install &&
10624             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10625             # AIX install.  It has an incompatible calling convention.
10626             :
10627           elif test $ac_prog = install &&
10628             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10629             # program-specific install script used by HP pwplus--don't use.
10630             :
10631           else
10632             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10633             break 3
10634           fi
10635         fi
10636       done
10637     done
10638     ;;
10639 esac
10640 done
10641
10642
10643 fi
10644   if test "${ac_cv_path_install+set}" = set; then
10645     INSTALL=$ac_cv_path_install
10646   else
10647     # As a last resort, use the slow shell script.  We don't cache a
10648     # path for INSTALL within a source directory, because that will
10649     # break other packages using the cache if that directory is
10650     # removed, or if the path is relative.
10651     INSTALL=$ac_install_sh
10652   fi
10653 fi
10654 echo "$as_me:$LINENO: result: $INSTALL" >&5
10655 echo "${ECHO_T}$INSTALL" >&6
10656
10657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10658 # It thinks the first close brace ends the variable substitution.
10659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10660
10661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10662
10663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10664
10665 # See if we need a separate native compiler.
10666 if test $cross_compiling = no; then
10667   BUILD_CC="$CC"
10668
10669 else
10670   for ac_prog in gcc cc
10671 do
10672   # Extract the first word of "$ac_prog", so it can be a program name with args.
10673 set dummy $ac_prog; ac_word=$2
10674 echo "$as_me:$LINENO: checking for $ac_word" >&5
10675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10676 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10677   echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679   if test -n "$BUILD_CC"; then
10680   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10681 else
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10684 do
10685   IFS=$as_save_IFS
10686   test -z "$as_dir" && as_dir=.
10687   for ac_exec_ext in '' $ac_executable_extensions; do
10688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689     ac_cv_prog_BUILD_CC="$ac_prog"
10690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691     break 2
10692   fi
10693 done
10694 done
10695
10696 fi
10697 fi
10698 BUILD_CC=$ac_cv_prog_BUILD_CC
10699 if test -n "$BUILD_CC"; then
10700   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10701 echo "${ECHO_T}$BUILD_CC" >&6
10702 else
10703   echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6
10705 fi
10706
10707   test -n "$BUILD_CC" && break
10708 done
10709
10710 fi
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743 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/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.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.h net/if_dl.h netinet/in.h
10744 do
10745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10747   echo "$as_me:$LINENO: checking for $ac_header" >&5
10748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 fi
10752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10754 else
10755   # Is the header compilable?
10756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h.  */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h.  */
10764 $ac_includes_default
10765 #include <$ac_header>
10766 _ACEOF
10767 rm -f conftest.$ac_objext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769   (eval $ac_compile) 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } &&
10776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778   (eval $ac_try) 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; } &&
10782          { ac_try='test -s conftest.$ac_objext'
10783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784   (eval $ac_try) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; }; then
10788   ac_header_compiler=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 ac_header_compiler=no
10794 fi
10795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10797 echo "${ECHO_T}$ac_header_compiler" >&6
10798
10799 # Is the header present?
10800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h.  */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h.  */
10808 #include <$ac_header>
10809 _ACEOF
10810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10812   ac_status=$?
10813   grep -v '^ *+' conftest.er1 >conftest.err
10814   rm -f conftest.er1
10815   cat conftest.err >&5
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); } >/dev/null; then
10818   if test -s conftest.err; then
10819     ac_cpp_err=$ac_c_preproc_warn_flag
10820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10821   else
10822     ac_cpp_err=
10823   fi
10824 else
10825   ac_cpp_err=yes
10826 fi
10827 if test -z "$ac_cpp_err"; then
10828   ac_header_preproc=yes
10829 else
10830   echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10832
10833   ac_header_preproc=no
10834 fi
10835 rm -f conftest.err conftest.$ac_ext
10836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10837 echo "${ECHO_T}$ac_header_preproc" >&6
10838
10839 # So?  What about this header?
10840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10841   yes:no: )
10842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10846     ac_header_preproc=yes
10847     ;;
10848   no:yes:* )
10849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10851     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10852 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10855     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10856 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10859     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10861     (
10862       cat <<\_ASBOX
10863 ## ------------------------------------------ ##
10864 ## Report this to the AC_PACKAGE_NAME lists.  ##
10865 ## ------------------------------------------ ##
10866 _ASBOX
10867     ) |
10868       sed "s/^/$as_me: WARNING:     /" >&2
10869     ;;
10870 esac
10871 echo "$as_me:$LINENO: checking for $ac_header" >&5
10872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10874   echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876   eval "$as_ac_Header=\$ac_header_preproc"
10877 fi
10878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10880
10881 fi
10882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10883   cat >>confdefs.h <<_ACEOF
10884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10885 _ACEOF
10886
10887 fi
10888
10889 done
10890
10891
10892 for ac_func in vprintf
10893 do
10894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10895 echo "$as_me:$LINENO: checking for $ac_func" >&5
10896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10897 if eval "test \"\${$as_ac_var+set}\" = set"; then
10898   echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900   cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10908 #define $ac_func innocuous_$ac_func
10909
10910 /* System header to define __stub macros and hopefully few prototypes,
10911     which can conflict with char $ac_func (); below.
10912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10913     <limits.h> exists even on freestanding compilers.  */
10914
10915 #ifdef __STDC__
10916 # include <limits.h>
10917 #else
10918 # include <assert.h>
10919 #endif
10920
10921 #undef $ac_func
10922
10923 /* Override any gcc2 internal prototype to avoid an error.  */
10924 #ifdef __cplusplus
10925 extern "C"
10926 {
10927 #endif
10928 /* We use char because int might match the return type of a gcc2
10929    builtin and then its argument prototype would still apply.  */
10930 char $ac_func ();
10931 /* The GNU C library defines this for functions which it implements
10932     to always fail with ENOSYS.  Some functions are actually named
10933     something starting with __ and the normal name is an alias.  */
10934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10935 choke me
10936 #else
10937 char (*f) () = $ac_func;
10938 #endif
10939 #ifdef __cplusplus
10940 }
10941 #endif
10942
10943 int
10944 main ()
10945 {
10946 return f != $ac_func;
10947   ;
10948   return 0;
10949 }
10950 _ACEOF
10951 rm -f conftest.$ac_objext conftest$ac_exeext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10953   (eval $ac_link) 2>conftest.er1
10954   ac_status=$?
10955   grep -v '^ *+' conftest.er1 >conftest.err
10956   rm -f conftest.er1
10957   cat conftest.err >&5
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } &&
10960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; } &&
10966          { ac_try='test -s conftest$ac_exeext'
10967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968   (eval $ac_try) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); }; }; then
10972   eval "$as_ac_var=yes"
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977 eval "$as_ac_var=no"
10978 fi
10979 rm -f conftest.err conftest.$ac_objext \
10980       conftest$ac_exeext conftest.$ac_ext
10981 fi
10982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10984 if test `eval echo '${'$as_ac_var'}'` = yes; then
10985   cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10987 _ACEOF
10988
10989 echo "$as_me:$LINENO: checking for _doprnt" >&5
10990 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10991 if test "${ac_cv_func__doprnt+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11002 #define _doprnt innocuous__doprnt
11003
11004 /* System header to define __stub macros and hopefully few prototypes,
11005     which can conflict with char _doprnt (); below.
11006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007     <limits.h> exists even on freestanding compilers.  */
11008
11009 #ifdef __STDC__
11010 # include <limits.h>
11011 #else
11012 # include <assert.h>
11013 #endif
11014
11015 #undef _doprnt
11016
11017 /* Override any gcc2 internal prototype to avoid an error.  */
11018 #ifdef __cplusplus
11019 extern "C"
11020 {
11021 #endif
11022 /* We use char because int might match the return type of a gcc2
11023    builtin and then its argument prototype would still apply.  */
11024 char _doprnt ();
11025 /* The GNU C library defines this for functions which it implements
11026     to always fail with ENOSYS.  Some functions are actually named
11027     something starting with __ and the normal name is an alias.  */
11028 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11029 choke me
11030 #else
11031 char (*f) () = _doprnt;
11032 #endif
11033 #ifdef __cplusplus
11034 }
11035 #endif
11036
11037 int
11038 main ()
11039 {
11040 return f != _doprnt;
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047   (eval $ac_link) 2>conftest.er1
11048   ac_status=$?
11049   grep -v '^ *+' conftest.er1 >conftest.err
11050   rm -f conftest.er1
11051   cat conftest.err >&5
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } &&
11054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056   (eval $ac_try) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; } &&
11060          { ac_try='test -s conftest$ac_exeext'
11061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062   (eval $ac_try) 2>&5
11063   ac_status=$?
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); }; }; then
11066   ac_cv_func__doprnt=yes
11067 else
11068   echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071 ac_cv_func__doprnt=no
11072 fi
11073 rm -f conftest.err conftest.$ac_objext \
11074       conftest$ac_exeext conftest.$ac_ext
11075 fi
11076 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11077 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11078 if test $ac_cv_func__doprnt = yes; then
11079
11080 cat >>confdefs.h <<\_ACEOF
11081 #define HAVE_DOPRNT 1
11082 _ACEOF
11083
11084 fi
11085
11086 fi
11087 done
11088
11089
11090 echo "$as_me:$LINENO: checking whether d_reclen declared in dirent" >&5
11091 echo $ECHO_N "checking whether d_reclen declared in dirent... $ECHO_C" >&6
11092 if test "${e2fsprogs_cv_have_d_reclen_dirent+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 #include <dirent.h>
11102 int
11103 main ()
11104 {
11105 struct dirent de; de.d_reclen = 0;
11106   ;
11107   return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest.$ac_objext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11112   (eval $ac_compile) 2>conftest.er1
11113   ac_status=$?
11114   grep -v '^ *+' conftest.er1 >conftest.err
11115   rm -f conftest.er1
11116   cat conftest.err >&5
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } &&
11119          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121   (eval $ac_try) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; } &&
11125          { ac_try='test -s conftest.$ac_objext'
11126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127   (eval $ac_try) 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; }; then
11131   e2fsprogs_cv_have_d_reclen_dirent=yes
11132 else
11133   echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 e2fsprogs_cv_have_d_reclen_dirent=no
11137 fi
11138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11139 fi
11140
11141 echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_d_reclen_dirent" >&5
11142 echo "${ECHO_T}$e2fsprogs_cv_have_d_reclen_dirent" >&6
11143 if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
11144    cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_RECLEN_DIRENT 1
11146 _ACEOF
11147
11148 fi
11149 echo "$as_me:$LINENO: checking whether ssize_t declared" >&5
11150 echo $ECHO_N "checking whether ssize_t declared... $ECHO_C" >&6
11151 if test "${e2fsprogs_cv_have_ssize_t+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h.  */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h.  */
11160 #include <sys/types.h>
11161 int
11162 main ()
11163 {
11164 ssize_t a = 0;
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171   (eval $ac_compile) 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } &&
11178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180   (eval $ac_try) 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); }; } &&
11184          { ac_try='test -s conftest.$ac_objext'
11185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186   (eval $ac_try) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   e2fsprogs_cv_have_ssize_t=yes
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 e2fsprogs_cv_have_ssize_t=no
11196 fi
11197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11198 fi
11199
11200 echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_ssize_t" >&5
11201 echo "${ECHO_T}$e2fsprogs_cv_have_ssize_t" >&6
11202 if test "$e2fsprogs_cv_have_ssize_t" = yes; then
11203    cat >>confdefs.h <<\_ACEOF
11204 #define HAVE_TYPE_SSIZE_T 1
11205 _ACEOF
11206
11207 fi
11208 echo "$as_me:$LINENO: checking whether llseek declared in unistd.h" >&5
11209 echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6
11210 if test "${e2fsprogs_cv_have_llseek_prototype+set}" = set; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213   cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 #include <unistd.h>
11220 int
11221 main ()
11222 {
11223 extern int llseek(int);
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11230   (eval $ac_compile) 2>conftest.er1
11231   ac_status=$?
11232   grep -v '^ *+' conftest.er1 >conftest.err
11233   rm -f conftest.er1
11234   cat conftest.err >&5
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } &&
11237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
11243          { ac_try='test -s conftest.$ac_objext'
11244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245   (eval $ac_try) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; }; then
11249   e2fsprogs_cv_have_llseek_prototype=no
11250 else
11251   echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 e2fsprogs_cv_have_llseek_prototype=yes
11255 fi
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 fi
11258
11259 echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_llseek_prototype" >&5
11260 echo "${ECHO_T}$e2fsprogs_cv_have_llseek_prototype" >&6
11261 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
11262    cat >>confdefs.h <<\_ACEOF
11263 #define HAVE_LLSEEK_PROTOTYPE 1
11264 _ACEOF
11265
11266 fi
11267 echo "$as_me:$LINENO: checking whether lseek64 declared in unistd.h" >&5
11268 echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6
11269 if test "${e2fsprogs_cv_have_lseek64_prototype+set}" = set; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278 #define _LARGEFILE_SOURCE
11279 #define _LARGEFILE64_SOURCE
11280 #include <unistd.h>
11281 int
11282 main ()
11283 {
11284 extern int lseek64(int);
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291   (eval $ac_compile) 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300   (eval $ac_try) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; } &&
11304          { ac_try='test -s conftest.$ac_objext'
11305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306   (eval $ac_try) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   e2fsprogs_cv_have_lseek64_prototype=no
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 e2fsprogs_cv_have_lseek64_prototype=yes
11316 fi
11317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11318 fi
11319
11320 echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_lseek64_prototype" >&5
11321 echo "${ECHO_T}$e2fsprogs_cv_have_lseek64_prototype" >&6
11322 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
11323    cat >>confdefs.h <<\_ACEOF
11324 #define HAVE_LSEEK64_PROTOTYPE 1
11325 _ACEOF
11326
11327 fi
11328 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
11329   # if cross-compiling, with no cached values, just assume something common.
11330   ac_cv_sizeof_short=2
11331   ac_cv_sizeof_int=4
11332   ac_cv_sizeof_long=4
11333   ac_cv_sizeof_long_long=8
11334   { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11335 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11336 fi
11337 echo "$as_me:$LINENO: checking for short" >&5
11338 echo $ECHO_N "checking for short... $ECHO_C" >&6
11339 if test "${ac_cv_type_short+set}" = set; then
11340   echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342   cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h.  */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h.  */
11348 $ac_includes_default
11349 int
11350 main ()
11351 {
11352 if ((short *) 0)
11353   return 0;
11354 if (sizeof (short))
11355   return 0;
11356   ;
11357   return 0;
11358 }
11359 _ACEOF
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362   (eval $ac_compile) 2>conftest.er1
11363   ac_status=$?
11364   grep -v '^ *+' conftest.er1 >conftest.err
11365   rm -f conftest.er1
11366   cat conftest.err >&5
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); } &&
11369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371   (eval $ac_try) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; } &&
11375          { ac_try='test -s conftest.$ac_objext'
11376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377   (eval $ac_try) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; }; then
11381   ac_cv_type_short=yes
11382 else
11383   echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11385
11386 ac_cv_type_short=no
11387 fi
11388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11389 fi
11390 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11391 echo "${ECHO_T}$ac_cv_type_short" >&6
11392
11393 echo "$as_me:$LINENO: checking size of short" >&5
11394 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11395 if test "${ac_cv_sizeof_short+set}" = set; then
11396   echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398   if test "$ac_cv_type_short" = yes; then
11399   # The cast to unsigned long works around a bug in the HP C Compiler
11400   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11401   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11402   # This bug is HP SR number 8606223364.
11403   if test "$cross_compiling" = yes; then
11404   # Depending upon the size, compute the lo and hi bounds.
11405 cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h.  */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h.  */
11411 $ac_includes_default
11412 int
11413 main ()
11414 {
11415 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11416 test_array [0] = 0
11417
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 rm -f conftest.$ac_objext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11424   (eval $ac_compile) 2>conftest.er1
11425   ac_status=$?
11426   grep -v '^ *+' conftest.er1 >conftest.err
11427   rm -f conftest.er1
11428   cat conftest.err >&5
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } &&
11431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433   (eval $ac_try) 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); }; } &&
11437          { ac_try='test -s conftest.$ac_objext'
11438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439   (eval $ac_try) 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; }; then
11443   ac_lo=0 ac_mid=0
11444   while :; do
11445     cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451 $ac_includes_default
11452 int
11453 main ()
11454 {
11455 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11456 test_array [0] = 0
11457
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 rm -f conftest.$ac_objext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11464   (eval $ac_compile) 2>conftest.er1
11465   ac_status=$?
11466   grep -v '^ *+' conftest.er1 >conftest.err
11467   rm -f conftest.er1
11468   cat conftest.err >&5
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); } &&
11471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473   (eval $ac_try) 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); }; } &&
11477          { ac_try='test -s conftest.$ac_objext'
11478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479   (eval $ac_try) 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); }; }; then
11483   ac_hi=$ac_mid; break
11484 else
11485   echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 ac_lo=`expr $ac_mid + 1`
11489                     if test $ac_lo -le $ac_mid; then
11490                       ac_lo= ac_hi=
11491                       break
11492                     fi
11493                     ac_mid=`expr 2 '*' $ac_mid + 1`
11494 fi
11495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11496   done
11497 else
11498   echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 $ac_includes_default
11508 int
11509 main ()
11510 {
11511 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11512 test_array [0] = 0
11513
11514   ;
11515   return 0;
11516 }
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520   (eval $ac_compile) 2>conftest.er1
11521   ac_status=$?
11522   grep -v '^ *+' conftest.er1 >conftest.err
11523   rm -f conftest.er1
11524   cat conftest.err >&5
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); } &&
11527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529   (eval $ac_try) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; } &&
11533          { ac_try='test -s conftest.$ac_objext'
11534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535   (eval $ac_try) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); }; }; then
11539   ac_hi=-1 ac_mid=-1
11540   while :; do
11541     cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 $ac_includes_default
11548 int
11549 main ()
11550 {
11551 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11552 test_array [0] = 0
11553
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560   (eval $ac_compile) 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; } &&
11573          { ac_try='test -s conftest.$ac_objext'
11574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575   (eval $ac_try) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; }; then
11579   ac_lo=$ac_mid; break
11580 else
11581   echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584 ac_hi=`expr '(' $ac_mid ')' - 1`
11585                        if test $ac_mid -le $ac_hi; then
11586                          ac_lo= ac_hi=
11587                          break
11588                        fi
11589                        ac_mid=`expr 2 '*' $ac_mid`
11590 fi
11591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11592   done
11593 else
11594   echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11596
11597 ac_lo= ac_hi=
11598 fi
11599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11600 fi
11601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11602 # Binary search between lo and hi bounds.
11603 while test "x$ac_lo" != "x$ac_hi"; do
11604   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11605   cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h.  */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h.  */
11611 $ac_includes_default
11612 int
11613 main ()
11614 {
11615 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11616 test_array [0] = 0
11617
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11624   (eval $ac_compile) 2>conftest.er1
11625   ac_status=$?
11626   grep -v '^ *+' conftest.er1 >conftest.err
11627   rm -f conftest.er1
11628   cat conftest.err >&5
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } &&
11631          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633   (eval $ac_try) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; } &&
11637          { ac_try='test -s conftest.$ac_objext'
11638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639   (eval $ac_try) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; }; then
11643   ac_hi=$ac_mid
11644 else
11645   echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_lo=`expr '(' $ac_mid ')' + 1`
11649 fi
11650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11651 done
11652 case $ac_lo in
11653 ?*) ac_cv_sizeof_short=$ac_lo;;
11654 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11655 See \`config.log' for more details." >&5
11656 echo "$as_me: error: cannot compute sizeof (short), 77
11657 See \`config.log' for more details." >&2;}
11658    { (exit 1); exit 1; }; } ;;
11659 esac
11660 else
11661   if test "$cross_compiling" = yes; then
11662   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11663 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11664    { (exit 1); exit 1; }; }
11665 else
11666   cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 $ac_includes_default
11673 long longval () { return (long) (sizeof (short)); }
11674 unsigned long ulongval () { return (long) (sizeof (short)); }
11675 #include <stdio.h>
11676 #include <stdlib.h>
11677 int
11678 main ()
11679 {
11680
11681   FILE *f = fopen ("conftest.val", "w");
11682   if (! f)
11683     exit (1);
11684   if (((long) (sizeof (short))) < 0)
11685     {
11686       long i = longval ();
11687       if (i != ((long) (sizeof (short))))
11688         exit (1);
11689       fprintf (f, "%ld\n", i);
11690     }
11691   else
11692     {
11693       unsigned long i = ulongval ();
11694       if (i != ((long) (sizeof (short))))
11695         exit (1);
11696       fprintf (f, "%lu\n", i);
11697     }
11698   exit (ferror (f) || fclose (f) != 0);
11699
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706   (eval $ac_link) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; }; then
11715   ac_cv_sizeof_short=`cat conftest.val`
11716 else
11717   echo "$as_me: program exited with status $ac_status" >&5
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 ( exit $ac_status )
11722 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11723 See \`config.log' for more details." >&5
11724 echo "$as_me: error: cannot compute sizeof (short), 77
11725 See \`config.log' for more details." >&2;}
11726    { (exit 1); exit 1; }; }
11727 fi
11728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11729 fi
11730 fi
11731 rm -f conftest.val
11732 else
11733   ac_cv_sizeof_short=0
11734 fi
11735 fi
11736 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11737 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11738 cat >>confdefs.h <<_ACEOF
11739 #define SIZEOF_SHORT $ac_cv_sizeof_short
11740 _ACEOF
11741
11742
11743 echo "$as_me:$LINENO: checking for int" >&5
11744 echo $ECHO_N "checking for int... $ECHO_C" >&6
11745 if test "${ac_cv_type_int+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h.  */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h.  */
11754 $ac_includes_default
11755 int
11756 main ()
11757 {
11758 if ((int *) 0)
11759   return 0;
11760 if (sizeof (int))
11761   return 0;
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768   (eval $ac_compile) 2>conftest.er1
11769   ac_status=$?
11770   grep -v '^ *+' conftest.er1 >conftest.err
11771   rm -f conftest.er1
11772   cat conftest.err >&5
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; } &&
11781          { ac_try='test -s conftest.$ac_objext'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; }; then
11787   ac_cv_type_int=yes
11788 else
11789   echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792 ac_cv_type_int=no
11793 fi
11794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11795 fi
11796 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11797 echo "${ECHO_T}$ac_cv_type_int" >&6
11798
11799 echo "$as_me:$LINENO: checking size of int" >&5
11800 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11801 if test "${ac_cv_sizeof_int+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   if test "$ac_cv_type_int" = yes; then
11805   # The cast to unsigned long works around a bug in the HP C Compiler
11806   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11807   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11808   # This bug is HP SR number 8606223364.
11809   if test "$cross_compiling" = yes; then
11810   # Depending upon the size, compute the lo and hi bounds.
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817 $ac_includes_default
11818 int
11819 main ()
11820 {
11821 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11822 test_array [0] = 0
11823
11824   ;
11825   return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830   (eval $ac_compile) 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } &&
11837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839   (eval $ac_try) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; } &&
11843          { ac_try='test -s conftest.$ac_objext'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; }; then
11849   ac_lo=0 ac_mid=0
11850   while :; do
11851     cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857 $ac_includes_default
11858 int
11859 main ()
11860 {
11861 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11862 test_array [0] = 0
11863
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870   (eval $ac_compile) 2>conftest.er1
11871   ac_status=$?
11872   grep -v '^ *+' conftest.er1 >conftest.err
11873   rm -f conftest.er1
11874   cat conftest.err >&5
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } &&
11877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879   (eval $ac_try) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; } &&
11883          { ac_try='test -s conftest.$ac_objext'
11884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885   (eval $ac_try) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; }; then
11889   ac_hi=$ac_mid; break
11890 else
11891   echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 ac_lo=`expr $ac_mid + 1`
11895                     if test $ac_lo -le $ac_mid; then
11896                       ac_lo= ac_hi=
11897                       break
11898                     fi
11899                     ac_mid=`expr 2 '*' $ac_mid + 1`
11900 fi
11901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902   done
11903 else
11904   echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11906
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913 $ac_includes_default
11914 int
11915 main ()
11916 {
11917 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11918 test_array [0] = 0
11919
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926   (eval $ac_compile) 2>conftest.er1
11927   ac_status=$?
11928   grep -v '^ *+' conftest.er1 >conftest.err
11929   rm -f conftest.er1
11930   cat conftest.err >&5
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } &&
11933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935   (eval $ac_try) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; } &&
11939          { ac_try='test -s conftest.$ac_objext'
11940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; }; then
11945   ac_hi=-1 ac_mid=-1
11946   while :; do
11947     cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 $ac_includes_default
11954 int
11955 main ()
11956 {
11957 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11958 test_array [0] = 0
11959
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966   (eval $ac_compile) 2>conftest.er1
11967   ac_status=$?
11968   grep -v '^ *+' conftest.er1 >conftest.err
11969   rm -f conftest.er1
11970   cat conftest.err >&5
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; } &&
11979          { ac_try='test -s conftest.$ac_objext'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; }; then
11985   ac_lo=$ac_mid; break
11986 else
11987   echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ac_hi=`expr '(' $ac_mid ')' - 1`
11991                        if test $ac_mid -le $ac_hi; then
11992                          ac_lo= ac_hi=
11993                          break
11994                        fi
11995                        ac_mid=`expr 2 '*' $ac_mid`
11996 fi
11997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998   done
11999 else
12000   echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003 ac_lo= ac_hi=
12004 fi
12005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006 fi
12007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008 # Binary search between lo and hi bounds.
12009 while test "x$ac_lo" != "x$ac_hi"; do
12010   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12011   cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017 $ac_includes_default
12018 int
12019 main ()
12020 {
12021 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12022 test_array [0] = 0
12023
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030   (eval $ac_compile) 2>conftest.er1
12031   ac_status=$?
12032   grep -v '^ *+' conftest.er1 >conftest.err
12033   rm -f conftest.er1
12034   cat conftest.err >&5
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } &&
12037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039   (eval $ac_try) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; } &&
12043          { ac_try='test -s conftest.$ac_objext'
12044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045   (eval $ac_try) 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; }; then
12049   ac_hi=$ac_mid
12050 else
12051   echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 ac_lo=`expr '(' $ac_mid ')' + 1`
12055 fi
12056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12057 done
12058 case $ac_lo in
12059 ?*) ac_cv_sizeof_int=$ac_lo;;
12060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12061 See \`config.log' for more details." >&5
12062 echo "$as_me: error: cannot compute sizeof (int), 77
12063 See \`config.log' for more details." >&2;}
12064    { (exit 1); exit 1; }; } ;;
12065 esac
12066 else
12067   if test "$cross_compiling" = yes; then
12068   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12069 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12070    { (exit 1); exit 1; }; }
12071 else
12072   cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h.  */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h.  */
12078 $ac_includes_default
12079 long longval () { return (long) (sizeof (int)); }
12080 unsigned long ulongval () { return (long) (sizeof (int)); }
12081 #include <stdio.h>
12082 #include <stdlib.h>
12083 int
12084 main ()
12085 {
12086
12087   FILE *f = fopen ("conftest.val", "w");
12088   if (! f)
12089     exit (1);
12090   if (((long) (sizeof (int))) < 0)
12091     {
12092       long i = longval ();
12093       if (i != ((long) (sizeof (int))))
12094         exit (1);
12095       fprintf (f, "%ld\n", i);
12096     }
12097   else
12098     {
12099       unsigned long i = ulongval ();
12100       if (i != ((long) (sizeof (int))))
12101         exit (1);
12102       fprintf (f, "%lu\n", i);
12103     }
12104   exit (ferror (f) || fclose (f) != 0);
12105
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 rm -f conftest$ac_exeext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112   (eval $ac_link) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117   (eval $ac_try) 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; }; then
12121   ac_cv_sizeof_int=`cat conftest.val`
12122 else
12123   echo "$as_me: program exited with status $ac_status" >&5
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ( exit $ac_status )
12128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12129 See \`config.log' for more details." >&5
12130 echo "$as_me: error: cannot compute sizeof (int), 77
12131 See \`config.log' for more details." >&2;}
12132    { (exit 1); exit 1; }; }
12133 fi
12134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12135 fi
12136 fi
12137 rm -f conftest.val
12138 else
12139   ac_cv_sizeof_int=0
12140 fi
12141 fi
12142 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12143 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12144 cat >>confdefs.h <<_ACEOF
12145 #define SIZEOF_INT $ac_cv_sizeof_int
12146 _ACEOF
12147
12148
12149 echo "$as_me:$LINENO: checking for long" >&5
12150 echo $ECHO_N "checking for long... $ECHO_C" >&6
12151 if test "${ac_cv_type_long+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 $ac_includes_default
12161 int
12162 main ()
12163 {
12164 if ((long *) 0)
12165   return 0;
12166 if (sizeof (long))
12167   return 0;
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12174   (eval $ac_compile) 2>conftest.er1
12175   ac_status=$?
12176   grep -v '^ *+' conftest.er1 >conftest.err
12177   rm -f conftest.er1
12178   cat conftest.err >&5
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); } &&
12181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183   (eval $ac_try) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; } &&
12187          { ac_try='test -s conftest.$ac_objext'
12188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189   (eval $ac_try) 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; }; then
12193   ac_cv_type_long=yes
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 ac_cv_type_long=no
12199 fi
12200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12201 fi
12202 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12203 echo "${ECHO_T}$ac_cv_type_long" >&6
12204
12205 echo "$as_me:$LINENO: checking size of long" >&5
12206 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12207 if test "${ac_cv_sizeof_long+set}" = set; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210   if test "$ac_cv_type_long" = yes; then
12211   # The cast to unsigned long works around a bug in the HP C Compiler
12212   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12213   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12214   # This bug is HP SR number 8606223364.
12215   if test "$cross_compiling" = yes; then
12216   # Depending upon the size, compute the lo and hi bounds.
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h.  */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h.  */
12223 $ac_includes_default
12224 int
12225 main ()
12226 {
12227 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12228 test_array [0] = 0
12229
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 rm -f conftest.$ac_objext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236   (eval $ac_compile) 2>conftest.er1
12237   ac_status=$?
12238   grep -v '^ *+' conftest.er1 >conftest.err
12239   rm -f conftest.er1
12240   cat conftest.err >&5
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); } &&
12243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245   (eval $ac_try) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }; } &&
12249          { ac_try='test -s conftest.$ac_objext'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; }; then
12255   ac_lo=0 ac_mid=0
12256   while :; do
12257     cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263 $ac_includes_default
12264 int
12265 main ()
12266 {
12267 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12268 test_array [0] = 0
12269
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276   (eval $ac_compile) 2>conftest.er1
12277   ac_status=$?
12278   grep -v '^ *+' conftest.er1 >conftest.err
12279   rm -f conftest.er1
12280   cat conftest.err >&5
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } &&
12283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285   (eval $ac_try) 2>&5
12286   ac_status=$?
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); }; } &&
12289          { ac_try='test -s conftest.$ac_objext'
12290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291   (eval $ac_try) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }; }; then
12295   ac_hi=$ac_mid; break
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300 ac_lo=`expr $ac_mid + 1`
12301                     if test $ac_lo -le $ac_mid; then
12302                       ac_lo= ac_hi=
12303                       break
12304                     fi
12305                     ac_mid=`expr 2 '*' $ac_mid + 1`
12306 fi
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308   done
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319 $ac_includes_default
12320 int
12321 main ()
12322 {
12323 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12324 test_array [0] = 0
12325
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12332   (eval $ac_compile) 2>conftest.er1
12333   ac_status=$?
12334   grep -v '^ *+' conftest.er1 >conftest.err
12335   rm -f conftest.er1
12336   cat conftest.err >&5
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } &&
12339          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; } &&
12345          { ac_try='test -s conftest.$ac_objext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   ac_hi=-1 ac_mid=-1
12352   while :; do
12353     cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359 $ac_includes_default
12360 int
12361 main ()
12362 {
12363 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12364 test_array [0] = 0
12365
12366   ;
12367   return 0;
12368 }
12369 _ACEOF
12370 rm -f conftest.$ac_objext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12372   (eval $ac_compile) 2>conftest.er1
12373   ac_status=$?
12374   grep -v '^ *+' conftest.er1 >conftest.err
12375   rm -f conftest.er1
12376   cat conftest.err >&5
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } &&
12379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; } &&
12385          { ac_try='test -s conftest.$ac_objext'
12386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387   (eval $ac_try) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; }; then
12391   ac_lo=$ac_mid; break
12392 else
12393   echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ac_hi=`expr '(' $ac_mid ')' - 1`
12397                        if test $ac_mid -le $ac_hi; then
12398                          ac_lo= ac_hi=
12399                          break
12400                        fi
12401                        ac_mid=`expr 2 '*' $ac_mid`
12402 fi
12403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12404   done
12405 else
12406   echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 ac_lo= ac_hi=
12410 fi
12411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12412 fi
12413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12414 # Binary search between lo and hi bounds.
12415 while test "x$ac_lo" != "x$ac_hi"; do
12416   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12417   cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423 $ac_includes_default
12424 int
12425 main ()
12426 {
12427 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12428 test_array [0] = 0
12429
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436   (eval $ac_compile) 2>conftest.er1
12437   ac_status=$?
12438   grep -v '^ *+' conftest.er1 >conftest.err
12439   rm -f conftest.er1
12440   cat conftest.err >&5
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); } &&
12443          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445   (eval $ac_try) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; } &&
12449          { ac_try='test -s conftest.$ac_objext'
12450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451   (eval $ac_try) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_hi=$ac_mid
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 ac_lo=`expr '(' $ac_mid ')' + 1`
12461 fi
12462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12463 done
12464 case $ac_lo in
12465 ?*) ac_cv_sizeof_long=$ac_lo;;
12466 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12467 See \`config.log' for more details." >&5
12468 echo "$as_me: error: cannot compute sizeof (long), 77
12469 See \`config.log' for more details." >&2;}
12470    { (exit 1); exit 1; }; } ;;
12471 esac
12472 else
12473   if test "$cross_compiling" = yes; then
12474   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12475 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12476    { (exit 1); exit 1; }; }
12477 else
12478   cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484 $ac_includes_default
12485 long longval () { return (long) (sizeof (long)); }
12486 unsigned long ulongval () { return (long) (sizeof (long)); }
12487 #include <stdio.h>
12488 #include <stdlib.h>
12489 int
12490 main ()
12491 {
12492
12493   FILE *f = fopen ("conftest.val", "w");
12494   if (! f)
12495     exit (1);
12496   if (((long) (sizeof (long))) < 0)
12497     {
12498       long i = longval ();
12499       if (i != ((long) (sizeof (long))))
12500         exit (1);
12501       fprintf (f, "%ld\n", i);
12502     }
12503   else
12504     {
12505       unsigned long i = ulongval ();
12506       if (i != ((long) (sizeof (long))))
12507         exit (1);
12508       fprintf (f, "%lu\n", i);
12509     }
12510   exit (ferror (f) || fclose (f) != 0);
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest$ac_exeext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518   (eval $ac_link) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_sizeof_long=`cat conftest.val`
12528 else
12529   echo "$as_me: program exited with status $ac_status" >&5
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 ( exit $ac_status )
12534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12535 See \`config.log' for more details." >&5
12536 echo "$as_me: error: cannot compute sizeof (long), 77
12537 See \`config.log' for more details." >&2;}
12538    { (exit 1); exit 1; }; }
12539 fi
12540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12541 fi
12542 fi
12543 rm -f conftest.val
12544 else
12545   ac_cv_sizeof_long=0
12546 fi
12547 fi
12548 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12549 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12550 cat >>confdefs.h <<_ACEOF
12551 #define SIZEOF_LONG $ac_cv_sizeof_long
12552 _ACEOF
12553
12554
12555 echo "$as_me:$LINENO: checking for long long" >&5
12556 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12557 if test "${ac_cv_type_long_long+set}" = set; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560   cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566 $ac_includes_default
12567 int
12568 main ()
12569 {
12570 if ((long long *) 0)
12571   return 0;
12572 if (sizeof (long long))
12573   return 0;
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580   (eval $ac_compile) 2>conftest.er1
12581   ac_status=$?
12582   grep -v '^ *+' conftest.er1 >conftest.err
12583   rm -f conftest.er1
12584   cat conftest.err >&5
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); } &&
12587          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; } &&
12593          { ac_try='test -s conftest.$ac_objext'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; }; then
12599   ac_cv_type_long_long=yes
12600 else
12601   echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604 ac_cv_type_long_long=no
12605 fi
12606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12607 fi
12608 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12609 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12610
12611 echo "$as_me:$LINENO: checking size of long long" >&5
12612 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12613 if test "${ac_cv_sizeof_long_long+set}" = set; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   if test "$ac_cv_type_long_long" = yes; then
12617   # The cast to unsigned long works around a bug in the HP C Compiler
12618   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12619   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12620   # This bug is HP SR number 8606223364.
12621   if test "$cross_compiling" = yes; then
12622   # Depending upon the size, compute the lo and hi bounds.
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h.  */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h.  */
12629 $ac_includes_default
12630 int
12631 main ()
12632 {
12633 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12634 test_array [0] = 0
12635
12636   ;
12637   return 0;
12638 }
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642   (eval $ac_compile) 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } &&
12649          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651   (eval $ac_try) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; } &&
12655          { ac_try='test -s conftest.$ac_objext'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   ac_lo=0 ac_mid=0
12662   while :; do
12663     cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h.  */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h.  */
12669 $ac_includes_default
12670 int
12671 main ()
12672 {
12673 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12674 test_array [0] = 0
12675
12676   ;
12677   return 0;
12678 }
12679 _ACEOF
12680 rm -f conftest.$ac_objext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12682   (eval $ac_compile) 2>conftest.er1
12683   ac_status=$?
12684   grep -v '^ *+' conftest.er1 >conftest.err
12685   rm -f conftest.er1
12686   cat conftest.err >&5
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); } &&
12689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691   (eval $ac_try) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; } &&
12695          { ac_try='test -s conftest.$ac_objext'
12696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697   (eval $ac_try) 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; }; then
12701   ac_hi=$ac_mid; break
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 ac_lo=`expr $ac_mid + 1`
12707                     if test $ac_lo -le $ac_mid; then
12708                       ac_lo= ac_hi=
12709                       break
12710                     fi
12711                     ac_mid=`expr 2 '*' $ac_mid + 1`
12712 fi
12713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12714   done
12715 else
12716   echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h.  */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h.  */
12725 $ac_includes_default
12726 int
12727 main ()
12728 {
12729 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12730 test_array [0] = 0
12731
12732   ;
12733   return 0;
12734 }
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738   (eval $ac_compile) 2>conftest.er1
12739   ac_status=$?
12740   grep -v '^ *+' conftest.er1 >conftest.err
12741   rm -f conftest.er1
12742   cat conftest.err >&5
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } &&
12745          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747   (eval $ac_try) 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); }; } &&
12751          { ac_try='test -s conftest.$ac_objext'
12752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753   (eval $ac_try) 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; }; then
12757   ac_hi=-1 ac_mid=-1
12758   while :; do
12759     cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h.  */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h.  */
12765 $ac_includes_default
12766 int
12767 main ()
12768 {
12769 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12770 test_array [0] = 0
12771
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778   (eval $ac_compile) 2>conftest.er1
12779   ac_status=$?
12780   grep -v '^ *+' conftest.er1 >conftest.err
12781   rm -f conftest.er1
12782   cat conftest.err >&5
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } &&
12785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest.$ac_objext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   ac_lo=$ac_mid; break
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 ac_hi=`expr '(' $ac_mid ')' - 1`
12803                        if test $ac_mid -le $ac_hi; then
12804                          ac_lo= ac_hi=
12805                          break
12806                        fi
12807                        ac_mid=`expr 2 '*' $ac_mid`
12808 fi
12809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12810   done
12811 else
12812   echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815 ac_lo= ac_hi=
12816 fi
12817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12818 fi
12819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12820 # Binary search between lo and hi bounds.
12821 while test "x$ac_lo" != "x$ac_hi"; do
12822   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12823   cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h.  */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h.  */
12829 $ac_includes_default
12830 int
12831 main ()
12832 {
12833 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12834 test_array [0] = 0
12835
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 rm -f conftest.$ac_objext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12842   (eval $ac_compile) 2>conftest.er1
12843   ac_status=$?
12844   grep -v '^ *+' conftest.er1 >conftest.err
12845   rm -f conftest.er1
12846   cat conftest.err >&5
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } &&
12849          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851   (eval $ac_try) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; } &&
12855          { ac_try='test -s conftest.$ac_objext'
12856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857   (eval $ac_try) 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; }; then
12861   ac_hi=$ac_mid
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 ac_lo=`expr '(' $ac_mid ')' + 1`
12867 fi
12868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 done
12870 case $ac_lo in
12871 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12873 See \`config.log' for more details." >&5
12874 echo "$as_me: error: cannot compute sizeof (long long), 77
12875 See \`config.log' for more details." >&2;}
12876    { (exit 1); exit 1; }; } ;;
12877 esac
12878 else
12879   if test "$cross_compiling" = yes; then
12880   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12881 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12882    { (exit 1); exit 1; }; }
12883 else
12884   cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890 $ac_includes_default
12891 long longval () { return (long) (sizeof (long long)); }
12892 unsigned long ulongval () { return (long) (sizeof (long long)); }
12893 #include <stdio.h>
12894 #include <stdlib.h>
12895 int
12896 main ()
12897 {
12898
12899   FILE *f = fopen ("conftest.val", "w");
12900   if (! f)
12901     exit (1);
12902   if (((long) (sizeof (long long))) < 0)
12903     {
12904       long i = longval ();
12905       if (i != ((long) (sizeof (long long))))
12906         exit (1);
12907       fprintf (f, "%ld\n", i);
12908     }
12909   else
12910     {
12911       unsigned long i = ulongval ();
12912       if (i != ((long) (sizeof (long long))))
12913         exit (1);
12914       fprintf (f, "%lu\n", i);
12915     }
12916   exit (ferror (f) || fclose (f) != 0);
12917
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924   (eval $ac_link) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929   (eval $ac_try) 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); }; }; then
12933   ac_cv_sizeof_long_long=`cat conftest.val`
12934 else
12935   echo "$as_me: program exited with status $ac_status" >&5
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12938
12939 ( exit $ac_status )
12940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12941 See \`config.log' for more details." >&5
12942 echo "$as_me: error: cannot compute sizeof (long long), 77
12943 See \`config.log' for more details." >&2;}
12944    { (exit 1); exit 1; }; }
12945 fi
12946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12947 fi
12948 fi
12949 rm -f conftest.val
12950 else
12951   ac_cv_sizeof_long_long=0
12952 fi
12953 fi
12954 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12955 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12956 cat >>confdefs.h <<_ACEOF
12957 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12958 _ACEOF
12959
12960
12961 SIZEOF_SHORT=$ac_cv_sizeof_short
12962 SIZEOF_INT=$ac_cv_sizeof_int
12963 SIZEOF_LONG=$ac_cv_sizeof_long
12964 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12965
12966
12967
12968
12969 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12970 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12971 if test "${ac_cv_c_bigendian+set}" = set; then
12972   echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974   # See if sys/param.h defines the BYTE_ORDER macro.
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981 #include <sys/types.h>
12982 #include <sys/param.h>
12983
12984 int
12985 main ()
12986 {
12987 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12988  bogus endian macros
12989 #endif
12990
12991   ;
12992   return 0;
12993 }
12994 _ACEOF
12995 rm -f conftest.$ac_objext
12996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997   (eval $ac_compile) 2>conftest.er1
12998   ac_status=$?
12999   grep -v '^ *+' conftest.er1 >conftest.err
13000   rm -f conftest.er1
13001   cat conftest.err >&5
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); } &&
13004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006   (eval $ac_try) 2>&5
13007   ac_status=$?
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); }; } &&
13010          { ac_try='test -s conftest.$ac_objext'
13011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012   (eval $ac_try) 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); }; }; then
13016   # It does; now see whether it defined to BIG_ENDIAN or not.
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h.  */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h.  */
13023 #include <sys/types.h>
13024 #include <sys/param.h>
13025
13026 int
13027 main ()
13028 {
13029 #if BYTE_ORDER != BIG_ENDIAN
13030  not big endian
13031 #endif
13032
13033   ;
13034   return 0;
13035 }
13036 _ACEOF
13037 rm -f conftest.$ac_objext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039   (eval $ac_compile) 2>conftest.er1
13040   ac_status=$?
13041   grep -v '^ *+' conftest.er1 >conftest.err
13042   rm -f conftest.er1
13043   cat conftest.err >&5
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; } &&
13052          { ac_try='test -s conftest.$ac_objext'
13053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054   (eval $ac_try) 2>&5
13055   ac_status=$?
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); }; }; then
13058   ac_cv_c_bigendian=yes
13059 else
13060   echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13062
13063 ac_cv_c_bigendian=no
13064 fi
13065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13066 else
13067   echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13069
13070 # It does not; compile a test program.
13071 if test "$cross_compiling" = yes; then
13072   # try to guess the endianness by grepping values into an object file
13073   ac_cv_c_bigendian=unknown
13074   cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h.  */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h.  */
13080 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13081 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13082 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13083 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13084 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13085 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13086 int
13087 main ()
13088 {
13089  _ascii (); _ebcdic ();
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096   (eval $ac_compile) 2>conftest.er1
13097   ac_status=$?
13098   grep -v '^ *+' conftest.er1 >conftest.err
13099   rm -f conftest.er1
13100   cat conftest.err >&5
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } &&
13103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105   (eval $ac_try) 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; } &&
13109          { ac_try='test -s conftest.$ac_objext'
13110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111   (eval $ac_try) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; }; then
13115   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13116   ac_cv_c_bigendian=yes
13117 fi
13118 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13119   if test "$ac_cv_c_bigendian" = unknown; then
13120     ac_cv_c_bigendian=no
13121   else
13122     # finding both strings is unlikely to happen, but who knows?
13123     ac_cv_c_bigendian=unknown
13124   fi
13125 fi
13126 else
13127   echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13129
13130 fi
13131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13132 else
13133   cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139 int
13140 main ()
13141 {
13142   /* Are we little or big endian?  From Harbison&Steele.  */
13143   union
13144   {
13145     long l;
13146     char c[sizeof (long)];
13147   } u;
13148   u.l = 1;
13149   exit (u.c[sizeof (long) - 1] == 1);
13150 }
13151 _ACEOF
13152 rm -f conftest$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154   (eval $ac_link) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159   (eval $ac_try) 2>&5
13160   ac_status=$?
13161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162   (exit $ac_status); }; }; then
13163   ac_cv_c_bigendian=no
13164 else
13165   echo "$as_me: program exited with status $ac_status" >&5
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ( exit $ac_status )
13170 ac_cv_c_bigendian=yes
13171 fi
13172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13173 fi
13174 fi
13175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13176 fi
13177 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13178 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13179 case $ac_cv_c_bigendian in
13180   yes)
13181
13182 cat >>confdefs.h <<\_ACEOF
13183 #define WORDS_BIGENDIAN 1
13184 _ACEOF
13185  ;;
13186   no)
13187      ;;
13188   *)
13189     { { echo "$as_me:$LINENO: error: unknown endianness
13190 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13191 echo "$as_me: error: unknown endianness
13192 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13193    { (exit 1); exit 1; }; } ;;
13194 esac
13195
13196
13197 for ac_header in inttypes.h
13198 do
13199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13201   echo "$as_me:$LINENO: checking for $ac_header" >&5
13202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13204   echo $ECHO_N "(cached) $ECHO_C" >&6
13205 fi
13206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13208 else
13209   # Is the header compilable?
13210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 $ac_includes_default
13219 #include <$ac_header>
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223   (eval $ac_compile) 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } &&
13230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; } &&
13236          { ac_try='test -s conftest.$ac_objext'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   ac_header_compiler=yes
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 ac_header_compiler=no
13248 fi
13249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13251 echo "${ECHO_T}$ac_header_compiler" >&6
13252
13253 # Is the header present?
13254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13256 cat >conftest.$ac_ext <<_ACEOF
13257 /* confdefs.h.  */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h.  */
13262 #include <$ac_header>
13263 _ACEOF
13264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13266   ac_status=$?
13267   grep -v '^ *+' conftest.er1 >conftest.err
13268   rm -f conftest.er1
13269   cat conftest.err >&5
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); } >/dev/null; then
13272   if test -s conftest.err; then
13273     ac_cpp_err=$ac_c_preproc_warn_flag
13274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13275   else
13276     ac_cpp_err=
13277   fi
13278 else
13279   ac_cpp_err=yes
13280 fi
13281 if test -z "$ac_cpp_err"; then
13282   ac_header_preproc=yes
13283 else
13284   echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287   ac_header_preproc=no
13288 fi
13289 rm -f conftest.err conftest.$ac_ext
13290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13291 echo "${ECHO_T}$ac_header_preproc" >&6
13292
13293 # So?  What about this header?
13294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13295   yes:no: )
13296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13300     ac_header_preproc=yes
13301     ;;
13302   no:yes:* )
13303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13315     (
13316       cat <<\_ASBOX
13317 ## ------------------------------------------ ##
13318 ## Report this to the AC_PACKAGE_NAME lists.  ##
13319 ## ------------------------------------------ ##
13320 _ASBOX
13321     ) |
13322       sed "s/^/$as_me: WARNING:     /" >&2
13323     ;;
13324 esac
13325 echo "$as_me:$LINENO: checking for $ac_header" >&5
13326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13328   echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330   eval "$as_ac_Header=\$ac_header_preproc"
13331 fi
13332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13334
13335 fi
13336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13337   cat >>confdefs.h <<_ACEOF
13338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13339 _ACEOF
13340
13341 fi
13342
13343 done
13344
13345 echo "$as_me:$LINENO: checking for intptr_t" >&5
13346 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13347 if test "${ac_cv_type_intptr_t+set}" = set; then
13348   echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350   cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h.  */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h.  */
13356 $ac_includes_default
13357 int
13358 main ()
13359 {
13360 if ((intptr_t *) 0)
13361   return 0;
13362 if (sizeof (intptr_t))
13363   return 0;
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370   (eval $ac_compile) 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } &&
13377          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; } &&
13383          { ac_try='test -s conftest.$ac_objext'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   ac_cv_type_intptr_t=yes
13390 else
13391   echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 ac_cv_type_intptr_t=no
13395 fi
13396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13397 fi
13398 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13399 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13400 if test $ac_cv_type_intptr_t = yes; then
13401
13402 cat >>confdefs.h <<_ACEOF
13403 #define HAVE_INTPTR_T 1
13404 _ACEOF
13405
13406
13407 fi
13408
13409 echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13410 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13411 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13412   echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414   cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420 #include <sys/stat.h>
13421 int
13422 main ()
13423 {
13424 struct stat stat; stat.st_flags = 0;
13425   ;
13426   return 0;
13427 }
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431   (eval $ac_compile) 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } &&
13438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; } &&
13444          { ac_try='test -s conftest.$ac_objext'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450   e2fsprogs_cv_struct_st_flags=yes
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 e2fsprogs_cv_struct_st_flags=no
13456 fi
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458 fi
13459
13460 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13461 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
13462 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13463   echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13464 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13465   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474 #include <sys/stat.h>
13475 int
13476 main ()
13477 {
13478 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485   (eval $ac_compile) 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; } &&
13498          { ac_try='test -s conftest.$ac_objext'
13499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500   (eval $ac_try) 2>&5
13501   ac_status=$?
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); }; }; then
13504   e2fsprogs_cv_struct_st_flags_immut=yes
13505 else
13506   echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13508
13509 e2fsprogs_cv_struct_st_flags_immut=no
13510 fi
13511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13512 fi
13513
13514   echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13515 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
13516   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13517           cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_STAT_FLAGS 1
13519 _ACEOF
13520
13521   fi
13522 fi
13523 echo "$as_me:$LINENO: checking whether struct sockaddr contains sa_len" >&5
13524 echo $ECHO_N "checking whether struct sockaddr contains sa_len... $ECHO_C" >&6
13525 if test "${e2fsprogs_cv_sockaddr_sa_len+set}" = set; then
13526   echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528   cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h.  */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h.  */
13534 #include <sys/types.h>
13535 #include <sys/socket.h>
13536
13537 int
13538 main ()
13539 {
13540 struct sockaddr sa;
13541 sa.sa_len;
13542   ;
13543   return 0;
13544 }
13545 _ACEOF
13546 rm -f conftest.$ac_objext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13548   (eval $ac_compile) 2>conftest.er1
13549   ac_status=$?
13550   grep -v '^ *+' conftest.er1 >conftest.err
13551   rm -f conftest.er1
13552   cat conftest.err >&5
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); } &&
13555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557   (eval $ac_try) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; } &&
13561          { ac_try='test -s conftest.$ac_objext'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567   e2fsprogs_cv_sockaddr_sa_len=yes
13568 else
13569   echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 e2fsprogs_cv_sockaddr_sa_len=no
13573 fi
13574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575 fi
13576
13577 echo "$as_me:$LINENO: result: $e2fsprogs_cv_sockaddr_sa_len" >&5
13578 echo "${ECHO_T}$e2fsprogs_cv_sockaddr_sa_len" >&6
13579 if test $e2fsprogs_cv_sockaddr_sa_len = yes; then
13580
13581 cat >>confdefs.h <<_ACEOF
13582 #define HAVE_SA_LEN 1
13583 _ACEOF
13584
13585 fi
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
13606 do
13607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13608 echo "$as_me:$LINENO: checking for $ac_func" >&5
13609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13610 if eval "test \"\${$as_ac_var+set}\" = set"; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13621 #define $ac_func innocuous_$ac_func
13622
13623 /* System header to define __stub macros and hopefully few prototypes,
13624     which can conflict with char $ac_func (); below.
13625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13626     <limits.h> exists even on freestanding compilers.  */
13627
13628 #ifdef __STDC__
13629 # include <limits.h>
13630 #else
13631 # include <assert.h>
13632 #endif
13633
13634 #undef $ac_func
13635
13636 /* Override any gcc2 internal prototype to avoid an error.  */
13637 #ifdef __cplusplus
13638 extern "C"
13639 {
13640 #endif
13641 /* We use char because int might match the return type of a gcc2
13642    builtin and then its argument prototype would still apply.  */
13643 char $ac_func ();
13644 /* The GNU C library defines this for functions which it implements
13645     to always fail with ENOSYS.  Some functions are actually named
13646     something starting with __ and the normal name is an alias.  */
13647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13648 choke me
13649 #else
13650 char (*f) () = $ac_func;
13651 #endif
13652 #ifdef __cplusplus
13653 }
13654 #endif
13655
13656 int
13657 main ()
13658 {
13659 return f != $ac_func;
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666   (eval $ac_link) 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest$ac_exeext'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   eval "$as_ac_var=yes"
13686 else
13687   echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13689
13690 eval "$as_ac_var=no"
13691 fi
13692 rm -f conftest.err conftest.$ac_objext \
13693       conftest$ac_exeext conftest.$ac_ext
13694 fi
13695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13697 if test `eval echo '${'$as_ac_var'}'` = yes; then
13698   cat >>confdefs.h <<_ACEOF
13699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13700 _ACEOF
13701
13702 fi
13703 done
13704
13705 SOCKET_LIB=''
13706 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13707 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13708 if test "${ac_cv_lib_socket_socket+set}" = set; then
13709   echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711   ac_check_lib_save_LIBS=$LIBS
13712 LIBS="-lsocket  $LIBS"
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h.  */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h.  */
13719
13720 /* Override any gcc2 internal prototype to avoid an error.  */
13721 #ifdef __cplusplus
13722 extern "C"
13723 #endif
13724 /* We use char because int might match the return type of a gcc2
13725    builtin and then its argument prototype would still apply.  */
13726 char socket ();
13727 int
13728 main ()
13729 {
13730 socket ();
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13737   (eval $ac_link) 2>conftest.er1
13738   ac_status=$?
13739   grep -v '^ *+' conftest.er1 >conftest.err
13740   rm -f conftest.er1
13741   cat conftest.err >&5
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } &&
13744          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746   (eval $ac_try) 2>&5
13747   ac_status=$?
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); }; } &&
13750          { ac_try='test -s conftest$ac_exeext'
13751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752   (eval $ac_try) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; }; then
13756   ac_cv_lib_socket_socket=yes
13757 else
13758   echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13760
13761 ac_cv_lib_socket_socket=no
13762 fi
13763 rm -f conftest.err conftest.$ac_objext \
13764       conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13766 fi
13767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13768 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
13769 if test $ac_cv_lib_socket_socket = yes; then
13770   SOCKET_LIB=-lsocket
13771 fi
13772
13773
13774 DLOPEN_LIB=''
13775 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13776 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13777 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   ac_check_lib_save_LIBS=$LIBS
13781 LIBS="-ldl  $LIBS"
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788
13789 /* Override any gcc2 internal prototype to avoid an error.  */
13790 #ifdef __cplusplus
13791 extern "C"
13792 #endif
13793 /* We use char because int might match the return type of a gcc2
13794    builtin and then its argument prototype would still apply.  */
13795 char dlopen ();
13796 int
13797 main ()
13798 {
13799 dlopen ();
13800   ;
13801   return 0;
13802 }
13803 _ACEOF
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13806   (eval $ac_link) 2>conftest.er1
13807   ac_status=$?
13808   grep -v '^ *+' conftest.er1 >conftest.err
13809   rm -f conftest.er1
13810   cat conftest.err >&5
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); } &&
13813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815   (eval $ac_try) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }; } &&
13819          { ac_try='test -s conftest$ac_exeext'
13820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; }; then
13825   ac_cv_lib_dl_dlopen=yes
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 ac_cv_lib_dl_dlopen=no
13831 fi
13832 rm -f conftest.err conftest.$ac_objext \
13833       conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13835 fi
13836 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13837 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13838 if test $ac_cv_lib_dl_dlopen = yes; then
13839   DLOPEN_LIB=-ldl
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_DLOPEN 1
13842 _ACEOF
13843
13844 fi
13845
13846
13847 echo "$as_me:$LINENO: checking for optreset" >&5
13848 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
13849 if test "${ac_cv_have_optreset+set}" = set; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858 #include <unistd.h>
13859
13860 _ACEOF
13861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13862   $EGREP "optreset" >/dev/null 2>&1; then
13863   ac_cv_have_optreset=yes
13864 else
13865   ac_cv_have_optreset=no
13866 fi
13867 rm -f conftest*
13868
13869 fi
13870 echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
13871 echo "${ECHO_T}$ac_cv_have_optreset" >&6
13872 if test $ac_cv_have_optreset = yes; then
13873   cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_OPTRESET 1
13875 _ACEOF
13876
13877 fi
13878 case "$host_os" in
13879 linux*)
13880         cat >>confdefs.h <<\_ACEOF
13881 #define HAVE_EXT2_IOCTLS 1
13882 _ACEOF
13883
13884         ;;
13885 esac
13886 LINUX_CMT="#"
13887 CYGWIN_CMT="#"
13888 UNIX_CMT=
13889 case "$host_os" in
13890 linux*)
13891         LINUX_CMT=
13892         ;;
13893 cygwin)
13894         CYGWIN_CMT=
13895         UNIX_CMT="#"
13896         ;;
13897 esac
13898
13899
13900
13901 case "$host_os" in
13902 linux* | gnu* | k*bsd*-gnu)
13903         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13904                 root_prefix="";
13905                 echo "On $host_os systems, root_prefix defaults to ''"
13906         fi
13907         ;;
13908 esac
13909 case "$host_os" in
13910 linux* | gnu* | k*bsd*-gnu)
13911         if test "$prefix" = NONE ; then
13912                 prefix="/usr";
13913                 echo "On $host_os systems, prefix defaults to /usr"
13914                 if test "$mandir" = '${prefix}/man' ; then
13915                         echo "...and mandir defaults to /usr/share/man"
13916                         mandir=/usr/share/man
13917                 fi
13918         fi
13919 ;;
13920 esac
13921 if test "$root_prefix" = NONE ; then
13922         if test "$prefix" = NONE ; then
13923                 root_prefix="$ac_default_prefix"
13924         else
13925                 root_prefix="$prefix"
13926         fi
13927         root_bindir=$bindir
13928         root_sbindir=$sbindir
13929         root_libdir=$libdir
13930         root_sysconfdir=$sysconfdir
13931 else
13932         root_bindir='${root_prefix}/bin'
13933         root_sbindir='${root_prefix}/sbin'
13934         root_libdir='${root_prefix}/lib'
13935         root_sysconfdir='${root_prefix}/etc'
13936 fi
13937
13938
13939
13940
13941
13942 echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
13943 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
13944 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 #include <stdio.h>
13955 int
13956 main ()
13957 {
13958 fflush(stdout);
13959   ;
13960   return 0;
13961 }
13962 _ACEOF
13963 rm -f conftest.$ac_objext conftest$ac_exeext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13965   (eval $ac_link) 2>conftest.er1
13966   ac_status=$?
13967   grep -v '^ *+' conftest.er1 >conftest.err
13968   rm -f conftest.er1
13969   cat conftest.err >&5
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } &&
13972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; } &&
13978          { ac_try='test -s conftest$ac_exeext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_cv_e2fsprogs_use_static=yes
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_cv_e2fsprogs_use_static=no
13990 fi
13991 rm -f conftest.err conftest.$ac_objext \
13992       conftest$ac_exeext conftest.$ac_ext
13993 LDFLAGS=$SAVE_LDFLAGS
13994 fi
13995
13996 case "$host_os" in
13997 solaris2.*)
13998         ac_cv_e2fsprogs_use_static=no
13999 ;;
14000 esac
14001 echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14002 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
14003 LDFLAG_STATIC=
14004 if test $ac_cv_e2fsprogs_use_static = yes; then
14005         LDFLAG_STATIC=-static
14006 fi
14007
14008 case "$host_os" in
14009 darwin*)
14010         echo "Using Apple Darwin / GNU libintl workaround"
14011         cat >>confdefs.h <<\_ACEOF
14012 #define _INTL_REDIRECT_MACROS 1
14013 _ACEOF
14014
14015         ;;
14016 esac
14017 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14018 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14019
14020
14021 if test "$cross_compiling" = yes ; then
14022   DO_TEST_SUITE=
14023 else
14024   DO_TEST_SUITE=check
14025 fi
14026
14027 INTL_FLAGS=
14028 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14029         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14030 fi
14031
14032 test -d lib || mkdir lib
14033 test -d include || mkdir include
14034 test -d include/linux || mkdir include/linux
14035 test -d include/asm || mkdir include/asm
14036 for i in MCONFIG Makefile e2fsprogs.spec \
14037         util/Makefile util/subst.conf util/gen-tarball \
14038         lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
14039         lib/uuid/Makefile lib/uuid/uuid_types.h \
14040         lib/blkid/Makefile lib/blkid/blkid_types.h \
14041         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14042         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14043         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14044         if test -d `dirname ${srcdir}/$i` ; then
14045                 outlist="$outlist $i"
14046         fi
14047 done
14048           ac_config_files="$ac_config_files $outlist"
14049 cat >confcache <<\_ACEOF
14050 # This file is a shell script that caches the results of configure
14051 # tests run on this system so they can be shared between configure
14052 # scripts and configure runs, see configure's option --config-cache.
14053 # It is not useful on other systems.  If it contains results you don't
14054 # want to keep, you may remove or edit it.
14055 #
14056 # config.status only pays attention to the cache file if you give it
14057 # the --recheck option to rerun configure.
14058 #
14059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14061 # following values.
14062
14063 _ACEOF
14064
14065 # The following way of writing the cache mishandles newlines in values,
14066 # but we know of no workaround that is simple, portable, and efficient.
14067 # So, don't put newlines in cache variables' values.
14068 # Ultrix sh set writes to stderr and can't be redirected directly,
14069 # and sets the high bit in the cache file unless we assign to the vars.
14070 {
14071   (set) 2>&1 |
14072     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14073     *ac_space=\ *)
14074       # `set' does not quote correctly, so add quotes (double-quote
14075       # substitution turns \\\\ into \\, and sed turns \\ into \).
14076       sed -n \
14077         "s/'/'\\\\''/g;
14078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14079       ;;
14080     *)
14081       # `set' quotes correctly as required by POSIX, so do not add quotes.
14082       sed -n \
14083         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14084       ;;
14085     esac;
14086 } |
14087   sed '
14088      t clear
14089      : clear
14090      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14091      t end
14092      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14093      : end' >>confcache
14094 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14095   if test -w $cache_file; then
14096     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14097     cat confcache >$cache_file
14098   else
14099     echo "not updating unwritable cache $cache_file"
14100   fi
14101 fi
14102 rm -f confcache
14103
14104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14105 # Let make expand exec_prefix.
14106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14107
14108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14110 # trailing colons and then remove the whole line if VPATH becomes empty
14111 # (actually we leave an empty line to preserve line numbers).
14112 if test "x$srcdir" = x.; then
14113   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14114 s/:*\$(srcdir):*/:/;
14115 s/:*\${srcdir}:*/:/;
14116 s/:*@srcdir@:*/:/;
14117 s/^\([^=]*=[     ]*\):*/\1/;
14118 s/:*$//;
14119 s/^[^=]*=[       ]*$//;
14120 }'
14121 fi
14122
14123 # Transform confdefs.h into DEFS.
14124 # Protect against shell expansion while executing Makefile rules.
14125 # Protect against Makefile macro expansion.
14126 #
14127 # If the first sed substitution is executed (which looks for macros that
14128 # take arguments), then we branch to the quote section.  Otherwise,
14129 # look for a macro that doesn't take arguments.
14130 cat >confdef2opt.sed <<\_ACEOF
14131 t clear
14132 : clear
14133 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
14134 t quote
14135 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
14136 t quote
14137 d
14138 : quote
14139 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
14140 s,\[,\\&,g
14141 s,\],\\&,g
14142 s,\$,$$,g
14143 p
14144 _ACEOF
14145 # We use echo to avoid assuming a particular line-breaking character.
14146 # The extra dot is to prevent the shell from consuming trailing
14147 # line-breaks from the sub-command output.  A line-break within
14148 # single-quotes doesn't work because, if this script is created in a
14149 # platform that uses two characters for line-breaks (e.g., DOS), tr
14150 # would break.
14151 ac_LF_and_DOT=`echo; echo .`
14152 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14153 rm -f confdef2opt.sed
14154
14155
14156 ac_libobjs=
14157 ac_ltlibobjs=
14158 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14159   # 1. Remove the extension, and $U if already installed.
14160   ac_i=`echo "$ac_i" |
14161          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14162   # 2. Add them.
14163   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14164   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14165 done
14166 LIBOBJS=$ac_libobjs
14167
14168 LTLIBOBJS=$ac_ltlibobjs
14169
14170
14171
14172 : ${CONFIG_STATUS=./config.status}
14173 ac_clean_files_save=$ac_clean_files
14174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14175 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14176 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14177 cat >$CONFIG_STATUS <<_ACEOF
14178 #! $SHELL
14179 # Generated by $as_me.
14180 # Run this file to recreate the current configuration.
14181 # Compiler output produced by configure, useful for debugging
14182 # configure, is in config.log if it exists.
14183
14184 debug=false
14185 ac_cs_recheck=false
14186 ac_cs_silent=false
14187 SHELL=\${CONFIG_SHELL-$SHELL}
14188 _ACEOF
14189
14190 cat >>$CONFIG_STATUS <<\_ACEOF
14191 ## --------------------- ##
14192 ## M4sh Initialization.  ##
14193 ## --------------------- ##
14194
14195 # Be Bourne compatible
14196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14197   emulate sh
14198   NULLCMD=:
14199   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14200   # is contrary to our usage.  Disable this feature.
14201   alias -g '${1+"$@"}'='"$@"'
14202 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14203   set -o posix
14204 fi
14205 DUALCASE=1; export DUALCASE # for MKS sh
14206
14207 # Support unset when possible.
14208 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14209   as_unset=unset
14210 else
14211   as_unset=false
14212 fi
14213
14214
14215 # Work around bugs in pre-3.0 UWIN ksh.
14216 $as_unset ENV MAIL MAILPATH
14217 PS1='$ '
14218 PS2='> '
14219 PS4='+ '
14220
14221 # NLS nuisances.
14222 for as_var in \
14223   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14224   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14225   LC_TELEPHONE LC_TIME
14226 do
14227   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14228     eval $as_var=C; export $as_var
14229   else
14230     $as_unset $as_var
14231   fi
14232 done
14233
14234 # Required to use basename.
14235 if expr a : '\(a\)' >/dev/null 2>&1; then
14236   as_expr=expr
14237 else
14238   as_expr=false
14239 fi
14240
14241 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14242   as_basename=basename
14243 else
14244   as_basename=false
14245 fi
14246
14247
14248 # Name of the executable.
14249 as_me=`$as_basename "$0" ||
14250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14251          X"$0" : 'X\(//\)$' \| \
14252          X"$0" : 'X\(/\)$' \| \
14253          .     : '\(.\)' 2>/dev/null ||
14254 echo X/"$0" |
14255     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14256           /^X\/\(\/\/\)$/{ s//\1/; q; }
14257           /^X\/\(\/\).*/{ s//\1/; q; }
14258           s/.*/./; q'`
14259
14260
14261 # PATH needs CR, and LINENO needs CR and PATH.
14262 # Avoid depending upon Character Ranges.
14263 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14264 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14265 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14266 as_cr_digits='0123456789'
14267 as_cr_alnum=$as_cr_Letters$as_cr_digits
14268
14269 # The user is always right.
14270 if test "${PATH_SEPARATOR+set}" != set; then
14271   echo "#! /bin/sh" >conf$$.sh
14272   echo  "exit 0"   >>conf$$.sh
14273   chmod +x conf$$.sh
14274   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14275     PATH_SEPARATOR=';'
14276   else
14277     PATH_SEPARATOR=:
14278   fi
14279   rm -f conf$$.sh
14280 fi
14281
14282
14283   as_lineno_1=$LINENO
14284   as_lineno_2=$LINENO
14285   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14286   test "x$as_lineno_1" != "x$as_lineno_2" &&
14287   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14288   # Find who we are.  Look in the path if we contain no path at all
14289   # relative or not.
14290   case $0 in
14291     *[\\/]* ) as_myself=$0 ;;
14292     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14294 do
14295   IFS=$as_save_IFS
14296   test -z "$as_dir" && as_dir=.
14297   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14298 done
14299
14300        ;;
14301   esac
14302   # We did not find ourselves, most probably we were run as `sh COMMAND'
14303   # in which case we are not to be found in the path.
14304   if test "x$as_myself" = x; then
14305     as_myself=$0
14306   fi
14307   if test ! -f "$as_myself"; then
14308     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14309 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14310    { (exit 1); exit 1; }; }
14311   fi
14312   case $CONFIG_SHELL in
14313   '')
14314     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14316 do
14317   IFS=$as_save_IFS
14318   test -z "$as_dir" && as_dir=.
14319   for as_base in sh bash ksh sh5; do
14320          case $as_dir in
14321          /*)
14322            if ("$as_dir/$as_base" -c '
14323   as_lineno_1=$LINENO
14324   as_lineno_2=$LINENO
14325   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14326   test "x$as_lineno_1" != "x$as_lineno_2" &&
14327   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14328              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14329              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14330              CONFIG_SHELL=$as_dir/$as_base
14331              export CONFIG_SHELL
14332              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14333            fi;;
14334          esac
14335        done
14336 done
14337 ;;
14338   esac
14339
14340   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14341   # uniformly replaced by the line number.  The first 'sed' inserts a
14342   # line-number line before each line; the second 'sed' does the real
14343   # work.  The second script uses 'N' to pair each line-number line
14344   # with the numbered line, and appends trailing '-' during
14345   # substitution so that $LINENO is not a special case at line end.
14346   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14347   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14348   sed '=' <$as_myself |
14349     sed '
14350       N
14351       s,$,-,
14352       : loop
14353       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14354       t loop
14355       s,-$,,
14356       s,^['$as_cr_digits']*\n,,
14357     ' >$as_me.lineno &&
14358   chmod +x $as_me.lineno ||
14359     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14360 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14361    { (exit 1); exit 1; }; }
14362
14363   # Don't try to exec as it changes $[0], causing all sort of problems
14364   # (the dirname of $[0] is not the place where we might find the
14365   # original and so on.  Autoconf is especially sensible to this).
14366   . ./$as_me.lineno
14367   # Exit status is that of the last command.
14368   exit
14369 }
14370
14371
14372 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14373   *c*,-n*) ECHO_N= ECHO_C='
14374 ' ECHO_T='      ' ;;
14375   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14376   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14377 esac
14378
14379 if expr a : '\(a\)' >/dev/null 2>&1; then
14380   as_expr=expr
14381 else
14382   as_expr=false
14383 fi
14384
14385 rm -f conf$$ conf$$.exe conf$$.file
14386 echo >conf$$.file
14387 if ln -s conf$$.file conf$$ 2>/dev/null; then
14388   # We could just check for DJGPP; but this test a) works b) is more generic
14389   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14390   if test -f conf$$.exe; then
14391     # Don't use ln at all; we don't have any links
14392     as_ln_s='cp -p'
14393   else
14394     as_ln_s='ln -s'
14395   fi
14396 elif ln conf$$.file conf$$ 2>/dev/null; then
14397   as_ln_s=ln
14398 else
14399   as_ln_s='cp -p'
14400 fi
14401 rm -f conf$$ conf$$.exe conf$$.file
14402
14403 if mkdir -p . 2>/dev/null; then
14404   as_mkdir_p=:
14405 else
14406   test -d ./-p && rmdir ./-p
14407   as_mkdir_p=false
14408 fi
14409
14410 as_executable_p="test -f"
14411
14412 # Sed expression to map a string onto a valid CPP name.
14413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14414
14415 # Sed expression to map a string onto a valid variable name.
14416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14417
14418
14419 # IFS
14420 # We need space, tab and new line, in precisely that order.
14421 as_nl='
14422 '
14423 IFS="   $as_nl"
14424
14425 # CDPATH.
14426 $as_unset CDPATH
14427
14428 exec 6>&1
14429
14430 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14431 # report actual input values of CONFIG_FILES etc. instead of their
14432 # values after options handling.  Logging --version etc. is OK.
14433 exec 5>>config.log
14434 {
14435   echo
14436   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14437 ## Running $as_me. ##
14438 _ASBOX
14439 } >&5
14440 cat >&5 <<_CSEOF
14441
14442 This file was extended by $as_me, which was
14443 generated by GNU Autoconf 2.59.  Invocation command line was
14444
14445   CONFIG_FILES    = $CONFIG_FILES
14446   CONFIG_HEADERS  = $CONFIG_HEADERS
14447   CONFIG_LINKS    = $CONFIG_LINKS
14448   CONFIG_COMMANDS = $CONFIG_COMMANDS
14449   $ $0 $@
14450
14451 _CSEOF
14452 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14453 echo >&5
14454 _ACEOF
14455
14456 # Files that config.status was made for.
14457 if test -n "$ac_config_files"; then
14458   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14459 fi
14460
14461 if test -n "$ac_config_headers"; then
14462   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14463 fi
14464
14465 if test -n "$ac_config_links"; then
14466   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14467 fi
14468
14469 if test -n "$ac_config_commands"; then
14470   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14471 fi
14472
14473 cat >>$CONFIG_STATUS <<\_ACEOF
14474
14475 ac_cs_usage="\
14476 \`$as_me' instantiates files from templates according to the
14477 current configuration.
14478
14479 Usage: $0 [OPTIONS] [FILE]...
14480
14481   -h, --help       print this help, then exit
14482   -V, --version    print version number, then exit
14483   -q, --quiet      do not print progress messages
14484   -d, --debug      don't remove temporary files
14485       --recheck    update $as_me by reconfiguring in the same conditions
14486   --file=FILE[:TEMPLATE]
14487                    instantiate the configuration file FILE
14488
14489 Configuration files:
14490 $config_files
14491
14492 Configuration commands:
14493 $config_commands
14494
14495 Report bugs to <bug-autoconf@gnu.org>."
14496 _ACEOF
14497
14498 cat >>$CONFIG_STATUS <<_ACEOF
14499 ac_cs_version="\\
14500 config.status
14501 configured by $0, generated by GNU Autoconf 2.59,
14502   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14503
14504 Copyright (C) 2003 Free Software Foundation, Inc.
14505 This config.status script is free software; the Free Software Foundation
14506 gives unlimited permission to copy, distribute and modify it."
14507 srcdir=$srcdir
14508 INSTALL="$INSTALL"
14509 _ACEOF
14510
14511 cat >>$CONFIG_STATUS <<\_ACEOF
14512 # If no file are specified by the user, then we need to provide default
14513 # value.  By we need to know if files were specified by the user.
14514 ac_need_defaults=:
14515 while test $# != 0
14516 do
14517   case $1 in
14518   --*=*)
14519     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14520     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14521     ac_shift=:
14522     ;;
14523   -*)
14524     ac_option=$1
14525     ac_optarg=$2
14526     ac_shift=shift
14527     ;;
14528   *) # This is not an option, so the user has probably given explicit
14529      # arguments.
14530      ac_option=$1
14531      ac_need_defaults=false;;
14532   esac
14533
14534   case $ac_option in
14535   # Handling of the options.
14536 _ACEOF
14537 cat >>$CONFIG_STATUS <<\_ACEOF
14538   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14539     ac_cs_recheck=: ;;
14540   --version | --vers* | -V )
14541     echo "$ac_cs_version"; exit 0 ;;
14542   --he | --h)
14543     # Conflict between --help and --header
14544     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14545 Try \`$0 --help' for more information." >&5
14546 echo "$as_me: error: ambiguous option: $1
14547 Try \`$0 --help' for more information." >&2;}
14548    { (exit 1); exit 1; }; };;
14549   --help | --hel | -h )
14550     echo "$ac_cs_usage"; exit 0 ;;
14551   --debug | --d* | -d )
14552     debug=: ;;
14553   --file | --fil | --fi | --f )
14554     $ac_shift
14555     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14556     ac_need_defaults=false;;
14557   --header | --heade | --head | --hea )
14558     $ac_shift
14559     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14560     ac_need_defaults=false;;
14561   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14562   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14563     ac_cs_silent=: ;;
14564
14565   # This is an error.
14566   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14567 Try \`$0 --help' for more information." >&5
14568 echo "$as_me: error: unrecognized option: $1
14569 Try \`$0 --help' for more information." >&2;}
14570    { (exit 1); exit 1; }; } ;;
14571
14572   *) ac_config_targets="$ac_config_targets $1" ;;
14573
14574   esac
14575   shift
14576 done
14577
14578 ac_configure_extra_args=
14579
14580 if $ac_cs_silent; then
14581   exec 6>/dev/null
14582   ac_configure_extra_args="$ac_configure_extra_args --silent"
14583 fi
14584
14585 _ACEOF
14586 cat >>$CONFIG_STATUS <<_ACEOF
14587 if \$ac_cs_recheck; then
14588   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14589   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14590 fi
14591
14592 _ACEOF
14593
14594 cat >>$CONFIG_STATUS <<_ACEOF
14595 #
14596 # INIT-COMMANDS section.
14597 #
14598
14599 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14600     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14601     # from automake.
14602     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14603     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14604     LINGUAS="${LINGUAS-%UNSET%}"
14605
14606
14607 _ACEOF
14608
14609
14610
14611 cat >>$CONFIG_STATUS <<\_ACEOF
14612 for ac_config_target in $ac_config_targets
14613 do
14614   case "$ac_config_target" in
14615   # Handling of arguments.
14616   "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14617   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14618   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14619 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14620    { (exit 1); exit 1; }; };;
14621   esac
14622 done
14623
14624 # If the user did not use the arguments to specify the items to instantiate,
14625 # then the envvar interface is used.  Set only those that are not.
14626 # We use the long form for the default assignment because of an extremely
14627 # bizarre bug on SunOS 4.1.3.
14628 if $ac_need_defaults; then
14629   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14630   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14631 fi
14632
14633 # Have a temporary directory for convenience.  Make it in the build tree
14634 # simply because there is no reason to put it here, and in addition,
14635 # creating and moving files from /tmp can sometimes cause problems.
14636 # Create a temporary directory, and hook for its removal unless debugging.
14637 $debug ||
14638 {
14639   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14640   trap '{ (exit 1); exit 1; }' 1 2 13 15
14641 }
14642
14643 # Create a (secure) tmp directory for tmp files.
14644
14645 {
14646   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14647   test -n "$tmp" && test -d "$tmp"
14648 }  ||
14649 {
14650   tmp=./confstat$$-$RANDOM
14651   (umask 077 && mkdir $tmp)
14652 } ||
14653 {
14654    echo "$me: cannot create a temporary directory in ." >&2
14655    { (exit 1); exit 1; }
14656 }
14657
14658 _ACEOF
14659
14660 cat >>$CONFIG_STATUS <<_ACEOF
14661
14662 #
14663 # CONFIG_FILES section.
14664 #
14665
14666 # No need to generate the scripts if there are no CONFIG_FILES.
14667 # This happens for instance when ./config.status config.h
14668 if test -n "\$CONFIG_FILES"; then
14669   # Protect against being on the right side of a sed subst in config.status.
14670   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14671    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14672 s,@SHELL@,$SHELL,;t t
14673 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14674 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14675 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14676 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14677 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14678 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14679 s,@exec_prefix@,$exec_prefix,;t t
14680 s,@prefix@,$prefix,;t t
14681 s,@program_transform_name@,$program_transform_name,;t t
14682 s,@bindir@,$bindir,;t t
14683 s,@sbindir@,$sbindir,;t t
14684 s,@libexecdir@,$libexecdir,;t t
14685 s,@datadir@,$datadir,;t t
14686 s,@sysconfdir@,$sysconfdir,;t t
14687 s,@sharedstatedir@,$sharedstatedir,;t t
14688 s,@localstatedir@,$localstatedir,;t t
14689 s,@libdir@,$libdir,;t t
14690 s,@includedir@,$includedir,;t t
14691 s,@oldincludedir@,$oldincludedir,;t t
14692 s,@infodir@,$infodir,;t t
14693 s,@mandir@,$mandir,;t t
14694 s,@build_alias@,$build_alias,;t t
14695 s,@host_alias@,$host_alias,;t t
14696 s,@target_alias@,$target_alias,;t t
14697 s,@DEFS@,$DEFS,;t t
14698 s,@ECHO_C@,$ECHO_C,;t t
14699 s,@ECHO_N@,$ECHO_N,;t t
14700 s,@ECHO_T@,$ECHO_T,;t t
14701 s,@LIBS@,$LIBS,;t t
14702 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14703 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14704 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14705 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14706 s,@build@,$build,;t t
14707 s,@build_cpu@,$build_cpu,;t t
14708 s,@build_vendor@,$build_vendor,;t t
14709 s,@build_os@,$build_os,;t t
14710 s,@host@,$host,;t t
14711 s,@host_cpu@,$host_cpu,;t t
14712 s,@host_vendor@,$host_vendor,;t t
14713 s,@host_os@,$host_os,;t t
14714 s,@CC@,$CC,;t t
14715 s,@CFLAGS@,$CFLAGS,;t t
14716 s,@LDFLAGS@,$LDFLAGS,;t t
14717 s,@CPPFLAGS@,$CPPFLAGS,;t t
14718 s,@ac_ct_CC@,$ac_ct_CC,;t t
14719 s,@EXEEXT@,$EXEEXT,;t t
14720 s,@OBJEXT@,$OBJEXT,;t t
14721 s,@LD@,$LD,;t t
14722 s,@CPP@,$CPP,;t t
14723 s,@EGREP@,$EGREP,;t t
14724 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14725 s,@HTREE_CMT@,$HTREE_CMT,;t t
14726 s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
14727 s,@ELF_CMT@,$ELF_CMT,;t t
14728 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14729 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14730 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14731 s,@LIB_EXT@,$LIB_EXT,;t t
14732 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14733 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14734 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14735 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14736 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14737 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14738 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14739 s,@FSCK_PROG@,$FSCK_PROG,;t t
14740 s,@FSCK_MAN@,$FSCK_MAN,;t t
14741 s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14742 s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14743 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14744 s,@PACKAGE@,$PACKAGE,;t t
14745 s,@VERSION@,$VERSION,;t t
14746 s,@SET_MAKE@,$SET_MAKE,;t t
14747 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14748 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14749 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14750 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14751 s,@USE_NLS@,$USE_NLS,;t t
14752 s,@MSGFMT@,$MSGFMT,;t t
14753 s,@GMSGFMT@,$GMSGFMT,;t t
14754 s,@XGETTEXT@,$XGETTEXT,;t t
14755 s,@MSGMERGE@,$MSGMERGE,;t t
14756 s,@RANLIB@,$RANLIB,;t t
14757 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14758 s,@ALLOCA@,$ALLOCA,;t t
14759 s,@GLIBC21@,$GLIBC21,;t t
14760 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14761 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
14762 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
14763 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
14764 s,@LIBICONV@,$LIBICONV,;t t
14765 s,@LTLIBICONV@,$LTLIBICONV,;t t
14766 s,@INTLBISON@,$INTLBISON,;t t
14767 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14768 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14769 s,@CATOBJEXT@,$CATOBJEXT,;t t
14770 s,@DATADIRNAME@,$DATADIRNAME,;t t
14771 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14772 s,@GENCAT@,$GENCAT,;t t
14773 s,@INTLOBJS@,$INTLOBJS,;t t
14774 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14775 s,@INTLLIBS@,$INTLLIBS,;t t
14776 s,@LIBINTL@,$LIBINTL,;t t
14777 s,@LTLIBINTL@,$LTLIBINTL,;t t
14778 s,@POSUB@,$POSUB,;t t
14779 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
14780 s,@LN@,$LN,;t t
14781 s,@LN_S@,$LN_S,;t t
14782 s,@MV@,$MV,;t t
14783 s,@CP@,$CP,;t t
14784 s,@RM@,$RM,;t t
14785 s,@CHMOD@,$CHMOD,;t t
14786 s,@AWK@,$AWK,;t t
14787 s,@SED@,$SED,;t t
14788 s,@PERL@,$PERL,;t t
14789 s,@LDCONFIG@,$LDCONFIG,;t t
14790 s,@AR@,$AR,;t t
14791 s,@ac_ct_AR@,$ac_ct_AR,;t t
14792 s,@STRIP@,$STRIP,;t t
14793 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14794 s,@BUILD_CC@,$BUILD_CC,;t t
14795 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
14796 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
14797 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
14798 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
14799 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
14800 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
14801 s,@LINUX_CMT@,$LINUX_CMT,;t t
14802 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
14803 s,@UNIX_CMT@,$UNIX_CMT,;t t
14804 s,@root_prefix@,$root_prefix,;t t
14805 s,@root_bindir@,$root_bindir,;t t
14806 s,@root_sbindir@,$root_sbindir,;t t
14807 s,@root_libdir@,$root_libdir,;t t
14808 s,@root_sysconfdir@,$root_sysconfdir,;t t
14809 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
14810 s,@SS_DIR@,$SS_DIR,;t t
14811 s,@ET_DIR@,$ET_DIR,;t t
14812 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
14813 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
14814 s,@LIBOBJS@,$LIBOBJS,;t t
14815 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14816 /@MCONFIG@/r $MCONFIG
14817 s,@MCONFIG@,,;t t
14818 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
14819 s,@MAKEFILE_ELF@,,;t t
14820 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
14821 s,@MAKEFILE_BSDLIB@,,;t t
14822 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
14823 s,@MAKEFILE_PROFILE@,,;t t
14824 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
14825 s,@MAKEFILE_CHECKER@,,;t t
14826 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
14827 s,@MAKEFILE_LIBRARY@,,;t t
14828 CEOF
14829
14830 _ACEOF
14831
14832   cat >>$CONFIG_STATUS <<\_ACEOF
14833   # Split the substitutions into bite-sized pieces for seds with
14834   # small command number limits, like on Digital OSF/1 and HP-UX.
14835   ac_max_sed_lines=48
14836   ac_sed_frag=1 # Number of current file.
14837   ac_beg=1 # First line for current file.
14838   ac_end=$ac_max_sed_lines # Line after last line for current file.
14839   ac_more_lines=:
14840   ac_sed_cmds=
14841   while $ac_more_lines; do
14842     if test $ac_beg -gt 1; then
14843       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14844     else
14845       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14846     fi
14847     if test ! -s $tmp/subs.frag; then
14848       ac_more_lines=false
14849     else
14850       # The purpose of the label and of the branching condition is to
14851       # speed up the sed processing (if there are no `@' at all, there
14852       # is no need to browse any of the substitutions).
14853       # These are the two extra sed commands mentioned above.
14854       (echo ':t
14855   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14856       if test -z "$ac_sed_cmds"; then
14857         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14858       else
14859         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14860       fi
14861       ac_sed_frag=`expr $ac_sed_frag + 1`
14862       ac_beg=$ac_end
14863       ac_end=`expr $ac_end + $ac_max_sed_lines`
14864     fi
14865   done
14866   if test -z "$ac_sed_cmds"; then
14867     ac_sed_cmds=cat
14868   fi
14869 fi # test -n "$CONFIG_FILES"
14870
14871 _ACEOF
14872 cat >>$CONFIG_STATUS <<\_ACEOF
14873 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14874   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14875   case $ac_file in
14876   - | *:- | *:-:* ) # input from stdin
14877         cat >$tmp/stdin
14878         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14879         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14880   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14881         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14882   * )   ac_file_in=$ac_file.in ;;
14883   esac
14884
14885   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14886   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14888          X"$ac_file" : 'X\(//\)[^/]' \| \
14889          X"$ac_file" : 'X\(//\)$' \| \
14890          X"$ac_file" : 'X\(/\)' \| \
14891          .     : '\(.\)' 2>/dev/null ||
14892 echo X"$ac_file" |
14893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14894           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14895           /^X\(\/\/\)$/{ s//\1/; q; }
14896           /^X\(\/\).*/{ s//\1/; q; }
14897           s/.*/./; q'`
14898   { if $as_mkdir_p; then
14899     mkdir -p "$ac_dir"
14900   else
14901     as_dir="$ac_dir"
14902     as_dirs=
14903     while test ! -d "$as_dir"; do
14904       as_dirs="$as_dir $as_dirs"
14905       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14907          X"$as_dir" : 'X\(//\)[^/]' \| \
14908          X"$as_dir" : 'X\(//\)$' \| \
14909          X"$as_dir" : 'X\(/\)' \| \
14910          .     : '\(.\)' 2>/dev/null ||
14911 echo X"$as_dir" |
14912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14913           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14914           /^X\(\/\/\)$/{ s//\1/; q; }
14915           /^X\(\/\).*/{ s//\1/; q; }
14916           s/.*/./; q'`
14917     done
14918     test ! -n "$as_dirs" || mkdir $as_dirs
14919   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14921    { (exit 1); exit 1; }; }; }
14922
14923   ac_builddir=.
14924
14925 if test "$ac_dir" != .; then
14926   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14927   # A "../" for each directory in $ac_dir_suffix.
14928   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14929 else
14930   ac_dir_suffix= ac_top_builddir=
14931 fi
14932
14933 case $srcdir in
14934   .)  # No --srcdir option.  We are building in place.
14935     ac_srcdir=.
14936     if test -z "$ac_top_builddir"; then
14937        ac_top_srcdir=.
14938     else
14939        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14940     fi ;;
14941   [\\/]* | ?:[\\/]* )  # Absolute path.
14942     ac_srcdir=$srcdir$ac_dir_suffix;
14943     ac_top_srcdir=$srcdir ;;
14944   *) # Relative path.
14945     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14946     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14947 esac
14948
14949 # Do not use `cd foo && pwd` to compute absolute paths, because
14950 # the directories may not exist.
14951 case `pwd` in
14952 .) ac_abs_builddir="$ac_dir";;
14953 *)
14954   case "$ac_dir" in
14955   .) ac_abs_builddir=`pwd`;;
14956   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14957   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14958   esac;;
14959 esac
14960 case $ac_abs_builddir in
14961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14962 *)
14963   case ${ac_top_builddir}. in
14964   .) ac_abs_top_builddir=$ac_abs_builddir;;
14965   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14966   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14967   esac;;
14968 esac
14969 case $ac_abs_builddir in
14970 .) ac_abs_srcdir=$ac_srcdir;;
14971 *)
14972   case $ac_srcdir in
14973   .) ac_abs_srcdir=$ac_abs_builddir;;
14974   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14975   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14976   esac;;
14977 esac
14978 case $ac_abs_builddir in
14979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14980 *)
14981   case $ac_top_srcdir in
14982   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14983   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14984   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14985   esac;;
14986 esac
14987
14988
14989   case $INSTALL in
14990   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14991   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14992   esac
14993
14994   # Let's still pretend it is `configure' which instantiates (i.e., don't
14995   # use $as_me), people would be surprised to read:
14996   #    /* config.h.  Generated by config.status.  */
14997   if test x"$ac_file" = x-; then
14998     configure_input=
14999   else
15000     configure_input="$ac_file.  "
15001   fi
15002   configure_input=$configure_input"Generated from `echo $ac_file_in |
15003                                      sed 's,.*/,,'` by configure."
15004
15005   # First look for the input files in the build tree, otherwise in the
15006   # src tree.
15007   ac_file_inputs=`IFS=:
15008     for f in $ac_file_in; do
15009       case $f in
15010       -) echo $tmp/stdin ;;
15011       [\\/$]*)
15012          # Absolute (can't be DOS-style, as IFS=:)
15013          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15014 echo "$as_me: error: cannot find input file: $f" >&2;}
15015    { (exit 1); exit 1; }; }
15016          echo "$f";;
15017       *) # Relative
15018          if test -f "$f"; then
15019            # Build tree
15020            echo "$f"
15021          elif test -f "$srcdir/$f"; then
15022            # Source tree
15023            echo "$srcdir/$f"
15024          else
15025            # /dev/null tree
15026            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15027 echo "$as_me: error: cannot find input file: $f" >&2;}
15028    { (exit 1); exit 1; }; }
15029          fi;;
15030       esac
15031     done` || { (exit 1); exit 1; }
15032
15033   if test x"$ac_file" != x-; then
15034     { echo "$as_me:$LINENO: creating $ac_file" >&5
15035 echo "$as_me: creating $ac_file" >&6;}
15036     rm -f "$ac_file"
15037   fi
15038 _ACEOF
15039 cat >>$CONFIG_STATUS <<_ACEOF
15040   sed "$ac_vpsub
15041 $extrasub
15042 _ACEOF
15043 cat >>$CONFIG_STATUS <<\_ACEOF
15044 :t
15045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15046 s,@configure_input@,$configure_input,;t t
15047 s,@srcdir@,$ac_srcdir,;t t
15048 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15049 s,@top_srcdir@,$ac_top_srcdir,;t t
15050 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15051 s,@builddir@,$ac_builddir,;t t
15052 s,@abs_builddir@,$ac_abs_builddir,;t t
15053 s,@top_builddir@,$ac_top_builddir,;t t
15054 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15055 s,@INSTALL@,$ac_INSTALL,;t t
15056 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15057   rm -f $tmp/stdin
15058   if test x"$ac_file" != x-; then
15059     mv $tmp/out $ac_file
15060   else
15061     cat $tmp/out
15062     rm -f $tmp/out
15063   fi
15064
15065 done
15066 _ACEOF
15067 cat >>$CONFIG_STATUS <<\_ACEOF
15068
15069 #
15070 # CONFIG_COMMANDS section.
15071 #
15072 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15073   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15074   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15075   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15076 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15077          X"$ac_dest" : 'X\(//\)[^/]' \| \
15078          X"$ac_dest" : 'X\(//\)$' \| \
15079          X"$ac_dest" : 'X\(/\)' \| \
15080          .     : '\(.\)' 2>/dev/null ||
15081 echo X"$ac_dest" |
15082     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15083           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15084           /^X\(\/\/\)$/{ s//\1/; q; }
15085           /^X\(\/\).*/{ s//\1/; q; }
15086           s/.*/./; q'`
15087   { if $as_mkdir_p; then
15088     mkdir -p "$ac_dir"
15089   else
15090     as_dir="$ac_dir"
15091     as_dirs=
15092     while test ! -d "$as_dir"; do
15093       as_dirs="$as_dir $as_dirs"
15094       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15096          X"$as_dir" : 'X\(//\)[^/]' \| \
15097          X"$as_dir" : 'X\(//\)$' \| \
15098          X"$as_dir" : 'X\(/\)' \| \
15099          .     : '\(.\)' 2>/dev/null ||
15100 echo X"$as_dir" |
15101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15103           /^X\(\/\/\)$/{ s//\1/; q; }
15104           /^X\(\/\).*/{ s//\1/; q; }
15105           s/.*/./; q'`
15106     done
15107     test ! -n "$as_dirs" || mkdir $as_dirs
15108   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15110    { (exit 1); exit 1; }; }; }
15111
15112   ac_builddir=.
15113
15114 if test "$ac_dir" != .; then
15115   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15116   # A "../" for each directory in $ac_dir_suffix.
15117   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15118 else
15119   ac_dir_suffix= ac_top_builddir=
15120 fi
15121
15122 case $srcdir in
15123   .)  # No --srcdir option.  We are building in place.
15124     ac_srcdir=.
15125     if test -z "$ac_top_builddir"; then
15126        ac_top_srcdir=.
15127     else
15128        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15129     fi ;;
15130   [\\/]* | ?:[\\/]* )  # Absolute path.
15131     ac_srcdir=$srcdir$ac_dir_suffix;
15132     ac_top_srcdir=$srcdir ;;
15133   *) # Relative path.
15134     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15135     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15136 esac
15137
15138 # Do not use `cd foo && pwd` to compute absolute paths, because
15139 # the directories may not exist.
15140 case `pwd` in
15141 .) ac_abs_builddir="$ac_dir";;
15142 *)
15143   case "$ac_dir" in
15144   .) ac_abs_builddir=`pwd`;;
15145   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15146   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15147   esac;;
15148 esac
15149 case $ac_abs_builddir in
15150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15151 *)
15152   case ${ac_top_builddir}. in
15153   .) ac_abs_top_builddir=$ac_abs_builddir;;
15154   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15155   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15156   esac;;
15157 esac
15158 case $ac_abs_builddir in
15159 .) ac_abs_srcdir=$ac_srcdir;;
15160 *)
15161   case $ac_srcdir in
15162   .) ac_abs_srcdir=$ac_abs_builddir;;
15163   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15164   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15165   esac;;
15166 esac
15167 case $ac_abs_builddir in
15168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15169 *)
15170   case $ac_top_srcdir in
15171   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15172   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15173   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15174   esac;;
15175 esac
15176
15177
15178   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15179 echo "$as_me: executing $ac_dest commands" >&6;}
15180   case $ac_dest in
15181     default-1 )
15182     for ac_file in $CONFIG_FILES; do
15183       # Support "outfile[:infile[:infile...]]"
15184       case "$ac_file" in
15185         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15186       esac
15187       # PO directories have a Makefile.in generated from Makefile.in.in.
15188       case "$ac_file" in */Makefile.in)
15189         # Adjust a relative srcdir.
15190         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15191         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15192         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15193         # In autoconf-2.13 it is called $ac_given_srcdir.
15194         # In autoconf-2.50 it is called $srcdir.
15195         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15196         case "$ac_given_srcdir" in
15197           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15198           /*) top_srcdir="$ac_given_srcdir" ;;
15199           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15200         esac
15201         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15202           rm -f "$ac_dir/POTFILES"
15203           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15204           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15205           POMAKEFILEDEPS="POTFILES.in"
15206           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15207           # on $ac_dir but don't depend on user-specified configuration
15208           # parameters.
15209           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15210             # The LINGUAS file contains the set of available languages.
15211             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15212               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15213             fi
15214             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15215             # Hide the ALL_LINGUAS assigment from automake.
15216             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15217             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15218           else
15219             # The set of available languages was given in configure.in.
15220             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15221           fi
15222           # Compute POFILES
15223           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15224           # Compute UPDATEPOFILES
15225           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15226           # Compute DUMMYPOFILES
15227           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15228           # Compute GMOFILES
15229           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15230           case "$ac_given_srcdir" in
15231             .) srcdirpre= ;;
15232             *) srcdirpre='$(srcdir)/' ;;
15233           esac
15234           POFILES=
15235           UPDATEPOFILES=
15236           DUMMYPOFILES=
15237           GMOFILES=
15238           for lang in $ALL_LINGUAS; do
15239             POFILES="$POFILES $srcdirpre$lang.po"
15240             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15241             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15242             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15243           done
15244           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15245           # environment variable.
15246           INST_LINGUAS=
15247           if test -n "$ALL_LINGUAS"; then
15248             for presentlang in $ALL_LINGUAS; do
15249               useit=no
15250               if test "%UNSET%" != "$LINGUAS"; then
15251                 desiredlanguages="$LINGUAS"
15252               else
15253                 desiredlanguages="$ALL_LINGUAS"
15254               fi
15255               for desiredlang in $desiredlanguages; do
15256                 # Use the presentlang catalog if desiredlang is
15257                 #   a. equal to presentlang, or
15258                 #   b. a variant of presentlang (because in this case,
15259                 #      presentlang can be used as a fallback for messages
15260                 #      which are not translated in the desiredlang catalog).
15261                 case "$desiredlang" in
15262                   "$presentlang"*) useit=yes;;
15263                 esac
15264               done
15265               if test $useit = yes; then
15266                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15267               fi
15268             done
15269           fi
15270           CATALOGS=
15271           if test -n "$INST_LINGUAS"; then
15272             for lang in $INST_LINGUAS; do
15273               CATALOGS="$CATALOGS $lang.gmo"
15274             done
15275           fi
15276           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15277           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"
15278           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15279             if test -f "$f"; then
15280               case "$f" in
15281                 *.orig | *.bak | *~) ;;
15282                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15283               esac
15284             fi
15285           done
15286         fi
15287         ;;
15288       esac
15289     done ;;
15290   esac
15291 done
15292 _ACEOF
15293
15294 cat >>$CONFIG_STATUS <<\_ACEOF
15295
15296 { (exit 0); exit 0; }
15297 _ACEOF
15298 chmod +x $CONFIG_STATUS
15299 ac_clean_files=$ac_clean_files_save
15300
15301
15302 # configure is writing to config.log, and then calls config.status.
15303 # config.status does its own redirection, appending to config.log.
15304 # Unfortunately, on DOS this fails, as config.log is still kept open
15305 # by configure, so config.status won't be able to write to it; its
15306 # output is simply discarded.  So we exec the FD to /dev/null,
15307 # effectively closing config.log, so it can be properly (re)opened and
15308 # appended to by config.status.  When coming back to configure, we
15309 # need to make the FD available again.
15310 if test "$no_create" != yes; then
15311   ac_cs_success=:
15312   ac_config_status_args=
15313   test "$silent" = yes &&
15314     ac_config_status_args="$ac_config_status_args --quiet"
15315   exec 5>/dev/null
15316   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15317   exec 5>>config.log
15318   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15319   # would make configure fail if this is the last instruction.
15320   $ac_cs_success || { (exit 1); exit 1; }
15321 fi
15322