blob: d38fb2519a8030d3af588c3fede32f24f7b0cbf5 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003# Generated by GNU Autoconf 2.59.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005# Copyright (C) 2003 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000254ac_default_prefix=/usr/local
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="version.h"
275# Factoring default headers for most tests.
276ac_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
Theodore Ts'o33db8f82005-02-05 10:28:15 -0500312ac_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 MAINTAINER_CMT HTREE_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'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500313ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000314
315# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500316ac_init_help=
317ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000318# The variables have the same names as the options, with
319# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500320cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000321exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000322no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000331verbose=
332x_includes=NONE
333x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500334
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.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000352
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000353ac_prev=
354for ac_option
355do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000356 # 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
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500367 case $ac_option in
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000368
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500372 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000373
374 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500375 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500377 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000378
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000388
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500393 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000394
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000395 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000397 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500398 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" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000403
404 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000406 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500407 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"`;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000413 *) ac_optarg=yes ;;
414 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500415 eval "enable_$ac_feature='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000416
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500424 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500430 -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 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000436
437 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500438 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000439 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500440 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000441
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000442 -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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500457 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500464 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000465
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500473 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500478 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000479
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000486 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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000492 -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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500499 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000500
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500504 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000505
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000512
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500518 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000519
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500535 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500545 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000546
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500556 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000557
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500561 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000567
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000568 -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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500573 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000574
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000575 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500578 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000585
586 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000588 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500589 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; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000592 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000595 *) ac_optarg=yes ;;
596 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500597 eval "with_$ac_package='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000598
599 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000601 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500602 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" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000607
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000618
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500624 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000629 ;;
630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500631 *=*)
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
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000641 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500642 # 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}
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000656fi
657
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000660do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500661 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; }; };;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000666 esac
667done
668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
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
679done
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500681# 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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500688# FIXME: To remove some day.
689if 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
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500709 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 ||
715echo 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'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000732 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000735 fi
736fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500737(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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000773
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500774#
775# Report the --help message.
776#
777if 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
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
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
804Installation 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
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine 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
834System 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
838fi
839
840if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -0500847 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500848 --enable-compression enable EXPERIMENTAL compression support
849 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500850 --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
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500864 --disable-nls do not use Native Language Support
865 --disable-rpath do not hardcode runtime library paths
866
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-diet-libc Use diet libc
871 --with-cc=COMPILER select compiler to use
872 --with-linker=LINKER select linker to use
873 --with-ccopts=CCOPTS select compiler command line options
874 --with-ldopts=LDOPTS select linker command line options
875 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
876 --with-gnu-ld assume the C compiler uses GNU ld default=no
877 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
878 --without-libiconv-prefix don't search for libiconv in includedir and libdir
879 --with-included-gettext use the GNU gettext library included here
880 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
881 --without-libintl-prefix don't search for libintl in includedir and libdir
882
883Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
890 CPP C preprocessor
891
892Use these variables to override the choices made by `configure' or to help
893it to find libraries and programs with nonstandard names/locations.
894
895_ACEOF
896fi
897
898if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
900 ac_popdir=`pwd`
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
903 ac_builddir=.
904
905if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909else
910 ac_dir_suffix= ac_top_builddir=
911fi
912
913case $srcdir in
914 .) # No --srcdir option. We are building in place.
915 ac_srcdir=.
916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927esac
928
929# Do not use `cd foo && pwd` to compute absolute paths, because
930# the directories may not exist.
931case `pwd` in
932.) ac_abs_builddir="$ac_dir";;
933*)
934 case "$ac_dir" in
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_builddir=${ac_top_builddir}.;;
942*)
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_srcdir=$ac_srcdir;;
951*)
952 case $ac_srcdir in
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 esac;;
957esac
958case $ac_abs_builddir in
959.) ac_abs_top_srcdir=$ac_top_srcdir;;
960*)
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 esac;;
966esac
967
968 cd $ac_dir
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
971 echo
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
974 echo
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
978 echo
979 $ac_configure --help
980 else
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 fi
983 cd "$ac_popdir"
984 done
985fi
986
987test -n "$ac_init_help" && exit 0
988if $ac_init_version; then
989 cat <<\_ACEOF
990
991Copyright (C) 2003 Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
995 exit 0
996fi
997exec 5>config.log
998cat >&5 <<_ACEOF
999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by $as_me, which was
1003generated by GNU Autoconf 2.59. Invocation command line was
1004
1005 $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022
1023/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039done
1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Strip out --silent because we don't want to record it for future runs.
1056# Also quote any args containing shell meta-characters.
1057# Make two passes to allow for proper duplicate-argument suppression.
1058ac_configure_args=
1059ac_configure_args0=
1060ac_configure_args1=
1061ac_sep=
1062ac_must_keep_next=false
1063for ac_pass in 1 2
1064do
1065 for ac_arg
1066 do
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 2)
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1090 ;;
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1093 fi
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1097 ;;
1098 esac
1099 done
1100done
1101$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104# When interrupted or exit'd, cleanup temporary files, and complete
1105# config.log. We remove comments because anyway the quotes in there
1106# would cause problems or look ugly.
1107# WARNING: Be sure not to use single quotes in there, as some shells,
1108# such as our DU 5.0 friend, will then `close' the trap.
1109trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1111 {
1112 echo
1113
1114 cat <<\_ASBOX
1115## ---------------- ##
1116## Cache variables. ##
1117## ---------------- ##
1118_ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1121{
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 ;;
1129 *)
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ;;
1133 esac;
1134}
1135 echo
1136
1137 cat <<\_ASBOX
1138## ----------------- ##
1139## Output variables. ##
1140## ----------------- ##
1141_ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152## ------------- ##
1153## Output files. ##
1154## ------------- ##
1155_ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1158 do
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1163 fi
1164
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167## ----------- ##
1168## confdefs.h. ##
1169## ----------- ##
1170_ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1174 fi
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1182 ' 0
1183for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185done
1186ac_signal=0
1187
1188# confdefs.h avoids OS command line length limits that DEFS can exceed.
1189rm -rf conftest* confdefs.h
1190# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191echo >confdefs.h
1192
1193# Predefined preprocessor variables.
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_NAME "$PACKAGE_NAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_STRING "$PACKAGE_STRING"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217_ACEOF
1218
1219
1220# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001221# Prefer explicitly selected file to automatically selected ones.
1222if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 fi
1228fi
1229for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234 . "$ac_site_file"
1235 fi
1236done
1237
1238if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1248 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1253fi
1254
1255# Check that the precious variables saved in the cache have kept the same
1256# value.
1257ac_cache_corrupted=false
1258for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1274 *)
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1296 fi
1297done
1298if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001304fi
1305
1306ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001307ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331ac_aux_dir=
1332for ac_dir in config $srcdir/config; do
1333 if test -f $ac_dir/install-sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1336 break
1337 elif test -f $ac_dir/install.sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1340 break
1341 elif test -f $ac_dir/shtool; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001345 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001346done
1347if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1349echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1350 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001351fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001352ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001355
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001356MCONFIG=./MCONFIG
1357
Theodore Ts'o74becf31997-04-26 14:37:06 +00001358BINARY_TYPE=bin
1359E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1360 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1361DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1362 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001363E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001364MONTH=`echo $DATE | awk -F- '{print $2}'`
1365YEAR=`echo $DATE | awk -F- '{print $3}'`
1366
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001367if expr $YEAR ">" 1900 > /dev/null ; then
1368 E2FSPROGS_YEAR=$YEAR
1369elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001370 E2FSPROGS_YEAR=19$YEAR
1371else
1372 E2FSPROGS_YEAR=20$YEAR
1373fi
1374
1375case $MONTH in
1376Jan) E2FSPROGS_MONTH="January" ;;
1377Feb) E2FSPROGS_MONTH="February" ;;
1378Mar) E2FSPROGS_MONTH="March" ;;
1379Apr) E2FSPROGS_MONTH="April" ;;
1380May) E2FSPROGS_MONTH="May" ;;
1381Jun) E2FSPROGS_MONTH="June" ;;
1382Jul) E2FSPROGS_MONTH="July" ;;
1383Aug) E2FSPROGS_MONTH="August" ;;
1384Sep) E2FSPROGS_MONTH="September" ;;
1385Oct) E2FSPROGS_MONTH="October" ;;
1386Nov) E2FSPROGS_MONTH="November" ;;
1387Dec) E2FSPROGS_MONTH="December" ;;
1388*) echo "Unknown month $MONTH??" ;;
1389esac
1390
1391unset DATE MONTH YEAR
1392echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1393echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1394
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001395
1396
1397
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001398# Make sure we can run config.sub.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001399$ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1403
1404echo "$as_me:$LINENO: checking build system type" >&5
1405echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_build_alias=$build_alias
1410test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001421fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423echo "${ECHO_T}$ac_cv_build" >&6
1424build=$ac_cv_build
1425build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001428
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001430echo "$as_me:$LINENO: checking host system type" >&5
1431echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434else
1435 ac_cv_host_alias=$host_alias
1436test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443fi
1444echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445echo "${ECHO_T}$ac_cv_host" >&6
1446host=$ac_cv_host
1447host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1451
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001452
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001453# Check whether --with-diet-libc or --without-diet-libc was given.
1454if test "${with_diet_libc+set}" = set; then
1455 withval="$with_diet_libc"
1456 CC="diet cc -nostdinc"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457echo "$as_me:$LINENO: result: CC=$CC" >&5
1458echo "${ECHO_T}CC=$CC" >&6
1459fi;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001460# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001461if test "${with_cc+set}" = set; then
1462 withval="$with_cc"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001463 echo "$as_me:$LINENO: result: CC=$withval" >&5
1464echo "${ECHO_T}CC=$withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001465CC=$withval
1466else
1467 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001468echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1469echo "${ECHO_T}CC defaults to $CC" >&6
1470fi; export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00001471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472ac_ext=c
1473ac_cpp='$CPP $CPPFLAGS'
1474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480echo "$as_me:$LINENO: checking for $ac_word" >&5
1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001484else
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1487else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499done
1500done
1501
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001502fi
1503fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001505if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001506 echo "$as_me:$LINENO: result: $CC" >&5
1507echo "${ECHO_T}$CC" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001508else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001509 echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
1511fi
1512
1513fi
1514if test -z "$ac_cv_prog_CC"; then
1515 ac_ct_CC=$CC
1516 # Extract the first word of "gcc", so it can be a program name with args.
1517set dummy gcc; ac_word=$2
1518echo "$as_me:$LINENO: checking for $ac_word" >&5
1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525else
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
1539
1540fi
1541fi
1542ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545echo "${ECHO_T}$ac_ct_CC" >&6
1546else
1547 echo "$as_me:$LINENO: result: no" >&5
1548echo "${ECHO_T}no" >&6
1549fi
1550
1551 CC=$ac_ct_CC
1552else
1553 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001554fi
1555
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001556if test -z "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001557 if test -n "$ac_tool_prefix"; then
1558 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559set dummy ${ac_tool_prefix}cc; ac_word=$2
1560echo "$as_me:$LINENO: checking for $ac_word" >&5
1561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001564else
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1567else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_CC="${ac_tool_prefix}cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579done
1580done
1581
1582fi
1583fi
1584CC=$ac_cv_prog_CC
1585if test -n "$CC"; then
1586 echo "$as_me:$LINENO: result: $CC" >&5
1587echo "${ECHO_T}$CC" >&6
1588else
1589 echo "$as_me:$LINENO: result: no" >&5
1590echo "${ECHO_T}no" >&6
1591fi
1592
1593fi
1594if test -z "$ac_cv_prog_CC"; then
1595 ac_ct_CC=$CC
1596 # Extract the first word of "cc", so it can be a program name with args.
1597set dummy cc; ac_word=$2
1598echo "$as_me:$LINENO: checking for $ac_word" >&5
1599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 if test -n "$ac_ct_CC"; then
1604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605else
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_ac_ct_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617done
1618done
1619
1620fi
1621fi
1622ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623if test -n "$ac_ct_CC"; then
1624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625echo "${ECHO_T}$ac_ct_CC" >&6
1626else
1627 echo "$as_me:$LINENO: result: no" >&5
1628echo "${ECHO_T}no" >&6
1629fi
1630
1631 CC=$ac_ct_CC
1632else
1633 CC="$ac_cv_prog_CC"
1634fi
1635
1636fi
1637if test -z "$CC"; then
1638 # Extract the first word of "cc", so it can be a program name with args.
1639set dummy cc; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1647else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001648 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650for as_dir in $PATH
1651do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657 ac_prog_rejected=yes
1658 continue
1659 fi
1660 ac_cv_prog_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664done
1665done
1666
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001667if test $ac_prog_rejected = yes; then
1668 # We found a bogon in the path, so make sure we never use it.
1669 set dummy $ac_cv_prog_CC
1670 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001671 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001672 # We chose a different compiler from the bogus one.
1673 # However, it has the same basename, so the bogon will be chosen
1674 # first if we set CC to just the basename; use the full file name.
1675 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001677 fi
1678fi
1679fi
1680fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001681CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001682if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001685else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001688fi
1689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690fi
1691if test -z "$CC"; then
1692 if test -n "$ac_tool_prefix"; then
1693 for ac_prog in cl
1694 do
1695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001719fi
1720fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001721CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001722if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001725else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001728fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001729
1730 test -n "$CC" && break
1731 done
1732fi
1733if test -z "$CC"; then
1734 ac_ct_CC=$CC
1735 for ac_prog in cl
1736do
1737 # Extract the first word of "$ac_prog", so it can be a program name with args.
1738set dummy $ac_prog; ac_word=$2
1739echo "$as_me:$LINENO: checking for $ac_word" >&5
1740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746else
1747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748for as_dir in $PATH
1749do
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="$ac_prog"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001757 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001758done
1759done
1760
1761fi
1762fi
1763ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766echo "${ECHO_T}$ac_ct_CC" >&6
1767else
1768 echo "$as_me:$LINENO: result: no" >&5
1769echo "${ECHO_T}no" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001770fi
1771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001772 test -n "$ac_ct_CC" && break
1773done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001774
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001775 CC=$ac_ct_CC
1776fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001778fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001779
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001781test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782See \`config.log' for more details." >&5
1783echo "$as_me: error: no acceptable C compiler found in \$PATH
1784See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1786
1787# Provide some information about the compiler.
1788echo "$as_me:$LINENO:" \
1789 "checking for C compiler version" >&5
1790ac_compiler=`set X $ac_compile; echo $2`
1791{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792 (eval $ac_compiler --version </dev/null >&5) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797 (eval $ac_compiler -v </dev/null >&5) 2>&5
1798 ac_status=$?
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1801{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802 (eval $ac_compiler -V </dev/null >&5) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1806
1807cat >conftest.$ac_ext <<_ACEOF
1808/* confdefs.h. */
1809_ACEOF
1810cat confdefs.h >>conftest.$ac_ext
1811cat >>conftest.$ac_ext <<_ACEOF
1812/* end confdefs.h. */
1813
1814int
1815main ()
1816{
1817
1818 ;
1819 return 0;
1820}
1821_ACEOF
1822ac_clean_files_save=$ac_clean_files
1823ac_clean_files="$ac_clean_files a.out a.exe b.out"
1824# Try to create an executable without -o first, disregard a.out.
1825# It will help us diagnose broken compilers, and finding out an intuition
1826# of exeext.
1827echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1828echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1829ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1830if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1831 (eval $ac_link_default) 2>&5
1832 ac_status=$?
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; then
1835 # Find the output, starting from the most likely. This scheme is
1836# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1837# resort.
1838
1839# Be careful to initialize this variable, since it used to be cached.
1840# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1841ac_cv_exeext=
1842# b.out is created by i960 compilers.
1843for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1844do
1845 test -f "$ac_file" || continue
1846 case $ac_file in
1847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1848 ;;
1849 conftest.$ac_ext )
1850 # This is the source file.
1851 ;;
1852 [ab].out )
1853 # We found the default executable, but exeext='' is most
1854 # certainly right.
1855 break;;
1856 *.* )
1857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1858 # FIXME: I believe we export ac_cv_exeext for Libtool,
1859 # but it would be cool to find out if it's true. Does anybody
1860 # maintain Libtool? --akim.
1861 export ac_cv_exeext
1862 break;;
1863 * )
1864 break;;
1865 esac
1866done
1867else
1868 echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1872See \`config.log' for more details." >&5
1873echo "$as_me: error: C compiler cannot create executables
1874See \`config.log' for more details." >&2;}
1875 { (exit 77); exit 77; }; }
1876fi
1877
1878ac_exeext=$ac_cv_exeext
1879echo "$as_me:$LINENO: result: $ac_file" >&5
1880echo "${ECHO_T}$ac_file" >&6
1881
1882# Check the compiler produces executables we can run. If not, either
1883# the compiler is broken, or we cross compile.
1884echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1885echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1886# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1887# If not cross compiling, check that we can run a simple program.
1888if test "$cross_compiling" != yes; then
1889 if { ac_try='./$ac_file'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 (eval $ac_try) 2>&5
1892 ac_status=$?
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; }; then
1895 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001896 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001897 if test "$cross_compiling" = maybe; then
1898 cross_compiling=yes
1899 else
1900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1901If you meant to cross compile, use \`--host'.
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: cannot run C compiled programs.
1904If you meant to cross compile, use \`--host'.
1905See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001908 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001909fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001910echo "$as_me:$LINENO: result: yes" >&5
1911echo "${ECHO_T}yes" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001913rm -f a.out a.exe conftest$ac_cv_exeext b.out
1914ac_clean_files=$ac_clean_files_save
1915# Check the compiler produces executables we can run. If not, either
1916# the compiler is broken, or we cross compile.
1917echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1918echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1919echo "$as_me:$LINENO: result: $cross_compiling" >&5
1920echo "${ECHO_T}$cross_compiling" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001922echo "$as_me:$LINENO: checking for suffix of executables" >&5
1923echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1925 (eval $ac_link) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; then
1929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1930# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1931# work properly (i.e., refer to `conftest.exe'), while it won't with
1932# `rm'.
1933for ac_file in conftest.exe conftest conftest.*; do
1934 test -f "$ac_file" || continue
1935 case $ac_file in
1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1938 export ac_cv_exeext
1939 break;;
1940 * ) break;;
1941 esac
1942done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001943else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1945See \`config.log' for more details." >&5
1946echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1947See \`config.log' for more details." >&2;}
1948 { (exit 1); exit 1; }; }
1949fi
1950
1951rm -f conftest$ac_cv_exeext
1952echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1953echo "${ECHO_T}$ac_cv_exeext" >&6
1954
1955rm -f conftest.$ac_ext
1956EXEEXT=$ac_cv_exeext
1957ac_exeext=$EXEEXT
1958echo "$as_me:$LINENO: checking for suffix of object files" >&5
1959echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1960if test "${ac_cv_objext+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963 cat >conftest.$ac_ext <<_ACEOF
1964/* confdefs.h. */
1965_ACEOF
1966cat confdefs.h >>conftest.$ac_ext
1967cat >>conftest.$ac_ext <<_ACEOF
1968/* end confdefs.h. */
1969
1970int
1971main ()
1972{
1973
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978rm -f conftest.o conftest.obj
1979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; then
1984 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1988 break;;
1989 esac
1990done
1991else
1992 echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1996See \`config.log' for more details." >&5
1997echo "$as_me: error: cannot compute suffix of object files: cannot compile
1998See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2000fi
2001
2002rm -f conftest.$ac_cv_objext conftest.$ac_ext
2003fi
2004echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2005echo "${ECHO_T}$ac_cv_objext" >&6
2006OBJEXT=$ac_cv_objext
2007ac_objext=$OBJEXT
2008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2010if test "${ac_cv_c_compiler_gnu+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013 cat >conftest.$ac_ext <<_ACEOF
2014/* confdefs.h. */
2015_ACEOF
2016cat confdefs.h >>conftest.$ac_ext
2017cat >>conftest.$ac_ext <<_ACEOF
2018/* end confdefs.h. */
2019
2020int
2021main ()
2022{
2023#ifndef __GNUC__
2024 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002025#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002027 ;
2028 return 0;
2029}
2030_ACEOF
2031rm -f conftest.$ac_objext
2032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>conftest.er1
2034 ac_status=$?
2035 grep -v '^ *+' conftest.er1 >conftest.err
2036 rm -f conftest.er1
2037 cat conftest.err >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042 (eval $ac_try) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 (eval $ac_try) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2052 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002053else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002054 echo "$as_me: failed program was:" >&5
2055sed 's/^/| /' conftest.$ac_ext >&5
2056
2057ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002058fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2060ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002062fi
2063echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2064echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2065GCC=`test $ac_compiler_gnu = yes && echo yes`
2066ac_test_CFLAGS=${CFLAGS+set}
2067ac_save_CFLAGS=$CFLAGS
2068CFLAGS="-g"
2069echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2071if test "${ac_cv_prog_cc_g+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002074 cat >conftest.$ac_ext <<_ACEOF
2075/* confdefs.h. */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h. */
2080
2081int
2082main ()
2083{
2084
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089rm -f conftest.$ac_objext
2090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2092 ac_status=$?
2093 grep -v '^ *+' conftest.er1 >conftest.err
2094 rm -f conftest.er1
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 (eval $ac_try) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002110 ac_cv_prog_cc_g=yes
2111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002112 echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002115ac_cv_prog_cc_g=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002116fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2118fi
2119echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2120echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002121if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002122 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002123elif test $ac_cv_prog_cc_g = yes; then
2124 if test "$GCC" = yes; then
2125 CFLAGS="-g -O2"
2126 else
2127 CFLAGS="-g"
2128 fi
2129else
2130 if test "$GCC" = yes; then
2131 CFLAGS="-O2"
2132 else
2133 CFLAGS=
2134 fi
2135fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002136echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2137echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2138if test "${ac_cv_prog_cc_stdc+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141 ac_cv_prog_cc_stdc=no
2142ac_save_CC=$CC
2143cat >conftest.$ac_ext <<_ACEOF
2144/* confdefs.h. */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h. */
2149#include <stdarg.h>
2150#include <stdio.h>
2151#include <sys/types.h>
2152#include <sys/stat.h>
2153/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2154struct buf { int x; };
2155FILE * (*rcsopen) (struct buf *, struct stat *, int);
2156static char *e (p, i)
2157 char **p;
2158 int i;
2159{
2160 return p[i];
2161}
2162static char *f (char * (*g) (char **, int), char **p, ...)
2163{
2164 char *s;
2165 va_list v;
2166 va_start (v,p);
2167 s = g (p, va_arg (v,int));
2168 va_end (v);
2169 return s;
2170}
2171
2172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2173 function prototypes and stuff, but not '\xHH' hex character constants.
2174 These don't provoke an error unfortunately, instead are silently treated
2175 as 'x'. The following induces an error, until -std1 is added to get
2176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2177 array size at least. It's necessary to write '\x00'==0 to get something
2178 that's true only with -std1. */
2179int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2180
2181int test (int i, double x);
2182struct s1 {int (*f) (int a);};
2183struct s2 {int (*f) (double a);};
2184int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185int argc;
2186char **argv;
2187int
2188main ()
2189{
2190return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195# Don't try gcc -ansi; that turns off useful extensions and
2196# breaks some systems' header files.
2197# AIX -qlanglvl=ansi
2198# Ultrix and OSF/1 -std1
2199# HP-UX 10.20 and later -Ae
2200# HP-UX older versions -Aa -D_HPUX_SOURCE
2201# SVR4 -Xc -D__EXTENSIONS__
2202for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2203do
2204 CC="$ac_save_CC $ac_arg"
2205 rm -f conftest.$ac_objext
2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 ac_cv_prog_cc_stdc=$ac_arg
2227break
2228else
2229 echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
2231
2232fi
2233rm -f conftest.err conftest.$ac_objext
2234done
2235rm -f conftest.$ac_ext conftest.$ac_objext
2236CC=$ac_save_CC
2237
2238fi
2239
2240case "x$ac_cv_prog_cc_stdc" in
2241 x|xno)
2242 echo "$as_me:$LINENO: result: none needed" >&5
2243echo "${ECHO_T}none needed" >&6 ;;
2244 *)
2245 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2246echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2247 CC="$CC $ac_cv_prog_cc_stdc" ;;
2248esac
2249
2250# Some people use a C++ compiler to compile C. Since we use `exit',
2251# in C++ we need to declare it. In case someone uses the same compiler
2252# for both compiling C and C++ we need to have the C++ compiler decide
2253# the declaration of exit, since it's the most demanding environment.
2254cat >conftest.$ac_ext <<_ACEOF
2255#ifndef __cplusplus
2256 choke me
2257#endif
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>conftest.er1
2262 ac_status=$?
2263 grep -v '^ *+' conftest.er1 >conftest.err
2264 rm -f conftest.er1
2265 cat conftest.err >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 for ac_declaration in \
2281 '' \
2282 'extern "C" void std::exit (int) throw (); using std::exit;' \
2283 'extern "C" void std::exit (int); using std::exit;' \
2284 'extern "C" void exit (int) throw ();' \
2285 'extern "C" void exit (int);' \
2286 'void exit (int);'
2287do
2288 cat >conftest.$ac_ext <<_ACEOF
2289/* confdefs.h. */
2290_ACEOF
2291cat confdefs.h >>conftest.$ac_ext
2292cat >>conftest.$ac_ext <<_ACEOF
2293/* end confdefs.h. */
2294$ac_declaration
2295#include <stdlib.h>
2296int
2297main ()
2298{
2299exit (42);
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304rm -f conftest.$ac_objext
2305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2307 ac_status=$?
2308 grep -v '^ *+' conftest.er1 >conftest.err
2309 rm -f conftest.er1
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 :
2326else
2327 echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330continue
2331fi
2332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
2339$ac_declaration
2340int
2341main ()
2342{
2343exit (42);
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348rm -f conftest.$ac_objext
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 break
2370else
2371 echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374fi
2375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2376done
2377rm -f conftest*
2378if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2382fi
2383
2384else
2385 echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388fi
2389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390ac_ext=c
2391ac_cpp='$CPP $CPPFLAGS'
2392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002396
Theodore Ts'o74becf31997-04-26 14:37:06 +00002397# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002398if test "${with_linker+set}" = set; then
2399 withval="$with_linker"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002400 echo "$as_me:$LINENO: result: LD=$withval" >&5
2401echo "${ECHO_T}LD=$withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002402LD=$withval
2403else
2404 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002405echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2406echo "${ECHO_T}LD defaults to $LD" >&6
2407fi; export LD
2408
Theodore Ts'o74becf31997-04-26 14:37:06 +00002409
2410# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002411if test "${with_ccopts+set}" = set; then
2412 withval="$with_ccopts"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002413 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2414echo "${ECHO_T}CCOPTS is $withval" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002415CFLAGS=$withval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002416fi;
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002424# On Suns, sometimes $CPP names a directory.
2425if test -n "$CPP" && test -d "$CPP"; then
2426 CPP=
2427fi
2428if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002429 if test "${ac_cv_prog_CPP+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002431else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432 # Double quotes because CPP needs to be expanded
2433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2434 do
2435 ac_preproc_ok=false
2436for ac_c_preproc_warn_flag in '' yes
2437do
2438 # Use a header file that comes with gcc, so configuring glibc
2439 # with a fresh cross-compiler works.
2440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2441 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002442 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443 # not just through cpp. "Syntax error" is here to catch this case.
2444 cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h. */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h. */
2450#ifdef __STDC__
2451# include <limits.h>
2452#else
2453# include <assert.h>
2454#endif
2455 Syntax error
2456_ACEOF
2457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } >/dev/null; then
2465 if test -s conftest.err; then
2466 ac_cpp_err=$ac_c_preproc_warn_flag
2467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2468 else
2469 ac_cpp_err=
2470 fi
2471else
2472 ac_cpp_err=yes
2473fi
2474if test -z "$ac_cpp_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002475 :
2476else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477 echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480 # Broken: fails on valid input.
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_ext
2484
2485 # OK, works on sane cases. Now check whether non-existent headers
2486 # can be detected and how.
2487 cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h. */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h. */
2493#include <ac_nonexistent.h>
2494_ACEOF
2495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2506 else
2507 ac_cpp_err=
2508 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002509else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 ac_cpp_err=yes
2511fi
2512if test -z "$ac_cpp_err"; then
2513 # Broken: success on invalid input.
2514continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002515else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 # Passes both tests.
2520ac_preproc_ok=:
2521break
2522fi
2523rm -f conftest.err conftest.$ac_ext
2524
2525done
2526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2527rm -f conftest.err conftest.$ac_ext
2528if $ac_preproc_ok; then
2529 break
2530fi
2531
2532 done
2533 ac_cv_prog_CPP=$CPP
2534
2535fi
2536 CPP=$ac_cv_prog_CPP
2537else
2538 ac_cv_prog_CPP=$CPP
2539fi
2540echo "$as_me:$LINENO: result: $CPP" >&5
2541echo "${ECHO_T}$CPP" >&6
2542ac_preproc_ok=false
2543for ac_c_preproc_warn_flag in '' yes
2544do
2545 # Use a header file that comes with gcc, so configuring glibc
2546 # with a fresh cross-compiler works.
2547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2548 # <limits.h> exists even on freestanding compilers.
2549 # On the NeXT, cc -E runs the code through the compiler's parser,
2550 # not just through cpp. "Syntax error" is here to catch this case.
2551 cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h. */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h. */
2557#ifdef __STDC__
2558# include <limits.h>
2559#else
2560# include <assert.h>
2561#endif
2562 Syntax error
2563_ACEOF
2564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566 ac_status=$?
2567 grep -v '^ *+' conftest.er1 >conftest.err
2568 rm -f conftest.er1
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } >/dev/null; then
2572 if test -s conftest.err; then
2573 ac_cpp_err=$ac_c_preproc_warn_flag
2574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2575 else
2576 ac_cpp_err=
2577 fi
2578else
2579 ac_cpp_err=yes
2580fi
2581if test -z "$ac_cpp_err"; then
2582 :
2583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 # Broken: fails on valid input.
2588continue
2589fi
2590rm -f conftest.err conftest.$ac_ext
2591
2592 # OK, works on sane cases. Now check whether non-existent headers
2593 # can be detected and how.
2594 cat >conftest.$ac_ext <<_ACEOF
2595/* confdefs.h. */
2596_ACEOF
2597cat confdefs.h >>conftest.$ac_ext
2598cat >>conftest.$ac_ext <<_ACEOF
2599/* end confdefs.h. */
2600#include <ac_nonexistent.h>
2601_ACEOF
2602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } >/dev/null; then
2610 if test -s conftest.err; then
2611 ac_cpp_err=$ac_c_preproc_warn_flag
2612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2613 else
2614 ac_cpp_err=
2615 fi
2616else
2617 ac_cpp_err=yes
2618fi
2619if test -z "$ac_cpp_err"; then
2620 # Broken: success on invalid input.
2621continue
2622else
2623 echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 # Passes both tests.
2627ac_preproc_ok=:
2628break
2629fi
2630rm -f conftest.err conftest.$ac_ext
2631
2632done
2633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2634rm -f conftest.err conftest.$ac_ext
2635if $ac_preproc_ok; then
2636 :
2637else
2638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2639See \`config.log' for more details." >&5
2640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2641See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2643fi
2644
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650
2651
2652echo "$as_me:$LINENO: checking for egrep" >&5
2653echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2654if test "${ac_cv_prog_egrep+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
2657 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2658 then ac_cv_prog_egrep='grep -E'
2659 else ac_cv_prog_egrep='egrep'
2660 fi
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2663echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2664 EGREP=$ac_cv_prog_egrep
2665
2666
2667echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2668echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2669if test "${ac_cv_header_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672 cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
2678#include <stdlib.h>
2679#include <stdarg.h>
2680#include <string.h>
2681#include <float.h>
2682
2683int
2684main ()
2685{
2686
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_header_stdc=yes
2713else
2714 echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717ac_cv_header_stdc=no
2718fi
2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720
2721if test $ac_cv_header_stdc = yes; then
2722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2723 cat >conftest.$ac_ext <<_ACEOF
2724/* confdefs.h. */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h. */
2729#include <string.h>
2730
2731_ACEOF
2732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2733 $EGREP "memchr" >/dev/null 2>&1; then
2734 :
2735else
2736 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002737fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002738rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002739
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002740fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002741
2742if test $ac_cv_header_stdc = yes; then
2743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2744 cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
2750#include <stdlib.h>
2751
2752_ACEOF
2753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2754 $EGREP "free" >/dev/null 2>&1; then
2755 :
2756else
2757 ac_cv_header_stdc=no
2758fi
2759rm -f conftest*
2760
2761fi
2762
2763if test $ac_cv_header_stdc = yes; then
2764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2765 if test "$cross_compiling" = yes; then
2766 :
2767else
2768 cat >conftest.$ac_ext <<_ACEOF
2769/* confdefs.h. */
2770_ACEOF
2771cat confdefs.h >>conftest.$ac_ext
2772cat >>conftest.$ac_ext <<_ACEOF
2773/* end confdefs.h. */
2774#include <ctype.h>
2775#if ((' ' & 0x0FF) == 0x020)
2776# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2777# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2778#else
2779# define ISLOWER(c) \
2780 (('a' <= (c) && (c) <= 'i') \
2781 || ('j' <= (c) && (c) <= 'r') \
2782 || ('s' <= (c) && (c) <= 'z'))
2783# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2784#endif
2785
2786#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2787int
2788main ()
2789{
2790 int i;
2791 for (i = 0; i < 256; i++)
2792 if (XOR (islower (i), ISLOWER (i))
2793 || toupper (i) != TOUPPER (i))
2794 exit(2);
2795 exit (0);
2796}
2797_ACEOF
2798rm -f conftest$ac_exeext
2799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800 (eval $ac_link) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 :
2810else
2811 echo "$as_me: program exited with status $ac_status" >&5
2812echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815( exit $ac_status )
2816ac_cv_header_stdc=no
2817fi
2818rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2819fi
2820fi
2821fi
2822echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2823echo "${ECHO_T}$ac_cv_header_stdc" >&6
2824if test $ac_cv_header_stdc = yes; then
2825
2826cat >>confdefs.h <<\_ACEOF
2827#define STDC_HEADERS 1
2828_ACEOF
2829
2830fi
2831
2832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2843 inttypes.h stdint.h unistd.h
2844do
2845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2846echo "$as_me:$LINENO: checking for $ac_header" >&5
2847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2848if eval "test \"\${$as_ac_Header+set}\" = set"; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850else
2851 cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h. */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h. */
2857$ac_includes_default
2858
2859#include <$ac_header>
2860_ACEOF
2861rm -f conftest.$ac_objext
2862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 eval "$as_ac_Header=yes"
2883else
2884 echo "$as_me: failed program was:" >&5
2885sed 's/^/| /' conftest.$ac_ext >&5
2886
2887eval "$as_ac_Header=no"
2888fi
2889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890fi
2891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2893if test `eval echo '${'$as_ac_Header'}'` = yes; then
2894 cat >>confdefs.h <<_ACEOF
2895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2896_ACEOF
2897
2898fi
2899
2900done
2901
2902
2903if test "${ac_cv_header_linux_fs_h+set}" = set; then
2904 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2905echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2906if test "${ac_cv_header_linux_fs_h+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908fi
2909echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2910echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2911else
2912 # Is the header compilable?
2913echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2914echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2915cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h. */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h. */
2921$ac_includes_default
2922#include <linux/fs.h>
2923_ACEOF
2924rm -f conftest.$ac_objext
2925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_header_compiler=yes
2946else
2947 echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950ac_header_compiler=no
2951fi
2952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2954echo "${ECHO_T}$ac_header_compiler" >&6
2955
2956# Is the header present?
2957echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2958echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2959cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h. */
2965#include <linux/fs.h>
2966_ACEOF
2967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969 ac_status=$?
2970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev/null; then
2975 if test -s conftest.err; then
2976 ac_cpp_err=$ac_c_preproc_warn_flag
2977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2978 else
2979 ac_cpp_err=
2980 fi
2981else
2982 ac_cpp_err=yes
2983fi
2984if test -z "$ac_cpp_err"; then
2985 ac_header_preproc=yes
2986else
2987 echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 ac_header_preproc=no
2991fi
2992rm -f conftest.err conftest.$ac_ext
2993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2994echo "${ECHO_T}$ac_header_preproc" >&6
2995
2996# So? What about this header?
2997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2998 yes:no: )
2999 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3000echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3001 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3002echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3003 ac_header_preproc=yes
3004 ;;
3005 no:yes:* )
3006 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3007echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3008 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3009echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3010 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3011echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3012 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3013echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3014 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3015echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3016 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3017echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3018 (
3019 cat <<\_ASBOX
3020## ------------------------------------------ ##
3021## Report this to the AC_PACKAGE_NAME lists. ##
3022## ------------------------------------------ ##
3023_ASBOX
3024 ) |
3025 sed "s/^/$as_me: WARNING: /" >&2
3026 ;;
3027esac
3028echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3029echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3030if test "${ac_cv_header_linux_fs_h+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032else
3033 ac_cv_header_linux_fs_h=$ac_header_preproc
3034fi
3035echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3036echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3037
3038fi
3039if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003040 linux_headers=yes
3041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003043fi
3044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003045
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003046if test "$linux_headers" != yes; then
3047 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003048fi
3049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3051echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003052if test "$GCC" = yes
3053then
3054 case "$host_cpu" in
3055 alpha) addcflags="-mieee" ;;
3056 esac
3057fi
3058if test "x$addcflags" != x
3059then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060 echo "$as_me:$LINENO: result: $addcflags" >&5
3061echo "${ECHO_T}$addcflags" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003062 CFLAGS="$addcflags $CFLAGS"
3063else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003064 echo "$as_me:$LINENO: result: (none)" >&5
3065echo "${ECHO_T}(none)" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003066fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003067LIB_EXT=.a
3068STATIC_LIB_EXT=.a
3069PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070
Theodore Ts'o74becf31997-04-26 14:37:06 +00003071# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003072if test "${with_ldopts+set}" = set; then
3073 withval="$with_ldopts"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3075echo "${ECHO_T}LDFLAGS is $withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00003076LDFLAGS=$withval
3077else
3078 LDFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003079fi;
Theodore Ts'o74becf31997-04-26 14:37:06 +00003080
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003081# Check whether --with-root-prefix or --without-root-prefix was given.
3082if test "${with_root_prefix+set}" = set; then
3083 withval="$with_root_prefix"
3084 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003085else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003086 root_prefix=NONE
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003087fi; # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3088if test "${enable_maintainer_mode+set}" = set; then
3089 enableval="$enable_maintainer_mode"
3090 if test "$enableval" = "no"
3091then
3092 MAINTAINER_CMT=#
3093 echo "Disabling maintainer mode"
3094else
3095 MAINTAINER_CMT=
3096 echo "Enabling maintainer mode"
3097fi
3098
3099else
3100 MAINTAINER_CMT=#
3101echo "Disabling maintainer mode by default"
3102
3103fi;
3104
3105# Check whether --enable-compression or --disable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003106if test "${enable_compression+set}" = set; then
3107 enableval="$enable_compression"
3108 if test "$enableval" = "no"
3109then
3110 echo "Disabling compression support"
3111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003112 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003113#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003114_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003115
3116 echo "Enabling compression support"
3117 echo "WARNING: Compression support is experimental"
3118fi
3119
3120else
3121 echo "Disabling compression support by default"
3122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003123fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003124# Check whether --enable-htree or --disable-htree was given.
3125if test "${enable_htree+set}" = set; then
3126 enableval="$enable_htree"
3127 if test "$enableval" = "no"
3128then
3129 HTREE_CMT=#
3130 echo "Disabling htree directory support"
3131else
3132 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003133 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003134#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003135_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003136
3137 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003138fi
3139
3140else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003141 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003142cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003143#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003145
3146echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003148fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003149
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003150# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003151if test "${enable_elf_shlibs+set}" = set; then
3152 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003153 if test "$enableval" = "no"
3154then
3155 ELF_CMT=#
3156 MAKEFILE_ELF=/dev/null
3157 echo "Disabling ELF shared libraries"
3158else
3159 ELF_CMT=
3160 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003161 case "$host_os" in
3162 solaris2.*)
3163 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3164 ;;
3165 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003166 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003167 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003168 echo "Enabling ELF shared libraries"
3169fi
3170
3171else
3172 MAKEFILE_ELF=/dev/null
3173ELF_CMT=#
3174echo "Disabling ELF shared libraries by default"
3175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003177
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003178
3179# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003180if test "${enable_bsd_shlibs+set}" = set; then
3181 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003182 if test "$enableval" = "no"
3183then
3184 BSDLIB_CMT=#
3185 MAKEFILE_BSDLIB=/dev/null
3186 echo "Disabling BSD shared libraries"
3187else
3188 BSDLIB_CMT=
3189 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003190 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003191 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003192 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003193 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3194 LIB_EXT=.dylib
3195 ;;
3196 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003197 echo "Enabling BSD shared libraries"
3198fi
3199
3200else
3201 MAKEFILE_BSDLIB=/dev/null
3202BSDLIB_CMT=#
3203echo "Disabling BSD shared libraries by default"
3204
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003205fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003206
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003207
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003208# Check whether --enable-profile or --disable-profile was given.
3209if test "${enable_profile+set}" = set; then
3210 enableval="$enable_profile"
3211 if test "$enableval" = "no"
3212then
3213 PROFILE_CMT=#
3214 MAKEFILE_PROFILE=/dev/null
3215 echo "Disabling profiling libraries"
3216else
3217 PROFILE_CMT=
3218 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3219 PROFILED_LIB_EXT=_p.a
3220 echo "Building profiling libraries"
3221fi
3222
3223else
3224 PROFILE_CMT=#
3225MAKEFILE_PROFILE=/dev/null
3226echo "Disabling profiling libraries by default"
3227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003228fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003229
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003230
3231# Check whether --enable-checker or --disable-checker was given.
3232if test "${enable_checker+set}" = set; then
3233 enableval="$enable_checker"
3234 if test "$enableval" = "no"
3235then
3236 CHECKER_CMT=#
3237 MAKEFILE_CHECKER=/dev/null
3238 echo "Disabling checker libraries"
3239else
3240 CHECKER_CMT=
3241 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3242 echo "Building checker libraries"
3243fi
3244
3245else
3246 CHECKER_CMT=#
3247MAKEFILE_CHECKER=/dev/null
3248echo "Disabling checker libraries by default"
3249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003250fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003251
3252
3253
3254
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003255
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003256# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3257if test "${enable_jbd_debug+set}" = set; then
3258 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003259 if test "$enableval" = "no"
3260then
3261 echo "Disabling journal debugging"
3262else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003263 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003264#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003265_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003266
3267 echo "Enabling journal debugging"
3268fi
3269
3270else
3271 echo "Disabling journal debugging by default"
3272
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003273fi;
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003274# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3275if test "${enable_blkid_debug+set}" = set; then
3276 enableval="$enable_blkid_debug"
3277 if test "$enableval" = "no"
3278then
3279 echo "Disabling blkid debugging"
3280else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003281 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003282#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003283_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003284
3285 echo "Enabling blkid debugging"
3286fi
3287
3288else
3289 echo "Disabling blkid debugging by default"
3290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003291fi;
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003292# Check whether --enable-testio-debug or --disable-testio-debug was given.
3293if test "${enable_testio_debug+set}" = set; then
3294 enableval="$enable_testio_debug"
3295 if test "$enableval" = "no"
3296then
3297 echo "Disabling testio debugging"
3298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003299 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003300#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003301_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003302
3303 echo "Enabling testio debugging"
3304fi
3305
3306else
3307 echo "Disabling testio debugging by default"
3308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309fi;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003310# Check whether --enable-swapfs or --disable-swapfs was given.
3311if test "${enable_swapfs+set}" = set; then
3312 enableval="$enable_swapfs"
3313 if test "$enableval" = "no"
3314then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003315 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003316 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003317else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003318 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003319 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003320#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003321_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003322
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003323 echo "Enabling swapfs support"
3324fi
3325
3326else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003327 SWAPFS_CMT=
3328echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003329cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003330#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003332
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003334fi;
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003335
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003336# Check whether --enable-debugfs or --disable-debugfs was given.
3337if test "${enable_debugfs+set}" = set; then
3338 enableval="$enable_debugfs"
3339 if test "$enableval" = "no"
3340then
3341 echo "Disabling debugfs support"
3342 DEBUGFS_CMT="#"
3343else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003344 DEBUGFS_CMT=
3345 echo "Enabling debugfs support"
3346fi
3347
3348else
3349 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003350DEBUGFS_CMT=
3351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003352fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003353
3354# Check whether --enable-imager or --disable-imager was given.
3355if test "${enable_imager+set}" = set; then
3356 enableval="$enable_imager"
3357 if test "$enableval" = "no"
3358then
3359 echo "Disabling e2image support"
3360 IMAGER_CMT="#"
3361else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003362 IMAGER_CMT=
3363 echo "Enabling e2image support"
3364fi
3365
3366else
3367 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003368IMAGER_CMT=
3369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003370fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003371
3372# Check whether --enable-resizer or --disable-resizer was given.
3373if test "${enable_resizer+set}" = set; then
3374 enableval="$enable_resizer"
3375 if test "$enableval" = "no"
3376then
3377 echo "Disabling e2resize support"
3378 RESIZER_CMT="#"
3379else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003380 RESIZER_CMT=
3381 echo "Enabling e2resize support"
3382fi
3383
3384else
3385 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003386RESIZER_CMT=
3387
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003388fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003389
3390# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3391if test "${enable_dynamic_e2fsck+set}" = set; then
3392 enableval="$enable_dynamic_e2fsck"
3393 if test "$enableval" = "no"
3394then
3395 E2FSCK_TYPE=static
3396 echo "Building e2fsck statically"
3397else
3398 E2FSCK_TYPE=shared
3399 echo "Building e2fsck dynamically"
3400fi
3401
3402else
3403 E2FSCK_TYPE=static
3404echo "Building e2fsck statically by default"
3405
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003406fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003407
3408# Check whether --enable-fsck or --disable-fsck was given.
3409if test "${enable_fsck+set}" = set; then
3410 enableval="$enable_fsck"
3411 if test "$enableval" = "no"
3412then
3413 FSCK_PROG='' FSCK_MAN=''
3414 echo "Not building fsck wrapper"
3415else
3416 FSCK_PROG=fsck FSCK_MAN=fsck.8
3417 echo "Building fsck wrapper"
3418fi
3419
3420else
3421 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04003422 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003423 FSCK_PROG='' FSCK_MAN=''
3424 echo "Not building fsck wrapper by default"
3425 ;;
3426 *)
3427 FSCK_PROG=fsck FSCK_MAN=fsck.8
3428 echo "Building fsck wrapper by default"
3429esac
3430
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003432
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003433
Theodore Ts'o5d407732004-09-18 14:53:14 -04003434# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3435if test "${enable_e2initrd_helper+set}" = set; then
3436 enableval="$enable_e2initrd_helper"
3437 if test "$enableval" = "no"
3438then
3439 E2INITRD_PROG='' E2INITRD_MAN=''
3440 echo "Not building e2initrd helper"
3441else
3442 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3443 echo "Building e2initrd helper"
3444fi
3445
3446else
3447 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3448echo "Building e2initrd helper by default"
3449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450fi;
Theodore Ts'o5d407732004-09-18 14:53:14 -04003451
3452
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003453MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003456PACKAGE=e2fsprogs
3457VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003458VERSION=0.14.1
3459cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003460#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003461_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003464#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003465_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003466
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003467
3468
3469
3470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003471echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3472echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3473set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3474if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003476else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003477 cat >conftest.make <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003478all:
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003479 @echo 'ac_maketemp="$(MAKE)"'
3480_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003481# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003482eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003483if test -n "$ac_maketemp"; then
3484 eval ac_cv_prog_make_${ac_make}_set=yes
3485else
3486 eval ac_cv_prog_make_${ac_make}_set=no
3487fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003488rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003489fi
3490if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003491 echo "$as_me:$LINENO: result: yes" >&5
3492echo "${ECHO_T}yes" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003493 SET_MAKE=
3494else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495 echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003497 SET_MAKE="MAKE=${MAKE-make}"
3498fi
3499
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003500# Find a good install program. We prefer a C program (faster),
3501# so one script is as good as another. But avoid the broken or
3502# incompatible versions:
3503# SysV /etc/install, /usr/sbin/install
3504# SunOS /usr/etc/install
3505# IRIX /sbin/install
3506# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003507# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003508# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3509# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3510# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003511# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003512# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003513echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3514echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003515if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003516if test "${ac_cv_path_install+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003518else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 # Account for people who put trailing slashes in PATH elements.
3525case $as_dir/ in
3526 ./ | .// | /cC/* | \
3527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3528 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3529 /usr/ucb/* ) ;;
3530 *)
3531 # OSF1 and SCO ODT 3.0 have their own names for install.
3532 # Don't use installbsd from OSF since it installs stuff as root
3533 # by default.
3534 for ac_prog in ginstall scoinst install; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003537 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003539 # AIX install. It has an incompatible calling convention.
3540 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003541 elif test $ac_prog = install &&
3542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3543 # program-specific install script used by HP pwplus--don't use.
3544 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003545 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003546 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3547 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003548 fi
3549 fi
3550 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003551 done
3552 ;;
3553esac
3554done
3555
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003556
3557fi
3558 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003559 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003560 else
3561 # As a last resort, use the slow shell script. We don't cache a
3562 # path for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the path is relative.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003565 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003566 fi
3567fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003568echo "$as_me:$LINENO: result: $INSTALL" >&5
3569echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003570
3571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572# It thinks the first close brace ends the variable substitution.
3573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003576
3577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003579
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003580 MKINSTALLDIRS=
3581 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582 case "$ac_aux_dir" in
3583 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3584 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3585 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003586 fi
3587 if test -z "$MKINSTALLDIRS"; then
3588 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3589 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591
3592
3593 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3594echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3595 # Check whether --enable-nls or --disable-nls was given.
3596if test "${enable_nls+set}" = set; then
3597 enableval="$enable_nls"
3598 USE_NLS=$enableval
3599else
3600 USE_NLS=yes
3601fi;
3602 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3603echo "${ECHO_T}$USE_NLS" >&6
3604
3605
3606
3607
3608
3609
3610# Prepare PATH_SEPARATOR.
3611# The user is always right.
3612if test "${PATH_SEPARATOR+set}" != set; then
3613 echo "#! /bin/sh" >conf$$.sh
3614 echo "exit 0" >>conf$$.sh
3615 chmod +x conf$$.sh
3616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3617 PATH_SEPARATOR=';'
3618 else
3619 PATH_SEPARATOR=:
3620 fi
3621 rm -f conf$$.sh
3622fi
3623
3624# Find out how to test for executable files. Don't use a zero-byte file,
3625# as systems may use methods other than mode bits to determine executability.
3626cat >conf$$.file <<_ASEOF
3627#! /bin/sh
3628exit 0
3629_ASEOF
3630chmod +x conf$$.file
3631if test -x conf$$.file >/dev/null 2>&1; then
3632 ac_executable_p="test -x"
3633else
3634 ac_executable_p="test -f"
3635fi
3636rm -f conf$$.file
3637
3638# Extract the first word of "msgfmt", so it can be a program name with args.
3639set dummy msgfmt; ac_word=$2
3640echo "$as_me:$LINENO: checking for $ac_word" >&5
3641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3642if test "${ac_cv_path_MSGFMT+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 case "$MSGFMT" in
3646 [\\/]* | ?:[\\/]*)
3647 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3648 ;;
3649 *)
3650 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3651 for ac_dir in $PATH; do
3652 IFS="$ac_save_IFS"
3653 test -z "$ac_dir" && ac_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3656 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3657 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3658 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3659 break 2
3660 fi
3661 fi
3662 done
3663 done
3664 IFS="$ac_save_IFS"
3665 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3666 ;;
3667esac
3668fi
3669MSGFMT="$ac_cv_path_MSGFMT"
3670if test "$MSGFMT" != ":"; then
3671 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3672echo "${ECHO_T}$MSGFMT" >&6
3673else
3674 echo "$as_me:$LINENO: result: no" >&5
3675echo "${ECHO_T}no" >&6
3676fi
3677
3678 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3679set dummy gmsgfmt; ac_word=$2
3680echo "$as_me:$LINENO: checking for $ac_word" >&5
3681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682if test "${ac_cv_path_GMSGFMT+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685 case $GMSGFMT in
3686 [\\/]* | ?:[\\/]*)
3687 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3688 ;;
3689 *)
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701done
3702done
3703
3704 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3705 ;;
3706esac
3707fi
3708GMSGFMT=$ac_cv_path_GMSGFMT
3709
3710if test -n "$GMSGFMT"; then
3711 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3712echo "${ECHO_T}$GMSGFMT" >&6
3713else
3714 echo "$as_me:$LINENO: result: no" >&5
3715echo "${ECHO_T}no" >&6
3716fi
3717
3718
3719
3720# Prepare PATH_SEPARATOR.
3721# The user is always right.
3722if test "${PATH_SEPARATOR+set}" != set; then
3723 echo "#! /bin/sh" >conf$$.sh
3724 echo "exit 0" >>conf$$.sh
3725 chmod +x conf$$.sh
3726 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3727 PATH_SEPARATOR=';'
3728 else
3729 PATH_SEPARATOR=:
3730 fi
3731 rm -f conf$$.sh
3732fi
3733
3734# Find out how to test for executable files. Don't use a zero-byte file,
3735# as systems may use methods other than mode bits to determine executability.
3736cat >conf$$.file <<_ASEOF
3737#! /bin/sh
3738exit 0
3739_ASEOF
3740chmod +x conf$$.file
3741if test -x conf$$.file >/dev/null 2>&1; then
3742 ac_executable_p="test -x"
3743else
3744 ac_executable_p="test -f"
3745fi
3746rm -f conf$$.file
3747
3748# Extract the first word of "xgettext", so it can be a program name with args.
3749set dummy xgettext; ac_word=$2
3750echo "$as_me:$LINENO: checking for $ac_word" >&5
3751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752if test "${ac_cv_path_XGETTEXT+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755 case "$XGETTEXT" in
3756 [\\/]* | ?:[\\/]*)
3757 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3758 ;;
3759 *)
3760 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3761 for ac_dir in $PATH; do
3762 IFS="$ac_save_IFS"
3763 test -z "$ac_dir" && ac_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3766 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3767 (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
3768 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3769 break 2
3770 fi
3771 fi
3772 done
3773 done
3774 IFS="$ac_save_IFS"
3775 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3776 ;;
3777esac
3778fi
3779XGETTEXT="$ac_cv_path_XGETTEXT"
3780if test "$XGETTEXT" != ":"; then
3781 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3782echo "${ECHO_T}$XGETTEXT" >&6
3783else
3784 echo "$as_me:$LINENO: result: no" >&5
3785echo "${ECHO_T}no" >&6
3786fi
3787
3788 rm -f messages.po
3789
3790
3791# Prepare PATH_SEPARATOR.
3792# The user is always right.
3793if test "${PATH_SEPARATOR+set}" != set; then
3794 echo "#! /bin/sh" >conf$$.sh
3795 echo "exit 0" >>conf$$.sh
3796 chmod +x conf$$.sh
3797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3798 PATH_SEPARATOR=';'
3799 else
3800 PATH_SEPARATOR=:
3801 fi
3802 rm -f conf$$.sh
3803fi
3804
3805# Find out how to test for executable files. Don't use a zero-byte file,
3806# as systems may use methods other than mode bits to determine executability.
3807cat >conf$$.file <<_ASEOF
3808#! /bin/sh
3809exit 0
3810_ASEOF
3811chmod +x conf$$.file
3812if test -x conf$$.file >/dev/null 2>&1; then
3813 ac_executable_p="test -x"
3814else
3815 ac_executable_p="test -f"
3816fi
3817rm -f conf$$.file
3818
3819# Extract the first word of "msgmerge", so it can be a program name with args.
3820set dummy msgmerge; ac_word=$2
3821echo "$as_me:$LINENO: checking for $ac_word" >&5
3822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823if test "${ac_cv_path_MSGMERGE+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
3826 case "$MSGMERGE" in
3827 [\\/]* | ?:[\\/]*)
3828 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3829 ;;
3830 *)
3831 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3832 for ac_dir in $PATH; do
3833 IFS="$ac_save_IFS"
3834 test -z "$ac_dir" && ac_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3837 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3838 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3839 break 2
3840 fi
3841 fi
3842 done
3843 done
3844 IFS="$ac_save_IFS"
3845 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3846 ;;
3847esac
3848fi
3849MSGMERGE="$ac_cv_path_MSGMERGE"
3850if test "$MSGMERGE" != ":"; then
3851 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3852echo "${ECHO_T}$MSGMERGE" >&6
3853else
3854 echo "$as_me:$LINENO: result: no" >&5
3855echo "${ECHO_T}no" >&6
3856fi
3857
3858
3859 if test "$GMSGFMT" != ":"; then
3860 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3861 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3862 : ;
3863 else
3864 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3865 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3866echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3867 GMSGFMT=":"
3868 fi
3869 fi
3870
3871 if test "$XGETTEXT" != ":"; then
3872 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3873 (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
3874 : ;
3875 else
3876 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3877echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3878 XGETTEXT=":"
3879 fi
3880 rm -f messages.po
3881 fi
3882
3883 ac_config_commands="$ac_config_commands default-1"
3884
3885
3886if test -n "$ac_tool_prefix"; then
3887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3888set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3889echo "$as_me:$LINENO: checking for $ac_word" >&5
3890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891if test "${ac_cv_prog_RANLIB+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003893else
3894 if test -n "$RANLIB"; then
3895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3896else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003909done
3910
3911fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003912fi
3913RANLIB=$ac_cv_prog_RANLIB
3914if test -n "$RANLIB"; then
3915 echo "$as_me:$LINENO: result: $RANLIB" >&5
3916echo "${ECHO_T}$RANLIB" >&6
3917else
3918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003922fi
3923if test -z "$ac_cv_prog_RANLIB"; then
3924 ac_ct_RANLIB=$RANLIB
3925 # Extract the first word of "ranlib", so it can be a program name with args.
3926set dummy ranlib; ac_word=$2
3927echo "$as_me:$LINENO: checking for $ac_word" >&5
3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932 if test -n "$ac_ct_RANLIB"; then
3933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_RANLIB="ranlib"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947done
3948
3949 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3950fi
3951fi
3952ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3953if test -n "$ac_ct_RANLIB"; then
3954 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3955echo "${ECHO_T}$ac_ct_RANLIB" >&6
3956else
3957 echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6
3959fi
3960
3961 RANLIB=$ac_ct_RANLIB
3962else
3963 RANLIB="$ac_cv_prog_RANLIB"
3964fi
3965
3966
3967 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3968echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3969if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972 ac_check_lib_save_LIBS=$LIBS
3973LIBS="-lcposix $LIBS"
3974cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h. */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h. */
3980
3981/* Override any gcc2 internal prototype to avoid an error. */
3982#ifdef __cplusplus
3983extern "C"
3984#endif
3985/* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3987char strerror ();
3988int
3989main ()
3990{
3991strerror ();
3992 ;
3993 return 0;
3994}
3995_ACEOF
3996rm -f conftest.$ac_objext conftest$ac_exeext
3997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_lib_cposix_strerror=yes
4018else
4019 echo "$as_me: failed program was:" >&5
4020sed 's/^/| /' conftest.$ac_ext >&5
4021
4022ac_cv_lib_cposix_strerror=no
4023fi
4024rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4026LIBS=$ac_check_lib_save_LIBS
4027fi
4028echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4029echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4030if test $ac_cv_lib_cposix_strerror = yes; then
4031 LIBS="$LIBS -lcposix"
4032fi
4033
4034
4035
4036echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4037echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4038if test "${ac_cv_c_const+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047
4048int
4049main ()
4050{
4051/* FIXME: Include the comments suggested by Paul. */
4052#ifndef __cplusplus
4053 /* Ultrix mips cc rejects this. */
4054 typedef int charset[2];
4055 const charset x;
4056 /* SunOS 4.1.1 cc rejects this. */
4057 char const *const *ccp;
4058 char **p;
4059 /* NEC SVR4.0.2 mips cc rejects this. */
4060 struct point {int x, y;};
4061 static struct point const zero = {0,0};
4062 /* AIX XL C 1.02.0.0 rejects this.
4063 It does not let you subtract one const X* pointer from another in
4064 an arm of an if-expression whose if-part is not a constant
4065 expression */
4066 const char *g = "string";
4067 ccp = &g + (g ? g-g : 0);
4068 /* HPUX 7.0 cc rejects these. */
4069 ++ccp;
4070 p = (char**) ccp;
4071 ccp = (char const *const *) p;
4072 { /* SCO 3.2v4 cc rejects this. */
4073 char *t;
4074 char const *s = 0 ? (char *) 0 : (char const *) 0;
4075
4076 *t++ = 0;
4077 }
4078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4079 int x[] = {25, 17};
4080 const int *foo = &x[0];
4081 ++foo;
4082 }
4083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4084 typedef const int *iptr;
4085 iptr p = 0;
4086 ++p;
4087 }
4088 { /* AIX XL C 1.02.0.0 rejects this saying
4089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4090 struct s { int j; const int *ap[3]; };
4091 struct s *b; b->j = 5;
4092 }
4093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4094 const int foo = 10;
4095 }
4096#endif
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_c_const=yes
4124else
4125 echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128ac_cv_c_const=no
4129fi
4130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4131fi
4132echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4133echo "${ECHO_T}$ac_cv_c_const" >&6
4134if test $ac_cv_c_const = no; then
4135
4136cat >>confdefs.h <<\_ACEOF
4137#define const
4138_ACEOF
4139
4140fi
4141
4142
4143 echo "$as_me:$LINENO: checking for signed" >&5
4144echo $ECHO_N "checking for signed... $ECHO_C" >&6
4145if test "${bh_cv_c_signed+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147else
4148 cat >conftest.$ac_ext <<_ACEOF
4149/* confdefs.h. */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h. */
4154
4155int
4156main ()
4157{
4158signed char x;
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163rm -f conftest.$ac_objext
4164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>conftest.er1
4166 ac_status=$?
4167 grep -v '^ *+' conftest.er1 >conftest.err
4168 rm -f conftest.er1
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 bh_cv_c_signed=yes
4185else
4186 echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189bh_cv_c_signed=no
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192fi
4193echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4194echo "${ECHO_T}$bh_cv_c_signed" >&6
4195 if test $bh_cv_c_signed = no; then
4196
4197cat >>confdefs.h <<\_ACEOF
4198#define signed
4199_ACEOF
4200
4201 fi
4202
4203echo "$as_me:$LINENO: checking for inline" >&5
4204echo $ECHO_N "checking for inline... $ECHO_C" >&6
4205if test "${ac_cv_c_inline+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 ac_cv_c_inline=no
4209for ac_kw in inline __inline__ __inline; do
4210 cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h. */
4216#ifndef __cplusplus
4217typedef int foo_t;
4218static $ac_kw foo_t static_foo () {return 0; }
4219$ac_kw foo_t foo () {return 0; }
4220#endif
4221
4222_ACEOF
4223rm -f conftest.$ac_objext
4224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_inline=$ac_kw; break
4245else
4246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249fi
4250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251done
4252
4253fi
4254echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4255echo "${ECHO_T}$ac_cv_c_inline" >&6
4256
4257
4258case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004259 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004260 *)
4261 case $ac_cv_c_inline in
4262 no) ac_val=;;
4263 *) ac_val=$ac_cv_c_inline;;
4264 esac
4265 cat >>confdefs.h <<_ACEOF
4266#ifndef __cplusplus
4267#define inline $ac_val
4268#endif
4269_ACEOF
4270 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004271esac
4272
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004273echo "$as_me:$LINENO: checking for off_t" >&5
4274echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4275if test "${ac_cv_type_off_t+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004277else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004278 cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h. */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h. */
4284$ac_includes_default
4285int
4286main ()
4287{
4288if ((off_t *) 0)
4289 return 0;
4290if (sizeof (off_t))
4291 return 0;
4292 ;
4293 return 0;
4294}
4295_ACEOF
4296rm -f conftest.$ac_objext
4297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004317 ac_cv_type_off_t=yes
4318else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004319 echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004322ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004323fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004325fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004326echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4327echo "${ECHO_T}$ac_cv_type_off_t" >&6
4328if test $ac_cv_type_off_t = yes; then
4329 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004330else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004331
4332cat >>confdefs.h <<_ACEOF
4333#define off_t long
4334_ACEOF
4335
4336fi
4337
4338echo "$as_me:$LINENO: checking for size_t" >&5
4339echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4340if test "${ac_cv_type_size_t+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343 cat >conftest.$ac_ext <<_ACEOF
4344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */
4349$ac_includes_default
4350int
4351main ()
4352{
4353if ((size_t *) 0)
4354 return 0;
4355if (sizeof (size_t))
4356 return 0;
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361rm -f conftest.$ac_objext
4362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004382 ac_cv_type_size_t=yes
4383else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004384 echo "$as_me: failed program was:" >&5
4385sed 's/^/| /' conftest.$ac_ext >&5
4386
4387ac_cv_type_size_t=no
4388fi
4389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4392echo "${ECHO_T}$ac_cv_type_size_t" >&6
4393if test $ac_cv_type_size_t = yes; then
4394 :
4395else
4396
4397cat >>confdefs.h <<_ACEOF
4398#define size_t unsigned
4399_ACEOF
4400
4401fi
4402
4403
4404 echo "$as_me:$LINENO: checking for long long" >&5
4405echo $ECHO_N "checking for long long... $ECHO_C" >&6
4406if test "${ac_cv_type_long_long+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409 cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415long long ll = 1LL; int i = 63;
4416int
4417main ()
4418{
4419long long llmax = (long long) -1;
4420 return ll << i | ll >> i | llmax / ll | llmax % ll;
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425rm -f conftest.$ac_objext conftest$ac_exeext
4426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_type_long_long=yes
4447else
4448 echo "$as_me: failed program was:" >&5
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4451ac_cv_type_long_long=no
4452fi
4453rm -f conftest.err conftest.$ac_objext \
4454 conftest$ac_exeext conftest.$ac_ext
4455fi
4456echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4457echo "${ECHO_T}$ac_cv_type_long_long" >&6
4458 if test $ac_cv_type_long_long = yes; then
4459
4460cat >>confdefs.h <<\_ACEOF
4461#define HAVE_LONG_LONG 1
4462_ACEOF
4463
4464 fi
4465
4466
4467 echo "$as_me:$LINENO: checking for long double" >&5
4468echo $ECHO_N "checking for long double... $ECHO_C" >&6
4469if test "${gt_cv_c_long_double+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472 if test "$GCC" = yes; then
4473 gt_cv_c_long_double=yes
4474 else
4475 cat >conftest.$ac_ext <<_ACEOF
4476/* confdefs.h. */
4477_ACEOF
4478cat confdefs.h >>conftest.$ac_ext
4479cat >>conftest.$ac_ext <<_ACEOF
4480/* end confdefs.h. */
4481
4482 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4483 long double foo = 0.0;
4484 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4485 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4486
4487int
4488main ()
4489{
4490
4491 ;
4492 return 0;
4493}
4494_ACEOF
4495rm -f conftest.$ac_objext
4496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 gt_cv_c_long_double=yes
4517else
4518 echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
4520
4521gt_cv_c_long_double=no
4522fi
4523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4524 fi
4525fi
4526echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4527echo "${ECHO_T}$gt_cv_c_long_double" >&6
4528 if test $gt_cv_c_long_double = yes; then
4529
4530cat >>confdefs.h <<\_ACEOF
4531#define HAVE_LONG_DOUBLE 1
4532_ACEOF
4533
4534 fi
4535
4536
4537 echo "$as_me:$LINENO: checking for wchar_t" >&5
4538echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4539if test "${gt_cv_c_wchar_t+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542 cat >conftest.$ac_ext <<_ACEOF
4543/* confdefs.h. */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h. */
4548#include <stddef.h>
4549 wchar_t foo = (wchar_t)'\0';
4550int
4551main ()
4552{
4553
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558rm -f conftest.$ac_objext
4559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 gt_cv_c_wchar_t=yes
4580else
4581 echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584gt_cv_c_wchar_t=no
4585fi
4586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587fi
4588echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4589echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4590 if test $gt_cv_c_wchar_t = yes; then
4591
4592cat >>confdefs.h <<\_ACEOF
4593#define HAVE_WCHAR_T 1
4594_ACEOF
4595
4596 fi
4597
4598
4599 echo "$as_me:$LINENO: checking for wint_t" >&5
4600echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4601if test "${gt_cv_c_wint_t+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604 cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h. */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h. */
4610#include <wchar.h>
4611 wint_t foo = (wchar_t)'\0';
4612int
4613main ()
4614{
4615
4616 ;
4617 return 0;
4618}
4619_ACEOF
4620rm -f conftest.$ac_objext
4621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622 (eval $ac_compile) 2>conftest.er1
4623 ac_status=$?
4624 grep -v '^ *+' conftest.er1 >conftest.err
4625 rm -f conftest.er1
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; } &&
4635 { ac_try='test -s conftest.$ac_objext'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 (eval $ac_try) 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 gt_cv_c_wint_t=yes
4642else
4643 echo "$as_me: failed program was:" >&5
4644sed 's/^/| /' conftest.$ac_ext >&5
4645
4646gt_cv_c_wint_t=no
4647fi
4648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4649fi
4650echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4651echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4652 if test $gt_cv_c_wint_t = yes; then
4653
4654cat >>confdefs.h <<\_ACEOF
4655#define HAVE_WINT_T 1
4656_ACEOF
4657
4658 fi
4659
4660
4661 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4662echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4663if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 cat >conftest.$ac_ext <<_ACEOF
4667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
4672#include <sys/types.h>
4673#include <inttypes.h>
4674int
4675main ()
4676{
4677uintmax_t i = (uintmax_t) -1;
4678 ;
4679 return 0;
4680}
4681_ACEOF
4682rm -f conftest.$ac_objext
4683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 jm_ac_cv_header_inttypes_h=yes
4704else
4705 echo "$as_me: failed program was:" >&5
4706sed 's/^/| /' conftest.$ac_ext >&5
4707
4708jm_ac_cv_header_inttypes_h=no
4709fi
4710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711fi
4712echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4713echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4714 if test $jm_ac_cv_header_inttypes_h = yes; then
4715
4716cat >>confdefs.h <<_ACEOF
4717#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4718_ACEOF
4719
4720 fi
4721
4722
4723 echo "$as_me:$LINENO: checking for stdint.h" >&5
4724echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4725if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727else
4728 cat >conftest.$ac_ext <<_ACEOF
4729/* confdefs.h. */
4730_ACEOF
4731cat confdefs.h >>conftest.$ac_ext
4732cat >>conftest.$ac_ext <<_ACEOF
4733/* end confdefs.h. */
4734#include <sys/types.h>
4735#include <stdint.h>
4736int
4737main ()
4738{
4739uintmax_t i = (uintmax_t) -1;
4740 ;
4741 return 0;
4742}
4743_ACEOF
4744rm -f conftest.$ac_objext
4745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 jm_ac_cv_header_stdint_h=yes
4766else
4767 echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770jm_ac_cv_header_stdint_h=no
4771fi
4772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4773fi
4774echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4775echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4776 if test $jm_ac_cv_header_stdint_h = yes; then
4777
4778cat >>confdefs.h <<_ACEOF
4779#define HAVE_STDINT_H_WITH_UINTMAX 1
4780_ACEOF
4781
4782 fi
4783
4784
4785
4786
4787 echo "$as_me:$LINENO: checking for intmax_t" >&5
4788echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4789if test "${gt_cv_c_intmax_t+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792 cat >conftest.$ac_ext <<_ACEOF
4793/* confdefs.h. */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h. */
4798
4799#include <stddef.h>
4800#include <stdlib.h>
4801#if HAVE_STDINT_H_WITH_UINTMAX
4802#include <stdint.h>
4803#endif
4804#if HAVE_INTTYPES_H_WITH_UINTMAX
4805#include <inttypes.h>
4806#endif
4807
4808int
4809main ()
4810{
4811intmax_t x = -1;
4812 ;
4813 return 0;
4814}
4815_ACEOF
4816rm -f conftest.$ac_objext
4817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 gt_cv_c_intmax_t=yes
4838else
4839 echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
4842gt_cv_c_intmax_t=no
4843fi
4844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845fi
4846echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4847echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4848 if test $gt_cv_c_intmax_t = yes; then
4849
4850cat >>confdefs.h <<\_ACEOF
4851#define HAVE_INTMAX_T 1
4852_ACEOF
4853
4854 fi
4855
4856
4857
4858 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4859echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4860if test "${gt_cv_func_printf_posix+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863
4864 if test "$cross_compiling" = yes; then
4865
4866 cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h. */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h. */
4872
4873#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4874 notposix
4875#endif
4876
4877_ACEOF
4878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "notposix" >/dev/null 2>&1; then
4880 gt_cv_func_printf_posix="guessing no"
4881else
4882 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004883fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004884rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004885
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004886
4887else
4888 cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h. */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h. */
4894
4895#include <stdio.h>
4896#include <string.h>
4897/* The string "%2$d %1$d", with dollar characters protected from the shell's
4898 dollar expansion (possibly an autoconf bug). */
4899static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4900static char buf[100];
4901int main ()
4902{
4903 sprintf (buf, format, 33, 55);
4904 return (strcmp (buf, "55 33") != 0);
4905}
4906_ACEOF
4907rm -f conftest$ac_exeext
4908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909 (eval $ac_link) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 gt_cv_func_printf_posix=yes
4919else
4920 echo "$as_me: program exited with status $ac_status" >&5
4921echo "$as_me: failed program was:" >&5
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
4924( exit $ac_status )
4925gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004926fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4928fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004929
4930fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004931echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4932echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4933 case $gt_cv_func_printf_posix in
4934 *yes)
4935
4936cat >>confdefs.h <<\_ACEOF
4937#define HAVE_POSIX_PRINTF 1
4938_ACEOF
4939
4940 ;;
4941 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004942
4943# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4944# for constant arguments. Useless!
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004945echo "$as_me:$LINENO: checking for working alloca.h" >&5
4946echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4947if test "${ac_cv_working_alloca_h+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004949else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004950 cat >conftest.$ac_ext <<_ACEOF
4951/* confdefs.h. */
4952_ACEOF
4953cat confdefs.h >>conftest.$ac_ext
4954cat >>conftest.$ac_ext <<_ACEOF
4955/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004956#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004957int
4958main ()
4959{
4960char *p = (char *) alloca (2 * sizeof (int));
4961 ;
4962 return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext conftest$ac_exeext
4966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004987else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004990
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004991ac_cv_working_alloca_h=no
4992fi
4993rm -f conftest.err conftest.$ac_objext \
4994 conftest$ac_exeext conftest.$ac_ext
4995fi
4996echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4997echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4998if test $ac_cv_working_alloca_h = yes; then
4999
5000cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005001#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005002_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005003
5004fi
5005
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005006echo "$as_me:$LINENO: checking for alloca" >&5
5007echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5008if test "${ac_cv_func_alloca_works+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005011 cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005017#ifdef __GNUC__
5018# define alloca __builtin_alloca
5019#else
5020# ifdef _MSC_VER
5021# include <malloc.h>
5022# define alloca _alloca
5023# else
5024# if HAVE_ALLOCA_H
5025# include <alloca.h>
5026# else
5027# ifdef _AIX
5028 #pragma alloca
5029# else
5030# ifndef alloca /* predefined by HP cc +Olibcalls */
5031char *alloca ();
5032# endif
5033# endif
5034# endif
5035# endif
5036#endif
5037
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005038int
5039main ()
5040{
5041char *p = (char *) alloca (1);
5042 ;
5043 return 0;
5044}
5045_ACEOF
5046rm -f conftest.$ac_objext conftest$ac_exeext
5047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048 (eval $ac_link) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; } &&
5061 { ac_try='test -s conftest$ac_exeext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005067 ac_cv_func_alloca_works=yes
5068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005069 echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005072ac_cv_func_alloca_works=no
5073fi
5074rm -f conftest.err conftest.$ac_objext \
5075 conftest$ac_exeext conftest.$ac_ext
5076fi
5077echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5078echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5079
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005080if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005081
5082cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005083#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005084_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005085
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005086else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005087 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5088# that cause trouble. Some versions do not even contain alloca or
5089# contain a buggy version. If you still want to use their alloca,
5090# use ar to extract alloca.o from them instead of compiling alloca.c.
5091
5092ALLOCA=alloca.$ac_objext
5093
5094cat >>confdefs.h <<\_ACEOF
5095#define C_ALLOCA 1
5096_ACEOF
5097
5098
5099echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5100echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5101if test "${ac_cv_os_cray+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h. */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005110#if defined(CRAY) && ! defined(CRAY2)
5111webecray
5112#else
5113wenotbecray
5114#endif
5115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005116_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005118 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005119 ac_cv_os_cray=yes
5120else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005121 ac_cv_os_cray=no
5122fi
5123rm -f conftest*
5124
5125fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005126echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5127echo "${ECHO_T}$ac_cv_os_cray" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005128if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005129 for ac_func in _getb67 GETB67 getb67; do
5130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5131echo "$as_me:$LINENO: checking for $ac_func" >&5
5132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5133if eval "test \"\${$as_ac_var+set}\" = set"; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005135else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5144#define $ac_func innocuous_$ac_func
5145
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005146/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005147 which can conflict with char $ac_func (); below.
5148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5149 <limits.h> exists even on freestanding compilers. */
5150
5151#ifdef __STDC__
5152# include <limits.h>
5153#else
5154# include <assert.h>
5155#endif
5156
5157#undef $ac_func
5158
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005159/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005160#ifdef __cplusplus
5161extern "C"
5162{
5163#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005164/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005165 builtin and then its argument prototype would still apply. */
5166char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005167/* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5171choke me
5172#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005173char (*f) () = $ac_func;
5174#endif
5175#ifdef __cplusplus
5176}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005177#endif
5178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005179int
5180main ()
5181{
5182return f != $ac_func;
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext conftest$ac_exeext
5188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest$ac_exeext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005209else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005210 echo "$as_me: failed program was:" >&5
5211sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005213eval "$as_ac_var=no"
5214fi
5215rm -f conftest.err conftest.$ac_objext \
5216 conftest$ac_exeext conftest.$ac_ext
5217fi
5218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5220if test `eval echo '${'$as_ac_var'}'` = yes; then
5221
5222cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005223#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005224_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005226 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005227fi
5228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005229 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005230fi
5231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005232echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5233echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5234if test "${ac_cv_c_stack_direction+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005236else
5237 if test "$cross_compiling" = yes; then
5238 ac_cv_c_stack_direction=0
5239else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005240 cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h. */
5246int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005247find_stack_direction ()
5248{
5249 static char *addr = 0;
5250 auto char dummy;
5251 if (addr == 0)
5252 {
5253 addr = &dummy;
5254 return find_stack_direction ();
5255 }
5256 else
5257 return (&dummy > addr) ? 1 : -1;
5258}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005259
5260int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005261main ()
5262{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005263 exit (find_stack_direction () < 0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005264}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005265_ACEOF
5266rm -f conftest$ac_exeext
5267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5268 (eval $ac_link) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005277 ac_cv_c_stack_direction=1
5278else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005279 echo "$as_me: program exited with status $ac_status" >&5
5280echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005283( exit $ac_status )
5284ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005285fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005286rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5287fi
5288fi
5289echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5290echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005292cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005293#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005294_ACEOF
5295
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005296
5297fi
5298
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005299
5300
5301for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005302do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5304if eval "test \"\${$as_ac_Header+set}\" = set"; then
5305 echo "$as_me:$LINENO: checking for $ac_header" >&5
5306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5307if eval "test \"\${$as_ac_Header+set}\" = set"; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005309fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005312else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005313 # Is the header compilable?
5314echo "$as_me:$LINENO: checking $ac_header usability" >&5
5315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5316cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
5322$ac_includes_default
5323#include <$ac_header>
5324_ACEOF
5325rm -f conftest.$ac_objext
5326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327 (eval $ac_compile) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler=yes
5347else
5348 echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005352fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355echo "${ECHO_T}$ac_header_compiler" >&6
5356
5357# Is the header present?
5358echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360cat >conftest.$ac_ext <<_ACEOF
5361/* confdefs.h. */
5362_ACEOF
5363cat confdefs.h >>conftest.$ac_ext
5364cat >>conftest.$ac_ext <<_ACEOF
5365/* end confdefs.h. */
5366#include <$ac_header>
5367_ACEOF
5368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5370 ac_status=$?
5371 grep -v '^ *+' conftest.er1 >conftest.err
5372 rm -f conftest.er1
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } >/dev/null; then
5376 if test -s conftest.err; then
5377 ac_cpp_err=$ac_c_preproc_warn_flag
5378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5379 else
5380 ac_cpp_err=
5381 fi
5382else
5383 ac_cpp_err=yes
5384fi
5385if test -z "$ac_cpp_err"; then
5386 ac_header_preproc=yes
5387else
5388 echo "$as_me: failed program was:" >&5
5389sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_header_preproc=no
5392fi
5393rm -f conftest.err conftest.$ac_ext
5394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395echo "${ECHO_T}$ac_header_preproc" >&6
5396
5397# So? What about this header?
5398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5399 yes:no: )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc=yes
5405 ;;
5406 no:yes:* )
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5419 (
5420 cat <<\_ASBOX
5421## ------------------------------------------ ##
5422## Report this to the AC_PACKAGE_NAME lists. ##
5423## ------------------------------------------ ##
5424_ASBOX
5425 ) |
5426 sed "s/^/$as_me: WARNING: /" >&2
5427 ;;
5428esac
5429echo "$as_me:$LINENO: checking for $ac_header" >&5
5430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5431if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434 eval "$as_ac_Header=\$ac_header_preproc"
5435fi
5436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438
5439fi
5440if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443_ACEOF
5444
5445fi
5446
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005447done
5448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005449
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005450for ac_func in getpagesize
5451do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5453echo "$as_me:$LINENO: checking for $ac_func" >&5
5454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5455if eval "test \"\${$as_ac_var+set}\" = set"; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005457else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005458 cat >conftest.$ac_ext <<_ACEOF
5459/* confdefs.h. */
5460_ACEOF
5461cat confdefs.h >>conftest.$ac_ext
5462cat >>conftest.$ac_ext <<_ACEOF
5463/* end confdefs.h. */
5464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5466#define $ac_func innocuous_$ac_func
5467
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005468/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005469 which can conflict with char $ac_func (); below.
5470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5471 <limits.h> exists even on freestanding compilers. */
5472
5473#ifdef __STDC__
5474# include <limits.h>
5475#else
5476# include <assert.h>
5477#endif
5478
5479#undef $ac_func
5480
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005481/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005482#ifdef __cplusplus
5483extern "C"
5484{
5485#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005486/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005487 builtin and then its argument prototype would still apply. */
5488char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005489/* The GNU C library defines this for functions which it implements
5490 to always fail with ENOSYS. Some functions are actually named
5491 something starting with __ and the normal name is an alias. */
5492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5493choke me
5494#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005495char (*f) () = $ac_func;
5496#endif
5497#ifdef __cplusplus
5498}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005499#endif
5500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005501int
5502main ()
5503{
5504return f != $ac_func;
5505 ;
5506 return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext conftest$ac_exeext
5510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5511 (eval $ac_link) 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; } &&
5524 { ac_try='test -s conftest$ac_exeext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005531else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005532 echo "$as_me: failed program was:" >&5
5533sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005535eval "$as_ac_var=no"
5536fi
5537rm -f conftest.err conftest.$ac_objext \
5538 conftest$ac_exeext conftest.$ac_ext
5539fi
5540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5542if test `eval echo '${'$as_ac_var'}'` = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5545_ACEOF
5546
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005547fi
5548done
5549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005550echo "$as_me:$LINENO: checking for working mmap" >&5
5551echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5552if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005554else
5555 if test "$cross_compiling" = yes; then
5556 ac_cv_func_mmap_fixed_mapped=no
5557else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005558 cat >conftest.$ac_ext <<_ACEOF
5559/* confdefs.h. */
5560_ACEOF
5561cat confdefs.h >>conftest.$ac_ext
5562cat >>conftest.$ac_ext <<_ACEOF
5563/* end confdefs.h. */
5564$ac_includes_default
5565/* malloc might have been renamed as rpl_malloc. */
5566#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005567
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005568/* Thanks to Mike Haertel and Jim Avera for this test.
5569 Here is a matrix of mmap possibilities:
5570 mmap private not fixed
5571 mmap private fixed at somewhere currently unmapped
5572 mmap private fixed at somewhere already mapped
5573 mmap shared not fixed
5574 mmap shared fixed at somewhere currently unmapped
5575 mmap shared fixed at somewhere already mapped
5576 For private mappings, we should verify that changes cannot be read()
5577 back from the file, nor mmap's back from the file at a different
5578 address. (There have been systems where private was not correctly
5579 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005580 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005581 like early versions of FreeBSD and possibly contemporary NetBSD.)
5582 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005583 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005584
5585 Grep wants private fixed already mapped.
5586 The main things grep needs to know about mmap are:
5587 * does it exist and is it safe to write into the mmap'd area
5588 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005589
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005590#include <fcntl.h>
5591#include <sys/mman.h>
5592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593#if !STDC_HEADERS && !HAVE_STDLIB_H
5594char *malloc ();
5595#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005597/* This mess was copied from the GNU getpagesize.h. */
5598#if !HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005599/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005600# if !HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005601# define HAVE_SYS_PARAM_H 1
5602# endif
5603
5604# ifdef _SC_PAGESIZE
5605# define getpagesize() sysconf(_SC_PAGESIZE)
5606# else /* no _SC_PAGESIZE */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005607# if HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005608# include <sys/param.h>
5609# ifdef EXEC_PAGESIZE
5610# define getpagesize() EXEC_PAGESIZE
5611# else /* no EXEC_PAGESIZE */
5612# ifdef NBPG
5613# define getpagesize() NBPG * CLSIZE
5614# ifndef CLSIZE
5615# define CLSIZE 1
5616# endif /* no CLSIZE */
5617# else /* no NBPG */
5618# ifdef NBPC
5619# define getpagesize() NBPC
5620# else /* no NBPC */
5621# ifdef PAGESIZE
5622# define getpagesize() PAGESIZE
5623# endif /* PAGESIZE */
5624# endif /* no NBPC */
5625# endif /* no NBPG */
5626# endif /* no EXEC_PAGESIZE */
5627# else /* no HAVE_SYS_PARAM_H */
5628# define getpagesize() 8192 /* punt totally */
5629# endif /* no HAVE_SYS_PARAM_H */
5630# endif /* no _SC_PAGESIZE */
5631
5632#endif /* no HAVE_GETPAGESIZE */
5633
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005634int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005635main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005636{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005637 char *data, *data2, *data3;
5638 int i, pagesize;
5639 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005641 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005643 /* First, make a file with some known garbage in it. */
5644 data = (char *) malloc (pagesize);
5645 if (!data)
5646 exit (1);
5647 for (i = 0; i < pagesize; ++i)
5648 *(data + i) = rand ();
5649 umask (0);
5650 fd = creat ("conftest.mmap", 0600);
5651 if (fd < 0)
5652 exit (1);
5653 if (write (fd, data, pagesize) != pagesize)
5654 exit (1);
5655 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005656
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005657 /* Next, try to mmap the file at a fixed address which already has
5658 something else allocated at it. If we can, also make sure that
5659 we see the same garbage. */
5660 fd = open ("conftest.mmap", O_RDWR);
5661 if (fd < 0)
5662 exit (1);
5663 data2 = (char *) malloc (2 * pagesize);
5664 if (!data2)
5665 exit (1);
5666 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5667 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5668 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5669 exit (1);
5670 for (i = 0; i < pagesize; ++i)
5671 if (*(data + i) != *(data2 + i))
5672 exit (1);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005673
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005674 /* Finally, make sure that changes to the mapped area do not
5675 percolate back to the file as seen by read(). (This is a bug on
5676 some variants of i386 svr4.0.) */
5677 for (i = 0; i < pagesize; ++i)
5678 *(data2 + i) = *(data2 + i) + 1;
5679 data3 = (char *) malloc (pagesize);
5680 if (!data3)
5681 exit (1);
5682 if (read (fd, data3, pagesize) != pagesize)
5683 exit (1);
5684 for (i = 0; i < pagesize; ++i)
5685 if (*(data + i) != *(data3 + i))
5686 exit (1);
5687 close (fd);
5688 exit (0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005689}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005690_ACEOF
5691rm -f conftest$ac_exeext
5692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005702 ac_cv_func_mmap_fixed_mapped=yes
5703else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005704 echo "$as_me: program exited with status $ac_status" >&5
5705echo "$as_me: failed program was:" >&5
5706sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005707
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005708( exit $ac_status )
5709ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005710fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005711rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5712fi
5713fi
5714echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5715echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005716if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717
5718cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005719#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005720_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005721
5722fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005723rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005724
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005726 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5727echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5728if test "${ac_cv_gnu_library_2_1+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005731 cat >conftest.$ac_ext <<_ACEOF
5732/* confdefs.h. */
5733_ACEOF
5734cat confdefs.h >>conftest.$ac_ext
5735cat >>conftest.$ac_ext <<_ACEOF
5736/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005737
5738#include <features.h>
5739#ifdef __GNU_LIBRARY__
5740 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5741 Lucky GNU user
5742 #endif
5743#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005744
5745_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005747 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005748 ac_cv_gnu_library_2_1=yes
5749else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005750 ac_cv_gnu_library_2_1=no
5751fi
5752rm -f conftest*
5753
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005754
5755
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005756fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005757echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5758echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005759
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005760 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005761
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005762
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005763
5764
5765 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5766echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5767if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005769else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005770
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005771 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005772
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005773 # Guess based on the CPU.
5774 case "$host_cpu" in
5775 alpha* | i3456786 | m68k | s390*)
5776 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5777 *)
5778 gt_cv_int_divbyzero_sigfpe="guessing no";;
5779 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005780
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005781else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005782 cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005788
5789#include <stdlib.h>
5790#include <signal.h>
5791
5792static void
5793#ifdef __cplusplus
5794sigfpe_handler (int sig)
5795#else
5796sigfpe_handler (sig) int sig;
5797#endif
5798{
5799 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5800 exit (sig != SIGFPE);
5801}
5802
5803int x = 1;
5804int y = 0;
5805int z;
5806int nan;
5807
5808int main ()
5809{
5810 signal (SIGFPE, sigfpe_handler);
5811/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5812#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5813 signal (SIGTRAP, sigfpe_handler);
5814#endif
5815/* Linux/SPARC yields signal SIGILL. */
5816#if defined (__sparc__) && defined (__linux__)
5817 signal (SIGILL, sigfpe_handler);
5818#endif
5819
5820 z = x / y;
5821 nan = y / y;
5822 exit (1);
5823}
5824
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005825_ACEOF
5826rm -f conftest$ac_exeext
5827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828 (eval $ac_link) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005837 gt_cv_int_divbyzero_sigfpe=yes
5838else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005839 echo "$as_me: program exited with status $ac_status" >&5
5840echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843( exit $ac_status )
5844gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005845fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005847fi
5848
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005849fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005850echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5851echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005852 case "$gt_cv_int_divbyzero_sigfpe" in
5853 *yes) value=1;;
5854 *) value=0;;
5855 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005856
5857cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005858#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005859_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005860
5861
5862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005863 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5864echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5865if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868 cat >conftest.$ac_ext <<_ACEOF
5869/* confdefs.h. */
5870_ACEOF
5871cat confdefs.h >>conftest.$ac_ext
5872cat >>conftest.$ac_ext <<_ACEOF
5873/* end confdefs.h. */
5874unsigned long long ull = 1ULL; int i = 63;
5875int
5876main ()
5877{
5878unsigned long long ullmax = (unsigned long long) -1;
5879 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5880 ;
5881 return 0;
5882}
5883_ACEOF
5884rm -f conftest.$ac_objext conftest$ac_exeext
5885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest$ac_exeext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 (eval $ac_try) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_type_unsigned_long_long=yes
5906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910ac_cv_type_unsigned_long_long=no
5911fi
5912rm -f conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5914fi
5915echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5916echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5917 if test $ac_cv_type_unsigned_long_long = yes; then
5918
5919cat >>confdefs.h <<\_ACEOF
5920#define HAVE_UNSIGNED_LONG_LONG 1
5921_ACEOF
5922
5923 fi
5924
5925
5926
5927
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005928 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005929
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005930 test $ac_cv_type_unsigned_long_long = yes \
5931 && ac_type='unsigned long long' \
5932 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005933
5934cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005935#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005936_ACEOF
5937
5938 else
5939
5940cat >>confdefs.h <<\_ACEOF
5941#define HAVE_UINTMAX_T 1
5942_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005943
5944 fi
5945
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005947 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5948echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5949if test "${gt_cv_header_inttypes_h+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005951else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005952
5953 cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005959#include <sys/types.h>
5960#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005961int
5962main ()
5963{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005964
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005965 ;
5966 return 0;
5967}
5968_ACEOF
5969rm -f conftest.$ac_objext
5970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5971 (eval $ac_compile) 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; } &&
5984 { ac_try='test -s conftest.$ac_objext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005990 gt_cv_header_inttypes_h=yes
5991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005992 echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005994
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005995gt_cv_header_inttypes_h=no
5996fi
5997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5998
5999fi
6000echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6001echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006002 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006003
6004cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006005#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006006_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006007
6008 fi
6009
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006012 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006013 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6014echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6015if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018
6019 cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h. */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006025#include <inttypes.h>
6026#ifdef PRId32
6027char *p = PRId32;
6028#endif
6029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030int
6031main ()
6032{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034 ;
6035 return 0;
6036}
6037_ACEOF
6038rm -f conftest.$ac_objext
6039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; } &&
6053 { ac_try='test -s conftest.$ac_objext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006059 gt_cv_inttypes_pri_broken=no
6060else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061 echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006064gt_cv_inttypes_pri_broken=yes
6065fi
6066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6067
6068fi
6069echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6070echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006071 fi
6072 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073
6074cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006075#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006076_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006077
6078 fi
6079
6080
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006081
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006082for ac_header in stdint.h
6083do
6084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085if eval "test \"\${$as_ac_Header+set}\" = set"; then
6086 echo "$as_me:$LINENO: checking for $ac_header" >&5
6087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6088if eval "test \"\${$as_ac_Header+set}\" = set"; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090fi
6091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6093else
6094 # Is the header compilable?
6095echo "$as_me:$LINENO: checking $ac_header usability" >&5
6096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6097cat >conftest.$ac_ext <<_ACEOF
6098/* confdefs.h. */
6099_ACEOF
6100cat confdefs.h >>conftest.$ac_ext
6101cat >>conftest.$ac_ext <<_ACEOF
6102/* end confdefs.h. */
6103$ac_includes_default
6104#include <$ac_header>
6105_ACEOF
6106rm -f conftest.$ac_objext
6107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } &&
6115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_header_compiler=yes
6128else
6129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132ac_header_compiler=no
6133fi
6134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6136echo "${ECHO_T}$ac_header_compiler" >&6
6137
6138# Is the header present?
6139echo "$as_me:$LINENO: checking $ac_header presence" >&5
6140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6141cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h. */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h. */
6147#include <$ac_header>
6148_ACEOF
6149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null; then
6157 if test -s conftest.err; then
6158 ac_cpp_err=$ac_c_preproc_warn_flag
6159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6160 else
6161 ac_cpp_err=
6162 fi
6163else
6164 ac_cpp_err=yes
6165fi
6166if test -z "$ac_cpp_err"; then
6167 ac_header_preproc=yes
6168else
6169 echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ac_header_preproc=no
6173fi
6174rm -f conftest.err conftest.$ac_ext
6175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6176echo "${ECHO_T}$ac_header_preproc" >&6
6177
6178# So? What about this header?
6179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6180 yes:no: )
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6185 ac_header_preproc=yes
6186 ;;
6187 no:yes:* )
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6200 (
6201 cat <<\_ASBOX
6202## ------------------------------------------ ##
6203## Report this to the AC_PACKAGE_NAME lists. ##
6204## ------------------------------------------ ##
6205_ASBOX
6206 ) |
6207 sed "s/^/$as_me: WARNING: /" >&2
6208 ;;
6209esac
6210echo "$as_me:$LINENO: checking for $ac_header" >&5
6211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6212if eval "test \"\${$as_ac_Header+set}\" = set"; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 eval "$as_ac_Header=\$ac_header_preproc"
6216fi
6217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6219
6220fi
6221if test `eval echo '${'$as_ac_Header'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224_ACEOF
6225
6226fi
6227
6228done
6229
6230 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6231echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6232 result=
6233 cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h. */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h. */
6239
6240#include <limits.h>
6241#if HAVE_STDINT_H
6242#include <stdint.h>
6243#endif
6244#ifdef SIZE_MAX
6245Found it
6246#endif
6247
6248_ACEOF
6249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 $EGREP "Found it" >/dev/null 2>&1; then
6251 result=yes
6252fi
6253rm -f conftest*
6254
6255 if test -z "$result"; then
6256 if test "$cross_compiling" = yes; then
6257 # Depending upon the size, compute the lo and hi bounds.
6258cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h. */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h. */
6264#include <stddef.h>
6265int
6266main ()
6267{
6268static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6269test_array [0] = 0
6270
6271 ;
6272 return 0;
6273}
6274_ACEOF
6275rm -f conftest.$ac_objext
6276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_lo=0 ac_mid=0
6297 while :; do
6298 cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
6304#include <stddef.h>
6305int
6306main ()
6307{
6308static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6309test_array [0] = 0
6310
6311 ;
6312 return 0;
6313}
6314_ACEOF
6315rm -f conftest.$ac_objext
6316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_hi=$ac_mid; break
6337else
6338 echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341ac_lo=`expr $ac_mid + 1`
6342 if test $ac_lo -le $ac_mid; then
6343 ac_lo= ac_hi=
6344 break
6345 fi
6346 ac_mid=`expr 2 '*' $ac_mid + 1`
6347fi
6348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349 done
6350else
6351 echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h. */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h. */
6360#include <stddef.h>
6361int
6362main ()
6363{
6364static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6365test_array [0] = 0
6366
6367 ;
6368 return 0;
6369}
6370_ACEOF
6371rm -f conftest.$ac_objext
6372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373 (eval $ac_compile) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest.$ac_objext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_hi=-1 ac_mid=-1
6393 while :; do
6394 cat >conftest.$ac_ext <<_ACEOF
6395/* confdefs.h. */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h. */
6400#include <stddef.h>
6401int
6402main ()
6403{
6404static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6405test_array [0] = 0
6406
6407 ;
6408 return 0;
6409}
6410_ACEOF
6411rm -f conftest.$ac_objext
6412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_lo=$ac_mid; break
6433else
6434 echo "$as_me: failed program was:" >&5
6435sed 's/^/| /' conftest.$ac_ext >&5
6436
6437ac_hi=`expr '(' $ac_mid ')' - 1`
6438 if test $ac_mid -le $ac_hi; then
6439 ac_lo= ac_hi=
6440 break
6441 fi
6442 ac_mid=`expr 2 '*' $ac_mid`
6443fi
6444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445 done
6446else
6447 echo "$as_me: failed program was:" >&5
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450ac_lo= ac_hi=
6451fi
6452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455# Binary search between lo and hi bounds.
6456while test "x$ac_lo" != "x$ac_hi"; do
6457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6458 cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h. */
6464#include <stddef.h>
6465int
6466main ()
6467{
6468static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6469test_array [0] = 0
6470
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475rm -f conftest.$ac_objext
6476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477 (eval $ac_compile) 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } &&
6484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_hi=$ac_mid
6497else
6498 echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501ac_lo=`expr '(' $ac_mid ')' + 1`
6502fi
6503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504done
6505case $ac_lo in
6506?*) res_hi=$ac_lo;;
6507'') result=? ;;
6508esac
6509else
6510 if test "$cross_compiling" = yes; then
6511 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6512echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6513 { (exit 1); exit 1; }; }
6514else
6515 cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h. */
6521#include <stddef.h>
6522long longval () { return ~(size_t)0 / 10; }
6523unsigned long ulongval () { return ~(size_t)0 / 10; }
6524#include <stdio.h>
6525#include <stdlib.h>
6526int
6527main ()
6528{
6529
6530 FILE *f = fopen ("conftest.val", "w");
6531 if (! f)
6532 exit (1);
6533 if ((~(size_t)0 / 10) < 0)
6534 {
6535 long i = longval ();
6536 if (i != (~(size_t)0 / 10))
6537 exit (1);
6538 fprintf (f, "%ld\n", i);
6539 }
6540 else
6541 {
6542 unsigned long i = ulongval ();
6543 if (i != (~(size_t)0 / 10))
6544 exit (1);
6545 fprintf (f, "%lu\n", i);
6546 }
6547 exit (ferror (f) || fclose (f) != 0);
6548
6549 ;
6550 return 0;
6551}
6552_ACEOF
6553rm -f conftest$ac_exeext
6554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 res_hi=`cat conftest.val`
6565else
6566 echo "$as_me: program exited with status $ac_status" >&5
6567echo "$as_me: failed program was:" >&5
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
6570( exit $ac_status )
6571result=?
6572fi
6573rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6574fi
6575fi
6576rm -f conftest.val
6577 if test "$cross_compiling" = yes; then
6578 # Depending upon the size, compute the lo and hi bounds.
6579cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h. */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h. */
6585#include <stddef.h>
6586int
6587main ()
6588{
6589static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6590test_array [0] = 0
6591
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext
6597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_lo=0 ac_mid=0
6618 while :; do
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625#include <stddef.h>
6626int
6627main ()
6628{
6629static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6630test_array [0] = 0
6631
6632 ;
6633 return 0;
6634}
6635_ACEOF
6636rm -f conftest.$ac_objext
6637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638 (eval $ac_compile) 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 (eval $ac_try) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; } &&
6651 { ac_try='test -s conftest.$ac_objext'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 ac_hi=$ac_mid; break
6658else
6659 echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662ac_lo=`expr $ac_mid + 1`
6663 if test $ac_lo -le $ac_mid; then
6664 ac_lo= ac_hi=
6665 break
6666 fi
6667 ac_mid=`expr 2 '*' $ac_mid + 1`
6668fi
6669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670 done
6671else
6672 echo "$as_me: failed program was:" >&5
6673sed 's/^/| /' conftest.$ac_ext >&5
6674
6675cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h. */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h. */
6681#include <stddef.h>
6682int
6683main ()
6684{
6685static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6686test_array [0] = 0
6687
6688 ;
6689 return 0;
6690}
6691_ACEOF
6692rm -f conftest.$ac_objext
6693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694 (eval $ac_compile) 2>conftest.er1
6695 ac_status=$?
6696 grep -v '^ *+' conftest.er1 >conftest.err
6697 rm -f conftest.er1
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_hi=-1 ac_mid=-1
6714 while :; do
6715 cat >conftest.$ac_ext <<_ACEOF
6716/* confdefs.h. */
6717_ACEOF
6718cat confdefs.h >>conftest.$ac_ext
6719cat >>conftest.$ac_ext <<_ACEOF
6720/* end confdefs.h. */
6721#include <stddef.h>
6722int
6723main ()
6724{
6725static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6726test_array [0] = 0
6727
6728 ;
6729 return 0;
6730}
6731_ACEOF
6732rm -f conftest.$ac_objext
6733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_lo=$ac_mid; break
6754else
6755 echo "$as_me: failed program was:" >&5
6756sed 's/^/| /' conftest.$ac_ext >&5
6757
6758ac_hi=`expr '(' $ac_mid ')' - 1`
6759 if test $ac_mid -le $ac_hi; then
6760 ac_lo= ac_hi=
6761 break
6762 fi
6763 ac_mid=`expr 2 '*' $ac_mid`
6764fi
6765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766 done
6767else
6768 echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771ac_lo= ac_hi=
6772fi
6773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6774fi
6775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6776# Binary search between lo and hi bounds.
6777while test "x$ac_lo" != "x$ac_hi"; do
6778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6779 cat >conftest.$ac_ext <<_ACEOF
6780/* confdefs.h. */
6781_ACEOF
6782cat confdefs.h >>conftest.$ac_ext
6783cat >>conftest.$ac_ext <<_ACEOF
6784/* end confdefs.h. */
6785#include <stddef.h>
6786int
6787main ()
6788{
6789static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6790test_array [0] = 0
6791
6792 ;
6793 return 0;
6794}
6795_ACEOF
6796rm -f conftest.$ac_objext
6797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>conftest.er1
6799 ac_status=$?
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; } &&
6811 { ac_try='test -s conftest.$ac_objext'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 ac_hi=$ac_mid
6818else
6819 echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822ac_lo=`expr '(' $ac_mid ')' + 1`
6823fi
6824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6825done
6826case $ac_lo in
6827?*) res_lo=$ac_lo;;
6828'') result=? ;;
6829esac
6830else
6831 if test "$cross_compiling" = yes; then
6832 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6833echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6834 { (exit 1); exit 1; }; }
6835else
6836 cat >conftest.$ac_ext <<_ACEOF
6837/* confdefs.h. */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h. */
6842#include <stddef.h>
6843long longval () { return ~(size_t)0 % 10; }
6844unsigned long ulongval () { return ~(size_t)0 % 10; }
6845#include <stdio.h>
6846#include <stdlib.h>
6847int
6848main ()
6849{
6850
6851 FILE *f = fopen ("conftest.val", "w");
6852 if (! f)
6853 exit (1);
6854 if ((~(size_t)0 % 10) < 0)
6855 {
6856 long i = longval ();
6857 if (i != (~(size_t)0 % 10))
6858 exit (1);
6859 fprintf (f, "%ld\n", i);
6860 }
6861 else
6862 {
6863 unsigned long i = ulongval ();
6864 if (i != (~(size_t)0 % 10))
6865 exit (1);
6866 fprintf (f, "%lu\n", i);
6867 }
6868 exit (ferror (f) || fclose (f) != 0);
6869
6870 ;
6871 return 0;
6872}
6873_ACEOF
6874rm -f conftest$ac_exeext
6875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 res_lo=`cat conftest.val`
6886else
6887 echo "$as_me: program exited with status $ac_status" >&5
6888echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891( exit $ac_status )
6892result=?
6893fi
6894rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6895fi
6896fi
6897rm -f conftest.val
6898 if test "$cross_compiling" = yes; then
6899 # Depending upon the size, compute the lo and hi bounds.
6900cat >conftest.$ac_ext <<_ACEOF
6901/* confdefs.h. */
6902_ACEOF
6903cat confdefs.h >>conftest.$ac_ext
6904cat >>conftest.$ac_ext <<_ACEOF
6905/* end confdefs.h. */
6906#include <stddef.h>
6907int
6908main ()
6909{
6910static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6911test_array [0] = 0
6912
6913 ;
6914 return 0;
6915}
6916_ACEOF
6917rm -f conftest.$ac_objext
6918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>conftest.er1
6920 ac_status=$?
6921 grep -v '^ *+' conftest.er1 >conftest.err
6922 rm -f conftest.er1
6923 cat conftest.err >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_lo=0 ac_mid=0
6939 while :; do
6940 cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
6946#include <stddef.h>
6947int
6948main ()
6949{
6950static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6951test_array [0] = 0
6952
6953 ;
6954 return 0;
6955}
6956_ACEOF
6957rm -f conftest.$ac_objext
6958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_hi=$ac_mid; break
6979else
6980 echo "$as_me: failed program was:" >&5
6981sed 's/^/| /' conftest.$ac_ext >&5
6982
6983ac_lo=`expr $ac_mid + 1`
6984 if test $ac_lo -le $ac_mid; then
6985 ac_lo= ac_hi=
6986 break
6987 fi
6988 ac_mid=`expr 2 '*' $ac_mid + 1`
6989fi
6990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6991 done
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996cat >conftest.$ac_ext <<_ACEOF
6997/* confdefs.h. */
6998_ACEOF
6999cat confdefs.h >>conftest.$ac_ext
7000cat >>conftest.$ac_ext <<_ACEOF
7001/* end confdefs.h. */
7002#include <stddef.h>
7003int
7004main ()
7005{
7006static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7007test_array [0] = 0
7008
7009 ;
7010 return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext
7014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest.$ac_objext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_hi=-1 ac_mid=-1
7035 while :; do
7036 cat >conftest.$ac_ext <<_ACEOF
7037/* confdefs.h. */
7038_ACEOF
7039cat confdefs.h >>conftest.$ac_ext
7040cat >>conftest.$ac_ext <<_ACEOF
7041/* end confdefs.h. */
7042#include <stddef.h>
7043int
7044main ()
7045{
7046static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7047test_array [0] = 0
7048
7049 ;
7050 return 0;
7051}
7052_ACEOF
7053rm -f conftest.$ac_objext
7054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_lo=$ac_mid; break
7075else
7076 echo "$as_me: failed program was:" >&5
7077sed 's/^/| /' conftest.$ac_ext >&5
7078
7079ac_hi=`expr '(' $ac_mid ')' - 1`
7080 if test $ac_mid -le $ac_hi; then
7081 ac_lo= ac_hi=
7082 break
7083 fi
7084 ac_mid=`expr 2 '*' $ac_mid`
7085fi
7086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087 done
7088else
7089 echo "$as_me: failed program was:" >&5
7090sed 's/^/| /' conftest.$ac_ext >&5
7091
7092ac_lo= ac_hi=
7093fi
7094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095fi
7096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097# Binary search between lo and hi bounds.
7098while test "x$ac_lo" != "x$ac_hi"; do
7099 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7100 cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h. */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h. */
7106#include <stddef.h>
7107int
7108main ()
7109{
7110static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7111test_array [0] = 0
7112
7113 ;
7114 return 0;
7115}
7116_ACEOF
7117rm -f conftest.$ac_objext
7118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7120 ac_status=$?
7121 grep -v '^ *+' conftest.er1 >conftest.err
7122 rm -f conftest.er1
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest.$ac_objext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 ac_hi=$ac_mid
7139else
7140 echo "$as_me: failed program was:" >&5
7141sed 's/^/| /' conftest.$ac_ext >&5
7142
7143ac_lo=`expr '(' $ac_mid ')' + 1`
7144fi
7145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146done
7147case $ac_lo in
7148?*) fits_in_uint=$ac_lo;;
7149'') result=? ;;
7150esac
7151else
7152 if test "$cross_compiling" = yes; then
7153 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7154echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7155 { (exit 1); exit 1; }; }
7156else
7157 cat >conftest.$ac_ext <<_ACEOF
7158/* confdefs.h. */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h. */
7163#include <stddef.h>
7164long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7165unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7166#include <stdio.h>
7167#include <stdlib.h>
7168int
7169main ()
7170{
7171
7172 FILE *f = fopen ("conftest.val", "w");
7173 if (! f)
7174 exit (1);
7175 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7176 {
7177 long i = longval ();
7178 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7179 exit (1);
7180 fprintf (f, "%ld\n", i);
7181 }
7182 else
7183 {
7184 unsigned long i = ulongval ();
7185 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7186 exit (1);
7187 fprintf (f, "%lu\n", i);
7188 }
7189 exit (ferror (f) || fclose (f) != 0);
7190
7191 ;
7192 return 0;
7193}
7194_ACEOF
7195rm -f conftest$ac_exeext
7196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197 (eval $ac_link) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 (eval $ac_try) 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 fits_in_uint=`cat conftest.val`
7207else
7208 echo "$as_me: program exited with status $ac_status" >&5
7209echo "$as_me: failed program was:" >&5
7210sed 's/^/| /' conftest.$ac_ext >&5
7211
7212( exit $ac_status )
7213result=?
7214fi
7215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7216fi
7217fi
7218rm -f conftest.val
7219 if test "$fits_in_uint" = 1; then
7220 cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h. */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h. */
7226#include <stddef.h>
7227 extern size_t foo;
7228 extern unsigned long foo;
7229
7230int
7231main ()
7232{
7233
7234 ;
7235 return 0;
7236}
7237_ACEOF
7238rm -f conftest.$ac_objext
7239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240 (eval $ac_compile) 2>conftest.er1
7241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 fits_in_uint=0
7260else
7261 echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
7263
7264fi
7265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7266 fi
7267 if test -z "$result"; then
7268 if test "$fits_in_uint" = 1; then
7269 result="$res_hi$res_lo"U
7270 else
7271 result="$res_hi$res_lo"UL
7272 fi
7273 else
7274 result='~(size_t)0'
7275 fi
7276 fi
7277 echo "$as_me:$LINENO: result: $result" >&5
7278echo "${ECHO_T}$result" >&6
7279 if test "$result" != yes; then
7280
7281cat >>confdefs.h <<_ACEOF
7282#define SIZE_MAX $result
7283_ACEOF
7284
7285 fi
7286
7287
7288
7289
7290for ac_header in stdint.h
7291do
7292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7293if eval "test \"\${$as_ac_Header+set}\" = set"; then
7294 echo "$as_me:$LINENO: checking for $ac_header" >&5
7295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7296if eval "test \"\${$as_ac_Header+set}\" = set"; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298fi
7299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7301else
7302 # Is the header compilable?
7303echo "$as_me:$LINENO: checking $ac_header usability" >&5
7304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7305cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
7311$ac_includes_default
7312#include <$ac_header>
7313_ACEOF
7314rm -f conftest.$ac_objext
7315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_header_compiler=yes
7336else
7337 echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340ac_header_compiler=no
7341fi
7342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7344echo "${ECHO_T}$ac_header_compiler" >&6
7345
7346# Is the header present?
7347echo "$as_me:$LINENO: checking $ac_header presence" >&5
7348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7349cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h. */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h. */
7355#include <$ac_header>
7356_ACEOF
7357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } >/dev/null; then
7365 if test -s conftest.err; then
7366 ac_cpp_err=$ac_c_preproc_warn_flag
7367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7368 else
7369 ac_cpp_err=
7370 fi
7371else
7372 ac_cpp_err=yes
7373fi
7374if test -z "$ac_cpp_err"; then
7375 ac_header_preproc=yes
7376else
7377 echo "$as_me: failed program was:" >&5
7378sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 ac_header_preproc=no
7381fi
7382rm -f conftest.err conftest.$ac_ext
7383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7384echo "${ECHO_T}$ac_header_preproc" >&6
7385
7386# So? What about this header?
7387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7388 yes:no: )
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7393 ac_header_preproc=yes
7394 ;;
7395 no:yes:* )
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7399echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7403echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7408 (
7409 cat <<\_ASBOX
7410## ------------------------------------------ ##
7411## Report this to the AC_PACKAGE_NAME lists. ##
7412## ------------------------------------------ ##
7413_ASBOX
7414 ) |
7415 sed "s/^/$as_me: WARNING: /" >&2
7416 ;;
7417esac
7418echo "$as_me:$LINENO: checking for $ac_header" >&5
7419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7420if eval "test \"\${$as_ac_Header+set}\" = set"; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422else
7423 eval "$as_ac_Header=\$ac_header_preproc"
7424fi
7425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7427
7428fi
7429if test `eval echo '${'$as_ac_Header'}'` = yes; then
7430 cat >>confdefs.h <<_ACEOF
7431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7432_ACEOF
7433
7434fi
7435
7436done
7437
7438
7439
7440 if test "X$prefix" = "XNONE"; then
7441 acl_final_prefix="$ac_default_prefix"
7442 else
7443 acl_final_prefix="$prefix"
7444 fi
7445 if test "X$exec_prefix" = "XNONE"; then
7446 acl_final_exec_prefix='${prefix}'
7447 else
7448 acl_final_exec_prefix="$exec_prefix"
7449 fi
7450 acl_save_prefix="$prefix"
7451 prefix="$acl_final_prefix"
7452 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7453 prefix="$acl_save_prefix"
7454
7455
7456# Check whether --with-gnu-ld or --without-gnu-ld was given.
7457if test "${with_gnu_ld+set}" = set; then
7458 withval="$with_gnu_ld"
7459 test "$withval" = no || with_gnu_ld=yes
7460else
7461 with_gnu_ld=no
7462fi;
7463# Prepare PATH_SEPARATOR.
7464# The user is always right.
7465if test "${PATH_SEPARATOR+set}" != set; then
7466 echo "#! /bin/sh" >conf$$.sh
7467 echo "exit 0" >>conf$$.sh
7468 chmod +x conf$$.sh
7469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7470 PATH_SEPARATOR=';'
7471 else
7472 PATH_SEPARATOR=:
7473 fi
7474 rm -f conf$$.sh
7475fi
7476ac_prog=ld
7477if test "$GCC" = yes; then
7478 # Check if gcc -print-prog-name=ld gives a path.
7479 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7480echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7481 case $host in
7482 *-*-mingw*)
7483 # gcc leaves a trailing carriage return which upsets mingw
7484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7485 *)
7486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7487 esac
7488 case $ac_prog in
7489 # Accept absolute paths.
7490 [\\/]* | [A-Za-z]:[\\/]*)
7491 re_direlt='/[^/][^/]*/\.\./'
7492 # Canonicalize the path of ld
7493 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7494 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7495 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7496 done
7497 test -z "$LD" && LD="$ac_prog"
7498 ;;
7499 "")
7500 # If it fails, then pretend we aren't using GCC.
7501 ac_prog=ld
7502 ;;
7503 *)
7504 # If it is relative, then search for the first ld in PATH.
7505 with_gnu_ld=unknown
7506 ;;
7507 esac
7508elif test "$with_gnu_ld" = yes; then
7509 echo "$as_me:$LINENO: checking for GNU ld" >&5
7510echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7511else
7512 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7513echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7514fi
7515if test "${acl_cv_path_LD+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518 if test -z "$LD"; then
7519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7520 for ac_dir in $PATH; do
7521 test -z "$ac_dir" && ac_dir=.
7522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7523 acl_cv_path_LD="$ac_dir/$ac_prog"
7524 # Check to see if the program is GNU ld. I'd rather use --version,
7525 # but apparently some GNU ld's only accept -v.
7526 # Break only if it was the GNU/non-GNU ld that we prefer.
7527 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7528 *GNU* | *'with BFD'*)
7529 test "$with_gnu_ld" != no && break ;;
7530 *)
7531 test "$with_gnu_ld" != yes && break ;;
7532 esac
7533 fi
7534 done
7535 IFS="$ac_save_ifs"
7536else
7537 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7538fi
7539fi
7540
7541LD="$acl_cv_path_LD"
7542if test -n "$LD"; then
7543 echo "$as_me:$LINENO: result: $LD" >&5
7544echo "${ECHO_T}$LD" >&6
7545else
7546 echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548fi
7549test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7550echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7551 { (exit 1); exit 1; }; }
7552echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7553echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7554if test "${acl_cv_prog_gnu_ld+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7558case `$LD -v 2>&1 </dev/null` in
7559*GNU* | *'with BFD'*)
7560 acl_cv_prog_gnu_ld=yes ;;
7561*)
7562 acl_cv_prog_gnu_ld=no ;;
7563esac
7564fi
7565echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7566echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7567with_gnu_ld=$acl_cv_prog_gnu_ld
7568
7569
7570
7571 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7572echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7573if test "${acl_cv_rpath+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575else
7576
7577 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7578 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7579 . ./conftest.sh
7580 rm -f ./conftest.sh
7581 acl_cv_rpath=done
7582
7583fi
7584echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7585echo "${ECHO_T}$acl_cv_rpath" >&6
7586 wl="$acl_cv_wl"
7587 libext="$acl_cv_libext"
7588 shlibext="$acl_cv_shlibext"
7589 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7590 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7591 hardcode_direct="$acl_cv_hardcode_direct"
7592 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7593 # Check whether --enable-rpath or --disable-rpath was given.
7594if test "${enable_rpath+set}" = set; then
7595 enableval="$enable_rpath"
7596 :
7597else
7598 enable_rpath=yes
7599fi;
7600
7601
7602
7603
7604
7605
7606
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007607 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007608
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007609 acl_save_prefix="$prefix"
7610 prefix="$acl_final_prefix"
7611 acl_save_exec_prefix="$exec_prefix"
7612 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007614 eval additional_includedir=\"$includedir\"
7615 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007616
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007617 exec_prefix="$acl_save_exec_prefix"
7618 prefix="$acl_save_prefix"
7619
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620
7621# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007622if test "${with_libiconv_prefix+set}" = set; then
7623 withval="$with_libiconv_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007624
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007625 if test "X$withval" = "Xno"; then
7626 use_additional=no
7627 else
7628 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007630 acl_save_prefix="$prefix"
7631 prefix="$acl_final_prefix"
7632 acl_save_exec_prefix="$exec_prefix"
7633 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007634
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007635 eval additional_includedir=\"$includedir\"
7636 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007638 exec_prefix="$acl_save_exec_prefix"
7639 prefix="$acl_save_prefix"
7640
7641 else
7642 additional_includedir="$withval/include"
7643 additional_libdir="$withval/lib"
7644 fi
7645 fi
7646
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007647fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007648 LIBICONV=
7649 LTLIBICONV=
7650 INCICONV=
7651 rpathdirs=
7652 ltrpathdirs=
7653 names_already_handled=
7654 names_next_round='iconv '
7655 while test -n "$names_next_round"; do
7656 names_this_round="$names_next_round"
7657 names_next_round=
7658 for name in $names_this_round; do
7659 already_handled=
7660 for n in $names_already_handled; do
7661 if test "$n" = "$name"; then
7662 already_handled=yes
7663 break
7664 fi
7665 done
7666 if test -z "$already_handled"; then
7667 names_already_handled="$names_already_handled $name"
7668 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7669 eval value=\"\$HAVE_LIB$uppername\"
7670 if test -n "$value"; then
7671 if test "$value" = yes; then
7672 eval value=\"\$LIB$uppername\"
7673 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7674 eval value=\"\$LTLIB$uppername\"
7675 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7676 else
7677 :
7678 fi
7679 else
7680 found_dir=
7681 found_la=
7682 found_so=
7683 found_a=
7684 if test $use_additional = yes; then
7685 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7686 found_dir="$additional_libdir"
7687 found_so="$additional_libdir/lib$name.$shlibext"
7688 if test -f "$additional_libdir/lib$name.la"; then
7689 found_la="$additional_libdir/lib$name.la"
7690 fi
7691 else
7692 if test -f "$additional_libdir/lib$name.$libext"; then
7693 found_dir="$additional_libdir"
7694 found_a="$additional_libdir/lib$name.$libext"
7695 if test -f "$additional_libdir/lib$name.la"; then
7696 found_la="$additional_libdir/lib$name.la"
7697 fi
7698 fi
7699 fi
7700 fi
7701 if test "X$found_dir" = "X"; then
7702 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007703
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007704 acl_save_prefix="$prefix"
7705 prefix="$acl_final_prefix"
7706 acl_save_exec_prefix="$exec_prefix"
7707 exec_prefix="$acl_final_exec_prefix"
7708 eval x=\"$x\"
7709 exec_prefix="$acl_save_exec_prefix"
7710 prefix="$acl_save_prefix"
7711
7712 case "$x" in
7713 -L*)
7714 dir=`echo "X$x" | sed -e 's/^X-L//'`
7715 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7716 found_dir="$dir"
7717 found_so="$dir/lib$name.$shlibext"
7718 if test -f "$dir/lib$name.la"; then
7719 found_la="$dir/lib$name.la"
7720 fi
7721 else
7722 if test -f "$dir/lib$name.$libext"; then
7723 found_dir="$dir"
7724 found_a="$dir/lib$name.$libext"
7725 if test -f "$dir/lib$name.la"; then
7726 found_la="$dir/lib$name.la"
7727 fi
7728 fi
7729 fi
7730 ;;
7731 esac
7732 if test "X$found_dir" != "X"; then
7733 break
7734 fi
7735 done
7736 fi
7737 if test "X$found_dir" != "X"; then
7738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7739 if test "X$found_so" != "X"; then
7740 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7742 else
7743 haveit=
7744 for x in $ltrpathdirs; do
7745 if test "X$x" = "X$found_dir"; then
7746 haveit=yes
7747 break
7748 fi
7749 done
7750 if test -z "$haveit"; then
7751 ltrpathdirs="$ltrpathdirs $found_dir"
7752 fi
7753 if test "$hardcode_direct" = yes; then
7754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7755 else
7756 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7758 haveit=
7759 for x in $rpathdirs; do
7760 if test "X$x" = "X$found_dir"; then
7761 haveit=yes
7762 break
7763 fi
7764 done
7765 if test -z "$haveit"; then
7766 rpathdirs="$rpathdirs $found_dir"
7767 fi
7768 else
7769 haveit=
7770 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007771
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007772 acl_save_prefix="$prefix"
7773 prefix="$acl_final_prefix"
7774 acl_save_exec_prefix="$exec_prefix"
7775 exec_prefix="$acl_final_exec_prefix"
7776 eval x=\"$x\"
7777 exec_prefix="$acl_save_exec_prefix"
7778 prefix="$acl_save_prefix"
7779
7780 if test "X$x" = "X-L$found_dir"; then
7781 haveit=yes
7782 break
7783 fi
7784 done
7785 if test -z "$haveit"; then
7786 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7787 fi
7788 if test "$hardcode_minus_L" != no; then
7789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7790 else
7791 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7792 fi
7793 fi
7794 fi
7795 fi
7796 else
7797 if test "X$found_a" != "X"; then
7798 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7799 else
7800 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7801 fi
7802 fi
7803 additional_includedir=
7804 case "$found_dir" in
7805 */lib | */lib/)
7806 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7807 additional_includedir="$basedir/include"
7808 ;;
7809 esac
7810 if test "X$additional_includedir" != "X"; then
7811 if test "X$additional_includedir" != "X/usr/include"; then
7812 haveit=
7813 if test "X$additional_includedir" = "X/usr/local/include"; then
7814 if test -n "$GCC"; then
7815 case $host_os in
7816 linux*) haveit=yes;;
7817 esac
7818 fi
7819 fi
7820 if test -z "$haveit"; then
7821 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007822
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007823 acl_save_prefix="$prefix"
7824 prefix="$acl_final_prefix"
7825 acl_save_exec_prefix="$exec_prefix"
7826 exec_prefix="$acl_final_exec_prefix"
7827 eval x=\"$x\"
7828 exec_prefix="$acl_save_exec_prefix"
7829 prefix="$acl_save_prefix"
7830
7831 if test "X$x" = "X-I$additional_includedir"; then
7832 haveit=yes
7833 break
7834 fi
7835 done
7836 if test -z "$haveit"; then
7837 if test -d "$additional_includedir"; then
7838 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7839 fi
7840 fi
7841 fi
7842 fi
7843 fi
7844 if test -n "$found_la"; then
7845 save_libdir="$libdir"
7846 case "$found_la" in
7847 */* | *\\*) . "$found_la" ;;
7848 *) . "./$found_la" ;;
7849 esac
7850 libdir="$save_libdir"
7851 for dep in $dependency_libs; do
7852 case "$dep" in
7853 -L*)
7854 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7855 if test "X$additional_libdir" != "X/usr/lib"; then
7856 haveit=
7857 if test "X$additional_libdir" = "X/usr/local/lib"; then
7858 if test -n "$GCC"; then
7859 case $host_os in
7860 linux*) haveit=yes;;
7861 esac
7862 fi
7863 fi
7864 if test -z "$haveit"; then
7865 haveit=
7866 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007867
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007868 acl_save_prefix="$prefix"
7869 prefix="$acl_final_prefix"
7870 acl_save_exec_prefix="$exec_prefix"
7871 exec_prefix="$acl_final_exec_prefix"
7872 eval x=\"$x\"
7873 exec_prefix="$acl_save_exec_prefix"
7874 prefix="$acl_save_prefix"
7875
7876 if test "X$x" = "X-L$additional_libdir"; then
7877 haveit=yes
7878 break
7879 fi
7880 done
7881 if test -z "$haveit"; then
7882 if test -d "$additional_libdir"; then
7883 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7884 fi
7885 fi
7886 haveit=
7887 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007888
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007889 acl_save_prefix="$prefix"
7890 prefix="$acl_final_prefix"
7891 acl_save_exec_prefix="$exec_prefix"
7892 exec_prefix="$acl_final_exec_prefix"
7893 eval x=\"$x\"
7894 exec_prefix="$acl_save_exec_prefix"
7895 prefix="$acl_save_prefix"
7896
7897 if test "X$x" = "X-L$additional_libdir"; then
7898 haveit=yes
7899 break
7900 fi
7901 done
7902 if test -z "$haveit"; then
7903 if test -d "$additional_libdir"; then
7904 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7905 fi
7906 fi
7907 fi
7908 fi
7909 ;;
7910 -R*)
7911 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7912 if test "$enable_rpath" != no; then
7913 haveit=
7914 for x in $rpathdirs; do
7915 if test "X$x" = "X$dir"; then
7916 haveit=yes
7917 break
7918 fi
7919 done
7920 if test -z "$haveit"; then
7921 rpathdirs="$rpathdirs $dir"
7922 fi
7923 haveit=
7924 for x in $ltrpathdirs; do
7925 if test "X$x" = "X$dir"; then
7926 haveit=yes
7927 break
7928 fi
7929 done
7930 if test -z "$haveit"; then
7931 ltrpathdirs="$ltrpathdirs $dir"
7932 fi
7933 fi
7934 ;;
7935 -l*)
7936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7937 ;;
7938 *.la)
7939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7940 ;;
7941 *)
7942 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7943 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7944 ;;
7945 esac
7946 done
7947 fi
7948 else
7949 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7950 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7951 fi
7952 fi
7953 fi
7954 done
7955 done
7956 if test "X$rpathdirs" != "X"; then
7957 if test -n "$hardcode_libdir_separator"; then
7958 alldirs=
7959 for found_dir in $rpathdirs; do
7960 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7961 done
7962 acl_save_libdir="$libdir"
7963 libdir="$alldirs"
7964 eval flag=\"$hardcode_libdir_flag_spec\"
7965 libdir="$acl_save_libdir"
7966 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7967 else
7968 for found_dir in $rpathdirs; do
7969 acl_save_libdir="$libdir"
7970 libdir="$found_dir"
7971 eval flag=\"$hardcode_libdir_flag_spec\"
7972 libdir="$acl_save_libdir"
7973 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7974 done
7975 fi
7976 fi
7977 if test "X$ltrpathdirs" != "X"; then
7978 for found_dir in $ltrpathdirs; do
7979 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7980 done
7981 fi
7982
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007983
7984
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007986
7987
7988
7989
7990 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
7991echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
7992if test "${ac_cv_type_ptrdiff_t+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007994else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007995 cat >conftest.$ac_ext <<_ACEOF
7996/* confdefs.h. */
7997_ACEOF
7998cat confdefs.h >>conftest.$ac_ext
7999cat >>conftest.$ac_ext <<_ACEOF
8000/* end confdefs.h. */
8001$ac_includes_default
8002int
8003main ()
8004{
8005if ((ptrdiff_t *) 0)
8006 return 0;
8007if (sizeof (ptrdiff_t))
8008 return 0;
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013rm -f conftest.$ac_objext
8014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
8028 { ac_try='test -s conftest.$ac_objext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_type_ptrdiff_t=yes
8035else
8036 echo "$as_me: failed program was:" >&5
8037sed 's/^/| /' conftest.$ac_ext >&5
8038
8039ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008040fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8042fi
8043echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8044echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8045if test $ac_cv_type_ptrdiff_t = yes; then
8046 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008047else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008048
8049cat >>confdefs.h <<\_ACEOF
8050#define ptrdiff_t long
8051_ACEOF
8052
8053
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008054fi
8055
8056
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008057
8058
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008059
8060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008061
8062
8063
8064
8065
8066for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008067stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008068do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8070if eval "test \"\${$as_ac_Header+set}\" = set"; then
8071 echo "$as_me:$LINENO: checking for $ac_header" >&5
8072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8073if eval "test \"\${$as_ac_Header+set}\" = set"; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008075fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008078else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008079 # Is the header compilable?
8080echo "$as_me:$LINENO: checking $ac_header usability" >&5
8081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8082cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088$ac_includes_default
8089#include <$ac_header>
8090_ACEOF
8091rm -f conftest.$ac_objext
8092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 ac_header_compiler=yes
8113else
8114 echo "$as_me: failed program was:" >&5
8115sed 's/^/| /' conftest.$ac_ext >&5
8116
8117ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008118fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8121echo "${ECHO_T}$ac_header_compiler" >&6
8122
8123# Is the header present?
8124echo "$as_me:$LINENO: checking $ac_header presence" >&5
8125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8126cat >conftest.$ac_ext <<_ACEOF
8127/* confdefs.h. */
8128_ACEOF
8129cat confdefs.h >>conftest.$ac_ext
8130cat >>conftest.$ac_ext <<_ACEOF
8131/* end confdefs.h. */
8132#include <$ac_header>
8133_ACEOF
8134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } >/dev/null; then
8142 if test -s conftest.err; then
8143 ac_cpp_err=$ac_c_preproc_warn_flag
8144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8145 else
8146 ac_cpp_err=
8147 fi
8148else
8149 ac_cpp_err=yes
8150fi
8151if test -z "$ac_cpp_err"; then
8152 ac_header_preproc=yes
8153else
8154 echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 ac_header_preproc=no
8158fi
8159rm -f conftest.err conftest.$ac_ext
8160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8161echo "${ECHO_T}$ac_header_preproc" >&6
8162
8163# So? What about this header?
8164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8165 yes:no: )
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8170 ac_header_preproc=yes
8171 ;;
8172 no:yes:* )
8173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8185 (
8186 cat <<\_ASBOX
8187## ------------------------------------------ ##
8188## Report this to the AC_PACKAGE_NAME lists. ##
8189## ------------------------------------------ ##
8190_ASBOX
8191 ) |
8192 sed "s/^/$as_me: WARNING: /" >&2
8193 ;;
8194esac
8195echo "$as_me:$LINENO: checking for $ac_header" >&5
8196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8197if eval "test \"\${$as_ac_Header+set}\" = set"; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199else
8200 eval "$as_ac_Header=\$ac_header_preproc"
8201fi
8202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8204
8205fi
8206if test `eval echo '${'$as_ac_Header'}'` = yes; then
8207 cat >>confdefs.h <<_ACEOF
8208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8209_ACEOF
8210
8211fi
8212
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008213done
8214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8239mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8240strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8241__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008242do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8244echo "$as_me:$LINENO: checking for $ac_func" >&5
8245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8246if eval "test \"\${$as_ac_var+set}\" = set"; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008248else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008249 cat >conftest.$ac_ext <<_ACEOF
8250/* confdefs.h. */
8251_ACEOF
8252cat confdefs.h >>conftest.$ac_ext
8253cat >>conftest.$ac_ext <<_ACEOF
8254/* end confdefs.h. */
8255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8257#define $ac_func innocuous_$ac_func
8258
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008259/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008260 which can conflict with char $ac_func (); below.
8261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8262 <limits.h> exists even on freestanding compilers. */
8263
8264#ifdef __STDC__
8265# include <limits.h>
8266#else
8267# include <assert.h>
8268#endif
8269
8270#undef $ac_func
8271
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008272/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008273#ifdef __cplusplus
8274extern "C"
8275{
8276#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008277/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278 builtin and then its argument prototype would still apply. */
8279char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008280/* The GNU C library defines this for functions which it implements
8281 to always fail with ENOSYS. Some functions are actually named
8282 something starting with __ and the normal name is an alias. */
8283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8284choke me
8285#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008286char (*f) () = $ac_func;
8287#endif
8288#ifdef __cplusplus
8289}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008290#endif
8291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292int
8293main ()
8294{
8295return f != $ac_func;
8296 ;
8297 return 0;
8298}
8299_ACEOF
8300rm -f conftest.$ac_objext conftest$ac_exeext
8301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302 (eval $ac_link) 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 (eval $ac_try) 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008322else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008323 echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008326eval "$as_ac_var=no"
8327fi
8328rm -f conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
8330fi
8331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8333if test `eval echo '${'$as_ac_var'}'` = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8336_ACEOF
8337
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008338fi
8339done
8340
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008341
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008342
8343 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8344echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8345if test "${ac_cv_have_decl__snprintf+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347else
8348 cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h. */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h. */
8354#include <stdio.h>
8355int
8356main ()
8357{
8358
8359#ifndef _snprintf
8360 char *p = (char *) _snprintf;
8361#endif
8362
8363 ;
8364 return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext
8368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8369 (eval $ac_compile) 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_have_decl__snprintf=yes
8389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393ac_cv_have_decl__snprintf=no
8394fi
8395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8396fi
8397echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8398echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8399 if test $ac_cv_have_decl__snprintf = yes; then
8400 gt_value=1
8401 else
8402 gt_value=0
8403 fi
8404
8405cat >>confdefs.h <<_ACEOF
8406#define HAVE_DECL__SNPRINTF $gt_value
8407_ACEOF
8408
8409
8410
8411 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8412echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8413if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415else
8416 cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h. */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h. */
8422#include <stdio.h>
8423int
8424main ()
8425{
8426
8427#ifndef _snwprintf
8428 char *p = (char *) _snwprintf;
8429#endif
8430
8431 ;
8432 return 0;
8433}
8434_ACEOF
8435rm -f conftest.$ac_objext
8436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8437 (eval $ac_compile) 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_have_decl__snwprintf=yes
8457else
8458 echo "$as_me: failed program was:" >&5
8459sed 's/^/| /' conftest.$ac_ext >&5
8460
8461ac_cv_have_decl__snwprintf=no
8462fi
8463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8464fi
8465echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8466echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8467 if test $ac_cv_have_decl__snwprintf = yes; then
8468 gt_value=1
8469 else
8470 gt_value=0
8471 fi
8472
8473cat >>confdefs.h <<_ACEOF
8474#define HAVE_DECL__SNWPRINTF $gt_value
8475_ACEOF
8476
8477
8478
8479
8480 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8481echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8482if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8484else
8485 cat >conftest.$ac_ext <<_ACEOF
8486/* confdefs.h. */
8487_ACEOF
8488cat confdefs.h >>conftest.$ac_ext
8489cat >>conftest.$ac_ext <<_ACEOF
8490/* end confdefs.h. */
8491#include <stdio.h>
8492int
8493main ()
8494{
8495
8496#ifndef feof_unlocked
8497 char *p = (char *) feof_unlocked;
8498#endif
8499
8500 ;
8501 return 0;
8502}
8503_ACEOF
8504rm -f conftest.$ac_objext
8505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506 (eval $ac_compile) 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest.$ac_objext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_have_decl_feof_unlocked=yes
8526else
8527 echo "$as_me: failed program was:" >&5
8528sed 's/^/| /' conftest.$ac_ext >&5
8529
8530ac_cv_have_decl_feof_unlocked=no
8531fi
8532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8533fi
8534echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8535echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8536 if test $ac_cv_have_decl_feof_unlocked = yes; then
8537 gt_value=1
8538 else
8539 gt_value=0
8540 fi
8541
8542cat >>confdefs.h <<_ACEOF
8543#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8544_ACEOF
8545
8546
8547
8548 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8549echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8550if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553 cat >conftest.$ac_ext <<_ACEOF
8554/* confdefs.h. */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h. */
8559#include <stdio.h>
8560int
8561main ()
8562{
8563
8564#ifndef fgets_unlocked
8565 char *p = (char *) fgets_unlocked;
8566#endif
8567
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext
8573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_have_decl_fgets_unlocked=yes
8594else
8595 echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598ac_cv_have_decl_fgets_unlocked=no
8599fi
8600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601fi
8602echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8603echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8604 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8605 gt_value=1
8606 else
8607 gt_value=0
8608 fi
8609
8610cat >>confdefs.h <<_ACEOF
8611#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8612_ACEOF
8613
8614
8615
8616 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8617echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8618if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620else
8621 cat >conftest.$ac_ext <<_ACEOF
8622/* confdefs.h. */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h. */
8627#include <stdio.h>
8628int
8629main ()
8630{
8631
8632#ifndef getc_unlocked
8633 char *p = (char *) getc_unlocked;
8634#endif
8635
8636 ;
8637 return 0;
8638}
8639_ACEOF
8640rm -f conftest.$ac_objext
8641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642 (eval $ac_compile) 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try='test -s conftest.$ac_objext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_cv_have_decl_getc_unlocked=yes
8662else
8663 echo "$as_me: failed program was:" >&5
8664sed 's/^/| /' conftest.$ac_ext >&5
8665
8666ac_cv_have_decl_getc_unlocked=no
8667fi
8668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8669fi
8670echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8671echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8672 if test $ac_cv_have_decl_getc_unlocked = yes; then
8673 gt_value=1
8674 else
8675 gt_value=0
8676 fi
8677
8678cat >>confdefs.h <<_ACEOF
8679#define HAVE_DECL_GETC_UNLOCKED $gt_value
8680_ACEOF
8681
8682
8683
8684 case $gt_cv_func_printf_posix in
8685 *yes) HAVE_POSIX_PRINTF=1 ;;
8686 *) HAVE_POSIX_PRINTF=0 ;;
8687 esac
8688
8689 if test "$ac_cv_func_asprintf" = yes; then
8690 HAVE_ASPRINTF=1
8691 else
8692 HAVE_ASPRINTF=0
8693 fi
8694
8695 if test "$ac_cv_func_snprintf" = yes; then
8696 HAVE_SNPRINTF=1
8697 else
8698 HAVE_SNPRINTF=0
8699 fi
8700
8701 if test "$ac_cv_func_wprintf" = yes; then
8702 HAVE_WPRINTF=1
8703 else
8704 HAVE_WPRINTF=0
8705 fi
8706
8707
8708
8709
8710
8711
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008712
8713 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008714
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008715 for element in $INCICONV; do
8716 haveit=
8717 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008718
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008719 acl_save_prefix="$prefix"
8720 prefix="$acl_final_prefix"
8721 acl_save_exec_prefix="$exec_prefix"
8722 exec_prefix="$acl_final_exec_prefix"
8723 eval x=\"$x\"
8724 exec_prefix="$acl_save_exec_prefix"
8725 prefix="$acl_save_prefix"
8726
8727 if test "X$x" = "X$element"; then
8728 haveit=yes
8729 break
8730 fi
8731 done
8732 if test -z "$haveit"; then
8733 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8734 fi
8735 done
8736
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008737
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008738 echo "$as_me:$LINENO: checking for iconv" >&5
8739echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8740if test "${am_cv_func_iconv+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008742else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008743
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008744 am_cv_func_iconv="no, consider installing GNU libiconv"
8745 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008746 cat >conftest.$ac_ext <<_ACEOF
8747/* confdefs.h. */
8748_ACEOF
8749cat confdefs.h >>conftest.$ac_ext
8750cat >>conftest.$ac_ext <<_ACEOF
8751/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008752#include <stdlib.h>
8753#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008754int
8755main ()
8756{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008757iconv_t cd = iconv_open("","");
8758 iconv(cd,NULL,NULL,NULL,NULL);
8759 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008760 ;
8761 return 0;
8762}
8763_ACEOF
8764rm -f conftest.$ac_objext conftest$ac_exeext
8765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8766 (eval $ac_link) 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; } &&
8779 { ac_try='test -s conftest$ac_exeext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008785 am_cv_func_iconv=yes
8786else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008787 echo "$as_me: failed program was:" >&5
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008790fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008791rm -f conftest.err conftest.$ac_objext \
8792 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008793 if test "$am_cv_func_iconv" != yes; then
8794 am_save_LIBS="$LIBS"
8795 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008796 cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008802#include <stdlib.h>
8803#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008804int
8805main ()
8806{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008807iconv_t cd = iconv_open("","");
8808 iconv(cd,NULL,NULL,NULL,NULL);
8809 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008810 ;
8811 return 0;
8812}
8813_ACEOF
8814rm -f conftest.$ac_objext conftest$ac_exeext
8815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 (eval $ac_try) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008835 am_cv_lib_iconv=yes
8836 am_cv_func_iconv=yes
8837else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008838 echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5
8840
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008841fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008842rm -f conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008844 LIBS="$am_save_LIBS"
8845 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008846
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008847fi
8848echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8849echo "${ECHO_T}$am_cv_func_iconv" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008850 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008851
8852cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008853#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008854_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008855
8856 fi
8857 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008858 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8859echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8860 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8861echo "${ECHO_T}$LIBICONV" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008862 else
8863 CPPFLAGS="$am_save_CPPFLAGS"
8864 LIBICONV=
8865 LTLIBICONV=
8866 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008867
8868
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008869
8870 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008871 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8872echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8873 if test "${am_cv_proto_iconv+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008875else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008876
8877 cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h. */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008883
8884#include <stdlib.h>
8885#include <iconv.h>
8886extern
8887#ifdef __cplusplus
8888"C"
8889#endif
8890#if defined(__STDC__) || defined(__cplusplus)
8891size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8892#else
8893size_t iconv();
8894#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008895
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008896int
8897main ()
8898{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008899
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008900 ;
8901 return 0;
8902}
8903_ACEOF
8904rm -f conftest.$ac_objext
8905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906 (eval $ac_compile) 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest.$ac_objext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008925 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008926else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008927 echo "$as_me: failed program was:" >&5
8928sed 's/^/| /' conftest.$ac_ext >&5
8929
8930am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008931fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008933 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);"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008934fi
8935
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008936 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008937 echo "$as_me:$LINENO: result: ${ac_t:-
8938 }$am_cv_proto_iconv" >&5
8939echo "${ECHO_T}${ac_t:-
8940 }$am_cv_proto_iconv" >&6
8941
8942cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008943#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008944_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008945
8946 fi
8947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008948
8949 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8950echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8951if test "${am_cv_langinfo_codeset+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008954 cat >conftest.$ac_ext <<_ACEOF
8955/* confdefs.h. */
8956_ACEOF
8957cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008960#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008961int
8962main ()
8963{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008964char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008965 ;
8966 return 0;
8967}
8968_ACEOF
8969rm -f conftest.$ac_objext conftest$ac_exeext
8970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971 (eval $ac_link) 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008990 am_cv_langinfo_codeset=yes
8991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008992 echo "$as_me: failed program was:" >&5
8993sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008994
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008995am_cv_langinfo_codeset=no
8996fi
8997rm -f conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999
9000fi
9001echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9002echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009003 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009004
9005cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009006#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009007_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009008
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009009 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009010
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009011 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009012
9013 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9014echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9015if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009018 cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
9023/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009024#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009025int
9026main ()
9027{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009028return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009029 ;
9030 return 0;
9031}
9032_ACEOF
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009054 am_cv_val_LC_MESSAGES=yes
9055else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009056 echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009059am_cv_val_LC_MESSAGES=no
9060fi
9061rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063fi
9064echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9065echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009066 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009067
9068cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009069#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009070_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009071
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009072 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009073
9074 fi
9075
9076 for ac_prog in bison
9077do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009078 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009079set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009080echo "$as_me:$LINENO: checking for $ac_word" >&5
9081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082if test "${ac_cv_prog_INTLBISON+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009084else
9085 if test -n "$INTLBISON"; then
9086 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9087else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089for as_dir in $PATH
9090do
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_INTLBISON="$ac_prog"
9096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9098 fi
9099done
9100done
9101
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009102fi
9103fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009105if test -n "$INTLBISON"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009106 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9107echo "${ECHO_T}$INTLBISON" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009108else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009109 echo "$as_me:$LINENO: result: no" >&5
9110echo "${ECHO_T}no" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009111fi
9112
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009113 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009114done
9115
9116 if test -z "$INTLBISON"; then
9117 ac_verc_fail=yes
9118 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009119 echo "$as_me:$LINENO: checking version of bison" >&5
9120echo $ECHO_N "checking version of bison... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009121 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9122 case $ac_prog_version in
9123 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9124 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9125 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9126 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9127 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009128 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9129echo "${ECHO_T}$ac_prog_version" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009130 fi
9131 if test $ac_verc_fail = yes; then
9132 INTLBISON=:
9133 fi
9134
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009135
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009136
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009137
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009138
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009139
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9151echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009152 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009153if test "${enable_nls+set}" = set; then
9154 enableval="$enable_nls"
9155 USE_NLS=$enableval
9156else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009157 USE_NLS=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009158fi;
9159 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9160echo "${ECHO_T}$USE_NLS" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009161
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009162
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009163
9164
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009165 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009166 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009167
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009168 LIBINTL=
9169 LTLIBINTL=
9170 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009171
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009172 if test "$USE_NLS" = "yes"; then
9173 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009174
9175 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9176echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9177
9178# Check whether --with-included-gettext or --without-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009179if test "${with_included_gettext+set}" = set; then
9180 withval="$with_included_gettext"
9181 nls_cv_force_use_gnu_gettext=$withval
9182else
9183 nls_cv_force_use_gnu_gettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009184fi;
9185 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9186echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009187
9188 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9189 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009190
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009191
9192
9193
9194
9195
9196 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9197echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9198if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009200else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009201 cat >conftest.$ac_ext <<_ACEOF
9202/* confdefs.h. */
9203_ACEOF
9204cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009207#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009208extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009209extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009210int
9211main ()
9212{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009213bindtextdomain ("", "");
9214return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009215 ;
9216 return 0;
9217}
9218_ACEOF
9219rm -f conftest.$ac_objext conftest$ac_exeext
9220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221 (eval $ac_link) 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009240 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009241else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009242 echo "$as_me: failed program was:" >&5
9243sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009244
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009245gt_cv_func_gnugettext1_libc=no
9246fi
9247rm -f conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9249fi
9250echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9251echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009252
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009253 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009254
9255
9256
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009257 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009259 acl_save_prefix="$prefix"
9260 prefix="$acl_final_prefix"
9261 acl_save_exec_prefix="$exec_prefix"
9262 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009264 eval additional_includedir=\"$includedir\"
9265 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009267 exec_prefix="$acl_save_exec_prefix"
9268 prefix="$acl_save_prefix"
9269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009270
9271# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009272if test "${with_libintl_prefix+set}" = set; then
9273 withval="$with_libintl_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009274
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009275 if test "X$withval" = "Xno"; then
9276 use_additional=no
9277 else
9278 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009279
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009280 acl_save_prefix="$prefix"
9281 prefix="$acl_final_prefix"
9282 acl_save_exec_prefix="$exec_prefix"
9283 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009284
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009285 eval additional_includedir=\"$includedir\"
9286 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009287
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009288 exec_prefix="$acl_save_exec_prefix"
9289 prefix="$acl_save_prefix"
9290
9291 else
9292 additional_includedir="$withval/include"
9293 additional_libdir="$withval/lib"
9294 fi
9295 fi
9296
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009297fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009298 LIBINTL=
9299 LTLIBINTL=
9300 INCINTL=
9301 rpathdirs=
9302 ltrpathdirs=
9303 names_already_handled=
9304 names_next_round='intl '
9305 while test -n "$names_next_round"; do
9306 names_this_round="$names_next_round"
9307 names_next_round=
9308 for name in $names_this_round; do
9309 already_handled=
9310 for n in $names_already_handled; do
9311 if test "$n" = "$name"; then
9312 already_handled=yes
9313 break
9314 fi
9315 done
9316 if test -z "$already_handled"; then
9317 names_already_handled="$names_already_handled $name"
9318 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9319 eval value=\"\$HAVE_LIB$uppername\"
9320 if test -n "$value"; then
9321 if test "$value" = yes; then
9322 eval value=\"\$LIB$uppername\"
9323 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9324 eval value=\"\$LTLIB$uppername\"
9325 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9326 else
9327 :
9328 fi
9329 else
9330 found_dir=
9331 found_la=
9332 found_so=
9333 found_a=
9334 if test $use_additional = yes; then
9335 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9336 found_dir="$additional_libdir"
9337 found_so="$additional_libdir/lib$name.$shlibext"
9338 if test -f "$additional_libdir/lib$name.la"; then
9339 found_la="$additional_libdir/lib$name.la"
9340 fi
9341 else
9342 if test -f "$additional_libdir/lib$name.$libext"; then
9343 found_dir="$additional_libdir"
9344 found_a="$additional_libdir/lib$name.$libext"
9345 if test -f "$additional_libdir/lib$name.la"; then
9346 found_la="$additional_libdir/lib$name.la"
9347 fi
9348 fi
9349 fi
9350 fi
9351 if test "X$found_dir" = "X"; then
9352 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009353
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009354 acl_save_prefix="$prefix"
9355 prefix="$acl_final_prefix"
9356 acl_save_exec_prefix="$exec_prefix"
9357 exec_prefix="$acl_final_exec_prefix"
9358 eval x=\"$x\"
9359 exec_prefix="$acl_save_exec_prefix"
9360 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009361
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009362 case "$x" in
9363 -L*)
9364 dir=`echo "X$x" | sed -e 's/^X-L//'`
9365 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9366 found_dir="$dir"
9367 found_so="$dir/lib$name.$shlibext"
9368 if test -f "$dir/lib$name.la"; then
9369 found_la="$dir/lib$name.la"
9370 fi
9371 else
9372 if test -f "$dir/lib$name.$libext"; then
9373 found_dir="$dir"
9374 found_a="$dir/lib$name.$libext"
9375 if test -f "$dir/lib$name.la"; then
9376 found_la="$dir/lib$name.la"
9377 fi
9378 fi
9379 fi
9380 ;;
9381 esac
9382 if test "X$found_dir" != "X"; then
9383 break
9384 fi
9385 done
9386 fi
9387 if test "X$found_dir" != "X"; then
9388 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9389 if test "X$found_so" != "X"; then
9390 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9391 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9392 else
9393 haveit=
9394 for x in $ltrpathdirs; do
9395 if test "X$x" = "X$found_dir"; then
9396 haveit=yes
9397 break
9398 fi
9399 done
9400 if test -z "$haveit"; then
9401 ltrpathdirs="$ltrpathdirs $found_dir"
9402 fi
9403 if test "$hardcode_direct" = yes; then
9404 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9405 else
9406 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9408 haveit=
9409 for x in $rpathdirs; do
9410 if test "X$x" = "X$found_dir"; then
9411 haveit=yes
9412 break
9413 fi
9414 done
9415 if test -z "$haveit"; then
9416 rpathdirs="$rpathdirs $found_dir"
9417 fi
9418 else
9419 haveit=
9420 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009421
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009422 acl_save_prefix="$prefix"
9423 prefix="$acl_final_prefix"
9424 acl_save_exec_prefix="$exec_prefix"
9425 exec_prefix="$acl_final_exec_prefix"
9426 eval x=\"$x\"
9427 exec_prefix="$acl_save_exec_prefix"
9428 prefix="$acl_save_prefix"
9429
9430 if test "X$x" = "X-L$found_dir"; then
9431 haveit=yes
9432 break
9433 fi
9434 done
9435 if test -z "$haveit"; then
9436 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9437 fi
9438 if test "$hardcode_minus_L" != no; then
9439 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9440 else
9441 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9442 fi
9443 fi
9444 fi
9445 fi
9446 else
9447 if test "X$found_a" != "X"; then
9448 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9449 else
9450 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9451 fi
9452 fi
9453 additional_includedir=
9454 case "$found_dir" in
9455 */lib | */lib/)
9456 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9457 additional_includedir="$basedir/include"
9458 ;;
9459 esac
9460 if test "X$additional_includedir" != "X"; then
9461 if test "X$additional_includedir" != "X/usr/include"; then
9462 haveit=
9463 if test "X$additional_includedir" = "X/usr/local/include"; then
9464 if test -n "$GCC"; then
9465 case $host_os in
9466 linux*) haveit=yes;;
9467 esac
9468 fi
9469 fi
9470 if test -z "$haveit"; then
9471 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009473 acl_save_prefix="$prefix"
9474 prefix="$acl_final_prefix"
9475 acl_save_exec_prefix="$exec_prefix"
9476 exec_prefix="$acl_final_exec_prefix"
9477 eval x=\"$x\"
9478 exec_prefix="$acl_save_exec_prefix"
9479 prefix="$acl_save_prefix"
9480
9481 if test "X$x" = "X-I$additional_includedir"; then
9482 haveit=yes
9483 break
9484 fi
9485 done
9486 if test -z "$haveit"; then
9487 if test -d "$additional_includedir"; then
9488 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9489 fi
9490 fi
9491 fi
9492 fi
9493 fi
9494 if test -n "$found_la"; then
9495 save_libdir="$libdir"
9496 case "$found_la" in
9497 */* | *\\*) . "$found_la" ;;
9498 *) . "./$found_la" ;;
9499 esac
9500 libdir="$save_libdir"
9501 for dep in $dependency_libs; do
9502 case "$dep" in
9503 -L*)
9504 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9505 if test "X$additional_libdir" != "X/usr/lib"; then
9506 haveit=
9507 if test "X$additional_libdir" = "X/usr/local/lib"; then
9508 if test -n "$GCC"; then
9509 case $host_os in
9510 linux*) haveit=yes;;
9511 esac
9512 fi
9513 fi
9514 if test -z "$haveit"; then
9515 haveit=
9516 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009517
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009518 acl_save_prefix="$prefix"
9519 prefix="$acl_final_prefix"
9520 acl_save_exec_prefix="$exec_prefix"
9521 exec_prefix="$acl_final_exec_prefix"
9522 eval x=\"$x\"
9523 exec_prefix="$acl_save_exec_prefix"
9524 prefix="$acl_save_prefix"
9525
9526 if test "X$x" = "X-L$additional_libdir"; then
9527 haveit=yes
9528 break
9529 fi
9530 done
9531 if test -z "$haveit"; then
9532 if test -d "$additional_libdir"; then
9533 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9534 fi
9535 fi
9536 haveit=
9537 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009538
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009539 acl_save_prefix="$prefix"
9540 prefix="$acl_final_prefix"
9541 acl_save_exec_prefix="$exec_prefix"
9542 exec_prefix="$acl_final_exec_prefix"
9543 eval x=\"$x\"
9544 exec_prefix="$acl_save_exec_prefix"
9545 prefix="$acl_save_prefix"
9546
9547 if test "X$x" = "X-L$additional_libdir"; then
9548 haveit=yes
9549 break
9550 fi
9551 done
9552 if test -z "$haveit"; then
9553 if test -d "$additional_libdir"; then
9554 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9555 fi
9556 fi
9557 fi
9558 fi
9559 ;;
9560 -R*)
9561 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9562 if test "$enable_rpath" != no; then
9563 haveit=
9564 for x in $rpathdirs; do
9565 if test "X$x" = "X$dir"; then
9566 haveit=yes
9567 break
9568 fi
9569 done
9570 if test -z "$haveit"; then
9571 rpathdirs="$rpathdirs $dir"
9572 fi
9573 haveit=
9574 for x in $ltrpathdirs; do
9575 if test "X$x" = "X$dir"; then
9576 haveit=yes
9577 break
9578 fi
9579 done
9580 if test -z "$haveit"; then
9581 ltrpathdirs="$ltrpathdirs $dir"
9582 fi
9583 fi
9584 ;;
9585 -l*)
9586 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9587 ;;
9588 *.la)
9589 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9590 ;;
9591 *)
9592 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9593 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9594 ;;
9595 esac
9596 done
9597 fi
9598 else
9599 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9600 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9601 fi
9602 fi
9603 fi
9604 done
9605 done
9606 if test "X$rpathdirs" != "X"; then
9607 if test -n "$hardcode_libdir_separator"; then
9608 alldirs=
9609 for found_dir in $rpathdirs; do
9610 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9611 done
9612 acl_save_libdir="$libdir"
9613 libdir="$alldirs"
9614 eval flag=\"$hardcode_libdir_flag_spec\"
9615 libdir="$acl_save_libdir"
9616 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9617 else
9618 for found_dir in $rpathdirs; do
9619 acl_save_libdir="$libdir"
9620 libdir="$found_dir"
9621 eval flag=\"$hardcode_libdir_flag_spec\"
9622 libdir="$acl_save_libdir"
9623 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9624 done
9625 fi
9626 fi
9627 if test "X$ltrpathdirs" != "X"; then
9628 for found_dir in $ltrpathdirs; do
9629 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9630 done
9631 fi
9632
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009633 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9634echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9635if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009637else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009638 gt_save_CPPFLAGS="$CPPFLAGS"
9639 CPPFLAGS="$CPPFLAGS $INCINTL"
9640 gt_save_LIBS="$LIBS"
9641 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 cat >conftest.$ac_ext <<_ACEOF
9643/* confdefs.h. */
9644_ACEOF
9645cat confdefs.h >>conftest.$ac_ext
9646cat >>conftest.$ac_ext <<_ACEOF
9647/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009648#include <libintl.h>
9649extern int _nl_msg_cat_cntr;
9650extern
9651#ifdef __cplusplus
9652"C"
9653#endif
9654const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009655int
9656main ()
9657{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009658bindtextdomain ("", "");
9659return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009660 ;
9661 return 0;
9662}
9663_ACEOF
9664rm -f conftest.$ac_objext conftest$ac_exeext
9665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009685 gt_cv_func_gnugettext1_libintl=yes
9686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009687 echo "$as_me: failed program was:" >&5
9688sed 's/^/| /' conftest.$ac_ext >&5
9689
9690gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009691fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009692rm -f conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009694 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9695 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009696 cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009702#include <libintl.h>
9703extern int _nl_msg_cat_cntr;
9704extern
9705#ifdef __cplusplus
9706"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009707#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009708const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009709int
9710main ()
9711{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009712bindtextdomain ("", "");
9713return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009714 ;
9715 return 0;
9716}
9717_ACEOF
9718rm -f conftest.$ac_objext conftest$ac_exeext
9719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009739 LIBINTL="$LIBINTL $LIBICONV"
9740 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9741 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009742
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009743else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009744 echo "$as_me: failed program was:" >&5
9745sed 's/^/| /' conftest.$ac_ext >&5
9746
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009747fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009748rm -f conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009750 fi
9751 CPPFLAGS="$gt_save_CPPFLAGS"
9752 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009753fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009754echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9755echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009756 fi
9757
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009758 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9759 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009760 && test "$PACKAGE" != gettext-runtime \
9761 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009762 gt_use_preinstalled_gnugettext=yes
9763 else
9764 LIBINTL=
9765 LTLIBINTL=
9766 INCINTL=
9767 fi
9768
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009769
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009770 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9771 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009772 fi
9773 fi
9774
9775 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009776 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009777 USE_INCLUDED_LIBINTL=yes
9778 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9779 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9780 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009781 fi
9782
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009783 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9784 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9785 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009786 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009787
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009789 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9790 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791
9792cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009793#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009794_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009795
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009796 else
9797 USE_NLS=no
9798 fi
9799 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009801 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9802echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9803 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9804echo "${ECHO_T}$USE_NLS" >&6
9805 if test "$USE_NLS" = "yes"; then
9806 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9807echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9808 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9809 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9810 gt_source="external libintl"
9811 else
9812 gt_source="libc"
9813 fi
9814 else
9815 gt_source="included intl directory"
9816 fi
9817 echo "$as_me:$LINENO: result: $gt_source" >&5
9818echo "${ECHO_T}$gt_source" >&6
9819 fi
9820
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009821 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009822
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009823 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9824 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9826echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9827 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9828echo "${ECHO_T}$LIBINTL" >&6
9829
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009830 for element in $INCINTL; do
9831 haveit=
9832 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009833
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009834 acl_save_prefix="$prefix"
9835 prefix="$acl_final_prefix"
9836 acl_save_exec_prefix="$exec_prefix"
9837 exec_prefix="$acl_final_exec_prefix"
9838 eval x=\"$x\"
9839 exec_prefix="$acl_save_exec_prefix"
9840 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009841
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009842 if test "X$x" = "X$element"; then
9843 haveit=yes
9844 break
9845 fi
9846 done
9847 if test -z "$haveit"; then
9848 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9849 fi
9850 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009851
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009852 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009853
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009854
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009855cat >>confdefs.h <<\_ACEOF
9856#define HAVE_GETTEXT 1
9857_ACEOF
9858
9859
9860cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009861#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009862_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009863
9864 fi
9865
9866 POSUB=po
9867 fi
9868
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009869
9870 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009871 BUILD_INCLUDED_LIBINTL=yes
9872 fi
9873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009874
9875
9876
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009877
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009878 nls_cv_header_intl=
9879 nls_cv_header_libgt=
9880
9881 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009882
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009883
9884 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009885
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009886
9887 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009888
9889
9890 if test "$USE_INCLUDED_LIBINTL" = yes; then
9891 INTLOBJS="\$(GETTOBJS)"
9892 fi
9893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009894
9895 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009896
9897
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009898
9899 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009900
9901
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009902
9903
9904
9905
9906
9907echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9908echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9909set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9910if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009912else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009913 cat >conftest.make <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009914all:
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009915 @echo 'ac_maketemp="$(MAKE)"'
9916_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009917# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009918eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009919if test -n "$ac_maketemp"; then
9920 eval ac_cv_prog_make_${ac_make}_set=yes
9921else
9922 eval ac_cv_prog_make_${ac_make}_set=no
9923fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009924rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009925fi
9926if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009927 echo "$as_me:$LINENO: result: yes" >&5
9928echo "${ECHO_T}yes" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009929 SET_MAKE=
9930else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009933 SET_MAKE="MAKE=${MAKE-make}"
9934fi
9935
9936# Extract the first word of "ln", so it can be a program name with args.
9937set dummy ln; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009938echo "$as_me:$LINENO: checking for $ac_word" >&5
9939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9940if test "${ac_cv_path_LN+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009942else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009943 case $LN in
9944 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009945 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9946 ;;
9947 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949for as_dir in $PATH
9950do
9951 IFS=$as_save_IFS
9952 test -z "$as_dir" && as_dir=.
9953 for ac_exec_ext in '' $ac_executable_extensions; do
9954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9955 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9957 break 2
9958 fi
9959done
9960done
9961
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009962 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9963 ;;
9964esac
9965fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009966LN=$ac_cv_path_LN
9967
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009968if test -n "$LN"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009969 echo "$as_me:$LINENO: result: $LN" >&5
9970echo "${ECHO_T}$LN" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009971else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009974fi
9975
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976echo "$as_me:$LINENO: checking whether ln -s works" >&5
9977echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9978LN_S=$as_ln_s
9979if test "$LN_S" = "ln -s"; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009982else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009983 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9984echo "${ECHO_T}no, using $LN_S" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009985fi
9986
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009987# Extract the first word of "mv", so it can be a program name with args.
9988set dummy mv; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009989echo "$as_me:$LINENO: checking for $ac_word" >&5
9990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9991if test "${ac_cv_path_MV+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009993else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009994 case $MV in
9995 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9997 ;;
9998 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000for as_dir in $PATH
10001do
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10009 fi
10010done
10011done
10012
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010013 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10014 ;;
10015esac
10016fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010017MV=$ac_cv_path_MV
10018
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010019if test -n "$MV"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020 echo "$as_me:$LINENO: result: $MV" >&5
10021echo "${ECHO_T}$MV" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010022else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023 echo "$as_me:$LINENO: result: no" >&5
10024echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010025fi
10026
10027# Extract the first word of "cp", so it can be a program name with args.
10028set dummy cp; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010029echo "$as_me:$LINENO: checking for $ac_word" >&5
10030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10031if test "${ac_cv_path_CP+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010033else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010034 case $CP in
10035 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010036 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10037 ;;
10038 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040for as_dir in $PATH
10041do
10042 IFS=$as_save_IFS
10043 test -z "$as_dir" && as_dir=.
10044 for ac_exec_ext in '' $ac_executable_extensions; do
10045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10046 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10048 break 2
10049 fi
10050done
10051done
10052
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010053 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10054 ;;
10055esac
10056fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057CP=$ac_cv_path_CP
10058
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010059if test -n "$CP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010060 echo "$as_me:$LINENO: result: $CP" >&5
10061echo "${ECHO_T}$CP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010063 echo "$as_me:$LINENO: result: no" >&5
10064echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010065fi
10066
10067# Extract the first word of "rm", so it can be a program name with args.
10068set dummy rm; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010069echo "$as_me:$LINENO: checking for $ac_word" >&5
10070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10071if test "${ac_cv_path_RM+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010074 case $RM in
10075 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010076 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10077 ;;
10078 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080for as_dir in $PATH
10081do
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10086 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 break 2
10089 fi
10090done
10091done
10092
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010093 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10094 ;;
10095esac
10096fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010097RM=$ac_cv_path_RM
10098
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010099if test -n "$RM"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010100 echo "$as_me:$LINENO: result: $RM" >&5
10101echo "${ECHO_T}$RM" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010103 echo "$as_me:$LINENO: result: no" >&5
10104echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010105fi
10106
10107# Extract the first word of "chmod", so it can be a program name with args.
10108set dummy chmod; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010109echo "$as_me:$LINENO: checking for $ac_word" >&5
10110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10111if test "${ac_cv_path_CHMOD+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010113else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010114 case $CHMOD in
10115 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010116 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10117 ;;
10118 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120for as_dir in $PATH
10121do
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10126 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 break 2
10129 fi
10130done
10131done
10132
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010133 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10134 ;;
10135esac
10136fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010137CHMOD=$ac_cv_path_CHMOD
10138
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010139if test -n "$CHMOD"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010140 echo "$as_me:$LINENO: result: $CHMOD" >&5
10141echo "${ECHO_T}$CHMOD" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010143 echo "$as_me:$LINENO: result: no" >&5
10144echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010145fi
10146
Theodore Ts'o32237012005-01-17 19:13:39 -050010147for ac_prog in gawk mawk nawk awk
10148do
10149 # Extract the first word of "$ac_prog", so it can be a program name with args.
10150set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010151echo "$as_me:$LINENO: checking for $ac_word" >&5
10152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050010153if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010154 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010155else
Theodore Ts'o32237012005-01-17 19:13:39 -050010156 if test -n "$AWK"; then
10157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10158else
10159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010160for as_dir in $PATH
10161do
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010166 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 break 2
10169 fi
10170done
10171done
10172
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010173fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010174fi
10175AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010176if test -n "$AWK"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177 echo "$as_me:$LINENO: result: $AWK" >&5
10178echo "${ECHO_T}$AWK" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010179else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010180 echo "$as_me:$LINENO: result: no" >&5
10181echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010182fi
10183
Theodore Ts'o32237012005-01-17 19:13:39 -050010184 test -n "$AWK" && break
10185done
10186
10187echo "$as_me:$LINENO: checking for egrep" >&5
10188echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10189if test "${ac_cv_prog_egrep+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191else
10192 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10193 then ac_cv_prog_egrep='grep -E'
10194 else ac_cv_prog_egrep='egrep'
10195 fi
10196fi
10197echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10198echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10199 EGREP=$ac_cv_prog_egrep
10200
10201
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010202# Extract the first word of "sed", so it can be a program name with args.
10203set dummy sed; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010204echo "$as_me:$LINENO: checking for $ac_word" >&5
10205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10206if test "${ac_cv_path_SED+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010208else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209 case $SED in
10210 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010211 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10212 ;;
10213 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10221 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225done
10226done
10227
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010228 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10229 ;;
10230esac
10231fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010232SED=$ac_cv_path_SED
10233
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010234if test -n "$SED"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010235 echo "$as_me:$LINENO: result: $SED" >&5
10236echo "${ECHO_T}$SED" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010240fi
10241
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010242# Extract the first word of "perl", so it can be a program name with args.
10243set dummy perl; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010244echo "$as_me:$LINENO: checking for $ac_word" >&5
10245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10246if test "${ac_cv_path_PERL+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010248else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010249 case $PERL in
10250 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010251 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10252 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010253 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10263 break 2
10264 fi
10265done
10266done
10267
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010268 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10269 ;;
10270esac
10271fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010272PERL=$ac_cv_path_PERL
10273
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010274if test -n "$PERL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010275 echo "$as_me:$LINENO: result: $PERL" >&5
10276echo "${ECHO_T}$PERL" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010277else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010278 echo "$as_me:$LINENO: result: no" >&5
10279echo "${ECHO_T}no" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010280fi
10281
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010282# Extract the first word of "ldconfig", so it can be a program name with args.
10283set dummy ldconfig; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010284echo "$as_me:$LINENO: checking for $ac_word" >&5
10285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10286if test "${ac_cv_path_LDCONFIG+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010289 case $LDCONFIG in
10290 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010291 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10292 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010293 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295for as_dir in $PATH
10296do
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10301 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 break 2
10304 fi
10305done
10306done
10307
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010308 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10309 ;;
10310esac
10311fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010312LDCONFIG=$ac_cv_path_LDCONFIG
10313
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010314if test -n "$LDCONFIG"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010315 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10316echo "${ECHO_T}$LDCONFIG" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010317else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010318 echo "$as_me:$LINENO: result: no" >&5
10319echo "${ECHO_T}no" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010320fi
10321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010322if test -n "$ac_tool_prefix"; then
10323 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010324set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010325echo "$as_me:$LINENO: checking for $ac_word" >&5
10326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10327if test "${ac_cv_prog_AR+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010329else
10330 if test -n "$AR"; then
10331 ac_cv_prog_AR="$AR" # Let the user override the test.
10332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334for as_dir in $PATH
10335do
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340 ac_cv_prog_AR="${ac_tool_prefix}ar"
10341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 break 2
10343 fi
10344done
10345done
10346
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010347fi
10348fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010349AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010350if test -n "$AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010351 echo "$as_me:$LINENO: result: $AR" >&5
10352echo "${ECHO_T}$AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010353else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010354 echo "$as_me:$LINENO: result: no" >&5
10355echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010356fi
10357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010358fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010359if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010360 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010361 # Extract the first word of "ar", so it can be a program name with args.
10362set dummy ar; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010363echo "$as_me:$LINENO: checking for $ac_word" >&5
10364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10365if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010367else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010368 if test -n "$ac_ct_AR"; then
10369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010370else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372for as_dir in $PATH
10373do
10374 IFS=$as_save_IFS
10375 test -z "$as_dir" && as_dir=.
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10378 ac_cv_prog_ac_ct_AR="ar"
10379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 break 2
10381 fi
10382done
10383done
10384
10385 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010386fi
10387fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010388ac_ct_AR=$ac_cv_prog_ac_ct_AR
10389if test -n "$ac_ct_AR"; then
10390 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10391echo "${ECHO_T}$ac_ct_AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010392else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010393 echo "$as_me:$LINENO: result: no" >&5
10394echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010395fi
10396
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010397 AR=$ac_ct_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010398else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010399 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010400fi
10401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010402if test -n "$ac_tool_prefix"; then
10403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010404set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010405echo "$as_me:$LINENO: checking for $ac_word" >&5
10406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10407if test "${ac_cv_prog_RANLIB+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010409else
10410 if test -n "$RANLIB"; then
10411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10412else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414for as_dir in $PATH
10415do
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 break 2
10423 fi
10424done
10425done
10426
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010427fi
10428fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010429RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010430if test -n "$RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010431 echo "$as_me:$LINENO: result: $RANLIB" >&5
10432echo "${ECHO_T}$RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010433else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010434 echo "$as_me:$LINENO: result: no" >&5
10435echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010436fi
10437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010438fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010439if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010440 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010441 # Extract the first word of "ranlib", so it can be a program name with args.
10442set dummy ranlib; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010443echo "$as_me:$LINENO: checking for $ac_word" >&5
10444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10445if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010447else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010448 if test -n "$ac_ct_RANLIB"; then
10449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010450else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10458 ac_cv_prog_ac_ct_RANLIB="ranlib"
10459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10461 fi
10462done
10463done
10464
10465 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010466fi
10467fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010468ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10469if test -n "$ac_ct_RANLIB"; then
10470 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10471echo "${ECHO_T}$ac_ct_RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010472else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010473 echo "$as_me:$LINENO: result: no" >&5
10474echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010475fi
10476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010477 RANLIB=$ac_ct_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010478else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010479 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010480fi
10481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010482if test -n "$ac_tool_prefix"; then
10483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010484set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010485echo "$as_me:$LINENO: checking for $ac_word" >&5
10486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10487if test "${ac_cv_prog_STRIP+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010489else
10490 if test -n "$STRIP"; then
10491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10492else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494for as_dir in $PATH
10495do
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 break 2
10503 fi
10504done
10505done
10506
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010507fi
10508fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010510if test -n "$STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010511 echo "$as_me:$LINENO: result: $STRIP" >&5
10512echo "${ECHO_T}$STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010513else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010516fi
10517
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010518fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010519if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010521 # Extract the first word of "strip", so it can be a program name with args.
10522set dummy strip; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010523echo "$as_me:$LINENO: checking for $ac_word" >&5
10524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10525if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010527else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010528 if test -n "$ac_ct_STRIP"; then
10529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010530else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_prog_ac_ct_STRIP="strip"
10539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
10543done
10544
10545 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010546fi
10547fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010548ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10549if test -n "$ac_ct_STRIP"; then
10550 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10551echo "${ECHO_T}$ac_ct_STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010553 echo "$as_me:$LINENO: result: no" >&5
10554echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010555fi
10556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010557 STRIP=$ac_ct_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010558else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010559 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010560fi
10561
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010562# Find a good install program. We prefer a C program (faster),
10563# so one script is as good as another. But avoid the broken or
10564# incompatible versions:
10565# SysV /etc/install, /usr/sbin/install
10566# SunOS /usr/etc/install
10567# IRIX /sbin/install
10568# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010569# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000010570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010573# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010574# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10576echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010577if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010578if test "${ac_cv_path_install+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010580else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $PATH
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 # Account for people who put trailing slashes in PATH elements.
10587case $as_dir/ in
10588 ./ | .// | /cC/* | \
10589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10590 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10591 /usr/ucb/* ) ;;
10592 *)
10593 # OSF1 and SCO ODT 3.0 have their own names for install.
10594 # Don't use installbsd from OSF since it installs stuff as root
10595 # by default.
10596 for ac_prog in ginstall scoinst install; do
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010599 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010601 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010602 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010603 elif test $ac_prog = install &&
10604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10605 # program-specific install script used by HP pwplus--don't use.
10606 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010607 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10609 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010610 fi
10611 fi
10612 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010613 done
10614 ;;
10615esac
10616done
10617
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010618
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010619fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010620 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010622 else
10623 # As a last resort, use the slow shell script. We don't cache a
10624 # path for INSTALL within a source directory, because that will
10625 # break other packages using the cache if that directory is
10626 # removed, or if the path is relative.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010627 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010628 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010629fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010630echo "$as_me:$LINENO: result: $INSTALL" >&5
10631echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010632
10633# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10634# It thinks the first close brace ends the variable substitution.
10635test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000010638
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010639test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10640
Theodore Ts'o6c133521999-07-03 20:37:03 +000010641# See if we need a separate native compiler.
10642if test $cross_compiling = no; then
10643 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010644
Theodore Ts'o6c133521999-07-03 20:37:03 +000010645else
10646 for ac_prog in gcc cc
10647do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010648 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010649set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010650echo "$as_me:$LINENO: checking for $ac_word" >&5
10651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10652if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010654else
10655 if test -n "$BUILD_CC"; then
10656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010660do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665 ac_cv_prog_BUILD_CC="$ac_prog"
10666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10668 fi
10669done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010670done
10671
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010672fi
10673fi
10674BUILD_CC=$ac_cv_prog_BUILD_CC
10675if test -n "$BUILD_CC"; then
10676 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10677echo "${ECHO_T}$BUILD_CC" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010678else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010679 echo "$as_me:$LINENO: result: no" >&5
10680echo "${ECHO_T}no" >&6
10681fi
10682
10683 test -n "$BUILD_CC" && break
10684done
10685
10686fi
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010716for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010717do
10718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10719if eval "test \"\${$as_ac_Header+set}\" = set"; then
10720 echo "$as_me:$LINENO: checking for $ac_header" >&5
10721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10722if eval "test \"\${$as_ac_Header+set}\" = set"; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724fi
10725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10727else
10728 # Is the header compilable?
10729echo "$as_me:$LINENO: checking $ac_header usability" >&5
10730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10731cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h. */
10737$ac_includes_default
10738#include <$ac_header>
10739_ACEOF
10740rm -f conftest.$ac_objext
10741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10742 (eval $ac_compile) 2>conftest.er1
10743 ac_status=$?
10744 grep -v '^ *+' conftest.er1 >conftest.err
10745 rm -f conftest.er1
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_header_compiler=yes
10762else
10763 echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766ac_header_compiler=no
10767fi
10768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10770echo "${ECHO_T}$ac_header_compiler" >&6
10771
10772# Is the header present?
10773echo "$as_me:$LINENO: checking $ac_header presence" >&5
10774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10775cat >conftest.$ac_ext <<_ACEOF
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h. */
10781#include <$ac_header>
10782_ACEOF
10783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10785 ac_status=$?
10786 grep -v '^ *+' conftest.er1 >conftest.err
10787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null; then
10791 if test -s conftest.err; then
10792 ac_cpp_err=$ac_c_preproc_warn_flag
10793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10794 else
10795 ac_cpp_err=
10796 fi
10797else
10798 ac_cpp_err=yes
10799fi
10800if test -z "$ac_cpp_err"; then
10801 ac_header_preproc=yes
10802else
10803 echo "$as_me: failed program was:" >&5
10804sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ac_header_preproc=no
10807fi
10808rm -f conftest.err conftest.$ac_ext
10809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10810echo "${ECHO_T}$ac_header_preproc" >&6
10811
10812# So? What about this header?
10813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10814 yes:no: )
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10819 ac_header_preproc=yes
10820 ;;
10821 no:yes:* )
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10834 (
10835 cat <<\_ASBOX
10836## ------------------------------------------ ##
10837## Report this to the AC_PACKAGE_NAME lists. ##
10838## ------------------------------------------ ##
10839_ASBOX
10840 ) |
10841 sed "s/^/$as_me: WARNING: /" >&2
10842 ;;
10843esac
10844echo "$as_me:$LINENO: checking for $ac_header" >&5
10845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10846if eval "test \"\${$as_ac_Header+set}\" = set"; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848else
10849 eval "$as_ac_Header=\$ac_header_preproc"
10850fi
10851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10853
10854fi
10855if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856 cat >>confdefs.h <<_ACEOF
10857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858_ACEOF
10859
10860fi
10861
10862done
10863
10864
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010865
10866for ac_header in sys/disk.h sys/mount.h
10867do
10868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869echo "$as_me:$LINENO: checking for $ac_header" >&5
10870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10871if eval "test \"\${$as_ac_Header+set}\" = set"; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 cat >conftest.$ac_ext <<_ACEOF
10875/* confdefs.h. */
10876_ACEOF
10877cat confdefs.h >>conftest.$ac_ext
10878cat >>conftest.$ac_ext <<_ACEOF
10879/* end confdefs.h. */
10880
10881#if HAVE_SYS_QUEUE_H
10882#include <sys/queue.h>
10883#endif
10884
10885
10886#include <$ac_header>
10887_ACEOF
10888rm -f conftest.$ac_objext
10889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest.$ac_objext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 eval "$as_ac_Header=yes"
10910else
10911 echo "$as_me: failed program was:" >&5
10912sed 's/^/| /' conftest.$ac_ext >&5
10913
10914eval "$as_ac_Header=no"
10915fi
10916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10917fi
10918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10920if test `eval echo '${'$as_ac_Header'}'` = yes; then
10921 cat >>confdefs.h <<_ACEOF
10922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10923_ACEOF
10924
10925fi
10926
10927done
10928
10929
10930for ac_header in net/if.h
10931do
10932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10933echo "$as_me:$LINENO: checking for $ac_header" >&5
10934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10935if eval "test \"\${$as_ac_Header+set}\" = set"; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 cat >conftest.$ac_ext <<_ACEOF
10939/* confdefs.h. */
10940_ACEOF
10941cat confdefs.h >>conftest.$ac_ext
10942cat >>conftest.$ac_ext <<_ACEOF
10943/* end confdefs.h. */
10944
10945#if HAVE_SYS_TYPES_H
10946#include <sys/types.h>
10947#endif
10948#if HAVE_SYS_SOCKET
10949#include <sys/socket.h>
10950#endif
10951
10952
10953#include <$ac_header>
10954_ACEOF
10955rm -f conftest.$ac_objext
10956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957 (eval $ac_compile) 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
10964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 eval "$as_ac_Header=yes"
10977else
10978 echo "$as_me: failed program was:" >&5
10979sed 's/^/| /' conftest.$ac_ext >&5
10980
10981eval "$as_ac_Header=no"
10982fi
10983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10984fi
10985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10987if test `eval echo '${'$as_ac_Header'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10990_ACEOF
10991
10992fi
10993
10994done
10995
10996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010997for ac_func in vprintf
10998do
10999as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11000echo "$as_me:$LINENO: checking for $ac_func" >&5
11001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11002if eval "test \"\${$as_ac_var+set}\" = set"; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004else
11005 cat >conftest.$ac_ext <<_ACEOF
11006/* confdefs.h. */
11007_ACEOF
11008cat confdefs.h >>conftest.$ac_ext
11009cat >>conftest.$ac_ext <<_ACEOF
11010/* end confdefs.h. */
11011/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11013#define $ac_func innocuous_$ac_func
11014
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011015/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011016 which can conflict with char $ac_func (); below.
11017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11018 <limits.h> exists even on freestanding compilers. */
11019
11020#ifdef __STDC__
11021# include <limits.h>
11022#else
11023# include <assert.h>
11024#endif
11025
11026#undef $ac_func
11027
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011028/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011029#ifdef __cplusplus
11030extern "C"
11031{
11032#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011033/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011034 builtin and then its argument prototype would still apply. */
11035char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011036/* The GNU C library defines this for functions which it implements
11037 to always fail with ENOSYS. Some functions are actually named
11038 something starting with __ and the normal name is an alias. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011039#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011040choke me
11041#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011042char (*f) () = $ac_func;
11043#endif
11044#ifdef __cplusplus
11045}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011046#endif
11047
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011048int
11049main ()
11050{
11051return f != $ac_func;
11052 ;
11053 return 0;
11054}
11055_ACEOF
11056rm -f conftest.$ac_objext conftest$ac_exeext
11057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11058 (eval $ac_link) 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011078else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011079 echo "$as_me: failed program was:" >&5
11080sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011081
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011082eval "$as_ac_var=no"
11083fi
11084rm -f conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086fi
11087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11088echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11089if test `eval echo '${'$as_ac_var'}'` = yes; then
11090 cat >>confdefs.h <<_ACEOF
11091#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11092_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011093
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011094echo "$as_me:$LINENO: checking for _doprnt" >&5
11095echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11096if test "${ac_cv_func__doprnt+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011099 cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
11105/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11107#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011108
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011109/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011110 which can conflict with char _doprnt (); below.
11111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11112 <limits.h> exists even on freestanding compilers. */
11113
11114#ifdef __STDC__
11115# include <limits.h>
11116#else
11117# include <assert.h>
11118#endif
11119
11120#undef _doprnt
11121
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011122/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011123#ifdef __cplusplus
11124extern "C"
11125{
11126#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011127/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011128 builtin and then its argument prototype would still apply. */
11129char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011130/* The GNU C library defines this for functions which it implements
11131 to always fail with ENOSYS. Some functions are actually named
11132 something starting with __ and the normal name is an alias. */
11133#if defined (__stub__doprnt) || defined (__stub____doprnt)
11134choke me
11135#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011136char (*f) () = _doprnt;
11137#endif
11138#ifdef __cplusplus
11139}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011140#endif
11141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011142int
11143main ()
11144{
11145return f != _doprnt;
11146 ;
11147 return 0;
11148}
11149_ACEOF
11150rm -f conftest.$ac_objext conftest$ac_exeext
11151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11152 (eval $ac_link) 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011172else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011173 echo "$as_me: failed program was:" >&5
11174sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011176ac_cv_func__doprnt=no
11177fi
11178rm -f conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180fi
11181echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11182echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11183if test $ac_cv_func__doprnt = yes; then
11184
11185cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011186#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011187_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011188
11189fi
11190
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011191fi
11192done
11193
11194
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011195echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11196echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11197if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011198 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011199else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011200 cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011206#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011208int
11209main ()
11210{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011211static struct dirent ac_aggr;
11212if (ac_aggr.d_reclen)
11213return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011214 ;
11215 return 0;
11216}
11217_ACEOF
11218rm -f conftest.$ac_objext
11219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11220 (eval $ac_compile) 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011239 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011240else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011241 echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011244cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250#include <dirent.h>
11251
11252int
11253main ()
11254{
11255static struct dirent ac_aggr;
11256if (sizeof ac_aggr.d_reclen)
11257return 0;
11258 ;
11259 return 0;
11260}
11261_ACEOF
11262rm -f conftest.$ac_objext
11263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11264 (eval $ac_compile) 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_cv_member_struct_dirent_d_reclen=yes
11284else
11285 echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011289fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011291fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293fi
11294echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11295echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11296if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11297 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011298#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011299_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011300
11301fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011302
11303echo "$as_me:$LINENO: checking for ssize_t" >&5
11304echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11305if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011306 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011307else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011308 cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011314#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011316int
11317main ()
11318{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011319if ((ssize_t *) 0)
11320 return 0;
11321if (sizeof (ssize_t))
11322 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011323 ;
11324 return 0;
11325}
11326_ACEOF
11327rm -f conftest.$ac_objext
11328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; } &&
11342 { ac_try='test -s conftest.$ac_objext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011348 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011349else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011350 echo "$as_me: failed program was:" >&5
11351sed 's/^/| /' conftest.$ac_ext >&5
11352
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011353ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011354fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011356fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011357echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11358echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11359if test $ac_cv_type_ssize_t = yes; then
11360 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011361#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011362_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011363
11364fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011365
11366echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11367echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11368if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011369 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011370else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011371 cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h. */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011377#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011378
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379int
11380main ()
11381{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011382#ifndef llseek
11383 char *p = (char *) llseek;
11384#endif
11385
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011386 ;
11387 return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext
11391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011411 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011412else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413 echo "$as_me: failed program was:" >&5
11414sed 's/^/| /' conftest.$ac_ext >&5
11415
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011416ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011417fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011419fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011420echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11421echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11422if test $ac_cv_have_decl_llseek = yes; then
11423 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011424#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011425_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011426
11427fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011428
11429echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11430echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11431if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011433else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011434 cat >conftest.$ac_ext <<_ACEOF
11435/* confdefs.h. */
11436_ACEOF
11437cat confdefs.h >>conftest.$ac_ext
11438cat >>conftest.$ac_ext <<_ACEOF
11439/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011440#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011441 #define _LARGEFILE64_SOURCE
11442 #include <unistd.h>
11443
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011444int
11445main ()
11446{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011447#ifndef lseek64
11448 char *p = (char *) lseek64;
11449#endif
11450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451 ;
11452 return 0;
11453}
11454_ACEOF
11455rm -f conftest.$ac_objext
11456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11457 (eval $ac_compile) 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011476 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011477else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011478 echo "$as_me: failed program was:" >&5
11479sed 's/^/| /' conftest.$ac_ext >&5
11480
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011481ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011482fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011484fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011485echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11486echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11487if test $ac_cv_have_decl_lseek64 = yes; then
11488 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011489#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011490_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011491
11492fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011493
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011494if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011495 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011496 ac_cv_sizeof_short=2
11497 ac_cv_sizeof_int=4
11498 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000011499 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11501echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011502fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503echo "$as_me:$LINENO: checking for short" >&5
11504echo $ECHO_N "checking for short... $ECHO_C" >&6
11505if test "${ac_cv_type_short+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11507else
11508 cat >conftest.$ac_ext <<_ACEOF
11509/* confdefs.h. */
11510_ACEOF
11511cat confdefs.h >>conftest.$ac_ext
11512cat >>conftest.$ac_ext <<_ACEOF
11513/* end confdefs.h. */
11514$ac_includes_default
11515int
11516main ()
11517{
11518if ((short *) 0)
11519 return 0;
11520if (sizeof (short))
11521 return 0;
11522 ;
11523 return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext
11527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11528 (eval $ac_compile) 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_type_short=yes
11548else
11549 echo "$as_me: failed program was:" >&5
11550sed 's/^/| /' conftest.$ac_ext >&5
11551
11552ac_cv_type_short=no
11553fi
11554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11555fi
11556echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11557echo "${ECHO_T}$ac_cv_type_short" >&6
11558
11559echo "$as_me:$LINENO: checking size of short" >&5
11560echo $ECHO_N "checking size of short... $ECHO_C" >&6
11561if test "${ac_cv_sizeof_short+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563else
11564 if test "$ac_cv_type_short" = yes; then
11565 # The cast to unsigned long works around a bug in the HP C Compiler
11566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11568 # This bug is HP SR number 8606223364.
11569 if test "$cross_compiling" = yes; then
11570 # Depending upon the size, compute the lo and hi bounds.
11571cat >conftest.$ac_ext <<_ACEOF
11572/* confdefs.h. */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h. */
11577$ac_includes_default
11578int
11579main ()
11580{
11581static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11582test_array [0] = 0
11583
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588rm -f conftest.$ac_objext
11589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11590 (eval $ac_compile) 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest.$ac_objext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_lo=0 ac_mid=0
11610 while :; do
11611 cat >conftest.$ac_ext <<_ACEOF
11612/* confdefs.h. */
11613_ACEOF
11614cat confdefs.h >>conftest.$ac_ext
11615cat >>conftest.$ac_ext <<_ACEOF
11616/* end confdefs.h. */
11617$ac_includes_default
11618int
11619main ()
11620{
11621static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11622test_array [0] = 0
11623
11624 ;
11625 return 0;
11626}
11627_ACEOF
11628rm -f conftest.$ac_objext
11629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11630 (eval $ac_compile) 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_hi=$ac_mid; break
11650else
11651 echo "$as_me: failed program was:" >&5
11652sed 's/^/| /' conftest.$ac_ext >&5
11653
11654ac_lo=`expr $ac_mid + 1`
11655 if test $ac_lo -le $ac_mid; then
11656 ac_lo= ac_hi=
11657 break
11658 fi
11659 ac_mid=`expr 2 '*' $ac_mid + 1`
11660fi
11661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11662 done
11663else
11664 echo "$as_me: failed program was:" >&5
11665sed 's/^/| /' conftest.$ac_ext >&5
11666
11667cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h. */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h. */
11673$ac_includes_default
11674int
11675main ()
11676{
11677static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11678test_array [0] = 0
11679
11680 ;
11681 return 0;
11682}
11683_ACEOF
11684rm -f conftest.$ac_objext
11685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11686 (eval $ac_compile) 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try='test -s conftest.$ac_objext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_hi=-1 ac_mid=-1
11706 while :; do
11707 cat >conftest.$ac_ext <<_ACEOF
11708/* confdefs.h. */
11709_ACEOF
11710cat confdefs.h >>conftest.$ac_ext
11711cat >>conftest.$ac_ext <<_ACEOF
11712/* end confdefs.h. */
11713$ac_includes_default
11714int
11715main ()
11716{
11717static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11718test_array [0] = 0
11719
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_lo=$ac_mid; break
11746else
11747 echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
11750ac_hi=`expr '(' $ac_mid ')' - 1`
11751 if test $ac_mid -le $ac_hi; then
11752 ac_lo= ac_hi=
11753 break
11754 fi
11755 ac_mid=`expr 2 '*' $ac_mid`
11756fi
11757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11758 done
11759else
11760 echo "$as_me: failed program was:" >&5
11761sed 's/^/| /' conftest.$ac_ext >&5
11762
11763ac_lo= ac_hi=
11764fi
11765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11766fi
11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768# Binary search between lo and hi bounds.
11769while test "x$ac_lo" != "x$ac_hi"; do
11770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777$ac_includes_default
11778int
11779main ()
11780{
11781static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11782test_array [0] = 0
11783
11784 ;
11785 return 0;
11786}
11787_ACEOF
11788rm -f conftest.$ac_objext
11789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11790 (eval $ac_compile) 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_hi=$ac_mid
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814ac_lo=`expr '(' $ac_mid ')' + 1`
11815fi
11816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817done
11818case $ac_lo in
11819?*) ac_cv_sizeof_short=$ac_lo;;
11820'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11821See \`config.log' for more details." >&5
11822echo "$as_me: error: cannot compute sizeof (short), 77
11823See \`config.log' for more details." >&2;}
11824 { (exit 1); exit 1; }; } ;;
11825esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011826else
11827 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11829echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11830 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011831else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011832 cat >conftest.$ac_ext <<_ACEOF
11833/* confdefs.h. */
11834_ACEOF
11835cat confdefs.h >>conftest.$ac_ext
11836cat >>conftest.$ac_ext <<_ACEOF
11837/* end confdefs.h. */
11838$ac_includes_default
11839long longval () { return (long) (sizeof (short)); }
11840unsigned long ulongval () { return (long) (sizeof (short)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011841#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011842#include <stdlib.h>
11843int
11844main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011845{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011846
11847 FILE *f = fopen ("conftest.val", "w");
11848 if (! f)
11849 exit (1);
11850 if (((long) (sizeof (short))) < 0)
11851 {
11852 long i = longval ();
11853 if (i != ((long) (sizeof (short))))
11854 exit (1);
11855 fprintf (f, "%ld\n", i);
11856 }
11857 else
11858 {
11859 unsigned long i = ulongval ();
11860 if (i != ((long) (sizeof (short))))
11861 exit (1);
11862 fprintf (f, "%lu\n", i);
11863 }
11864 exit (ferror (f) || fclose (f) != 0);
11865
11866 ;
11867 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011868}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869_ACEOF
11870rm -f conftest$ac_exeext
11871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872 (eval $ac_link) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011882else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011883 echo "$as_me: program exited with status $ac_status" >&5
11884echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887( exit $ac_status )
11888{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11889See \`config.log' for more details." >&5
11890echo "$as_me: error: cannot compute sizeof (short), 77
11891See \`config.log' for more details." >&2;}
11892 { (exit 1); exit 1; }; }
11893fi
11894rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11895fi
11896fi
11897rm -f conftest.val
11898else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011899 ac_cv_sizeof_short=0
11900fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011901fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011902echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11903echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11904cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011905#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011906_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011907
11908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011909echo "$as_me:$LINENO: checking for int" >&5
11910echo $ECHO_N "checking for int... $ECHO_C" >&6
11911if test "${ac_cv_type_int+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913else
11914 cat >conftest.$ac_ext <<_ACEOF
11915/* confdefs.h. */
11916_ACEOF
11917cat confdefs.h >>conftest.$ac_ext
11918cat >>conftest.$ac_ext <<_ACEOF
11919/* end confdefs.h. */
11920$ac_includes_default
11921int
11922main ()
11923{
11924if ((int *) 0)
11925 return 0;
11926if (sizeof (int))
11927 return 0;
11928 ;
11929 return 0;
11930}
11931_ACEOF
11932rm -f conftest.$ac_objext
11933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_cv_type_int=yes
11954else
11955 echo "$as_me: failed program was:" >&5
11956sed 's/^/| /' conftest.$ac_ext >&5
11957
11958ac_cv_type_int=no
11959fi
11960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11961fi
11962echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11963echo "${ECHO_T}$ac_cv_type_int" >&6
11964
11965echo "$as_me:$LINENO: checking size of int" >&5
11966echo $ECHO_N "checking size of int... $ECHO_C" >&6
11967if test "${ac_cv_sizeof_int+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970 if test "$ac_cv_type_int" = yes; then
11971 # The cast to unsigned long works around a bug in the HP C Compiler
11972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11974 # This bug is HP SR number 8606223364.
11975 if test "$cross_compiling" = yes; then
11976 # Depending upon the size, compute the lo and hi bounds.
11977cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983$ac_includes_default
11984int
11985main ()
11986{
11987static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11988test_array [0] = 0
11989
11990 ;
11991 return 0;
11992}
11993_ACEOF
11994rm -f conftest.$ac_objext
11995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11996 (eval $ac_compile) 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; } &&
12009 { ac_try='test -s conftest.$ac_objext'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; }; then
12015 ac_lo=0 ac_mid=0
12016 while :; do
12017 cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023$ac_includes_default
12024int
12025main ()
12026{
12027static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12028test_array [0] = 0
12029
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034rm -f conftest.$ac_objext
12035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 ac_hi=$ac_mid; break
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
12060ac_lo=`expr $ac_mid + 1`
12061 if test $ac_lo -le $ac_mid; then
12062 ac_lo= ac_hi=
12063 break
12064 fi
12065 ac_mid=`expr 2 '*' $ac_mid + 1`
12066fi
12067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12068 done
12069else
12070 echo "$as_me: failed program was:" >&5
12071sed 's/^/| /' conftest.$ac_ext >&5
12072
12073cat >conftest.$ac_ext <<_ACEOF
12074/* confdefs.h. */
12075_ACEOF
12076cat confdefs.h >>conftest.$ac_ext
12077cat >>conftest.$ac_ext <<_ACEOF
12078/* end confdefs.h. */
12079$ac_includes_default
12080int
12081main ()
12082{
12083static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12084test_array [0] = 0
12085
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090rm -f conftest.$ac_objext
12091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>conftest.er1
12093 ac_status=$?
12094 grep -v '^ *+' conftest.er1 >conftest.err
12095 rm -f conftest.er1
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
12099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest.$ac_objext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_hi=-1 ac_mid=-1
12112 while :; do
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */
12119$ac_includes_default
12120int
12121main ()
12122{
12123static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12124test_array [0] = 0
12125
12126 ;
12127 return 0;
12128}
12129_ACEOF
12130rm -f conftest.$ac_objext
12131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12132 (eval $ac_compile) 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try='test -s conftest.$ac_objext'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_lo=$ac_mid; break
12152else
12153 echo "$as_me: failed program was:" >&5
12154sed 's/^/| /' conftest.$ac_ext >&5
12155
12156ac_hi=`expr '(' $ac_mid ')' - 1`
12157 if test $ac_mid -le $ac_hi; then
12158 ac_lo= ac_hi=
12159 break
12160 fi
12161 ac_mid=`expr 2 '*' $ac_mid`
12162fi
12163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12164 done
12165else
12166 echo "$as_me: failed program was:" >&5
12167sed 's/^/| /' conftest.$ac_ext >&5
12168
12169ac_lo= ac_hi=
12170fi
12171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12172fi
12173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174# Binary search between lo and hi bounds.
12175while test "x$ac_lo" != "x$ac_hi"; do
12176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12177 cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h. */
12183$ac_includes_default
12184int
12185main ()
12186{
12187static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12188test_array [0] = 0
12189
12190 ;
12191 return 0;
12192}
12193_ACEOF
12194rm -f conftest.$ac_objext
12195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_hi=$ac_mid
12216else
12217 echo "$as_me: failed program was:" >&5
12218sed 's/^/| /' conftest.$ac_ext >&5
12219
12220ac_lo=`expr '(' $ac_mid ')' + 1`
12221fi
12222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12223done
12224case $ac_lo in
12225?*) ac_cv_sizeof_int=$ac_lo;;
12226'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12227See \`config.log' for more details." >&5
12228echo "$as_me: error: cannot compute sizeof (int), 77
12229See \`config.log' for more details." >&2;}
12230 { (exit 1); exit 1; }; } ;;
12231esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012232else
12233 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012234 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12235echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12236 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012238 cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244$ac_includes_default
12245long longval () { return (long) (sizeof (int)); }
12246unsigned long ulongval () { return (long) (sizeof (int)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012247#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248#include <stdlib.h>
12249int
12250main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012251{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252
12253 FILE *f = fopen ("conftest.val", "w");
12254 if (! f)
12255 exit (1);
12256 if (((long) (sizeof (int))) < 0)
12257 {
12258 long i = longval ();
12259 if (i != ((long) (sizeof (int))))
12260 exit (1);
12261 fprintf (f, "%ld\n", i);
12262 }
12263 else
12264 {
12265 unsigned long i = ulongval ();
12266 if (i != ((long) (sizeof (int))))
12267 exit (1);
12268 fprintf (f, "%lu\n", i);
12269 }
12270 exit (ferror (f) || fclose (f) != 0);
12271
12272 ;
12273 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012274}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275_ACEOF
12276rm -f conftest$ac_exeext
12277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278 (eval $ac_link) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012289 echo "$as_me: program exited with status $ac_status" >&5
12290echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293( exit $ac_status )
12294{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12295See \`config.log' for more details." >&5
12296echo "$as_me: error: cannot compute sizeof (int), 77
12297See \`config.log' for more details." >&2;}
12298 { (exit 1); exit 1; }; }
12299fi
12300rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12301fi
12302fi
12303rm -f conftest.val
12304else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012305 ac_cv_sizeof_int=0
12306fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012307fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012308echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12309echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12310cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012311#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012312_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012313
12314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012315echo "$as_me:$LINENO: checking for long" >&5
12316echo $ECHO_N "checking for long... $ECHO_C" >&6
12317if test "${ac_cv_type_long+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12319else
12320 cat >conftest.$ac_ext <<_ACEOF
12321/* confdefs.h. */
12322_ACEOF
12323cat confdefs.h >>conftest.$ac_ext
12324cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h. */
12326$ac_includes_default
12327int
12328main ()
12329{
12330if ((long *) 0)
12331 return 0;
12332if (sizeof (long))
12333 return 0;
12334 ;
12335 return 0;
12336}
12337_ACEOF
12338rm -f conftest.$ac_objext
12339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12340 (eval $ac_compile) 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try='test -s conftest.$ac_objext'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 ac_cv_type_long=yes
12360else
12361 echo "$as_me: failed program was:" >&5
12362sed 's/^/| /' conftest.$ac_ext >&5
12363
12364ac_cv_type_long=no
12365fi
12366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12367fi
12368echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12369echo "${ECHO_T}$ac_cv_type_long" >&6
12370
12371echo "$as_me:$LINENO: checking size of long" >&5
12372echo $ECHO_N "checking size of long... $ECHO_C" >&6
12373if test "${ac_cv_sizeof_long+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12375else
12376 if test "$ac_cv_type_long" = yes; then
12377 # The cast to unsigned long works around a bug in the HP C Compiler
12378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12380 # This bug is HP SR number 8606223364.
12381 if test "$cross_compiling" = yes; then
12382 # Depending upon the size, compute the lo and hi bounds.
12383cat >conftest.$ac_ext <<_ACEOF
12384/* confdefs.h. */
12385_ACEOF
12386cat confdefs.h >>conftest.$ac_ext
12387cat >>conftest.$ac_ext <<_ACEOF
12388/* end confdefs.h. */
12389$ac_includes_default
12390int
12391main ()
12392{
12393static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12394test_array [0] = 0
12395
12396 ;
12397 return 0;
12398}
12399_ACEOF
12400rm -f conftest.$ac_objext
12401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402 (eval $ac_compile) 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest.$ac_objext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_lo=0 ac_mid=0
12422 while :; do
12423 cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h. */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h. */
12429$ac_includes_default
12430int
12431main ()
12432{
12433static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12434test_array [0] = 0
12435
12436 ;
12437 return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext
12441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12442 (eval $ac_compile) 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12455 { ac_try='test -s conftest.$ac_objext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_hi=$ac_mid; break
12462else
12463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466ac_lo=`expr $ac_mid + 1`
12467 if test $ac_lo -le $ac_mid; then
12468 ac_lo= ac_hi=
12469 break
12470 fi
12471 ac_mid=`expr 2 '*' $ac_mid + 1`
12472fi
12473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12474 done
12475else
12476 echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479cat >conftest.$ac_ext <<_ACEOF
12480/* confdefs.h. */
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
12484/* end confdefs.h. */
12485$ac_includes_default
12486int
12487main ()
12488{
12489static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12490test_array [0] = 0
12491
12492 ;
12493 return 0;
12494}
12495_ACEOF
12496rm -f conftest.$ac_objext
12497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest.$ac_objext'
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_hi=-1 ac_mid=-1
12518 while :; do
12519 cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525$ac_includes_default
12526int
12527main ()
12528{
12529static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12530test_array [0] = 0
12531
12532 ;
12533 return 0;
12534}
12535_ACEOF
12536rm -f conftest.$ac_objext
12537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12538 (eval $ac_compile) 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_lo=$ac_mid; break
12558else
12559 echo "$as_me: failed program was:" >&5
12560sed 's/^/| /' conftest.$ac_ext >&5
12561
12562ac_hi=`expr '(' $ac_mid ')' - 1`
12563 if test $ac_mid -le $ac_hi; then
12564 ac_lo= ac_hi=
12565 break
12566 fi
12567 ac_mid=`expr 2 '*' $ac_mid`
12568fi
12569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12570 done
12571else
12572 echo "$as_me: failed program was:" >&5
12573sed 's/^/| /' conftest.$ac_ext >&5
12574
12575ac_lo= ac_hi=
12576fi
12577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12578fi
12579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580# Binary search between lo and hi bounds.
12581while test "x$ac_lo" != "x$ac_hi"; do
12582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589$ac_includes_default
12590int
12591main ()
12592{
12593static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12594test_array [0] = 0
12595
12596 ;
12597 return 0;
12598}
12599_ACEOF
12600rm -f conftest.$ac_objext
12601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_hi=$ac_mid
12622else
12623 echo "$as_me: failed program was:" >&5
12624sed 's/^/| /' conftest.$ac_ext >&5
12625
12626ac_lo=`expr '(' $ac_mid ')' + 1`
12627fi
12628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629done
12630case $ac_lo in
12631?*) ac_cv_sizeof_long=$ac_lo;;
12632'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12633See \`config.log' for more details." >&5
12634echo "$as_me: error: cannot compute sizeof (long), 77
12635See \`config.log' for more details." >&2;}
12636 { (exit 1); exit 1; }; } ;;
12637esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012638else
12639 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012640 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12641echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12642 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012643else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012644 cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650$ac_includes_default
12651long longval () { return (long) (sizeof (long)); }
12652unsigned long ulongval () { return (long) (sizeof (long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012653#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012654#include <stdlib.h>
12655int
12656main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012657{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012658
12659 FILE *f = fopen ("conftest.val", "w");
12660 if (! f)
12661 exit (1);
12662 if (((long) (sizeof (long))) < 0)
12663 {
12664 long i = longval ();
12665 if (i != ((long) (sizeof (long))))
12666 exit (1);
12667 fprintf (f, "%ld\n", i);
12668 }
12669 else
12670 {
12671 unsigned long i = ulongval ();
12672 if (i != ((long) (sizeof (long))))
12673 exit (1);
12674 fprintf (f, "%lu\n", i);
12675 }
12676 exit (ferror (f) || fclose (f) != 0);
12677
12678 ;
12679 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012680}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012681_ACEOF
12682rm -f conftest$ac_exeext
12683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12684 (eval $ac_link) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012694else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012695 echo "$as_me: program exited with status $ac_status" >&5
12696echo "$as_me: failed program was:" >&5
12697sed 's/^/| /' conftest.$ac_ext >&5
12698
12699( exit $ac_status )
12700{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12701See \`config.log' for more details." >&5
12702echo "$as_me: error: cannot compute sizeof (long), 77
12703See \`config.log' for more details." >&2;}
12704 { (exit 1); exit 1; }; }
12705fi
12706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12707fi
12708fi
12709rm -f conftest.val
12710else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012711 ac_cv_sizeof_long=0
12712fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012713fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012714echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12715echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12716cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012717#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012718_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012719
12720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012721echo "$as_me:$LINENO: checking for long long" >&5
12722echo $ECHO_N "checking for long long... $ECHO_C" >&6
12723if test "${ac_cv_type_long_long+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725else
12726 cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h. */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h. */
12732$ac_includes_default
12733int
12734main ()
12735{
12736if ((long long *) 0)
12737 return 0;
12738if (sizeof (long long))
12739 return 0;
12740 ;
12741 return 0;
12742}
12743_ACEOF
12744rm -f conftest.$ac_objext
12745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_type_long_long=yes
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770ac_cv_type_long_long=no
12771fi
12772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12773fi
12774echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12775echo "${ECHO_T}$ac_cv_type_long_long" >&6
12776
12777echo "$as_me:$LINENO: checking size of long long" >&5
12778echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12779if test "${ac_cv_sizeof_long_long+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
12782 if test "$ac_cv_type_long_long" = yes; then
12783 # The cast to unsigned long works around a bug in the HP C Compiler
12784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12786 # This bug is HP SR number 8606223364.
12787 if test "$cross_compiling" = yes; then
12788 # Depending upon the size, compute the lo and hi bounds.
12789cat >conftest.$ac_ext <<_ACEOF
12790/* confdefs.h. */
12791_ACEOF
12792cat confdefs.h >>conftest.$ac_ext
12793cat >>conftest.$ac_ext <<_ACEOF
12794/* end confdefs.h. */
12795$ac_includes_default
12796int
12797main ()
12798{
12799static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12800test_array [0] = 0
12801
12802 ;
12803 return 0;
12804}
12805_ACEOF
12806rm -f conftest.$ac_objext
12807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; } &&
12821 { ac_try='test -s conftest.$ac_objext'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 ac_lo=0 ac_mid=0
12828 while :; do
12829 cat >conftest.$ac_ext <<_ACEOF
12830/* confdefs.h. */
12831_ACEOF
12832cat confdefs.h >>conftest.$ac_ext
12833cat >>conftest.$ac_ext <<_ACEOF
12834/* end confdefs.h. */
12835$ac_includes_default
12836int
12837main ()
12838{
12839static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12840test_array [0] = 0
12841
12842 ;
12843 return 0;
12844}
12845_ACEOF
12846rm -f conftest.$ac_objext
12847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12848 (eval $ac_compile) 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12861 { ac_try='test -s conftest.$ac_objext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 ac_hi=$ac_mid; break
12868else
12869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
12872ac_lo=`expr $ac_mid + 1`
12873 if test $ac_lo -le $ac_mid; then
12874 ac_lo= ac_hi=
12875 break
12876 fi
12877 ac_mid=`expr 2 '*' $ac_mid + 1`
12878fi
12879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12880 done
12881else
12882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
12885cat >conftest.$ac_ext <<_ACEOF
12886/* confdefs.h. */
12887_ACEOF
12888cat confdefs.h >>conftest.$ac_ext
12889cat >>conftest.$ac_ext <<_ACEOF
12890/* end confdefs.h. */
12891$ac_includes_default
12892int
12893main ()
12894{
12895static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12896test_array [0] = 0
12897
12898 ;
12899 return 0;
12900}
12901_ACEOF
12902rm -f conftest.$ac_objext
12903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 ac_hi=-1 ac_mid=-1
12924 while :; do
12925 cat >conftest.$ac_ext <<_ACEOF
12926/* confdefs.h. */
12927_ACEOF
12928cat confdefs.h >>conftest.$ac_ext
12929cat >>conftest.$ac_ext <<_ACEOF
12930/* end confdefs.h. */
12931$ac_includes_default
12932int
12933main ()
12934{
12935static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12936test_array [0] = 0
12937
12938 ;
12939 return 0;
12940}
12941_ACEOF
12942rm -f conftest.$ac_objext
12943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944 (eval $ac_compile) 2>conftest.er1
12945 ac_status=$?
12946 grep -v '^ *+' conftest.er1 >conftest.err
12947 rm -f conftest.er1
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try='test -s conftest.$ac_objext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_lo=$ac_mid; break
12964else
12965 echo "$as_me: failed program was:" >&5
12966sed 's/^/| /' conftest.$ac_ext >&5
12967
12968ac_hi=`expr '(' $ac_mid ')' - 1`
12969 if test $ac_mid -le $ac_hi; then
12970 ac_lo= ac_hi=
12971 break
12972 fi
12973 ac_mid=`expr 2 '*' $ac_mid`
12974fi
12975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12976 done
12977else
12978 echo "$as_me: failed program was:" >&5
12979sed 's/^/| /' conftest.$ac_ext >&5
12980
12981ac_lo= ac_hi=
12982fi
12983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986# Binary search between lo and hi bounds.
12987while test "x$ac_lo" != "x$ac_hi"; do
12988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12989 cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995$ac_includes_default
12996int
12997main ()
12998{
12999static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13000test_array [0] = 0
13001
13002 ;
13003 return 0;
13004}
13005_ACEOF
13006rm -f conftest.$ac_objext
13007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13008 (eval $ac_compile) 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } &&
13015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } &&
13021 { ac_try='test -s conftest.$ac_objext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_hi=$ac_mid
13028else
13029 echo "$as_me: failed program was:" >&5
13030sed 's/^/| /' conftest.$ac_ext >&5
13031
13032ac_lo=`expr '(' $ac_mid ')' + 1`
13033fi
13034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13035done
13036case $ac_lo in
13037?*) ac_cv_sizeof_long_long=$ac_lo;;
13038'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13039See \`config.log' for more details." >&5
13040echo "$as_me: error: cannot compute sizeof (long long), 77
13041See \`config.log' for more details." >&2;}
13042 { (exit 1); exit 1; }; } ;;
13043esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013044else
13045 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013046 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13047echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13048 { (exit 1); exit 1; }; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013050 cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056$ac_includes_default
13057long longval () { return (long) (sizeof (long long)); }
13058unsigned long ulongval () { return (long) (sizeof (long long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013059#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013060#include <stdlib.h>
13061int
13062main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013063{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013064
13065 FILE *f = fopen ("conftest.val", "w");
13066 if (! f)
13067 exit (1);
13068 if (((long) (sizeof (long long))) < 0)
13069 {
13070 long i = longval ();
13071 if (i != ((long) (sizeof (long long))))
13072 exit (1);
13073 fprintf (f, "%ld\n", i);
13074 }
13075 else
13076 {
13077 unsigned long i = ulongval ();
13078 if (i != ((long) (sizeof (long long))))
13079 exit (1);
13080 fprintf (f, "%lu\n", i);
13081 }
13082 exit (ferror (f) || fclose (f) != 0);
13083
13084 ;
13085 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013086}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013087_ACEOF
13088rm -f conftest$ac_exeext
13089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090 (eval $ac_link) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013101 echo "$as_me: program exited with status $ac_status" >&5
13102echo "$as_me: failed program was:" >&5
13103sed 's/^/| /' conftest.$ac_ext >&5
13104
13105( exit $ac_status )
13106{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13107See \`config.log' for more details." >&5
13108echo "$as_me: error: cannot compute sizeof (long long), 77
13109See \`config.log' for more details." >&2;}
13110 { (exit 1); exit 1; }; }
13111fi
13112rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13113fi
13114fi
13115rm -f conftest.val
13116else
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013117 ac_cv_sizeof_long_long=0
13118fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013119fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013120echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13121echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13122cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013123#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013124_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013125
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013126
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013127SIZEOF_SHORT=$ac_cv_sizeof_short
13128SIZEOF_INT=$ac_cv_sizeof_int
13129SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013130SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13131
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013132
13133
13134
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013135echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13136echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13137if test "${ac_cv_c_bigendian+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013140 # See if sys/param.h defines the BYTE_ORDER macro.
13141cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013147#include <sys/types.h>
13148#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013150int
13151main ()
13152{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013153#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13154 bogus endian macros
13155#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013156
13157 ;
13158 return 0;
13159}
13160_ACEOF
13161rm -f conftest.$ac_objext
13162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163 (eval $ac_compile) 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest.$ac_objext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013182 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013183cat >conftest.$ac_ext <<_ACEOF
13184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013189#include <sys/types.h>
13190#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013192int
13193main ()
13194{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013195#if BYTE_ORDER != BIG_ENDIAN
13196 not big endian
13197#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013198
13199 ;
13200 return 0;
13201}
13202_ACEOF
13203rm -f conftest.$ac_objext
13204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13205 (eval $ac_compile) 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013224 ac_cv_c_bigendian=yes
13225else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013226 echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228
13229ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013230fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013233 echo "$as_me: failed program was:" >&5
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
13236# It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013237if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013238 # try to guess the endianness by grepping values into an object file
13239 ac_cv_c_bigendian=unknown
13240 cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13247short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13248void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13249short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13250short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13251void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13252int
13253main ()
13254{
13255 _ascii (); _ebcdic ();
13256 ;
13257 return 0;
13258}
13259_ACEOF
13260rm -f conftest.$ac_objext
13261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262 (eval $ac_compile) 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; } &&
13275 { ac_try='test -s conftest.$ac_objext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13282 ac_cv_c_bigendian=yes
13283fi
13284if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13285 if test "$ac_cv_c_bigendian" = unknown; then
13286 ac_cv_c_bigendian=no
13287 else
13288 # finding both strings is unlikely to happen, but who knows?
13289 ac_cv_c_bigendian=unknown
13290 fi
13291fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013292else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013293 echo "$as_me: failed program was:" >&5
13294sed 's/^/| /' conftest.$ac_ext >&5
13295
13296fi
13297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13298else
13299 cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
13305int
13306main ()
13307{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013308 /* Are we little or big endian? From Harbison&Steele. */
13309 union
13310 {
13311 long l;
13312 char c[sizeof (long)];
13313 } u;
13314 u.l = 1;
13315 exit (u.c[sizeof (long) - 1] == 1);
13316}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013317_ACEOF
13318rm -f conftest$ac_exeext
13319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013329 ac_cv_c_bigendian=no
13330else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013331 echo "$as_me: program exited with status $ac_status" >&5
13332echo "$as_me: failed program was:" >&5
13333sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013334
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013335( exit $ac_status )
13336ac_cv_c_bigendian=yes
13337fi
13338rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013339fi
13340fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13342fi
13343echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13344echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13345case $ac_cv_c_bigendian in
13346 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013347
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013348cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013349#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013350_ACEOF
13351 ;;
13352 no)
13353 ;;
13354 *)
13355 { { echo "$as_me:$LINENO: error: unknown endianness
13356presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13357echo "$as_me: error: unknown endianness
13358presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13359 { (exit 1); exit 1; }; } ;;
13360esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013361
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013363for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013364do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13366if eval "test \"\${$as_ac_Header+set}\" = set"; then
13367 echo "$as_me:$LINENO: checking for $ac_header" >&5
13368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13369if eval "test \"\${$as_ac_Header+set}\" = set"; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013371fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013374else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013375 # Is the header compilable?
13376echo "$as_me:$LINENO: checking $ac_header usability" >&5
13377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13378cat >conftest.$ac_ext <<_ACEOF
13379/* confdefs.h. */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h. */
13384$ac_includes_default
13385#include <$ac_header>
13386_ACEOF
13387rm -f conftest.$ac_objext
13388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13389 (eval $ac_compile) 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest.$ac_objext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_header_compiler=yes
13409else
13410 echo "$as_me: failed program was:" >&5
13411sed 's/^/| /' conftest.$ac_ext >&5
13412
13413ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013414fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13417echo "${ECHO_T}$ac_header_compiler" >&6
13418
13419# Is the header present?
13420echo "$as_me:$LINENO: checking $ac_header presence" >&5
13421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13422cat >conftest.$ac_ext <<_ACEOF
13423/* confdefs.h. */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
13427/* end confdefs.h. */
13428#include <$ac_header>
13429_ACEOF
13430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13431 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13438 if test -s conftest.err; then
13439 ac_cpp_err=$ac_c_preproc_warn_flag
13440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13441 else
13442 ac_cpp_err=
13443 fi
13444else
13445 ac_cpp_err=yes
13446fi
13447if test -z "$ac_cpp_err"; then
13448 ac_header_preproc=yes
13449else
13450 echo "$as_me: failed program was:" >&5
13451sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 ac_header_preproc=no
13454fi
13455rm -f conftest.err conftest.$ac_ext
13456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13457echo "${ECHO_T}$ac_header_preproc" >&6
13458
13459# So? What about this header?
13460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13461 yes:no: )
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13466 ac_header_preproc=yes
13467 ;;
13468 no:yes:* )
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13481 (
13482 cat <<\_ASBOX
13483## ------------------------------------------ ##
13484## Report this to the AC_PACKAGE_NAME lists. ##
13485## ------------------------------------------ ##
13486_ASBOX
13487 ) |
13488 sed "s/^/$as_me: WARNING: /" >&2
13489 ;;
13490esac
13491echo "$as_me:$LINENO: checking for $ac_header" >&5
13492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13493if eval "test \"\${$as_ac_Header+set}\" = set"; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495else
13496 eval "$as_ac_Header=\$ac_header_preproc"
13497fi
13498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13500
13501fi
13502if test `eval echo '${'$as_ac_Header'}'` = yes; then
13503 cat >>confdefs.h <<_ACEOF
13504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13505_ACEOF
13506
13507fi
13508
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013509done
13510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013511echo "$as_me:$LINENO: checking for intptr_t" >&5
13512echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13513if test "${ac_cv_type_intptr_t+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013515else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013516 cat >conftest.$ac_ext <<_ACEOF
13517/* confdefs.h. */
13518_ACEOF
13519cat confdefs.h >>conftest.$ac_ext
13520cat >>conftest.$ac_ext <<_ACEOF
13521/* end confdefs.h. */
13522$ac_includes_default
13523int
13524main ()
13525{
13526if ((intptr_t *) 0)
13527 return 0;
13528if (sizeof (intptr_t))
13529 return 0;
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534rm -f conftest.$ac_objext
13535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013555 ac_cv_type_intptr_t=yes
13556else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013560ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013561fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013563fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013564echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13565echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13566if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013567
13568cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050013569#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013570_ACEOF
13571
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050013572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013573fi
13574
13575echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13576echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13577if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579else
13580 cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h. */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013586#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013587int
13588main ()
13589{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013590struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591 ;
13592 return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext
13596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013616 e2fsprogs_cv_struct_st_flags=yes
13617else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013618 echo "$as_me: failed program was:" >&5
13619sed 's/^/| /' conftest.$ac_ext >&5
13620
13621e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013622fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013624fi
13625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013626echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13627echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013628if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013629 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13630echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13631 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013633else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013634 cat >conftest.$ac_ext <<_ACEOF
13635/* confdefs.h. */
13636_ACEOF
13637cat confdefs.h >>conftest.$ac_ext
13638cat >>conftest.$ac_ext <<_ACEOF
13639/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013640#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013641int
13642main ()
13643{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013644struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013645 ;
13646 return 0;
13647}
13648_ACEOF
13649rm -f conftest.$ac_objext
13650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13651 (eval $ac_compile) 2>conftest.er1
13652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013670 e2fsprogs_cv_struct_st_flags_immut=yes
13671else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013672 echo "$as_me: failed program was:" >&5
13673sed 's/^/| /' conftest.$ac_ext >&5
13674
13675e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013676fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013678fi
13679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013680 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13681echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013682 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013683 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013684#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013685_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013686
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013687 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013688fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013689echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13690echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13691if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013692 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013693else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013694 cat >conftest.$ac_ext <<_ACEOF
13695/* confdefs.h. */
13696_ACEOF
13697cat confdefs.h >>conftest.$ac_ext
13698cat >>conftest.$ac_ext <<_ACEOF
13699/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013700#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013701 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013702
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013703int
13704main ()
13705{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013706static struct sockaddr ac_aggr;
13707if (ac_aggr.sa_len)
13708return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013709 ;
13710 return 0;
13711}
13712_ACEOF
13713rm -f conftest.$ac_objext
13714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest.$ac_objext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013734 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013736 echo "$as_me: failed program was:" >&5
13737sed 's/^/| /' conftest.$ac_ext >&5
13738
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013739cat >conftest.$ac_ext <<_ACEOF
13740/* confdefs.h. */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
13744/* end confdefs.h. */
13745#include <sys/types.h>
13746 #include <sys/socket.h>
13747
13748int
13749main ()
13750{
13751static struct sockaddr ac_aggr;
13752if (sizeof ac_aggr.sa_len)
13753return 0;
13754 ;
13755 return 0;
13756}
13757_ACEOF
13758rm -f conftest.$ac_objext
13759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760 (eval $ac_compile) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_member_struct_sockaddr_sa_len=yes
13780else
13781 echo "$as_me: failed program was:" >&5
13782sed 's/^/| /' conftest.$ac_ext >&5
13783
13784ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013785fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013787fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13789fi
13790echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13791echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13792if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013793
13794cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013795#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013796_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013797
13798fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013818
Theodore Ts'o1c29b092003-07-12 16:01:45 -040013819for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013820do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13822echo "$as_me:$LINENO: checking for $ac_func" >&5
13823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13824if eval "test \"\${$as_ac_var+set}\" = set"; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013826else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013827 cat >conftest.$ac_ext <<_ACEOF
13828/* confdefs.h. */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h. */
13833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13835#define $ac_func innocuous_$ac_func
13836
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013837/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013838 which can conflict with char $ac_func (); below.
13839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13840 <limits.h> exists even on freestanding compilers. */
13841
13842#ifdef __STDC__
13843# include <limits.h>
13844#else
13845# include <assert.h>
13846#endif
13847
13848#undef $ac_func
13849
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013850/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013851#ifdef __cplusplus
13852extern "C"
13853{
13854#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013855/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013856 builtin and then its argument prototype would still apply. */
13857char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013858/* The GNU C library defines this for functions which it implements
13859 to always fail with ENOSYS. Some functions are actually named
13860 something starting with __ and the normal name is an alias. */
13861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13862choke me
13863#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013864char (*f) () = $ac_func;
13865#endif
13866#ifdef __cplusplus
13867}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013868#endif
13869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013870int
13871main ()
13872{
13873return f != $ac_func;
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext conftest$ac_exeext
13879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880 (eval $ac_link) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013900else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013901 echo "$as_me: failed program was:" >&5
13902sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013904eval "$as_ac_var=no"
13905fi
13906rm -f conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
13908fi
13909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13911if test `eval echo '${'$as_ac_var'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13914_ACEOF
13915
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013916fi
13917done
13918
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013919SOCKET_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013920echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13921echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13922if test "${ac_cv_lib_socket_socket+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013924else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013925 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013926LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013927cat >conftest.$ac_ext <<_ACEOF
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
13933
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013934/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013935#ifdef __cplusplus
13936extern "C"
13937#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013938/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939 builtin and then its argument prototype would still apply. */
13940char socket ();
13941int
13942main ()
13943{
13944socket ();
13945 ;
13946 return 0;
13947}
13948_ACEOF
13949rm -f conftest.$ac_objext conftest$ac_exeext
13950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13951 (eval $ac_link) 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; } &&
13964 { ac_try='test -s conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013971else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013972 echo "$as_me: failed program was:" >&5
13973sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013975ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013976fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013977rm -f conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13979LIBS=$ac_check_lib_save_LIBS
13980fi
13981echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13982echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
13983if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013984 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013985fi
13986
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013987
Theodore Ts'obbac86b2003-03-16 06:27:22 -050013988DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013989echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13990echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13991if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050013993else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013994 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050013995LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013996cat >conftest.$ac_ext <<_ACEOF
13997/* confdefs.h. */
13998_ACEOF
13999cat confdefs.h >>conftest.$ac_ext
14000cat >>conftest.$ac_ext <<_ACEOF
14001/* end confdefs.h. */
14002
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014003/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004#ifdef __cplusplus
14005extern "C"
14006#endif
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014007/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014008 builtin and then its argument prototype would still apply. */
14009char dlopen ();
14010int
14011main ()
14012{
14013dlopen ();
14014 ;
14015 return 0;
14016}
14017_ACEOF
14018rm -f conftest.$ac_objext conftest$ac_exeext
14019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020 (eval $ac_link) 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest$ac_exeext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014041 echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014043
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014044ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014045fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014046rm -f conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14048LIBS=$ac_check_lib_save_LIBS
14049fi
14050echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14051echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14052if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014053 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014054cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014055#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014056_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014057
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014058fi
14059
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014061echo "$as_me:$LINENO: checking for optreset" >&5
14062echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14063if test "${ac_cv_have_optreset+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014065else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014066 cat >conftest.$ac_ext <<_ACEOF
14067/* confdefs.h. */
14068_ACEOF
14069cat confdefs.h >>conftest.$ac_ext
14070cat >>conftest.$ac_ext <<_ACEOF
14071/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014072#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014073
14074_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014077 ac_cv_have_optreset=yes
14078else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014079 ac_cv_have_optreset=no
14080fi
14081rm -f conftest*
14082
14083fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014084echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14085echo "${ECHO_T}$ac_cv_have_optreset" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014086if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014087 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014088#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014090
14091fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014092case "$host_os" in
14093linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014094 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014095#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014096_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014097
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014098 ;;
14099esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014100LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014101CYGWIN_CMT="#"
14102UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014103case "$host_os" in
14104linux*)
14105 LINUX_CMT=
14106 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014107cygwin)
14108 CYGWIN_CMT=
14109 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014110 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014111esac
14112
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014113
14114
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014115case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014116linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014117 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14118 root_prefix="";
14119 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014120 fi
14121 ;;
14122esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014123case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014124linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014125 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014126 prefix="/usr";
14127 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040014128 if test "$mandir" = '${prefix}/man' ; then
14129 echo "...and mandir defaults to /usr/share/man"
14130 mandir=/usr/share/man
14131 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014132 fi
14133;;
14134esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014135if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000014136 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014137 root_prefix="$ac_default_prefix"
14138 else
14139 root_prefix="$prefix"
14140 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014141 root_bindir=$bindir
14142 root_sbindir=$sbindir
14143 root_libdir=$libdir
14144 root_sysconfdir=$sysconfdir
14145else
14146 root_bindir='${root_prefix}/bin'
14147 root_sbindir='${root_prefix}/sbin'
14148 root_libdir='${root_prefix}/lib'
14149 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014150fi
14151
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014152
14153
14154
14155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014156echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14157echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14158if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000014160else
14161 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014162cat >conftest.$ac_ext <<_ACEOF
14163/* confdefs.h. */
14164_ACEOF
14165cat confdefs.h >>conftest.$ac_ext
14166cat >>conftest.$ac_ext <<_ACEOF
14167/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000014168#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014169int
14170main ()
14171{
Theodore Ts'oae851481997-04-29 18:13:24 +000014172fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014173 ;
14174 return 0;
14175}
14176_ACEOF
14177rm -f conftest.$ac_objext conftest$ac_exeext
14178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14179 (eval $ac_link) 2>conftest.er1
14180 ac_status=$?
14181 grep -v '^ *+' conftest.er1 >conftest.err
14182 rm -f conftest.er1
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; } &&
14192 { ac_try='test -s conftest$ac_exeext'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000014198 ac_cv_e2fsprogs_use_static=yes
14199else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
14203ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000014204fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014205rm -f conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000014207LDFLAGS=$SAVE_LDFLAGS
14208fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014209
Theodore Ts'odefde781999-01-04 07:39:19 +000014210case "$host_os" in
14211solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014212 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000014213;;
14214esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014215echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14216echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +000014217LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000014218if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014219 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000014220fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014221
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014222case "$host_os" in
14223darwin*)
14224 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014225 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014226#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014227_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014228
14229 ;;
14230esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014231SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14232ET_DIR=`cd ${srcdir}/lib/et; pwd`
14233
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014234
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014235if test "$cross_compiling" = yes ; then
14236 DO_TEST_SUITE=
14237else
14238 DO_TEST_SUITE=check
14239fi
14240
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040014241INTL_FLAGS=
14242if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14243 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14244fi
14245
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014246test -d lib || mkdir lib
14247test -d include || mkdir include
14248test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000014249test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050014250for i in MCONFIG Makefile e2fsprogs.spec \
14251 util/Makefile util/subst.conf util/gen-tarball \
14252 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014253 lib/uuid/Makefile lib/uuid/uuid_types.h \
14254 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050014255 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14256 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050014257 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014258 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14259 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14260 if test -d `dirname ${srcdir}/$i` ; then
14261 outlist="$outlist $i"
14262 fi
14263done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014264 ac_config_files="$ac_config_files $outlist"
14265cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014266# This file is a shell script that caches the results of configure
14267# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014268# scripts and configure runs, see configure's option --config-cache.
14269# It is not useful on other systems. If it contains results you don't
14270# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014271#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272# config.status only pays attention to the cache file if you give it
14273# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014274#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014275# `ac_cv_env_foo' variables (set or unset) will be overridden when
14276# loading this file, other *unset* `ac_cv_foo' will be assigned the
14277# following values.
14278
14279_ACEOF
14280
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014281# The following way of writing the cache mishandles newlines in values,
14282# but we know of no workaround that is simple, portable, and efficient.
14283# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014284# Ultrix sh set writes to stderr and can't be redirected directly,
14285# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014286{
14287 (set) 2>&1 |
14288 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14289 *ac_space=\ *)
14290 # `set' does not quote correctly, so add quotes (double-quote
14291 # substitution turns \\\\ into \\, and sed turns \\ into \).
14292 sed -n \
14293 "s/'/'\\\\''/g;
14294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14295 ;;
14296 *)
14297 # `set' quotes correctly as required by POSIX, so do not add quotes.
14298 sed -n \
14299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14300 ;;
14301 esac;
14302} |
14303 sed '
14304 t clear
14305 : clear
14306 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14307 t end
14308 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14309 : end' >>confcache
14310if diff $cache_file confcache >/dev/null 2>&1; then :; else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014311 if test -w $cache_file; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014312 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14313 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014314 else
14315 echo "not updating unwritable cache $cache_file"
14316 fi
14317fi
14318rm -f confcache
14319
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014320test "x$prefix" = xNONE && prefix=$ac_default_prefix
14321# Let make expand exec_prefix.
14322test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014324# VPATH may cause trouble with some makes, so we remove $(srcdir),
14325# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14326# trailing colons and then remove the whole line if VPATH becomes empty
14327# (actually we leave an empty line to preserve line numbers).
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014328if test "x$srcdir" = x.; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014329 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14330s/:*\$(srcdir):*/:/;
14331s/:*\${srcdir}:*/:/;
14332s/:*@srcdir@:*/:/;
14333s/^\([^=]*=[ ]*\):*/\1/;
14334s/:*$//;
14335s/^[^=]*=[ ]*$//;
14336}'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014337fi
14338
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014339# Transform confdefs.h into DEFS.
14340# Protect against shell expansion while executing Makefile rules.
14341# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342#
14343# If the first sed substitution is executed (which looks for macros that
14344# take arguments), then we branch to the quote section. Otherwise,
14345# look for a macro that doesn't take arguments.
14346cat >confdef2opt.sed <<\_ACEOF
14347t clear
14348: clear
14349s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14350t quote
14351s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14352t quote
14353d
14354: quote
14355s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14356s,\[,\\&,g
14357s,\],\\&,g
14358s,\$,$$,g
14359p
14360_ACEOF
14361# We use echo to avoid assuming a particular line-breaking character.
14362# The extra dot is to prevent the shell from consuming trailing
14363# line-breaks from the sub-command output. A line-break within
14364# single-quotes doesn't work because, if this script is created in a
14365# platform that uses two characters for line-breaks (e.g., DOS), tr
14366# would break.
14367ac_LF_and_DOT=`echo; echo .`
14368DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14369rm -f confdef2opt.sed
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014370
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014372ac_libobjs=
14373ac_ltlibobjs=
14374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14375 # 1. Remove the extension, and $U if already installed.
14376 ac_i=`echo "$ac_i" |
14377 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14378 # 2. Add them.
14379 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14380 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14381done
14382LIBOBJS=$ac_libobjs
14383
14384LTLIBOBJS=$ac_ltlibobjs
14385
14386
14387
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014388: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014389ac_clean_files_save=$ac_clean_files
14390ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14391{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14392echo "$as_me: creating $CONFIG_STATUS" >&6;}
14393cat >$CONFIG_STATUS <<_ACEOF
14394#! $SHELL
14395# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014396# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014397# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014398# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014400debug=false
14401ac_cs_recheck=false
14402ac_cs_silent=false
14403SHELL=\${CONFIG_SHELL-$SHELL}
14404_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014405
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014406cat >>$CONFIG_STATUS <<\_ACEOF
14407## --------------------- ##
14408## M4sh Initialization. ##
14409## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014411# Be Bourne compatible
14412if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14413 emulate sh
14414 NULLCMD=:
14415 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14416 # is contrary to our usage. Disable this feature.
14417 alias -g '${1+"$@"}'='"$@"'
14418elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14419 set -o posix
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014420fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014421DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014422
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014423# Support unset when possible.
14424if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14425 as_unset=unset
14426else
14427 as_unset=false
14428fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014429
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014430
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014431# Work around bugs in pre-3.0 UWIN ksh.
14432$as_unset ENV MAIL MAILPATH
14433PS1='$ '
14434PS2='> '
14435PS4='+ '
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014436
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014437# NLS nuisances.
14438for as_var in \
14439 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14440 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14441 LC_TELEPHONE LC_TIME
14442do
14443 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14444 eval $as_var=C; export $as_var
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014445 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014446 $as_unset $as_var
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014447 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014448done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450# Required to use basename.
14451if expr a : '\(a\)' >/dev/null 2>&1; then
14452 as_expr=expr
14453else
14454 as_expr=false
14455fi
14456
14457if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14458 as_basename=basename
14459else
14460 as_basename=false
14461fi
14462
14463
14464# Name of the executable.
14465as_me=`$as_basename "$0" ||
14466$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14467 X"$0" : 'X\(//\)$' \| \
14468 X"$0" : 'X\(/\)$' \| \
14469 . : '\(.\)' 2>/dev/null ||
14470echo X/"$0" |
14471 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14472 /^X\/\(\/\/\)$/{ s//\1/; q; }
14473 /^X\/\(\/\).*/{ s//\1/; q; }
14474 s/.*/./; q'`
14475
14476
14477# PATH needs CR, and LINENO needs CR and PATH.
14478# Avoid depending upon Character Ranges.
14479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14482as_cr_digits='0123456789'
14483as_cr_alnum=$as_cr_Letters$as_cr_digits
14484
14485# The user is always right.
14486if test "${PATH_SEPARATOR+set}" != set; then
14487 echo "#! /bin/sh" >conf$$.sh
14488 echo "exit 0" >>conf$$.sh
14489 chmod +x conf$$.sh
14490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14491 PATH_SEPARATOR=';'
14492 else
14493 PATH_SEPARATOR=:
14494 fi
14495 rm -f conf$$.sh
14496fi
14497
14498
14499 as_lineno_1=$LINENO
14500 as_lineno_2=$LINENO
14501 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14502 test "x$as_lineno_1" != "x$as_lineno_2" &&
14503 test "x$as_lineno_3" = "x$as_lineno_2" || {
14504 # Find who we are. Look in the path if we contain no path at all
14505 # relative or not.
14506 case $0 in
14507 *[\\/]* ) as_myself=$0 ;;
14508 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509for as_dir in $PATH
14510do
14511 IFS=$as_save_IFS
14512 test -z "$as_dir" && as_dir=.
14513 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14514done
14515
14516 ;;
14517 esac
14518 # We did not find ourselves, most probably we were run as `sh COMMAND'
14519 # in which case we are not to be found in the path.
14520 if test "x$as_myself" = x; then
14521 as_myself=$0
14522 fi
14523 if test ! -f "$as_myself"; then
14524 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14525echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14526 { (exit 1); exit 1; }; }
14527 fi
14528 case $CONFIG_SHELL in
14529 '')
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14532do
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 for as_base in sh bash ksh sh5; do
14536 case $as_dir in
14537 /*)
14538 if ("$as_dir/$as_base" -c '
14539 as_lineno_1=$LINENO
14540 as_lineno_2=$LINENO
14541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14542 test "x$as_lineno_1" != "x$as_lineno_2" &&
14543 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14544 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14545 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14546 CONFIG_SHELL=$as_dir/$as_base
14547 export CONFIG_SHELL
14548 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14549 fi;;
14550 esac
14551 done
14552done
14553;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014554 esac
14555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014556 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14557 # uniformly replaced by the line number. The first 'sed' inserts a
14558 # line-number line before each line; the second 'sed' does the real
14559 # work. The second script uses 'N' to pair each line-number line
14560 # with the numbered line, and appends trailing '-' during
14561 # substitution so that $LINENO is not a special case at line end.
14562 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14563 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14564 sed '=' <$as_myself |
14565 sed '
14566 N
14567 s,$,-,
14568 : loop
14569 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14570 t loop
14571 s,-$,,
14572 s,^['$as_cr_digits']*\n,,
14573 ' >$as_me.lineno &&
14574 chmod +x $as_me.lineno ||
14575 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14576echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14577 { (exit 1); exit 1; }; }
14578
14579 # Don't try to exec as it changes $[0], causing all sort of problems
14580 # (the dirname of $[0] is not the place where we might find the
14581 # original and so on. Autoconf is especially sensible to this).
14582 . ./$as_me.lineno
14583 # Exit status is that of the last command.
14584 exit
14585}
14586
14587
14588case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14589 *c*,-n*) ECHO_N= ECHO_C='
14590' ECHO_T=' ' ;;
14591 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14592 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14593esac
14594
14595if expr a : '\(a\)' >/dev/null 2>&1; then
14596 as_expr=expr
14597else
14598 as_expr=false
14599fi
14600
14601rm -f conf$$ conf$$.exe conf$$.file
14602echo >conf$$.file
14603if ln -s conf$$.file conf$$ 2>/dev/null; then
14604 # We could just check for DJGPP; but this test a) works b) is more generic
14605 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14606 if test -f conf$$.exe; then
14607 # Don't use ln at all; we don't have any links
14608 as_ln_s='cp -p'
14609 else
14610 as_ln_s='ln -s'
14611 fi
14612elif ln conf$$.file conf$$ 2>/dev/null; then
14613 as_ln_s=ln
14614else
14615 as_ln_s='cp -p'
14616fi
14617rm -f conf$$ conf$$.exe conf$$.file
14618
14619if mkdir -p . 2>/dev/null; then
14620 as_mkdir_p=:
14621else
14622 test -d ./-p && rmdir ./-p
14623 as_mkdir_p=false
14624fi
14625
14626as_executable_p="test -f"
14627
14628# Sed expression to map a string onto a valid CPP name.
14629as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14630
14631# Sed expression to map a string onto a valid variable name.
14632as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14633
14634
14635# IFS
14636# We need space, tab and new line, in precisely that order.
14637as_nl='
14638'
14639IFS=" $as_nl"
14640
14641# CDPATH.
14642$as_unset CDPATH
14643
14644exec 6>&1
14645
14646# Open the log real soon, to keep \$[0] and so on meaningful, and to
14647# report actual input values of CONFIG_FILES etc. instead of their
14648# values after options handling. Logging --version etc. is OK.
14649exec 5>>config.log
14650{
14651 echo
14652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14653## Running $as_me. ##
14654_ASBOX
14655} >&5
14656cat >&5 <<_CSEOF
14657
14658This file was extended by $as_me, which was
14659generated by GNU Autoconf 2.59. Invocation command line was
14660
14661 CONFIG_FILES = $CONFIG_FILES
14662 CONFIG_HEADERS = $CONFIG_HEADERS
14663 CONFIG_LINKS = $CONFIG_LINKS
14664 CONFIG_COMMANDS = $CONFIG_COMMANDS
14665 $ $0 $@
14666
14667_CSEOF
14668echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14669echo >&5
14670_ACEOF
14671
14672# Files that config.status was made for.
14673if test -n "$ac_config_files"; then
14674 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14675fi
14676
14677if test -n "$ac_config_headers"; then
14678 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14679fi
14680
14681if test -n "$ac_config_links"; then
14682 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14683fi
14684
14685if test -n "$ac_config_commands"; then
14686 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14687fi
14688
14689cat >>$CONFIG_STATUS <<\_ACEOF
14690
14691ac_cs_usage="\
14692\`$as_me' instantiates files from templates according to the
14693current configuration.
14694
14695Usage: $0 [OPTIONS] [FILE]...
14696
14697 -h, --help print this help, then exit
14698 -V, --version print version number, then exit
14699 -q, --quiet do not print progress messages
14700 -d, --debug don't remove temporary files
14701 --recheck update $as_me by reconfiguring in the same conditions
14702 --file=FILE[:TEMPLATE]
14703 instantiate the configuration file FILE
14704
14705Configuration files:
14706$config_files
14707
14708Configuration commands:
14709$config_commands
14710
14711Report bugs to <bug-autoconf@gnu.org>."
14712_ACEOF
14713
14714cat >>$CONFIG_STATUS <<_ACEOF
14715ac_cs_version="\\
14716config.status
14717configured by $0, generated by GNU Autoconf 2.59,
14718 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14719
14720Copyright (C) 2003 Free Software Foundation, Inc.
14721This config.status script is free software; the Free Software Foundation
14722gives unlimited permission to copy, distribute and modify it."
14723srcdir=$srcdir
14724INSTALL="$INSTALL"
14725_ACEOF
14726
14727cat >>$CONFIG_STATUS <<\_ACEOF
14728# If no file are specified by the user, then we need to provide default
14729# value. By we need to know if files were specified by the user.
14730ac_need_defaults=:
14731while test $# != 0
14732do
14733 case $1 in
14734 --*=*)
14735 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14736 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14737 ac_shift=:
14738 ;;
14739 -*)
14740 ac_option=$1
14741 ac_optarg=$2
14742 ac_shift=shift
14743 ;;
14744 *) # This is not an option, so the user has probably given explicit
14745 # arguments.
14746 ac_option=$1
14747 ac_need_defaults=false;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014748 esac
14749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750 case $ac_option in
14751 # Handling of the options.
14752_ACEOF
14753cat >>$CONFIG_STATUS <<\_ACEOF
14754 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14755 ac_cs_recheck=: ;;
14756 --version | --vers* | -V )
14757 echo "$ac_cs_version"; exit 0 ;;
14758 --he | --h)
14759 # Conflict between --help and --header
14760 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14761Try \`$0 --help' for more information." >&5
14762echo "$as_me: error: ambiguous option: $1
14763Try \`$0 --help' for more information." >&2;}
14764 { (exit 1); exit 1; }; };;
14765 --help | --hel | -h )
14766 echo "$ac_cs_usage"; exit 0 ;;
14767 --debug | --d* | -d )
14768 debug=: ;;
14769 --file | --fil | --fi | --f )
14770 $ac_shift
14771 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14772 ac_need_defaults=false;;
14773 --header | --heade | --head | --hea )
14774 $ac_shift
14775 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14776 ac_need_defaults=false;;
14777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14779 ac_cs_silent=: ;;
14780
14781 # This is an error.
14782 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14783Try \`$0 --help' for more information." >&5
14784echo "$as_me: error: unrecognized option: $1
14785Try \`$0 --help' for more information." >&2;}
14786 { (exit 1); exit 1; }; } ;;
14787
14788 *) ac_config_targets="$ac_config_targets $1" ;;
14789
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014790 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014791 shift
14792done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014793
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014794ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014796if $ac_cs_silent; then
14797 exec 6>/dev/null
14798 ac_configure_extra_args="$ac_configure_extra_args --silent"
14799fi
14800
14801_ACEOF
14802cat >>$CONFIG_STATUS <<_ACEOF
14803if \$ac_cs_recheck; then
14804 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14805 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14806fi
14807
14808_ACEOF
14809
14810cat >>$CONFIG_STATUS <<_ACEOF
14811#
14812# INIT-COMMANDS section.
14813#
14814
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014815# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014816 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014817 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014818 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014819 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14820 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014821
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014822
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014823_ACEOF
14824
14825
14826
14827cat >>$CONFIG_STATUS <<\_ACEOF
14828for ac_config_target in $ac_config_targets
14829do
14830 case "$ac_config_target" in
14831 # Handling of arguments.
14832 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14833 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14835echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14836 { (exit 1); exit 1; }; };;
14837 esac
14838done
14839
14840# If the user did not use the arguments to specify the items to instantiate,
14841# then the envvar interface is used. Set only those that are not.
14842# We use the long form for the default assignment because of an extremely
14843# bizarre bug on SunOS 4.1.3.
14844if $ac_need_defaults; then
14845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14847fi
14848
14849# Have a temporary directory for convenience. Make it in the build tree
14850# simply because there is no reason to put it here, and in addition,
14851# creating and moving files from /tmp can sometimes cause problems.
14852# Create a temporary directory, and hook for its removal unless debugging.
14853$debug ||
14854{
14855 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14856 trap '{ (exit 1); exit 1; }' 1 2 13 15
14857}
14858
14859# Create a (secure) tmp directory for tmp files.
14860
14861{
14862 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14863 test -n "$tmp" && test -d "$tmp"
14864} ||
14865{
14866 tmp=./confstat$$-$RANDOM
14867 (umask 077 && mkdir $tmp)
14868} ||
14869{
14870 echo "$me: cannot create a temporary directory in ." >&2
14871 { (exit 1); exit 1; }
14872}
14873
14874_ACEOF
14875
14876cat >>$CONFIG_STATUS <<_ACEOF
14877
14878#
14879# CONFIG_FILES section.
14880#
14881
14882# No need to generate the scripts if there are no CONFIG_FILES.
14883# This happens for instance when ./config.status config.h
14884if test -n "\$CONFIG_FILES"; then
14885 # Protect against being on the right side of a sed subst in config.status.
14886 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14887 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14888s,@SHELL@,$SHELL,;t t
14889s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14890s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14891s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14892s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14893s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14894s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14895s,@exec_prefix@,$exec_prefix,;t t
14896s,@prefix@,$prefix,;t t
14897s,@program_transform_name@,$program_transform_name,;t t
14898s,@bindir@,$bindir,;t t
14899s,@sbindir@,$sbindir,;t t
14900s,@libexecdir@,$libexecdir,;t t
14901s,@datadir@,$datadir,;t t
14902s,@sysconfdir@,$sysconfdir,;t t
14903s,@sharedstatedir@,$sharedstatedir,;t t
14904s,@localstatedir@,$localstatedir,;t t
14905s,@libdir@,$libdir,;t t
14906s,@includedir@,$includedir,;t t
14907s,@oldincludedir@,$oldincludedir,;t t
14908s,@infodir@,$infodir,;t t
14909s,@mandir@,$mandir,;t t
14910s,@build_alias@,$build_alias,;t t
14911s,@host_alias@,$host_alias,;t t
14912s,@target_alias@,$target_alias,;t t
14913s,@DEFS@,$DEFS,;t t
14914s,@ECHO_C@,$ECHO_C,;t t
14915s,@ECHO_N@,$ECHO_N,;t t
14916s,@ECHO_T@,$ECHO_T,;t t
14917s,@LIBS@,$LIBS,;t t
14918s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14919s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14920s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14921s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14922s,@build@,$build,;t t
14923s,@build_cpu@,$build_cpu,;t t
14924s,@build_vendor@,$build_vendor,;t t
14925s,@build_os@,$build_os,;t t
14926s,@host@,$host,;t t
14927s,@host_cpu@,$host_cpu,;t t
14928s,@host_vendor@,$host_vendor,;t t
14929s,@host_os@,$host_os,;t t
14930s,@CC@,$CC,;t t
14931s,@CFLAGS@,$CFLAGS,;t t
14932s,@LDFLAGS@,$LDFLAGS,;t t
14933s,@CPPFLAGS@,$CPPFLAGS,;t t
14934s,@ac_ct_CC@,$ac_ct_CC,;t t
14935s,@EXEEXT@,$EXEEXT,;t t
14936s,@OBJEXT@,$OBJEXT,;t t
14937s,@LD@,$LD,;t t
14938s,@CPP@,$CPP,;t t
14939s,@EGREP@,$EGREP,;t t
14940s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
Theodore Ts'o98919bd2005-02-04 10:43:58 -050014941s,@MAINTAINER_CMT@,$MAINTAINER_CMT,;t t
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014942s,@HTREE_CMT@,$HTREE_CMT,;t t
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014943s,@ELF_CMT@,$ELF_CMT,;t t
14944s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14945s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14946s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14947s,@LIB_EXT@,$LIB_EXT,;t t
14948s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14949s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14950s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14951s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14952s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14953s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14954s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14955s,@FSCK_PROG@,$FSCK_PROG,;t t
14956s,@FSCK_MAN@,$FSCK_MAN,;t t
14957s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14958s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14959s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14960s,@PACKAGE@,$PACKAGE,;t t
14961s,@VERSION@,$VERSION,;t t
14962s,@SET_MAKE@,$SET_MAKE,;t t
14963s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14964s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14965s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14966s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14967s,@USE_NLS@,$USE_NLS,;t t
14968s,@MSGFMT@,$MSGFMT,;t t
14969s,@GMSGFMT@,$GMSGFMT,;t t
14970s,@XGETTEXT@,$XGETTEXT,;t t
14971s,@MSGMERGE@,$MSGMERGE,;t t
14972s,@RANLIB@,$RANLIB,;t t
14973s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14974s,@ALLOCA@,$ALLOCA,;t t
14975s,@GLIBC21@,$GLIBC21,;t t
14976s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14977s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
14978s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
14979s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
14980s,@LIBICONV@,$LIBICONV,;t t
14981s,@LTLIBICONV@,$LTLIBICONV,;t t
14982s,@INTLBISON@,$INTLBISON,;t t
14983s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14984s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14985s,@CATOBJEXT@,$CATOBJEXT,;t t
14986s,@DATADIRNAME@,$DATADIRNAME,;t t
14987s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14988s,@GENCAT@,$GENCAT,;t t
14989s,@INTLOBJS@,$INTLOBJS,;t t
14990s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14991s,@INTLLIBS@,$INTLLIBS,;t t
14992s,@LIBINTL@,$LIBINTL,;t t
14993s,@LTLIBINTL@,$LTLIBINTL,;t t
14994s,@POSUB@,$POSUB,;t t
14995s,@BINARY_TYPE@,$BINARY_TYPE,;t t
14996s,@LN@,$LN,;t t
14997s,@LN_S@,$LN_S,;t t
14998s,@MV@,$MV,;t t
14999s,@CP@,$CP,;t t
15000s,@RM@,$RM,;t t
15001s,@CHMOD@,$CHMOD,;t t
15002s,@AWK@,$AWK,;t t
15003s,@SED@,$SED,;t t
15004s,@PERL@,$PERL,;t t
15005s,@LDCONFIG@,$LDCONFIG,;t t
15006s,@AR@,$AR,;t t
15007s,@ac_ct_AR@,$ac_ct_AR,;t t
15008s,@STRIP@,$STRIP,;t t
15009s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15010s,@BUILD_CC@,$BUILD_CC,;t t
15011s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15012s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15013s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15014s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15015s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15016s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15017s,@LINUX_CMT@,$LINUX_CMT,;t t
15018s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15019s,@UNIX_CMT@,$UNIX_CMT,;t t
15020s,@root_prefix@,$root_prefix,;t t
15021s,@root_bindir@,$root_bindir,;t t
15022s,@root_sbindir@,$root_sbindir,;t t
15023s,@root_libdir@,$root_libdir,;t t
15024s,@root_sysconfdir@,$root_sysconfdir,;t t
15025s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15026s,@SS_DIR@,$SS_DIR,;t t
15027s,@ET_DIR@,$ET_DIR,;t t
15028s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15029s,@INTL_FLAGS@,$INTL_FLAGS,;t t
15030s,@LIBOBJS@,$LIBOBJS,;t t
15031s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15032/@MCONFIG@/r $MCONFIG
15033s,@MCONFIG@,,;t t
15034/@MAKEFILE_ELF@/r $MAKEFILE_ELF
15035s,@MAKEFILE_ELF@,,;t t
15036/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15037s,@MAKEFILE_BSDLIB@,,;t t
15038/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15039s,@MAKEFILE_PROFILE@,,;t t
15040/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15041s,@MAKEFILE_CHECKER@,,;t t
15042/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15043s,@MAKEFILE_LIBRARY@,,;t t
15044CEOF
15045
15046_ACEOF
15047
15048 cat >>$CONFIG_STATUS <<\_ACEOF
15049 # Split the substitutions into bite-sized pieces for seds with
15050 # small command number limits, like on Digital OSF/1 and HP-UX.
15051 ac_max_sed_lines=48
15052 ac_sed_frag=1 # Number of current file.
15053 ac_beg=1 # First line for current file.
15054 ac_end=$ac_max_sed_lines # Line after last line for current file.
15055 ac_more_lines=:
15056 ac_sed_cmds=
15057 while $ac_more_lines; do
15058 if test $ac_beg -gt 1; then
15059 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15060 else
15061 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15062 fi
15063 if test ! -s $tmp/subs.frag; then
15064 ac_more_lines=false
15065 else
15066 # The purpose of the label and of the branching condition is to
15067 # speed up the sed processing (if there are no `@' at all, there
15068 # is no need to browse any of the substitutions).
15069 # These are the two extra sed commands mentioned above.
15070 (echo ':t
15071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15072 if test -z "$ac_sed_cmds"; then
15073 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15074 else
15075 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15076 fi
15077 ac_sed_frag=`expr $ac_sed_frag + 1`
15078 ac_beg=$ac_end
15079 ac_end=`expr $ac_end + $ac_max_sed_lines`
15080 fi
15081 done
15082 if test -z "$ac_sed_cmds"; then
15083 ac_sed_cmds=cat
15084 fi
15085fi # test -n "$CONFIG_FILES"
15086
15087_ACEOF
15088cat >>$CONFIG_STATUS <<\_ACEOF
15089for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15090 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15091 case $ac_file in
15092 - | *:- | *:-:* ) # input from stdin
15093 cat >$tmp/stdin
15094 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15095 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15096 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15097 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15098 * ) ac_file_in=$ac_file.in ;;
15099 esac
15100
15101 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15102 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15103$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15104 X"$ac_file" : 'X\(//\)[^/]' \| \
15105 X"$ac_file" : 'X\(//\)$' \| \
15106 X"$ac_file" : 'X\(/\)' \| \
15107 . : '\(.\)' 2>/dev/null ||
15108echo X"$ac_file" |
15109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15111 /^X\(\/\/\)$/{ s//\1/; q; }
15112 /^X\(\/\).*/{ s//\1/; q; }
15113 s/.*/./; q'`
15114 { if $as_mkdir_p; then
15115 mkdir -p "$ac_dir"
15116 else
15117 as_dir="$ac_dir"
15118 as_dirs=
15119 while test ! -d "$as_dir"; do
15120 as_dirs="$as_dir $as_dirs"
15121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15123 X"$as_dir" : 'X\(//\)[^/]' \| \
15124 X"$as_dir" : 'X\(//\)$' \| \
15125 X"$as_dir" : 'X\(/\)' \| \
15126 . : '\(.\)' 2>/dev/null ||
15127echo X"$as_dir" |
15128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15130 /^X\(\/\/\)$/{ s//\1/; q; }
15131 /^X\(\/\).*/{ s//\1/; q; }
15132 s/.*/./; q'`
15133 done
15134 test ! -n "$as_dirs" || mkdir $as_dirs
15135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15136echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15137 { (exit 1); exit 1; }; }; }
15138
15139 ac_builddir=.
15140
15141if test "$ac_dir" != .; then
15142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15143 # A "../" for each directory in $ac_dir_suffix.
15144 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15145else
15146 ac_dir_suffix= ac_top_builddir=
15147fi
15148
15149case $srcdir in
15150 .) # No --srcdir option. We are building in place.
15151 ac_srcdir=.
15152 if test -z "$ac_top_builddir"; then
15153 ac_top_srcdir=.
15154 else
15155 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15156 fi ;;
15157 [\\/]* | ?:[\\/]* ) # Absolute path.
15158 ac_srcdir=$srcdir$ac_dir_suffix;
15159 ac_top_srcdir=$srcdir ;;
15160 *) # Relative path.
15161 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15162 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15163esac
15164
15165# Do not use `cd foo && pwd` to compute absolute paths, because
15166# the directories may not exist.
15167case `pwd` in
15168.) ac_abs_builddir="$ac_dir";;
15169*)
15170 case "$ac_dir" in
15171 .) ac_abs_builddir=`pwd`;;
15172 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15173 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15174 esac;;
15175esac
15176case $ac_abs_builddir in
15177.) ac_abs_top_builddir=${ac_top_builddir}.;;
15178*)
15179 case ${ac_top_builddir}. in
15180 .) ac_abs_top_builddir=$ac_abs_builddir;;
15181 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15182 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15183 esac;;
15184esac
15185case $ac_abs_builddir in
15186.) ac_abs_srcdir=$ac_srcdir;;
15187*)
15188 case $ac_srcdir in
15189 .) ac_abs_srcdir=$ac_abs_builddir;;
15190 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15191 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15192 esac;;
15193esac
15194case $ac_abs_builddir in
15195.) ac_abs_top_srcdir=$ac_top_srcdir;;
15196*)
15197 case $ac_top_srcdir in
15198 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15199 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15200 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15201 esac;;
15202esac
15203
15204
15205 case $INSTALL in
15206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15207 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15208 esac
15209
15210 # Let's still pretend it is `configure' which instantiates (i.e., don't
15211 # use $as_me), people would be surprised to read:
15212 # /* config.h. Generated by config.status. */
15213 if test x"$ac_file" = x-; then
15214 configure_input=
15215 else
15216 configure_input="$ac_file. "
15217 fi
15218 configure_input=$configure_input"Generated from `echo $ac_file_in |
15219 sed 's,.*/,,'` by configure."
15220
15221 # First look for the input files in the build tree, otherwise in the
15222 # src tree.
15223 ac_file_inputs=`IFS=:
15224 for f in $ac_file_in; do
15225 case $f in
15226 -) echo $tmp/stdin ;;
15227 [\\/$]*)
15228 # Absolute (can't be DOS-style, as IFS=:)
15229 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15230echo "$as_me: error: cannot find input file: $f" >&2;}
15231 { (exit 1); exit 1; }; }
15232 echo "$f";;
15233 *) # Relative
15234 if test -f "$f"; then
15235 # Build tree
15236 echo "$f"
15237 elif test -f "$srcdir/$f"; then
15238 # Source tree
15239 echo "$srcdir/$f"
15240 else
15241 # /dev/null tree
15242 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15243echo "$as_me: error: cannot find input file: $f" >&2;}
15244 { (exit 1); exit 1; }; }
15245 fi;;
15246 esac
15247 done` || { (exit 1); exit 1; }
15248
15249 if test x"$ac_file" != x-; then
15250 { echo "$as_me:$LINENO: creating $ac_file" >&5
15251echo "$as_me: creating $ac_file" >&6;}
15252 rm -f "$ac_file"
15253 fi
15254_ACEOF
15255cat >>$CONFIG_STATUS <<_ACEOF
15256 sed "$ac_vpsub
15257$extrasub
15258_ACEOF
15259cat >>$CONFIG_STATUS <<\_ACEOF
15260:t
15261/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15262s,@configure_input@,$configure_input,;t t
15263s,@srcdir@,$ac_srcdir,;t t
15264s,@abs_srcdir@,$ac_abs_srcdir,;t t
15265s,@top_srcdir@,$ac_top_srcdir,;t t
15266s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15267s,@builddir@,$ac_builddir,;t t
15268s,@abs_builddir@,$ac_abs_builddir,;t t
15269s,@top_builddir@,$ac_top_builddir,;t t
15270s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15271s,@INSTALL@,$ac_INSTALL,;t t
15272" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15273 rm -f $tmp/stdin
15274 if test x"$ac_file" != x-; then
15275 mv $tmp/out $ac_file
15276 else
15277 cat $tmp/out
15278 rm -f $tmp/out
15279 fi
15280
15281done
15282_ACEOF
15283cat >>$CONFIG_STATUS <<\_ACEOF
15284
15285#
15286# CONFIG_COMMANDS section.
15287#
15288for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15289 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15290 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15291 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15292$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15293 X"$ac_dest" : 'X\(//\)[^/]' \| \
15294 X"$ac_dest" : 'X\(//\)$' \| \
15295 X"$ac_dest" : 'X\(/\)' \| \
15296 . : '\(.\)' 2>/dev/null ||
15297echo X"$ac_dest" |
15298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15300 /^X\(\/\/\)$/{ s//\1/; q; }
15301 /^X\(\/\).*/{ s//\1/; q; }
15302 s/.*/./; q'`
15303 { if $as_mkdir_p; then
15304 mkdir -p "$ac_dir"
15305 else
15306 as_dir="$ac_dir"
15307 as_dirs=
15308 while test ! -d "$as_dir"; do
15309 as_dirs="$as_dir $as_dirs"
15310 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15312 X"$as_dir" : 'X\(//\)[^/]' \| \
15313 X"$as_dir" : 'X\(//\)$' \| \
15314 X"$as_dir" : 'X\(/\)' \| \
15315 . : '\(.\)' 2>/dev/null ||
15316echo X"$as_dir" |
15317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15319 /^X\(\/\/\)$/{ s//\1/; q; }
15320 /^X\(\/\).*/{ s//\1/; q; }
15321 s/.*/./; q'`
15322 done
15323 test ! -n "$as_dirs" || mkdir $as_dirs
15324 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15325echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15326 { (exit 1); exit 1; }; }; }
15327
15328 ac_builddir=.
15329
15330if test "$ac_dir" != .; then
15331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15332 # A "../" for each directory in $ac_dir_suffix.
15333 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15334else
15335 ac_dir_suffix= ac_top_builddir=
15336fi
15337
15338case $srcdir in
15339 .) # No --srcdir option. We are building in place.
15340 ac_srcdir=.
15341 if test -z "$ac_top_builddir"; then
15342 ac_top_srcdir=.
15343 else
15344 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15345 fi ;;
15346 [\\/]* | ?:[\\/]* ) # Absolute path.
15347 ac_srcdir=$srcdir$ac_dir_suffix;
15348 ac_top_srcdir=$srcdir ;;
15349 *) # Relative path.
15350 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15351 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15352esac
15353
15354# Do not use `cd foo && pwd` to compute absolute paths, because
15355# the directories may not exist.
15356case `pwd` in
15357.) ac_abs_builddir="$ac_dir";;
15358*)
15359 case "$ac_dir" in
15360 .) ac_abs_builddir=`pwd`;;
15361 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15362 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15363 esac;;
15364esac
15365case $ac_abs_builddir in
15366.) ac_abs_top_builddir=${ac_top_builddir}.;;
15367*)
15368 case ${ac_top_builddir}. in
15369 .) ac_abs_top_builddir=$ac_abs_builddir;;
15370 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15371 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15372 esac;;
15373esac
15374case $ac_abs_builddir in
15375.) ac_abs_srcdir=$ac_srcdir;;
15376*)
15377 case $ac_srcdir in
15378 .) ac_abs_srcdir=$ac_abs_builddir;;
15379 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15380 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15381 esac;;
15382esac
15383case $ac_abs_builddir in
15384.) ac_abs_top_srcdir=$ac_top_srcdir;;
15385*)
15386 case $ac_top_srcdir in
15387 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15388 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15389 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15390 esac;;
15391esac
15392
15393
15394 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15395echo "$as_me: executing $ac_dest commands" >&6;}
15396 case $ac_dest in
15397 default-1 )
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015398 for ac_file in $CONFIG_FILES; do
15399 # Support "outfile[:infile[:infile...]]"
15400 case "$ac_file" in
15401 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015402 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015403 # PO directories have a Makefile.in generated from Makefile.in.in.
15404 case "$ac_file" in */Makefile.in)
15405 # Adjust a relative srcdir.
15406 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15407 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15408 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15409 # In autoconf-2.13 it is called $ac_given_srcdir.
15410 # In autoconf-2.50 it is called $srcdir.
15411 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15412 case "$ac_given_srcdir" in
15413 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15414 /*) top_srcdir="$ac_given_srcdir" ;;
15415 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15416 esac
15417 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15418 rm -f "$ac_dir/POTFILES"
15419 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15420 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015421 POMAKEFILEDEPS="POTFILES.in"
15422 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015423 # on $ac_dir but don't depend on user-specified configuration
15424 # parameters.
15425 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15426 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015428 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15429 fi
15430 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15431 # Hide the ALL_LINGUAS assigment from automake.
15432 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015433 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15434 else
15435 # The set of available languages was given in configure.in.
15436 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015437 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015438 # Compute POFILES
15439 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15440 # Compute UPDATEPOFILES
15441 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15442 # Compute DUMMYPOFILES
15443 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15444 # Compute GMOFILES
15445 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015446 case "$ac_given_srcdir" in
15447 .) srcdirpre= ;;
15448 *) srcdirpre='$(srcdir)/' ;;
15449 esac
15450 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015451 UPDATEPOFILES=
15452 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015453 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015454 for lang in $ALL_LINGUAS; do
15455 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015456 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15457 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015458 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015459 done
15460 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15461 # environment variable.
15462 INST_LINGUAS=
15463 if test -n "$ALL_LINGUAS"; then
15464 for presentlang in $ALL_LINGUAS; do
15465 useit=no
15466 if test "%UNSET%" != "$LINGUAS"; then
15467 desiredlanguages="$LINGUAS"
15468 else
15469 desiredlanguages="$ALL_LINGUAS"
15470 fi
15471 for desiredlang in $desiredlanguages; do
15472 # Use the presentlang catalog if desiredlang is
15473 # a. equal to presentlang, or
15474 # b. a variant of presentlang (because in this case,
15475 # presentlang can be used as a fallback for messages
15476 # which are not translated in the desiredlang catalog).
15477 case "$desiredlang" in
15478 "$presentlang"*) useit=yes;;
15479 esac
15480 done
15481 if test $useit = yes; then
15482 INST_LINGUAS="$INST_LINGUAS $presentlang"
15483 fi
15484 done
15485 fi
15486 CATALOGS=
15487 if test -n "$INST_LINGUAS"; then
15488 for lang in $INST_LINGUAS; do
15489 CATALOGS="$CATALOGS $lang.gmo"
15490 done
15491 fi
15492 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015493 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"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015494 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15495 if test -f "$f"; then
15496 case "$f" in
15497 *.orig | *.bak | *~) ;;
15498 *) cat "$f" >> "$ac_dir/Makefile" ;;
15499 esac
15500 fi
15501 done
15502 fi
15503 ;;
15504 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015505 done ;;
15506 esac
15507done
15508_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015510cat >>$CONFIG_STATUS <<\_ACEOF
15511
15512{ (exit 0); exit 0; }
15513_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015514chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015515ac_clean_files=$ac_clean_files_save
15516
15517
15518# configure is writing to config.log, and then calls config.status.
15519# config.status does its own redirection, appending to config.log.
15520# Unfortunately, on DOS this fails, as config.log is still kept open
15521# by configure, so config.status won't be able to write to it; its
15522# output is simply discarded. So we exec the FD to /dev/null,
15523# effectively closing config.log, so it can be properly (re)opened and
15524# appended to by config.status. When coming back to configure, we
15525# need to make the FD available again.
15526if test "$no_create" != yes; then
15527 ac_cs_success=:
15528 ac_config_status_args=
15529 test "$silent" = yes &&
15530 ac_config_status_args="$ac_config_status_args --quiet"
15531 exec 5>/dev/null
15532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15533 exec 5>>config.log
15534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15535 # would make configure fail if this is the last instruction.
15536 $ac_cs_success || { (exit 1); exit 1; }
15537fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015538
Theodore Ts'oee683a12005-02-05 15:53:56 -050015539if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
15540