blob: a3008ef27a8dfbaa0b525bbb35ab05a12723a981 [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'oe1052142006-10-21 21:46:47 -04003# Generated by GNU Autoconf 2.60.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040020 setopt NO_GLOB_SUBST
21else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050023fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040024BIN_SH=xpg4; export BIN_SH # for Tru64
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050025DUALCASE=1; export DUALCASE # for MKS sh
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027
Theodore Ts'oe1052142006-10-21 21:46:47 -040028# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050029# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47fi
48
Theodore Ts'oe1052142006-10-21 21:46:47 -040049# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52else
53 as_unset=false
54fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050055
Theodore Ts'oe1052142006-10-21 21:46:47 -040056
57# IFS
58# We need space, tab and new line, in precisely that order. Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" "" $as_nl"
65
66# Find who we are. Look in the path if we contain no directory separator.
67case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050070for as_dir in $PATH
71do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
Theodore Ts'oe1052142006-10-21 21:46:47 -040076IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050077
Theodore Ts'oe1052142006-10-21 21:46:47 -040078 ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83 as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500108 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115else
116 as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121else
122 as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153else
154 as_have_required=no
155fi
156
157 if test $as_have_required = yes && (eval ":
158(as_func_return () {
159 (exit \$1)
160}
161as_func_success () {
162 as_func_return 0
163}
164as_func_failure () {
165 as_func_return 1
166}
167as_func_ret_success () {
168 return 0
169}
170as_func_ret_failure () {
171 return 1
172}
173
174exitcode=0
175if as_func_success; then
176 :
177else
178 exitcode=1
179 echo as_func_success failed.
180fi
181
182if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188 :
189else
190 exitcode=1
191 echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201else
202 exitcode=1
203 echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214 :
215else
216 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -0400218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400222 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228done
229IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272 (exit $1)
273}
274as_func_success () {
275 as_func_return 0
276}
277as_func_failure () {
278 as_func_return 1
279}
280as_func_ret_success () {
281 return 0
282}
283as_func_ret_failure () {
284 return 1
285}
286
287exitcode=0
288if as_func_success; then
289 :
290else
291 exitcode=1
292 echo as_func_success failed.
293fi
294
295if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301 :
302else
303 exitcode=1
304 echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314else
315 exitcode=1
316 echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500324 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329 break
330fi
331
332fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361 (exit \$1)
362}
363as_func_success () {
364 as_func_return 0
365}
366as_func_failure () {
367 as_func_return 1
368}
369as_func_ret_success () {
370 return 0
371}
372as_func_ret_failure () {
373 return 1
374}
375
376exitcode=0
377if as_func_success; then
378 :
379else
380 exitcode=1
381 echo as_func_success failed.
382fi
383
384if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390 :
391else
392 exitcode=1
393 echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403else
404 exitcode=1
405 echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413}
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500436 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500441 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500444 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400445 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500446 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400447 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500455 # Exit status is that of the last command.
456 exit
457}
458
459
Theodore Ts'oe1052142006-10-21 21:46:47 -0400460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462else
463 as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473*)
474 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500475esac
476
Theodore Ts'oe1052142006-10-21 21:46:47 -0400477if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 as_expr=expr
480else
481 as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500499 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500500elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502else
503 as_ln_s='cp -p'
504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
Theodore Ts'oe1052142006-10-21 21:46:47 -0400515# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524else
525 as_executable_p=:
526fi
527rm -f conf$$.file
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500544#
545# Initializations.
546#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000547ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400548ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400550LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555SHELL=${CONFIG_SHELL-/bin/sh}
556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563
564ac_unique_file="version.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#if HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#if HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#if STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# if HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#if HAVE_STRING_H
583# if !STDC_HEADERS && HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#if HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#if HAVE_INTTYPES_H
592# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400593#endif
594#if HAVE_STDINT_H
595# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596#endif
597#if HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
Theodore Ts'oe1052142006-10-21 21:46:47 -0400601ac_subst_vars='SHELL
602PATH_SEPARATOR
603PACKAGE_NAME
604PACKAGE_TARNAME
605PACKAGE_VERSION
606PACKAGE_STRING
607PACKAGE_BUGREPORT
608exec_prefix
609prefix
610program_transform_name
611bindir
612sbindir
613libexecdir
614datarootdir
615datadir
616sysconfdir
617sharedstatedir
618localstatedir
619includedir
620oldincludedir
621docdir
622infodir
623htmldir
624dvidir
625pdfdir
626psdir
627libdir
628localedir
629mandir
630DEFS
631ECHO_C
632ECHO_N
633ECHO_T
634LIBS
635build_alias
636host_alias
637target_alias
638E2FSPROGS_YEAR
639E2FSPROGS_MONTH
640E2FSPROGS_DAY
641E2FSPROGS_VERSION
642build
643build_cpu
644build_vendor
645build_os
646host
647host_cpu
648host_vendor
649host_os
650CC
651CFLAGS
652LDFLAGS
653CPPFLAGS
654ac_ct_CC
655EXEEXT
656OBJEXT
657LD
658CPP
659GREP
660EGREP
661LINUX_INCLUDE
662MAINTAINER_CMT
663HTREE_CMT
664ELF_CMT
665BSDLIB_CMT
666PROFILE_CMT
667CHECKER_CMT
668LIB_EXT
669STATIC_LIB_EXT
670PROFILED_LIB_EXT
671SWAPFS_CMT
672DEBUGFS_CMT
673IMAGER_CMT
674RESIZER_CMT
675E2FSCK_TYPE
676FSCK_PROG
677FSCK_MAN
678E2INITRD_PROG
679E2INITRD_MAN
680DEVMAPPER_REQ
681DEVMAPPER_PC_LIBS
682DEVMAPPER_LIBS
683STATIC_DEVMAPPER_LIBS
684GETTEXT_PACKAGE
685PACKAGE
686VERSION
687SET_MAKE
688INSTALL_PROGRAM
689INSTALL_SCRIPT
690INSTALL_DATA
691MKINSTALLDIRS
692USE_NLS
693MSGFMT
694GMSGFMT
695XGETTEXT
696MSGMERGE
697RANLIB
698ALLOCA
699GLIBC21
700HAVE_POSIX_PRINTF
701HAVE_ASPRINTF
702HAVE_SNPRINTF
703HAVE_WPRINTF
704LIBICONV
705LTLIBICONV
706INTLBISON
707BUILD_INCLUDED_LIBINTL
708USE_INCLUDED_LIBINTL
709CATOBJEXT
710DATADIRNAME
711INSTOBJEXT
712GENCAT
713INTLOBJS
714INTL_LIBTOOL_SUFFIX_PREFIX
715INTLLIBS
716LIBINTL
717LTLIBINTL
718POSUB
719BINARY_TYPE
720LN
721LN_S
722MV
723CP
724RM
725CHMOD
726AWK
727SED
728PERL
729LDCONFIG
730AR
731STRIP
732BUILD_CC
733SIZEOF_SHORT
734SIZEOF_INT
735SIZEOF_LONG
736SIZEOF_LONG_LONG
737SOCKET_LIB
738DLOPEN_LIB
739UNI_DIFF_OPTS
740LINUX_CMT
741CYGWIN_CMT
742UNIX_CMT
743root_prefix
744root_bindir
745root_sbindir
746root_libdir
747root_sysconfdir
748LDFLAG_STATIC
749SS_DIR
750ET_DIR
751DO_TEST_SUITE
752INTL_FLAGS
753BUILD_CFLAGS
754BUILD_LDFLAGS
755LIBOBJS
756LTLIBOBJS'
757ac_subst_files='MCONFIG
758MAKEFILE_ELF
759MAKEFILE_BSDLIB
760MAKEFILE_PROFILE
761MAKEFILE_CHECKER
762MAKEFILE_LIBRARY
763ASM_TYPES_HEADER'
764 ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770CPPFLAGS
771CPP'
772
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000773
774# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500775ac_init_help=
776ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000777# The variables have the same names as the options, with
778# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500779cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000780exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000781no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000790verbose=
791x_includes=NONE
792x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400799# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000808includedir='${prefix}/include'
809oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400810docdir='${datarootdir}/doc/${PACKAGE}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000819
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000820ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400821ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000822for ac_option
823do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400826 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000827 ac_prev=
828 continue
829 fi
830
Theodore Ts'oe1052142006-10-21 21:46:47 -0400831 case $ac_option in
832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *) ac_optarg=yes ;;
834 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000835
836 # Accept the important Cygnus configure options, so we can diagnose typos.
837
Theodore Ts'oe1052142006-10-21 21:46:47 -0400838 case $ac_dashdash$ac_option in
839 --)
840 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500845 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000846
847 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500848 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500850 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000851
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500857 cache_file=$ac_optarg ;;
858
859 --config-cache | -C)
860 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000861
Theodore Ts'oe1052142006-10-21 21:46:47 -0400862 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000863 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500865 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000866
Theodore Ts'oe1052142006-10-21 21:46:47 -0400867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
873
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000874 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500875 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000876 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500877 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400881 eval enable_$ac_feature=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892
893 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500894 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500896 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
897 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898 { (exit 1); exit 1; }; }
899 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400900 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000901
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500909 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
913 with_gas=yes ;;
914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915 -help | --help | --hel | --he | -h)
916 ac_init_help=long ;;
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921
922 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500923 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500925 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000926
Theodore Ts'oe1052142006-10-21 21:46:47 -0400927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 ac_prev=htmldir ;;
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 | --ht=*)
931 htmldir=$ac_optarg ;;
932
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500938 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000939
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 ac_prev=infodir ;;
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500943 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000944
945 -libdir | --libdir | --libdi | --libd)
946 ac_prev=libdir ;;
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500948 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000949
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500955 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000956
Theodore Ts'oe1052142006-10-21 21:46:47 -0400957 -localedir | --localedir | --localedi | --localed | --locale)
958 ac_prev=localedir ;;
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
961
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000962 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400963 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500967 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000968
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 ac_prev=mandir ;;
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500972 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000973
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000974 -nfp | --nfp | --nf)
975 # Obsolete; use --without-fp.
976 with_fp=no ;;
977
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500979 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000980 no_create=yes ;;
981
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 no_recursion=yes ;;
985
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500993 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000994
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 ac_prev=prefix ;;
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500998 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000999
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001005 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001006
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001012 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001013
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001029 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001030
Theodore Ts'oe1052142006-10-21 21:46:47 -04001031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 ac_prev=pdfdir ;;
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1035
1036 -psdir | --psdir | --psdi | --psd | --ps)
1037 ac_prev=psdir ;;
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 psdir=$ac_optarg ;;
1040
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;;
1044
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 ac_prev=sbindir ;;
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001049 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001050
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1054 | --sha | --sh)
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001060 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001061
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 -site | --site | --sit)
1063 ac_prev=site ;;
1064 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001065 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001066
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 ac_prev=srcdir ;;
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001071
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001077 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001078
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001082 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001083
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 verbose=yes ;;
1086
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001089
1090 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001092 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001093 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid package name: $ac_package" >&2
1095 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001096 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001097 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001098
1099 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001100 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001101 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001102 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_package=`echo $ac_package | sed 's/-/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001106 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001107
1108 --x)
1109 # Obsolete; use --with-x.
1110 with_x=yes ;;
1111
1112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113 | --x-incl | --x-inc | --x-in | --x-i)
1114 ac_prev=x_includes ;;
1115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001117 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001118
1119 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121 ac_prev=x_libraries ;;
1122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001124 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001126 -*) { echo "$as_me: error: unrecognized option: $ac_option
1127Try \`$0 --help' for more information." >&2
1128 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129 ;;
1130
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001131 *=*)
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1136 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001137 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001138 export $ac_envvar ;;
1139
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001140 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001141 # FIXME: should be removed in autoconf 3.0.
1142 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146 ;;
1147
1148 esac
1149done
1150
1151if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153 { echo "$as_me: error: missing argument to $ac_option" >&2
1154 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001155fi
1156
Theodore Ts'oe1052142006-10-21 21:46:47 -04001157# Be sure to have absolute directory names.
1158for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159 datadir sysconfdir sharedstatedir localstatedir includedir \
1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001162do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001163 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001164 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001165 [\\/$]* | ?:[\\/]* ) continue;;
1166 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001167 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001168 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1169 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001170done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001171
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001172# There might be people who depend on the old broken behavior: `$host'
1173# used to hold the argument of --host etc.
1174# FIXME: To remove some day.
1175build=$build_alias
1176host=$host_alias
1177target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001179# FIXME: To remove some day.
1180if test "x$host_alias" != x; then
1181 if test "x$build_alias" = x; then
1182 cross_compiling=maybe
1183 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184 If a cross compiler is detected then cross compile mode will be used." >&2
1185 elif test "x$build_alias" != "x$host_alias"; then
1186 cross_compiling=yes
1187 fi
1188fi
1189
1190ac_tool_prefix=
1191test -n "$host_alias" && ac_tool_prefix=$host_alias-
1192
1193test "$silent" = yes && exec 6>/dev/null
1194
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001195
Theodore Ts'oe1052142006-10-21 21:46:47 -04001196ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197ac_ls_di=`ls -di .` &&
1198ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1199 { echo "$as_me: error: Working directory cannot be determined" >&2
1200 { (exit 1); exit 1; }; }
1201test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202 { echo "$as_me: error: pwd does not report name of working directory" >&2
1203 { (exit 1); exit 1; }; }
1204
1205
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001206# Find the source files, if location was not specified.
1207if test -z "$srcdir"; then
1208 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001211$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$0" : 'X\(//\)[^/]' \| \
1213 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001215echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\/\)[^/].*/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\/\)$/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\).*/{
1229 s//\1/
1230 q
1231 }
1232 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001233 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001234 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001235 srcdir=..
1236 fi
1237else
1238 ac_srcdir_defaulted=no
1239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001240if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001243 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001244fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001245ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246ac_abs_confdir=`(
1247 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001248 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001249 pwd)`
1250# When building in place, set srcdir=.
1251if test "$ac_abs_confdir" = "$ac_pwd"; then
1252 srcdir=.
1253fi
1254# Remove unnecessary trailing slashes from srcdir.
1255# Double slashes in file names in object file debugging info
1256# mess up M-x gdb in Emacs.
1257case $srcdir in
1258*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1259esac
1260for ac_var in $ac_precious_vars; do
1261 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_env_${ac_var}_value=\$${ac_var}
1263 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1265done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001267#
1268# Report the --help message.
1269#
1270if test "$ac_init_help" = "long"; then
1271 # Omit some internal or obsolete options to make the list less imposing.
1272 # This message is too long to be a string in the A/UX 3.1 sh.
1273 cat <<_ACEOF
1274\`configure' configures this package to adapt to many kinds of systems.
1275
1276Usage: $0 [OPTION]... [VAR=VALUE]...
1277
1278To assign environment variables (e.g., CC, CFLAGS...), specify them as
1279VAR=VALUE. See below for descriptions of some of the useful variables.
1280
1281Defaults for the options are specified in brackets.
1282
1283Configuration:
1284 -h, --help display this help and exit
1285 --help=short display options specific to this package
1286 --help=recursive display the short help of all the included packages
1287 -V, --version display version information and exit
1288 -q, --quiet, --silent do not print \`checking...' messages
1289 --cache-file=FILE cache test results in FILE [disabled]
1290 -C, --config-cache alias for \`--cache-file=config.cache'
1291 -n, --no-create do not create output files
1292 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1293
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001294Installation directories:
1295 --prefix=PREFIX install architecture-independent files in PREFIX
1296 [$ac_default_prefix]
1297 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1298 [PREFIX]
1299
1300By default, \`make install' will install all the files in
1301\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1302an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1303for instance \`--prefix=\$HOME'.
1304
1305For better control, use the options below.
1306
1307Fine tuning of the installation directories:
1308 --bindir=DIR user executables [EPREFIX/bin]
1309 --sbindir=DIR system admin executables [EPREFIX/sbin]
1310 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001311 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1312 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1313 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1314 --libdir=DIR object code libraries [EPREFIX/lib]
1315 --includedir=DIR C header files [PREFIX/include]
1316 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001317 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1318 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1319 --infodir=DIR info documentation [DATAROOTDIR/info]
1320 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1321 --mandir=DIR man documentation [DATAROOTDIR/man]
1322 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1323 --htmldir=DIR html documentation [DOCDIR]
1324 --dvidir=DIR dvi documentation [DOCDIR]
1325 --pdfdir=DIR pdf documentation [DOCDIR]
1326 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001327_ACEOF
1328
1329 cat <<\_ACEOF
1330
1331System types:
1332 --build=BUILD configure for building on BUILD [guessed]
1333 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1334_ACEOF
1335fi
1336
1337if test -n "$ac_init_help"; then
1338
1339 cat <<\_ACEOF
1340
1341Optional Features:
1342 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1343 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001344 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001345 --enable-compression enable EXPERIMENTAL compression support
1346 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001347 --enable-elf-shlibs select ELF shared libraries
1348 --enable-bsd-shlibs select BSD shared libraries
1349 --enable-profile build profiling libraries
1350 --enable-checker build checker libraries
1351 --enable-jbd-debug enable journal debugging
1352 --enable-blkid-debug enable blkid debugging
1353 --enable-testio-debug enable the use of the test I/O manager for debugging
1354 --disable-swapfs disable support of legacy byte-swapped filesystems
1355 --disable-debugfs disable support of debugfs program
1356 --disable-imager disable support of e2image program
1357 --disable-resizer disable support of e2resize program
1358 --enable-dynamic-e2fsck build e2fsck dynamically
1359 --enable-fsck build fsck wrapper program
1360 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001361 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001362 --disable-nls do not use Native Language Support
1363 --disable-rpath do not hardcode runtime library paths
1364
1365Optional Packages:
1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1368 --with-diet-libc Use diet libc
1369 --with-cc=COMPILER select compiler to use
1370 --with-linker=LINKER select linker to use
1371 --with-ccopts=CCOPTS select compiler command line options
1372 --with-ldopts=LDOPTS select linker command line options
1373 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1374 --with-gnu-ld assume the C compiler uses GNU ld default=no
1375 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1376 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1377 --with-included-gettext use the GNU gettext library included here
1378 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1379 --without-libintl-prefix don't search for libintl in includedir and libdir
1380
1381Some influential environment variables:
1382 CC C compiler command
1383 CFLAGS C compiler flags
1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1385 nonstandard directory <lib dir>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001388 CPP C preprocessor
1389
1390Use these variables to override the choices made by `configure' or to help
1391it to find libraries and programs with nonstandard names/locations.
1392
1393_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001394ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001395fi
1396
1397if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001400 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001401 ac_builddir=.
1402
Theodore Ts'oe1052142006-10-21 21:46:47 -04001403case "$ac_dir" in
1404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413esac
1414ac_abs_top_builddir=$ac_pwd
1415ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416# for backward compatibility:
1417ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001418
1419case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001420 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001421 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001425 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001432esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001434
Theodore Ts'oe1052142006-10-21 21:46:47 -04001435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001447 done
1448fi
1449
Theodore Ts'oe1052142006-10-21 21:46:47 -04001450test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001451if $ac_init_version; then
1452 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001453configure
1454generated by GNU Autoconf 2.60
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001455
Theodore Ts'oe1052142006-10-21 21:46:47 -04001456Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001458This configure script is free software; the Free Software Foundation
1459gives unlimited permission to copy, distribute and modify it.
1460_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001461 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001462fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001463cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001464This file contains any messages produced by compilers while
1465running configure, to aid debugging if configure makes a mistake.
1466
1467It was created by $as_me, which was
Theodore Ts'oe1052142006-10-21 21:46:47 -04001468generated by GNU Autoconf 2.60. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469
1470 $ $0 $@
1471
1472_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001473exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474{
1475cat <<_ASUNAME
1476## --------- ##
1477## Platform. ##
1478## --------- ##
1479
1480hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485
1486/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488
1489/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001492/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001493/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496
1497_ASUNAME
1498
1499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001506IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001507
1508} >&5
1509
1510cat >&5 <<_ACEOF
1511
1512
1513## ----------- ##
1514## Core tests. ##
1515## ----------- ##
1516
1517_ACEOF
1518
1519
1520# Keep a trace of the command line.
1521# Strip out --no-create and --no-recursion so they do not pile up.
1522# Strip out --silent because we don't want to record it for future runs.
1523# Also quote any args containing shell meta-characters.
1524# Make two passes to allow for proper duplicate-argument suppression.
1525ac_configure_args=
1526ac_configure_args0=
1527ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528ac_must_keep_next=false
1529for ac_pass in 1 2
1530do
1531 for ac_arg
1532 do
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001538 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 2)
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1556 ;;
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1559 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001560 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001561 ;;
1562 esac
1563 done
1564done
1565$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567
1568# When interrupted or exit'd, cleanup temporary files, and complete
1569# config.log. We remove comments because anyway the quotes in there
1570# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001571# WARNING: Use '\'' to represent an apostrophe within the trap.
1572# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001573trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1575 {
1576 echo
1577
1578 cat <<\_ASBOX
1579## ---------------- ##
1580## Cache variables. ##
1581## ---------------- ##
1582_ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001585(
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001600 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001603 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001607 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001609 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610 esac |
1611 sort
1612)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001613 echo
1614
1615 cat <<\_ASBOX
1616## ----------------- ##
1617## Output variables. ##
1618## ----------------- ##
1619_ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1622 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001628 done | sort
1629 echo
1630
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633## ------------------- ##
1634## File substitutions. ##
1635## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636_ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1639 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001645 done | sort
1646 echo
1647 fi
1648
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651## ----------- ##
1652## confdefs.h. ##
1653## ----------- ##
1654_ASBOX
1655 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001657 echo
1658 fi
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001665 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001666' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001667for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669done
1670ac_signal=0
1671
1672# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001673rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001674
1675# Predefined preprocessor variables.
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_NAME "$PACKAGE_NAME"
1679_ACEOF
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_VERSION "$PACKAGE_VERSION"
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_STRING "$PACKAGE_STRING"
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699_ACEOF
1700
1701
1702# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001703# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001704if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001712shift
1713for ac_site_file
1714do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001715 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001719 . "$ac_site_file"
1720 fi
1721done
1722
1723if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001732 esac
1733 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001734else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1738fi
1739
1740# Check that the precious variables saved in the cache have kept the same
1741# value.
1742ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001743for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001744 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1745 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001746 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1747 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001748 case $ac_old_set,$ac_new_set in
1749 set,)
1750 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1751echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1752 ac_cache_corrupted=: ;;
1753 ,set)
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1755echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,);;
1758 *)
1759 if test "x$ac_old_val" != "x$ac_new_val"; then
1760 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1761echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1762 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1763echo "$as_me: former value: $ac_old_val" >&2;}
1764 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1765echo "$as_me: current value: $ac_new_val" >&2;}
1766 ac_cache_corrupted=:
1767 fi;;
1768 esac
1769 # Pass precious variables to config.status.
1770 if test "$ac_new_set" = set; then
1771 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001772 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001773 *) ac_arg=$ac_var=$ac_new_val ;;
1774 esac
1775 case " $ac_configure_args " in
1776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1777 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778 esac
1779 fi
1780done
1781if $ac_cache_corrupted; then
1782 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1783echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1785echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1786 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001787fi
1788
Theodore Ts'oe1052142006-10-21 21:46:47 -04001789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001805ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001806ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001811
1812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001813ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001814for ac_dir in config "$srcdir"/config; do
1815 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install-sh -c"
1818 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001819 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/install.sh -c"
1822 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001823 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001824 ac_aux_dir=$ac_dir
1825 ac_install_sh="$ac_aux_dir/shtool install -c"
1826 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001827 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001828done
1829if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001830 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1831echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001832 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001833fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001834
1835# These three variables are undocumented and unsupported,
1836# and are intended to be withdrawn in a future Autoconf release.
1837# They can cause serious problems if a builder's source tree is in a directory
1838# whose full name contains unusual characters.
1839ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1840ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1841ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1842
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001843
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001844MCONFIG=./MCONFIG
1845
Theodore Ts'o74becf31997-04-26 14:37:06 +00001846BINARY_TYPE=bin
1847E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1848 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1849DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1850 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001851E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001852MONTH=`echo $DATE | awk -F- '{print $2}'`
1853YEAR=`echo $DATE | awk -F- '{print $3}'`
1854
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001855if expr $YEAR ">" 1900 > /dev/null ; then
1856 E2FSPROGS_YEAR=$YEAR
1857elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001858 E2FSPROGS_YEAR=19$YEAR
1859else
1860 E2FSPROGS_YEAR=20$YEAR
1861fi
1862
1863case $MONTH in
1864Jan) E2FSPROGS_MONTH="January" ;;
1865Feb) E2FSPROGS_MONTH="February" ;;
1866Mar) E2FSPROGS_MONTH="March" ;;
1867Apr) E2FSPROGS_MONTH="April" ;;
1868May) E2FSPROGS_MONTH="May" ;;
1869Jun) E2FSPROGS_MONTH="June" ;;
1870Jul) E2FSPROGS_MONTH="July" ;;
1871Aug) E2FSPROGS_MONTH="August" ;;
1872Sep) E2FSPROGS_MONTH="September" ;;
1873Oct) E2FSPROGS_MONTH="October" ;;
1874Nov) E2FSPROGS_MONTH="November" ;;
1875Dec) E2FSPROGS_MONTH="December" ;;
1876*) echo "Unknown month $MONTH??" ;;
1877esac
1878
1879unset DATE MONTH YEAR
1880echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1881echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1882
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001883
1884
1885
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001886# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001887$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1888 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1889echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001890 { (exit 1); exit 1; }; }
1891
Theodore Ts'oe1052142006-10-21 21:46:47 -04001892{ echo "$as_me:$LINENO: checking build system type" >&5
1893echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001894if test "${ac_cv_build+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001897 ac_build_alias=$build_alias
1898test "x$ac_build_alias" = x &&
1899 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1900test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001901 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1902echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1903 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001904ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1905 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1906echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001907 { (exit 1); exit 1; }; }
1908
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001909fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001910{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1911echo "${ECHO_T}$ac_cv_build" >&6; }
1912case $ac_cv_build in
1913*-*-*) ;;
1914*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1915echo "$as_me: error: invalid value of canonical build" >&2;}
1916 { (exit 1); exit 1; }; };;
1917esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001918build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001919ac_save_IFS=$IFS; IFS='-'
1920set x $ac_cv_build
1921shift
1922build_cpu=$1
1923build_vendor=$2
1924shift; shift
1925# Remember, the first character of IFS is used to create $*,
1926# except with old shells:
1927build_os=$*
1928IFS=$ac_save_IFS
1929case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001930
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001931
Theodore Ts'oe1052142006-10-21 21:46:47 -04001932{ echo "$as_me:$LINENO: checking host system type" >&5
1933echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001934if test "${ac_cv_host+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001937 if test "x$host_alias" = x; then
1938 ac_cv_host=$ac_cv_build
1939else
1940 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1941 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1942echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001943 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001944fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001946fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001947{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1948echo "${ECHO_T}$ac_cv_host" >&6; }
1949case $ac_cv_host in
1950*-*-*) ;;
1951*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1952echo "$as_me: error: invalid value of canonical host" >&2;}
1953 { (exit 1); exit 1; }; };;
1954esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001955host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001956ac_save_IFS=$IFS; IFS='-'
1957set x $ac_cv_host
1958shift
1959host_cpu=$1
1960host_vendor=$2
1961shift; shift
1962# Remember, the first character of IFS is used to create $*,
1963# except with old shells:
1964host_os=$*
1965IFS=$ac_save_IFS
1966case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001967
1968
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001969
Theodore Ts'oe1052142006-10-21 21:46:47 -04001970# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001971if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001972 withval=$with_diet_libc; CC="diet cc -nostdinc"
1973{ echo "$as_me:$LINENO: result: CC=$CC" >&5
1974echo "${ECHO_T}CC=$CC" >&6; }
1975fi
1976
1977# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001978if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001979 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
1980echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00001981CC=$withval
1982else
1983 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001984{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1985echo "${ECHO_T}CC defaults to $CC" >&6; }
1986fi
1987export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00001988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001989ac_ext=c
1990ac_cpp='$CPP $CPPFLAGS'
1991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994if test -n "$ac_tool_prefix"; then
1995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1996set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001999if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002001else
2002 if test -n "$CC"; then
2003 ac_cv_prog_CC="$CC" # Let the user override the test.
2004else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 break 2
2015 fi
2016done
2017done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002018IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002019
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002020fi
2021fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002022CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002023if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002024 { echo "$as_me:$LINENO: result: $CC" >&5
2025echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002026else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002027 { echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002029fi
2030
Theodore Ts'oe1052142006-10-21 21:46:47 -04002031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002032fi
2033if test -z "$ac_cv_prog_CC"; then
2034 ac_ct_CC=$CC
2035 # Extract the first word of "gcc", so it can be a program name with args.
2036set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042 if test -n "$ac_ct_CC"; then
2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044else
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002052 ac_cv_prog_ac_ct_CC="gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2055 fi
2056done
2057done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002059
2060fi
2061fi
2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002064 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002066else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002067 { echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002069fi
2070
Theodore Ts'oe1052142006-10-21 21:46:47 -04002071 if test "x$ac_ct_CC" = x; then
2072 CC=""
2073 else
2074 case $cross_compiling:$ac_tool_warned in
2075yes:)
2076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2077whose name does not start with the host triplet. If you think this
2078configuration is useful to you, please write to autoconf@gnu.org." >&5
2079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2080whose name does not start with the host triplet. If you think this
2081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2082ac_tool_warned=yes ;;
2083esac
2084 CC=$ac_ct_CC
2085 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002086else
2087 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002088fi
2089
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002090if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002091 if test -n "$ac_tool_prefix"; then
2092 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002093set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002096if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002098else
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2101else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002109 ac_cv_prog_CC="${ac_tool_prefix}cc"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 break 2
2112 fi
2113done
2114done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002115IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002116
2117fi
2118fi
2119CC=$ac_cv_prog_CC
2120if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002121 { echo "$as_me:$LINENO: result: $CC" >&5
2122echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002123else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002124 { echo "$as_me:$LINENO: result: no" >&5
2125echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002126fi
2127
Theodore Ts'oe1052142006-10-21 21:46:47 -04002128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002129 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002130fi
2131if test -z "$CC"; then
2132 # Extract the first word of "cc", so it can be a program name with args.
2133set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002136if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2141else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002142 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002150 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2151 ac_prog_rejected=yes
2152 continue
2153 fi
2154 ac_cv_prog_CC="cc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 break 2
2157 fi
2158done
2159done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002160IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002161
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002162if test $ac_prog_rejected = yes; then
2163 # We found a bogon in the path, so make sure we never use it.
2164 set dummy $ac_cv_prog_CC
2165 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002166 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002167 # We chose a different compiler from the bogus one.
2168 # However, it has the same basename, so the bogon will be chosen
2169 # first if we set CC to just the basename; use the full file name.
2170 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002171 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002172 fi
2173fi
2174fi
2175fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002176CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002177if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002178 { echo "$as_me:$LINENO: result: $CC" >&5
2179echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002180else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002181 { echo "$as_me:$LINENO: result: no" >&5
2182echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002183fi
2184
Theodore Ts'oe1052142006-10-21 21:46:47 -04002185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002186fi
2187if test -z "$CC"; then
2188 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002189 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002190 do
2191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002195if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002197else
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2200else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002208 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2211 fi
2212done
2213done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002214IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002215
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002216fi
2217fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002218CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002219if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002220 { echo "$as_me:$LINENO: result: $CC" >&5
2221echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002222else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002223 { echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002225fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002226
Theodore Ts'oe1052142006-10-21 21:46:47 -04002227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002228 test -n "$CC" && break
2229 done
2230fi
2231if test -z "$CC"; then
2232 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002233 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002234do
2235 # Extract the first word of "$ac_prog", so it can be a program name with args.
2236set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242 if test -n "$ac_ct_CC"; then
2243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244else
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002252 ac_cv_prog_ac_ct_CC="$ac_prog"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002255 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002256done
2257done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002258IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002259
2260fi
2261fi
2262ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002264 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002266else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002267 { echo "$as_me:$LINENO: result: no" >&5
2268echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002269fi
2270
Theodore Ts'oe1052142006-10-21 21:46:47 -04002271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002272 test -n "$ac_ct_CC" && break
2273done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002274
Theodore Ts'oe1052142006-10-21 21:46:47 -04002275 if test "x$ac_ct_CC" = x; then
2276 CC=""
2277 else
2278 case $cross_compiling:$ac_tool_warned in
2279yes:)
2280{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2281whose name does not start with the host triplet. If you think this
2282configuration is useful to you, please write to autoconf@gnu.org." >&5
2283echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2284whose name does not start with the host triplet. If you think this
2285configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2286ac_tool_warned=yes ;;
2287esac
2288 CC=$ac_ct_CC
2289 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002290fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002292fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002293
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002295test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2296See \`config.log' for more details." >&5
2297echo "$as_me: error: no acceptable C compiler found in \$PATH
2298See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
2300
2301# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002302echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002303ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002304{ (ac_try="$ac_compiler --version >&5"
2305case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308esac
2309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002314{ (ac_try="$ac_compiler -v >&5"
2315case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318esac
2319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2320 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002324{ (ac_try="$ac_compiler -V >&5"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2334
2335cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h. */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h. */
2341
2342int
2343main ()
2344{
2345
2346 ;
2347 return 0;
2348}
2349_ACEOF
2350ac_clean_files_save=$ac_clean_files
2351ac_clean_files="$ac_clean_files a.out a.exe b.out"
2352# Try to create an executable without -o first, disregard a.out.
2353# It will help us diagnose broken compilers, and finding out an intuition
2354# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002355{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2356echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002357ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002358#
2359# List of possible output files, starting from the most likely.
2360# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2361# only as a last resort. b.out is created by i960 compilers.
2362ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2363#
2364# The IRIX 6 linker writes into existing files which may not be
2365# executable, retaining their permissions. Remove them first so a
2366# subsequent execution test works.
2367ac_rmfiles=
2368for ac_file in $ac_files
2369do
2370 case $ac_file in
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2373 esac
2374done
2375rm -f $ac_rmfiles
2376
2377if { (ac_try="$ac_link_default"
2378case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2388# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2389# in a Makefile. We should not override ac_cv_exeext if it was cached,
2390# so that the user can short-circuit this test for compilers unknown to
2391# Autoconf.
2392for ac_file in $ac_files
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002393do
2394 test -f "$ac_file" || continue
2395 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002397 ;;
2398 [ab].out )
2399 # We found the default executable, but exeext='' is most
2400 # certainly right.
2401 break;;
2402 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2404 then :; else
2405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2406 fi
2407 # We set ac_cv_exeext here because the later test for it is not
2408 # safe: cross compilers may not add the suffix if given an `-o'
2409 # argument, so we may need to know it at that point already.
2410 # Even if this section looks crufty: it has the advantage of
2411 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002412 break;;
2413 * )
2414 break;;
2415 esac
2416done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002417test "$ac_cv_exeext" = no && ac_cv_exeext=
2418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002419else
2420 echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2424See \`config.log' for more details." >&5
2425echo "$as_me: error: C compiler cannot create executables
2426See \`config.log' for more details." >&2;}
2427 { (exit 77); exit 77; }; }
2428fi
2429
2430ac_exeext=$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002431{ echo "$as_me:$LINENO: result: $ac_file" >&5
2432echo "${ECHO_T}$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433
Theodore Ts'oe1052142006-10-21 21:46:47 -04002434# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002435# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2437echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002438# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2439# If not cross compiling, check that we can run a simple program.
2440if test "$cross_compiling" != yes; then
2441 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445esac
2446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002452 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 if test "$cross_compiling" = maybe; then
2454 cross_compiling=yes
2455 else
2456 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2457If you meant to cross compile, use \`--host'.
2458See \`config.log' for more details." >&5
2459echo "$as_me: error: cannot run C compiled programs.
2460If you meant to cross compile, use \`--host'.
2461See \`config.log' for more details." >&2;}
2462 { (exit 1); exit 1; }; }
2463 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002464 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002465fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002466{ echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469rm -f a.out a.exe conftest$ac_cv_exeext b.out
2470ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002471# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002472# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002473{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2474echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2475{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2476echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002477
Theodore Ts'oe1052142006-10-21 21:46:47 -04002478{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2479echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2480if { (ac_try="$ac_link"
2481case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; then
2490 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2491# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2492# work properly (i.e., refer to `conftest.exe'), while it won't with
2493# `rm'.
2494for ac_file in conftest.exe conftest conftest.*; do
2495 test -f "$ac_file" || continue
2496 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002499 break;;
2500 * ) break;;
2501 esac
2502done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002503else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2505See \`config.log' for more details." >&5
2506echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2507See \`config.log' for more details." >&2;}
2508 { (exit 1); exit 1; }; }
2509fi
2510
2511rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2513echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514
2515rm -f conftest.$ac_ext
2516EXEEXT=$ac_cv_exeext
2517ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002518{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2519echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520if test "${ac_cv_objext+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523 cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h. */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h. */
2529
2530int
2531main ()
2532{
2533
2534 ;
2535 return 0;
2536}
2537_ACEOF
2538rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002539if { (ac_try="$ac_compile"
2540case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543esac
2544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002549 for ac_file in conftest.o conftest.obj conftest.*; do
2550 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2554 break;;
2555 esac
2556done
2557else
2558 echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
2561{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2562See \`config.log' for more details." >&5
2563echo "$as_me: error: cannot compute suffix of object files: cannot compile
2564See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; }
2566fi
2567
2568rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002570{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2571echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572OBJEXT=$ac_cv_objext
2573ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002574{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2575echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002576if test "${ac_cv_c_compiler_gnu+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579 cat >conftest.$ac_ext <<_ACEOF
2580/* confdefs.h. */
2581_ACEOF
2582cat confdefs.h >>conftest.$ac_ext
2583cat >>conftest.$ac_ext <<_ACEOF
2584/* end confdefs.h. */
2585
2586int
2587main ()
2588{
2589#ifndef __GNUC__
2590 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002591#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002593 ;
2594 return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002598if { (ac_try="$ac_compile"
2599case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602esac
2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04002611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2612 { (case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615esac
2616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002622 { (case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2625esac
2626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002632else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002633 echo "$as_me: failed program was:" >&5
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
Theodore Ts'oe1052142006-10-21 21:46:47 -04002636 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002637fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002638
2639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002640ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002642fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002643{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2644echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002645GCC=`test $ac_compiler_gnu = yes && echo yes`
2646ac_test_CFLAGS=${CFLAGS+set}
2647ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002648{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2649echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002650if test "${ac_cv_prog_cc_g+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002652else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002653 ac_save_c_werror_flag=$ac_c_werror_flag
2654 ac_c_werror_flag=yes
2655 ac_cv_prog_cc_g=no
2656 CFLAGS="-g"
2657 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658/* confdefs.h. */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h. */
2663
2664int
2665main ()
2666{
2667
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002673if { (ac_try="$ac_compile"
2674case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677esac
2678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04002686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2687 { (case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002697 { (case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002706 ac_cv_prog_cc_g=yes
2707else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002708 echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002710
Theodore Ts'oe1052142006-10-21 21:46:47 -04002711 CFLAGS=""
2712 cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h. */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h. */
2718
2719int
2720main ()
2721{
2722
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (ac_try="$ac_compile"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 :
2762else
2763 echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 ac_c_werror_flag=$ac_save_c_werror_flag
2767 CFLAGS="-g"
2768 cat >conftest.$ac_ext <<_ACEOF
2769/* confdefs.h. */
2770_ACEOF
2771cat confdefs.h >>conftest.$ac_ext
2772cat >>conftest.$ac_ext <<_ACEOF
2773/* end confdefs.h. */
2774
2775int
2776main ()
2777{
2778
2779 ;
2780 return 0;
2781}
2782_ACEOF
2783rm -f conftest.$ac_objext
2784if { (ac_try="$ac_compile"
2785case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788esac
2789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compile") 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2798 { (case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_try") 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; } &&
2807 { ac_try='test -s conftest.$ac_objext'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811esac
2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_cv_prog_cc_g=yes
2818else
2819 echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002824
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827
2828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829fi
2830
2831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_c_werror_flag=$ac_save_c_werror_flag
2833fi
2834{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002836if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002837 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002838elif test $ac_cv_prog_cc_g = yes; then
2839 if test "$GCC" = yes; then
2840 CFLAGS="-g -O2"
2841 else
2842 CFLAGS="-g"
2843 fi
2844else
2845 if test "$GCC" = yes; then
2846 CFLAGS="-O2"
2847 else
2848 CFLAGS=
2849 fi
2850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002851{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2852echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2853if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002856 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002857ac_save_CC=$CC
2858cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864#include <stdarg.h>
2865#include <stdio.h>
2866#include <sys/types.h>
2867#include <sys/stat.h>
2868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2869struct buf { int x; };
2870FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871static char *e (p, i)
2872 char **p;
2873 int i;
2874{
2875 return p[i];
2876}
2877static char *f (char * (*g) (char **, int), char **p, ...)
2878{
2879 char *s;
2880 va_list v;
2881 va_start (v,p);
2882 s = g (p, va_arg (v,int));
2883 va_end (v);
2884 return s;
2885}
2886
2887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2888 function prototypes and stuff, but not '\xHH' hex character constants.
2889 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002890 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2892 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002893 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2895
Theodore Ts'oe1052142006-10-21 21:46:47 -04002896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2897 inside strings and character constants. */
2898#define FOO(x) 'x'
2899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2900
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002901int test (int i, double x);
2902struct s1 {int (*f) (int a);};
2903struct s2 {int (*f) (double a);};
2904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2905int argc;
2906char **argv;
2907int
2908main ()
2909{
2910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2911 ;
2912 return 0;
2913}
2914_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917do
2918 CC="$ac_save_CC $ac_arg"
2919 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002920if { (ac_try="$ac_compile"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927 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); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04002933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2934 { (case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
2938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002944 { (case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002953 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954else
2955 echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
Theodore Ts'oe1052142006-10-21 21:46:47 -04002958
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002960
2961rm -f core conftest.err conftest.$ac_objext
2962 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002964rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002965CC=$ac_save_CC
2966
2967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002968# AC_CACHE_VAL
2969case "x$ac_cv_prog_cc_c89" in
2970 x)
2971 { echo "$as_me:$LINENO: result: none needed" >&5
2972echo "${ECHO_T}none needed" >&6; } ;;
2973 xno)
2974 { echo "$as_me:$LINENO: result: unsupported" >&5
2975echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002976 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002977 CC="$CC $ac_cv_prog_cc_c89"
2978 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2979echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002980esac
2981
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002982
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002983ac_ext=c
2984ac_cpp='$CPP $CPPFLAGS'
2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002989
Theodore Ts'oe1052142006-10-21 21:46:47 -04002990# Check whether --with-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002991if test "${with_linker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002992 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
2993echo "${ECHO_T}LD=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002994LD=$withval
2995else
2996 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002997{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2998echo "${ECHO_T}LD defaults to $LD" >&6; }
2999fi
3000export LD
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001
Theodore Ts'o74becf31997-04-26 14:37:06 +00003002
Theodore Ts'oe1052142006-10-21 21:46:47 -04003003# Check whether --with-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003004if test "${with_ccopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003005 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3006echo "${ECHO_T}CCOPTS is $withval" >&6; }
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003007CFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003008fi
3009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010ac_ext=c
3011ac_cpp='$CPP $CPPFLAGS'
3012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04003015{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3016echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003017# On Suns, sometimes $CPP names a directory.
3018if test -n "$CPP" && test -d "$CPP"; then
3019 CPP=
3020fi
3021if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022 if test "${ac_cv_prog_CPP+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003024else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025 # Double quotes because CPP needs to be expanded
3026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3027 do
3028 ac_preproc_ok=false
3029for ac_c_preproc_warn_flag in '' yes
3030do
3031 # Use a header file that comes with gcc, so configuring glibc
3032 # with a fresh cross-compiler works.
3033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3034 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003035 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036 # not just through cpp. "Syntax error" is here to catch this case.
3037 cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
3043#ifdef __STDC__
3044# include <limits.h>
3045#else
3046# include <assert.h>
3047#endif
3048 Syntax error
3049_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003050if { (ac_try="$ac_cpp conftest.$ac_ext"
3051case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054esac
3055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null; then
3063 if test -s conftest.err; then
3064 ac_cpp_err=$ac_c_preproc_warn_flag
3065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066 else
3067 ac_cpp_err=
3068 fi
3069else
3070 ac_cpp_err=yes
3071fi
3072if test -z "$ac_cpp_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003073 :
3074else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003075 echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003078 # Broken: fails on valid input.
3079continue
3080fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003081
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003082rm -f conftest.err conftest.$ac_ext
3083
Theodore Ts'oe1052142006-10-21 21:46:47 -04003084 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003085 # can be detected and how.
3086 cat >conftest.$ac_ext <<_ACEOF
3087/* confdefs.h. */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h. */
3092#include <ac_nonexistent.h>
3093_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003094if { (ac_try="$ac_cpp conftest.$ac_ext"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
3109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3110 else
3111 ac_cpp_err=
3112 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003113else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003114 ac_cpp_err=yes
3115fi
3116if test -z "$ac_cpp_err"; then
3117 # Broken: success on invalid input.
3118continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003119else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120 echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 # Passes both tests.
3124ac_preproc_ok=:
3125break
3126fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003128rm -f conftest.err conftest.$ac_ext
3129
3130done
3131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132rm -f conftest.err conftest.$ac_ext
3133if $ac_preproc_ok; then
3134 break
3135fi
3136
3137 done
3138 ac_cv_prog_CPP=$CPP
3139
3140fi
3141 CPP=$ac_cv_prog_CPP
3142else
3143 ac_cv_prog_CPP=$CPP
3144fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003145{ echo "$as_me:$LINENO: result: $CPP" >&5
3146echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003147ac_preproc_ok=false
3148for ac_c_preproc_warn_flag in '' yes
3149do
3150 # Use a header file that comes with gcc, so configuring glibc
3151 # with a fresh cross-compiler works.
3152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3153 # <limits.h> exists even on freestanding compilers.
3154 # On the NeXT, cc -E runs the code through the compiler's parser,
3155 # not just through cpp. "Syntax error" is here to catch this case.
3156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
3162#ifdef __STDC__
3163# include <limits.h>
3164#else
3165# include <assert.h>
3166#endif
3167 Syntax error
3168_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003169if { (ac_try="$ac_cpp conftest.$ac_ext"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } >/dev/null; then
3182 if test -s conftest.err; then
3183 ac_cpp_err=$ac_c_preproc_warn_flag
3184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3185 else
3186 ac_cpp_err=
3187 fi
3188else
3189 ac_cpp_err=yes
3190fi
3191if test -z "$ac_cpp_err"; then
3192 :
3193else
3194 echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 # Broken: fails on valid input.
3198continue
3199fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201rm -f conftest.err conftest.$ac_ext
3202
Theodore Ts'oe1052142006-10-21 21:46:47 -04003203 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003204 # can be detected and how.
3205 cat >conftest.$ac_ext <<_ACEOF
3206/* confdefs.h. */
3207_ACEOF
3208cat confdefs.h >>conftest.$ac_ext
3209cat >>conftest.$ac_ext <<_ACEOF
3210/* end confdefs.h. */
3211#include <ac_nonexistent.h>
3212_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003213if { (ac_try="$ac_cpp conftest.$ac_ext"
3214case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003220 ac_status=$?
3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } >/dev/null; then
3226 if test -s conftest.err; then
3227 ac_cpp_err=$ac_c_preproc_warn_flag
3228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3229 else
3230 ac_cpp_err=
3231 fi
3232else
3233 ac_cpp_err=yes
3234fi
3235if test -z "$ac_cpp_err"; then
3236 # Broken: success on invalid input.
3237continue
3238else
3239 echo "$as_me: failed program was:" >&5
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 # Passes both tests.
3243ac_preproc_ok=:
3244break
3245fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003246
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003247rm -f conftest.err conftest.$ac_ext
3248
3249done
3250# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3251rm -f conftest.err conftest.$ac_ext
3252if $ac_preproc_ok; then
3253 :
3254else
3255 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3256See \`config.log' for more details." >&5
3257echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3258See \`config.log' for more details." >&2;}
3259 { (exit 1); exit 1; }; }
3260fi
3261
3262ac_ext=c
3263ac_cpp='$CPP $CPPFLAGS'
3264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267
3268
Theodore Ts'oe1052142006-10-21 21:46:47 -04003269{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3270echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3271if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003274 # Extract the first word of "grep ggrep" to use in msg output
3275if test -z "$GREP"; then
3276set dummy grep ggrep; ac_prog_name=$2
3277if test "${ac_cv_path_GREP+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280 ac_path_GREP_found=false
3281# Loop through the user's path and test for each of PROGNAME-LIST
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3284do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_prog in grep ggrep; do
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3290 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3291 # Check for GNU ac_path_GREP and select it if it is found.
3292 # Check for GNU $ac_path_GREP
3293case `"$ac_path_GREP" --version 2>&1` in
3294*GNU*)
3295 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3296*)
3297 ac_count=0
3298 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3299 while :
3300 do
3301 cat "conftest.in" "conftest.in" >"conftest.tmp"
3302 mv "conftest.tmp" "conftest.in"
3303 cp "conftest.in" "conftest.nl"
3304 echo 'GREP' >> "conftest.nl"
3305 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3307 ac_count=`expr $ac_count + 1`
3308 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3309 # Best one so far, save it but keep looking for a better one
3310 ac_cv_path_GREP="$ac_path_GREP"
3311 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003312 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003313 # 10*(2^10) chars as input seems more than enough
3314 test $ac_count -gt 10 && break
3315 done
3316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3317esac
3318
3319
3320 $ac_path_GREP_found && break 3
3321 done
3322done
3323
3324done
3325IFS=$as_save_IFS
3326
3327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003328fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003329
3330GREP="$ac_cv_path_GREP"
3331if test -z "$GREP"; then
3332 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3333echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3334 { (exit 1); exit 1; }; }
3335fi
3336
3337else
3338 ac_cv_path_GREP=$GREP
3339fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003340
3341
Theodore Ts'oe1052142006-10-21 21:46:47 -04003342fi
3343{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3344echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3345 GREP="$ac_cv_path_GREP"
3346
3347
3348{ echo "$as_me:$LINENO: checking for egrep" >&5
3349echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3350if test "${ac_cv_path_EGREP+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3354 then ac_cv_path_EGREP="$GREP -E"
3355 else
3356 # Extract the first word of "egrep" to use in msg output
3357if test -z "$EGREP"; then
3358set dummy egrep; ac_prog_name=$2
3359if test "${ac_cv_path_EGREP+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 ac_path_EGREP_found=false
3363# Loop through the user's path and test for each of PROGNAME-LIST
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3366do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_prog in egrep; do
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3372 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3373 # Check for GNU ac_path_EGREP and select it if it is found.
3374 # Check for GNU $ac_path_EGREP
3375case `"$ac_path_EGREP" --version 2>&1` in
3376*GNU*)
3377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3378*)
3379 ac_count=0
3380 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3381 while :
3382 do
3383 cat "conftest.in" "conftest.in" >"conftest.tmp"
3384 mv "conftest.tmp" "conftest.in"
3385 cp "conftest.in" "conftest.nl"
3386 echo 'EGREP' >> "conftest.nl"
3387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3389 ac_count=`expr $ac_count + 1`
3390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3391 # Best one so far, save it but keep looking for a better one
3392 ac_cv_path_EGREP="$ac_path_EGREP"
3393 ac_path_EGREP_max=$ac_count
3394 fi
3395 # 10*(2^10) chars as input seems more than enough
3396 test $ac_count -gt 10 && break
3397 done
3398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399esac
3400
3401
3402 $ac_path_EGREP_found && break 3
3403 done
3404done
3405
3406done
3407IFS=$as_save_IFS
3408
3409
3410fi
3411
3412EGREP="$ac_cv_path_EGREP"
3413if test -z "$EGREP"; then
3414 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3415echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3416 { (exit 1); exit 1; }; }
3417fi
3418
3419else
3420 ac_cv_path_EGREP=$EGREP
3421fi
3422
3423
3424 fi
3425fi
3426{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3427echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3428 EGREP="$ac_cv_path_EGREP"
3429
3430
3431{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3432echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433if test "${ac_cv_header_stdc+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#include <stdlib.h>
3443#include <stdarg.h>
3444#include <string.h>
3445#include <float.h>
3446
3447int
3448main ()
3449{
3450
3451 ;
3452 return 0;
3453}
3454_ACEOF
3455rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003456if { (ac_try="$ac_compile"
3457case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460esac
3461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04003469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3470 { (case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003480 { (case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483esac
3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_header_stdc=yes
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
Theodore Ts'oe1052142006-10-21 21:46:47 -04003494 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003496
3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498
3499if test $ac_cv_header_stdc = yes; then
3500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3501 cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
3507#include <string.h>
3508
3509_ACEOF
3510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511 $EGREP "memchr" >/dev/null 2>&1; then
3512 :
3513else
3514 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003515fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003516rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003517
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003518fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003519
3520if test $ac_cv_header_stdc = yes; then
3521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3522 cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h. */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h. */
3528#include <stdlib.h>
3529
3530_ACEOF
3531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532 $EGREP "free" >/dev/null 2>&1; then
3533 :
3534else
3535 ac_cv_header_stdc=no
3536fi
3537rm -f conftest*
3538
3539fi
3540
3541if test $ac_cv_header_stdc = yes; then
3542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3543 if test "$cross_compiling" = yes; then
3544 :
3545else
3546 cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003553#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003554#if ((' ' & 0x0FF) == 0x020)
3555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3557#else
3558# define ISLOWER(c) \
3559 (('a' <= (c) && (c) <= 'i') \
3560 || ('j' <= (c) && (c) <= 'r') \
3561 || ('s' <= (c) && (c) <= 'z'))
3562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3563#endif
3564
3565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3566int
3567main ()
3568{
3569 int i;
3570 for (i = 0; i < 256; i++)
3571 if (XOR (islower (i), ISLOWER (i))
3572 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003573 return 2;
3574 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003575}
3576_ACEOF
3577rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003578if { (ac_try="$ac_link"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003588 { (case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591esac
3592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 :
3598else
3599 echo "$as_me: program exited with status $ac_status" >&5
3600echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603( exit $ac_status )
3604ac_cv_header_stdc=no
3605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3607fi
3608
3609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003610fi
3611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003612{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3613echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003614if test $ac_cv_header_stdc = yes; then
3615
3616cat >>confdefs.h <<\_ACEOF
3617#define STDC_HEADERS 1
3618_ACEOF
3619
3620fi
3621
3622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3633 inttypes.h stdint.h unistd.h
3634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003636{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641 cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h. */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h. */
3647$ac_includes_default
3648
3649#include <$ac_header>
3650_ACEOF
3651rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003652if { (ac_try="$ac_compile"
3653case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656esac
3657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3666 { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003676 { (case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 eval "$as_ac_Header=yes"
3686else
3687 echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
Theodore Ts'oe1052142006-10-21 21:46:47 -04003690 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003691fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003692
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003694fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003695ac_res=`eval echo '${'$as_ac_Header'}'`
3696 { echo "$as_me:$LINENO: result: $ac_res" >&5
3697echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003698if test `eval echo '${'$as_ac_Header'}'` = yes; then
3699 cat >>confdefs.h <<_ACEOF
3700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3701_ACEOF
3702
3703fi
3704
3705done
3706
3707
3708if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003709 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3710echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003711if test "${ac_cv_header_linux_fs_h+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003714{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3715echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003716else
3717 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003718{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3719echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003720cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h. */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h. */
3726$ac_includes_default
3727#include <linux/fs.h>
3728_ACEOF
3729rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003730if { (ac_try="$ac_compile"
3731case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734esac
3735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003737 ac_status=$?
3738 grep -v '^ *+' conftest.er1 >conftest.err
3739 rm -f conftest.er1
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04003743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3744 { (case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747esac
3748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003754 { (case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757esac
3758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 ac_header_compiler=yes
3764else
3765 echo "$as_me: failed program was:" >&5
3766sed 's/^/| /' conftest.$ac_ext >&5
3767
Theodore Ts'oe1052142006-10-21 21:46:47 -04003768 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003769fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003770
3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3773echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003774
3775# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003776{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3777echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003778cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h. */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h. */
3784#include <linux/fs.h>
3785_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003786if { (ac_try="$ac_cpp conftest.$ac_ext"
3787case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790esac
3791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } >/dev/null; then
3799 if test -s conftest.err; then
3800 ac_cpp_err=$ac_c_preproc_warn_flag
3801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3802 else
3803 ac_cpp_err=
3804 fi
3805else
3806 ac_cpp_err=yes
3807fi
3808if test -z "$ac_cpp_err"; then
3809 ac_header_preproc=yes
3810else
3811 echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 ac_header_preproc=no
3815fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003817rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003818{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3819echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003820
3821# So? What about this header?
3822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3823 yes:no: )
3824 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3825echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3827echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3828 ac_header_preproc=yes
3829 ;;
3830 no:yes:* )
3831 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3832echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3833 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3834echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3835 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3836echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3837 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3838echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3839 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3840echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3841 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3842echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003843
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003844 ;;
3845esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003846{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3847echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003848if test "${ac_cv_header_linux_fs_h+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850else
3851 ac_cv_header_linux_fs_h=$ac_header_preproc
3852fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003853{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3854echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003855
3856fi
3857if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003858 linux_headers=yes
3859else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003860 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003861fi
3862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003863
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003864if test "$linux_headers" != yes; then
3865 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003866fi
3867
Theodore Ts'oe1052142006-10-21 21:46:47 -04003868{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3869echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003870if test "$GCC" = yes
3871then
3872 case "$host_cpu" in
3873 alpha) addcflags="-mieee" ;;
3874 esac
3875fi
3876if test "x$addcflags" != x
3877then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003878 { echo "$as_me:$LINENO: result: $addcflags" >&5
3879echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003880 CFLAGS="$addcflags $CFLAGS"
3881else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003882 { echo "$as_me:$LINENO: result: (none)" >&5
3883echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003884fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003885LIB_EXT=.a
3886STATIC_LIB_EXT=.a
3887PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003888
Theodore Ts'oe1052142006-10-21 21:46:47 -04003889# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003890if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003891 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3892echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003893LDFLAGS=$withval
3894else
3895 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003896fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003897
Theodore Ts'oe1052142006-10-21 21:46:47 -04003898
3899# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003900if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003901 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003902else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003903 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003904fi
3905# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003906if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003907 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003908then
3909 MAINTAINER_CMT=#
3910 echo "Disabling maintainer mode"
3911else
3912 MAINTAINER_CMT=
3913 echo "Enabling maintainer mode"
3914fi
3915
3916else
3917 MAINTAINER_CMT=#
3918echo "Disabling maintainer mode by default"
3919
Theodore Ts'oe1052142006-10-21 21:46:47 -04003920fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003921
Theodore Ts'oe1052142006-10-21 21:46:47 -04003922
3923# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003924if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003925 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003926then
3927 echo "Disabling compression support"
3928else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003929 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003930#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003931_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003932
3933 echo "Enabling compression support"
3934 echo "WARNING: Compression support is experimental"
3935fi
3936
3937else
3938 echo "Disabling compression support by default"
3939
Theodore Ts'oe1052142006-10-21 21:46:47 -04003940fi
3941
3942# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003943if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003944 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003945then
3946 HTREE_CMT=#
3947 echo "Disabling htree directory support"
3948else
3949 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003950 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003951#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003952_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003953
3954 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003955fi
3956
3957else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003958 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003959cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003960#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003961_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003962
3963echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003964
Theodore Ts'oe1052142006-10-21 21:46:47 -04003965fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003966
Theodore Ts'oe1052142006-10-21 21:46:47 -04003967
3968# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003969if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003970 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003971then
3972 ELF_CMT=#
3973 MAKEFILE_ELF=/dev/null
3974 echo "Disabling ELF shared libraries"
3975else
3976 ELF_CMT=
3977 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003978 case "$host_os" in
3979 solaris2.*)
3980 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3981 ;;
3982 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003983 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003984 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003985 echo "Enabling ELF shared libraries"
3986fi
3987
3988else
3989 MAKEFILE_ELF=/dev/null
3990ELF_CMT=#
3991echo "Disabling ELF shared libraries by default"
3992
Theodore Ts'oe1052142006-10-21 21:46:47 -04003993fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003994
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003995
Theodore Ts'oe1052142006-10-21 21:46:47 -04003996
3997# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003998if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003999 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004000then
4001 BSDLIB_CMT=#
4002 MAKEFILE_BSDLIB=/dev/null
4003 echo "Disabling BSD shared libraries"
4004else
4005 BSDLIB_CMT=
4006 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004007 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004008 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004009 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004010 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4011 LIB_EXT=.dylib
4012 ;;
4013 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004014 echo "Enabling BSD shared libraries"
4015fi
4016
4017else
4018 MAKEFILE_BSDLIB=/dev/null
4019BSDLIB_CMT=#
4020echo "Disabling BSD shared libraries by default"
4021
Theodore Ts'oe1052142006-10-21 21:46:47 -04004022fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004023
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004024
Theodore Ts'oe1052142006-10-21 21:46:47 -04004025
4026# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004027if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004028 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004029then
4030 PROFILE_CMT=#
4031 MAKEFILE_PROFILE=/dev/null
4032 echo "Disabling profiling libraries"
4033else
4034 PROFILE_CMT=
4035 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4036 PROFILED_LIB_EXT=_p.a
4037 echo "Building profiling libraries"
4038fi
4039
4040else
4041 PROFILE_CMT=#
4042MAKEFILE_PROFILE=/dev/null
4043echo "Disabling profiling libraries by default"
4044
Theodore Ts'oe1052142006-10-21 21:46:47 -04004045fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004046
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004047
Theodore Ts'oe1052142006-10-21 21:46:47 -04004048
4049# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004050if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004051 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004052then
4053 CHECKER_CMT=#
4054 MAKEFILE_CHECKER=/dev/null
4055 echo "Disabling checker libraries"
4056else
4057 CHECKER_CMT=
4058 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4059 echo "Building checker libraries"
4060fi
4061
4062else
4063 CHECKER_CMT=#
4064MAKEFILE_CHECKER=/dev/null
4065echo "Disabling checker libraries by default"
4066
Theodore Ts'oe1052142006-10-21 21:46:47 -04004067fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004068
4069
4070
4071
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004072
Theodore Ts'oe1052142006-10-21 21:46:47 -04004073
4074# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05004075if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004076 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004077then
4078 echo "Disabling journal debugging"
4079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004080 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05004081#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004082_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004083
4084 echo "Enabling journal debugging"
4085fi
4086
4087else
4088 echo "Disabling journal debugging by default"
4089
Theodore Ts'oe1052142006-10-21 21:46:47 -04004090fi
4091
4092# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004093if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004094 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004095then
4096 echo "Disabling blkid debugging"
4097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004098 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004099#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004100_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004101
4102 echo "Enabling blkid debugging"
4103fi
4104
4105else
4106 echo "Disabling blkid debugging by default"
4107
Theodore Ts'oe1052142006-10-21 21:46:47 -04004108fi
4109
4110# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004111if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004112 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004113then
4114 echo "Disabling testio debugging"
4115else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004116 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004117#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004118_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004119
4120 echo "Enabling testio debugging"
4121fi
4122
4123else
4124 echo "Disabling testio debugging by default"
4125
Theodore Ts'oe1052142006-10-21 21:46:47 -04004126fi
4127
4128# Check whether --enable-swapfs was given.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004129if test "${enable_swapfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004130 enableval=$enable_swapfs; if test "$enableval" = "no"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004131then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004132 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004133 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004134else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004135 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004136 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004137#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004138_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004139
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004140 echo "Enabling swapfs support"
4141fi
4142
4143else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004144 SWAPFS_CMT=
4145echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004146cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004147#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004148_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004149
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004150
Theodore Ts'oe1052142006-10-21 21:46:47 -04004151fi
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004152
Theodore Ts'oe1052142006-10-21 21:46:47 -04004153
4154# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004155if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004156 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004157then
4158 echo "Disabling debugfs support"
4159 DEBUGFS_CMT="#"
4160else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004161 DEBUGFS_CMT=
4162 echo "Enabling debugfs support"
4163fi
4164
4165else
4166 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004167DEBUGFS_CMT=
4168
Theodore Ts'oe1052142006-10-21 21:46:47 -04004169fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004170
Theodore Ts'oe1052142006-10-21 21:46:47 -04004171
4172# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004173if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004174 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004175then
4176 echo "Disabling e2image support"
4177 IMAGER_CMT="#"
4178else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004179 IMAGER_CMT=
4180 echo "Enabling e2image support"
4181fi
4182
4183else
4184 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004185IMAGER_CMT=
4186
Theodore Ts'oe1052142006-10-21 21:46:47 -04004187fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004188
Theodore Ts'oe1052142006-10-21 21:46:47 -04004189
4190# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004191if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004192 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004193then
4194 echo "Disabling e2resize support"
4195 RESIZER_CMT="#"
4196else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004197 RESIZER_CMT=
4198 echo "Enabling e2resize support"
4199fi
4200
4201else
4202 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004203RESIZER_CMT=
4204
Theodore Ts'oe1052142006-10-21 21:46:47 -04004205fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004206
Theodore Ts'oe1052142006-10-21 21:46:47 -04004207
4208# Check whether --enable-dynamic-e2fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004209if test "${enable_dynamic_e2fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004210 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004211then
4212 E2FSCK_TYPE=static
4213 echo "Building e2fsck statically"
4214else
4215 E2FSCK_TYPE=shared
4216 echo "Building e2fsck dynamically"
4217fi
4218
4219else
4220 E2FSCK_TYPE=static
4221echo "Building e2fsck statically by default"
4222
Theodore Ts'oe1052142006-10-21 21:46:47 -04004223fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004224
Theodore Ts'oe1052142006-10-21 21:46:47 -04004225
4226# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004227if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004228 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004229then
4230 FSCK_PROG='' FSCK_MAN=''
4231 echo "Not building fsck wrapper"
4232else
4233 FSCK_PROG=fsck FSCK_MAN=fsck.8
4234 echo "Building fsck wrapper"
4235fi
4236
4237else
4238 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004239 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004240 FSCK_PROG='' FSCK_MAN=''
4241 echo "Not building fsck wrapper by default"
4242 ;;
4243 *)
4244 FSCK_PROG=fsck FSCK_MAN=fsck.8
4245 echo "Building fsck wrapper by default"
4246esac
4247
Theodore Ts'oe1052142006-10-21 21:46:47 -04004248fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004249
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004250
Theodore Ts'oe1052142006-10-21 21:46:47 -04004251
4252# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004253if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004254 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004255then
4256 E2INITRD_PROG='' E2INITRD_MAN=''
4257 echo "Not building e2initrd helper"
4258else
4259 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4260 echo "Building e2initrd helper"
4261fi
4262
4263else
4264 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4265echo "Building e2initrd helper by default"
4266
Theodore Ts'oe1052142006-10-21 21:46:47 -04004267fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004268
4269
Theodore Ts'oe1052142006-10-21 21:46:47 -04004270
4271# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004272if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004273 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004274then
4275 echo "Disabling device-mapper support"
4276 DEVMAPPER_REQ=''
4277 DEVMAPPER_LIBS=''
4278 STATIC_DEVMAPPER_LIBS=''
4279else
4280 cat >>confdefs.h <<\_ACEOF
4281#define HAVE_DEVMAPPER 1
4282_ACEOF
4283
4284 echo "Enabling device-mapper support"
4285
4286 DEVMAPPER_REQ='libselinux libsepol'
4287 DEVMAPPER_PC_LIBS='-ldevmapper'
Theodore Ts'oe1052142006-10-21 21:46:47 -04004288 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4289 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
Karel Zak4db2f592006-03-08 14:17:28 -05004290
4291fi
4292
4293else
4294 echo "Disabling device-mapper support by default"
4295
Theodore Ts'oe1052142006-10-21 21:46:47 -04004296fi
4297
Karel Zak4db2f592006-03-08 14:17:28 -05004298
4299
4300
4301
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004302MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004304GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004305PACKAGE=e2fsprogs
4306VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004307VERSION=0.14.1
4308cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004309#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004310_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004312cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004313#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004314_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004315
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004316
4317
4318
4319
Theodore Ts'oe1052142006-10-21 21:46:47 -04004320{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4321echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4322set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4323if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004325else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004326 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004327SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004328all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004329 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004331# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004332case `${MAKE-make} -f conftest.make 2>/dev/null` in
4333 *@@@%%%=?*=@@@%%%*)
4334 eval ac_cv_prog_make_${ac_make}_set=yes;;
4335 *)
4336 eval ac_cv_prog_make_${ac_make}_set=no;;
4337esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004340if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4341 { echo "$as_me:$LINENO: result: yes" >&5
4342echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004343 SET_MAKE=
4344else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004345 { echo "$as_me:$LINENO: result: no" >&5
4346echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004347 SET_MAKE="MAKE=${MAKE-make}"
4348fi
4349
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004350# Find a good install program. We prefer a C program (faster),
4351# so one script is as good as another. But avoid the broken or
4352# incompatible versions:
4353# SysV /etc/install, /usr/sbin/install
4354# SunOS /usr/etc/install
4355# IRIX /sbin/install
4356# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004357# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004358# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4359# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4360# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004361# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004362# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004363{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4364echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004365if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004366if test "${ac_cv_path_install+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004368else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 # Account for people who put trailing slashes in PATH elements.
4375case $as_dir/ in
4376 ./ | .// | /cC/* | \
4377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4378 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4379 /usr/ucb/* ) ;;
4380 *)
4381 # OSF1 and SCO ODT 3.0 have their own names for install.
4382 # Don't use installbsd from OSF since it installs stuff as root
4383 # by default.
4384 for ac_prog in ginstall scoinst install; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04004386 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004387 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004389 # AIX install. It has an incompatible calling convention.
4390 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004391 elif test $ac_prog = install &&
4392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4393 # program-specific install script used by HP pwplus--don't use.
4394 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004395 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4397 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004398 fi
4399 fi
4400 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004401 done
4402 ;;
4403esac
4404done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004405IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004406
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004407
4408fi
4409 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004410 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004411 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004412 # As a last resort, use the slow shell script. Don't cache a
4413 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004414 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004415 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004416 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004417 fi
4418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004419{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4420echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004421
4422# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4423# It thinks the first close brace ends the variable substitution.
4424test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4425
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004426test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004427
4428test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4429
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004430
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004431 MKINSTALLDIRS=
4432 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004433 case "$ac_aux_dir" in
4434 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4435 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4436 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004437 fi
4438 if test -z "$MKINSTALLDIRS"; then
4439 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4440 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004442
4443
Theodore Ts'oe1052142006-10-21 21:46:47 -04004444 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4445echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4446 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004447if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004448 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004449else
4450 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004451fi
4452
4453 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4454echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004455
4456
4457
4458
4459
4460
4461# Prepare PATH_SEPARATOR.
4462# The user is always right.
4463if test "${PATH_SEPARATOR+set}" != set; then
4464 echo "#! /bin/sh" >conf$$.sh
4465 echo "exit 0" >>conf$$.sh
4466 chmod +x conf$$.sh
4467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4468 PATH_SEPARATOR=';'
4469 else
4470 PATH_SEPARATOR=:
4471 fi
4472 rm -f conf$$.sh
4473fi
4474
4475# Find out how to test for executable files. Don't use a zero-byte file,
4476# as systems may use methods other than mode bits to determine executability.
4477cat >conf$$.file <<_ASEOF
4478#! /bin/sh
4479exit 0
4480_ASEOF
4481chmod +x conf$$.file
4482if test -x conf$$.file >/dev/null 2>&1; then
4483 ac_executable_p="test -x"
4484else
4485 ac_executable_p="test -f"
4486fi
4487rm -f conf$$.file
4488
4489# Extract the first word of "msgfmt", so it can be a program name with args.
4490set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004493if test "${ac_cv_path_MSGFMT+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 case "$MSGFMT" in
4497 [\\/]* | ?:[\\/]*)
4498 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4499 ;;
4500 *)
4501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4502 for ac_dir in $PATH; do
4503 IFS="$ac_save_IFS"
4504 test -z "$ac_dir" && ac_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4507 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4508 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4509 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4510 break 2
4511 fi
4512 fi
4513 done
4514 done
4515 IFS="$ac_save_IFS"
4516 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4517 ;;
4518esac
4519fi
4520MSGFMT="$ac_cv_path_MSGFMT"
4521if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004522 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4523echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004524else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004525 { echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004527fi
4528
4529 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4530set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004533if test "${ac_cv_path_GMSGFMT+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 case $GMSGFMT in
4537 [\\/]* | ?:[\\/]*)
4538 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4539 ;;
4540 *)
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH
4543do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04004547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004548 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552done
4553done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004554IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555
4556 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4557 ;;
4558esac
4559fi
4560GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004561if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004562 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4563echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004564else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004565 { echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004567fi
4568
4569
4570
Theodore Ts'oe1052142006-10-21 21:46:47 -04004571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004572# Prepare PATH_SEPARATOR.
4573# The user is always right.
4574if test "${PATH_SEPARATOR+set}" != set; then
4575 echo "#! /bin/sh" >conf$$.sh
4576 echo "exit 0" >>conf$$.sh
4577 chmod +x conf$$.sh
4578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4579 PATH_SEPARATOR=';'
4580 else
4581 PATH_SEPARATOR=:
4582 fi
4583 rm -f conf$$.sh
4584fi
4585
4586# Find out how to test for executable files. Don't use a zero-byte file,
4587# as systems may use methods other than mode bits to determine executability.
4588cat >conf$$.file <<_ASEOF
4589#! /bin/sh
4590exit 0
4591_ASEOF
4592chmod +x conf$$.file
4593if test -x conf$$.file >/dev/null 2>&1; then
4594 ac_executable_p="test -x"
4595else
4596 ac_executable_p="test -f"
4597fi
4598rm -f conf$$.file
4599
4600# Extract the first word of "xgettext", so it can be a program name with args.
4601set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004604if test "${ac_cv_path_XGETTEXT+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607 case "$XGETTEXT" in
4608 [\\/]* | ?:[\\/]*)
4609 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4610 ;;
4611 *)
4612 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4613 for ac_dir in $PATH; do
4614 IFS="$ac_save_IFS"
4615 test -z "$ac_dir" && ac_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4618 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4619 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4620 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4621 break 2
4622 fi
4623 fi
4624 done
4625 done
4626 IFS="$ac_save_IFS"
4627 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4628 ;;
4629esac
4630fi
4631XGETTEXT="$ac_cv_path_XGETTEXT"
4632if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004633 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4634echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004635else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004636 { echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004638fi
4639
4640 rm -f messages.po
4641
4642
4643# Prepare PATH_SEPARATOR.
4644# The user is always right.
4645if test "${PATH_SEPARATOR+set}" != set; then
4646 echo "#! /bin/sh" >conf$$.sh
4647 echo "exit 0" >>conf$$.sh
4648 chmod +x conf$$.sh
4649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4650 PATH_SEPARATOR=';'
4651 else
4652 PATH_SEPARATOR=:
4653 fi
4654 rm -f conf$$.sh
4655fi
4656
4657# Find out how to test for executable files. Don't use a zero-byte file,
4658# as systems may use methods other than mode bits to determine executability.
4659cat >conf$$.file <<_ASEOF
4660#! /bin/sh
4661exit 0
4662_ASEOF
4663chmod +x conf$$.file
4664if test -x conf$$.file >/dev/null 2>&1; then
4665 ac_executable_p="test -x"
4666else
4667 ac_executable_p="test -f"
4668fi
4669rm -f conf$$.file
4670
4671# Extract the first word of "msgmerge", so it can be a program name with args.
4672set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004675if test "${ac_cv_path_MSGMERGE+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678 case "$MSGMERGE" in
4679 [\\/]* | ?:[\\/]*)
4680 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4681 ;;
4682 *)
4683 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4684 for ac_dir in $PATH; do
4685 IFS="$ac_save_IFS"
4686 test -z "$ac_dir" && ac_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4689 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4690 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4691 break 2
4692 fi
4693 fi
4694 done
4695 done
4696 IFS="$ac_save_IFS"
4697 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4698 ;;
4699esac
4700fi
4701MSGMERGE="$ac_cv_path_MSGMERGE"
4702if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004703 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4704echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004705else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004706 { echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004708fi
4709
4710
4711 if test "$GMSGFMT" != ":"; then
4712 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4713 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4714 : ;
4715 else
4716 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004717 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4718echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004719 GMSGFMT=":"
4720 fi
4721 fi
4722
4723 if test "$XGETTEXT" != ":"; then
4724 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4725 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4726 : ;
4727 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004728 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4729echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004730 XGETTEXT=":"
4731 fi
4732 rm -f messages.po
4733 fi
4734
Theodore Ts'oe1052142006-10-21 21:46:47 -04004735 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004736
4737
4738if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004743if test "${ac_cv_prog_RANLIB+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004745else
4746 if test -n "$RANLIB"; then
4747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04004755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004761done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004762IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004763
4764fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004765fi
4766RANLIB=$ac_cv_prog_RANLIB
4767if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004768 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4769echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004770else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004771 { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004773fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004774
Theodore Ts'oe1052142006-10-21 21:46:47 -04004775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004776fi
4777if test -z "$ac_cv_prog_RANLIB"; then
4778 ac_ct_RANLIB=$RANLIB
4779 # Extract the first word of "ranlib", so it can be a program name with args.
4780set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004783if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786 if test -n "$ac_ct_RANLIB"; then
4787 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04004795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004796 ac_cv_prog_ac_ct_RANLIB="ranlib"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004802IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004803
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004804fi
4805fi
4806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4807if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004808 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4809echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004810else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004811 { echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004813fi
4814
Theodore Ts'oe1052142006-10-21 21:46:47 -04004815 if test "x$ac_ct_RANLIB" = x; then
4816 RANLIB=":"
4817 else
4818 case $cross_compiling:$ac_tool_warned in
4819yes:)
4820{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4821whose name does not start with the host triplet. If you think this
4822configuration is useful to you, please write to autoconf@gnu.org." >&5
4823echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4824whose name does not start with the host triplet. If you think this
4825configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828 RANLIB=$ac_ct_RANLIB
4829 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004830else
4831 RANLIB="$ac_cv_prog_RANLIB"
4832fi
4833
4834
Theodore Ts'oe1052142006-10-21 21:46:47 -04004835 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4836echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004837if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840 ac_check_lib_save_LIBS=$LIBS
4841LIBS="-lcposix $LIBS"
4842cat >conftest.$ac_ext <<_ACEOF
4843/* confdefs.h. */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h. */
4848
Theodore Ts'oe1052142006-10-21 21:46:47 -04004849/* Override any GCC internal prototype to avoid an error.
4850 Use char because int might match the return type of a GCC
4851 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004852#ifdef __cplusplus
4853extern "C"
4854#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004855char strerror ();
4856int
4857main ()
4858{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004859return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004860 ;
4861 return 0;
4862}
4863_ACEOF
4864rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004865if { (ac_try="$ac_link"
4866case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869esac
4870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04004878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4879 { (case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882esac
4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04004889 { (case "(($ac_try" in
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4892esac
4893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 ac_cv_lib_cposix_strerror=yes
4899else
4900 echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
Theodore Ts'oe1052142006-10-21 21:46:47 -04004903 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004904fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004905
4906rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004907 conftest$ac_exeext conftest.$ac_ext
4908LIBS=$ac_check_lib_save_LIBS
4909fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004910{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4911echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004912if test $ac_cv_lib_cposix_strerror = yes; then
4913 LIBS="$LIBS -lcposix"
4914fi
4915
4916
4917
Theodore Ts'oe1052142006-10-21 21:46:47 -04004918{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4919echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004920if test "${ac_cv_c_const+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923 cat >conftest.$ac_ext <<_ACEOF
4924/* confdefs.h. */
4925_ACEOF
4926cat confdefs.h >>conftest.$ac_ext
4927cat >>conftest.$ac_ext <<_ACEOF
4928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
4933/* FIXME: Include the comments suggested by Paul. */
4934#ifndef __cplusplus
4935 /* Ultrix mips cc rejects this. */
4936 typedef int charset[2];
4937 const charset x;
4938 /* SunOS 4.1.1 cc rejects this. */
4939 char const *const *ccp;
4940 char **p;
4941 /* NEC SVR4.0.2 mips cc rejects this. */
4942 struct point {int x, y;};
4943 static struct point const zero = {0,0};
4944 /* AIX XL C 1.02.0.0 rejects this.
4945 It does not let you subtract one const X* pointer from another in
4946 an arm of an if-expression whose if-part is not a constant
4947 expression */
4948 const char *g = "string";
4949 ccp = &g + (g ? g-g : 0);
4950 /* HPUX 7.0 cc rejects these. */
4951 ++ccp;
4952 p = (char**) ccp;
4953 ccp = (char const *const *) p;
4954 { /* SCO 3.2v4 cc rejects this. */
4955 char *t;
4956 char const *s = 0 ? (char *) 0 : (char const *) 0;
4957
4958 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004959 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004960 }
4961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4962 int x[] = {25, 17};
4963 const int *foo = &x[0];
4964 ++foo;
4965 }
4966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4967 typedef const int *iptr;
4968 iptr p = 0;
4969 ++p;
4970 }
4971 { /* AIX XL C 1.02.0.0 rejects this saying
4972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4973 struct s { int j; const int *ap[3]; };
4974 struct s *b; b->j = 5;
4975 }
4976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4977 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004978 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004979 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004980 return !x[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004981#endif
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
4987rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004988if { (ac_try="$ac_compile"
4989case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
4993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5002 { (case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005esac
5006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005012 { (case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015esac
5016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 ac_cv_c_const=yes
5022else
5023 echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
Theodore Ts'oe1052142006-10-21 21:46:47 -04005026 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005027fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005028
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005031{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5032echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005033if test $ac_cv_c_const = no; then
5034
5035cat >>confdefs.h <<\_ACEOF
5036#define const
5037_ACEOF
5038
5039fi
5040
5041
Theodore Ts'oe1052142006-10-21 21:46:47 -04005042 { echo "$as_me:$LINENO: checking for signed" >&5
5043echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005044if test "${bh_cv_c_signed+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053
5054int
5055main ()
5056{
5057signed char x;
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005063if { (ac_try="$ac_compile"
5064case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067esac
5068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5077 { (case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080esac
5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005087 { (case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090esac
5091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 bh_cv_c_signed=yes
5097else
5098 echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
Theodore Ts'oe1052142006-10-21 21:46:47 -04005101 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005102fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005103
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005105fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005106{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5107echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005108 if test $bh_cv_c_signed = no; then
5109
5110cat >>confdefs.h <<\_ACEOF
5111#define signed
5112_ACEOF
5113
5114 fi
5115
Theodore Ts'oe1052142006-10-21 21:46:47 -04005116{ echo "$as_me:$LINENO: checking for inline" >&5
5117echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005118if test "${ac_cv_c_inline+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121 ac_cv_c_inline=no
5122for ac_kw in inline __inline__ __inline; do
5123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129#ifndef __cplusplus
5130typedef int foo_t;
5131static $ac_kw foo_t static_foo () {return 0; }
5132$ac_kw foo_t foo () {return 0; }
5133#endif
5134
5135_ACEOF
5136rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005137if { (ac_try="$ac_compile"
5138case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141esac
5142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5151 { (case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; } &&
5160 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005161 { (case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164esac
5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005170 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005171else
5172 echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
Theodore Ts'oe1052142006-10-21 21:46:47 -04005175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005176fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005177
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005180done
5181
5182fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005183{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5184echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005185
5186
5187case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005188 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005189 *)
5190 case $ac_cv_c_inline in
5191 no) ac_val=;;
5192 *) ac_val=$ac_cv_c_inline;;
5193 esac
5194 cat >>confdefs.h <<_ACEOF
5195#ifndef __cplusplus
5196#define inline $ac_val
5197#endif
5198_ACEOF
5199 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005200esac
5201
Theodore Ts'oe1052142006-10-21 21:46:47 -04005202{ echo "$as_me:$LINENO: checking for off_t" >&5
5203echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005204if test "${ac_cv_type_off_t+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005206else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005207 cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h. */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h. */
5213$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005214typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005215int
5216main ()
5217{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005218if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005219 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005220if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005221 return 0;
5222 ;
5223 return 0;
5224}
5225_ACEOF
5226rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005227if { (ac_try="$ac_compile"
5228case "(($ac_try" in
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5231esac
5232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5241 { (case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5244esac
5245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005251 { (case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005260 ac_cv_type_off_t=yes
5261else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005262 echo "$as_me: failed program was:" >&5
5263sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005264
Theodore Ts'oe1052142006-10-21 21:46:47 -04005265 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005266fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005267
5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005270{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5271echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005272if test $ac_cv_type_off_t = yes; then
5273 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005274else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005275
5276cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005277#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005278_ACEOF
5279
5280fi
5281
Theodore Ts'oe1052142006-10-21 21:46:47 -04005282{ echo "$as_me:$LINENO: checking for size_t" >&5
5283echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005284if test "${ac_cv_type_size_t+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287 cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h. */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h. */
5293$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005294typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005295int
5296main ()
5297{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005298if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005299 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005300if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005301 return 0;
5302 ;
5303 return 0;
5304}
5305_ACEOF
5306rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005307if { (ac_try="$ac_compile"
5308case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311esac
5312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5321 { (case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324esac
5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; } &&
5330 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005331 { (case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005340 ac_cv_type_size_t=yes
5341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005342 echo "$as_me: failed program was:" >&5
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
Theodore Ts'oe1052142006-10-21 21:46:47 -04005345 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005346fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005347
5348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005350{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5351echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005352if test $ac_cv_type_size_t = yes; then
5353 :
5354else
5355
5356cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005357#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005358_ACEOF
5359
5360fi
5361
5362
Theodore Ts'oe1052142006-10-21 21:46:47 -04005363 { echo "$as_me:$LINENO: checking for long long" >&5
5364echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005365if test "${ac_cv_type_long_long+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368 cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374long long ll = 1LL; int i = 63;
5375int
5376main ()
5377{
5378long long llmax = (long long) -1;
5379 return ll << i | ll >> i | llmax / ll | llmax % ll;
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005385if { (ac_try="$ac_link"
5386case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389esac
5390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5399 { (case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; } &&
5408 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005409 { (case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412esac
5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_type_long_long=yes
5419else
5420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
Theodore Ts'oe1052142006-10-21 21:46:47 -04005423 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005425
5426rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005427 conftest$ac_exeext conftest.$ac_ext
5428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005429{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5430echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005431 if test $ac_cv_type_long_long = yes; then
5432
5433cat >>confdefs.h <<\_ACEOF
5434#define HAVE_LONG_LONG 1
5435_ACEOF
5436
5437 fi
5438
5439
Theodore Ts'oe1052142006-10-21 21:46:47 -04005440 { echo "$as_me:$LINENO: checking for long double" >&5
5441echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005442if test "${gt_cv_c_long_double+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 if test "$GCC" = yes; then
5446 gt_cv_c_long_double=yes
5447 else
5448 cat >conftest.$ac_ext <<_ACEOF
5449/* confdefs.h. */
5450_ACEOF
5451cat confdefs.h >>conftest.$ac_ext
5452cat >>conftest.$ac_ext <<_ACEOF
5453/* end confdefs.h. */
5454
5455 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5456 long double foo = 0.0;
5457 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5458 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5459
5460int
5461main ()
5462{
5463
5464 ;
5465 return 0;
5466}
5467_ACEOF
5468rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005469if { (ac_try="$ac_compile"
5470case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5483 { (case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; } &&
5492 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005493 { (case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496esac
5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 gt_cv_c_long_double=yes
5503else
5504 echo "$as_me: failed program was:" >&5
5505sed 's/^/| /' conftest.$ac_ext >&5
5506
Theodore Ts'oe1052142006-10-21 21:46:47 -04005507 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005509
5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005511 fi
5512fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005513{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5514echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005515 if test $gt_cv_c_long_double = yes; then
5516
5517cat >>confdefs.h <<\_ACEOF
5518#define HAVE_LONG_DOUBLE 1
5519_ACEOF
5520
5521 fi
5522
5523
Theodore Ts'oe1052142006-10-21 21:46:47 -04005524 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5525echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005526if test "${gt_cv_c_wchar_t+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529 cat >conftest.$ac_ext <<_ACEOF
5530/* confdefs.h. */
5531_ACEOF
5532cat confdefs.h >>conftest.$ac_ext
5533cat >>conftest.$ac_ext <<_ACEOF
5534/* end confdefs.h. */
5535#include <stddef.h>
5536 wchar_t foo = (wchar_t)'\0';
5537int
5538main ()
5539{
5540
5541 ;
5542 return 0;
5543}
5544_ACEOF
5545rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005546if { (ac_try="$ac_compile"
5547case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550esac
5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5560 { (case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; } &&
5569 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005570 { (case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573esac
5574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 gt_cv_c_wchar_t=yes
5580else
5581 echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
Theodore Ts'oe1052142006-10-21 21:46:47 -04005584 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005589{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5590echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005591 if test $gt_cv_c_wchar_t = yes; then
5592
5593cat >>confdefs.h <<\_ACEOF
5594#define HAVE_WCHAR_T 1
5595_ACEOF
5596
5597 fi
5598
5599
Theodore Ts'oe1052142006-10-21 21:46:47 -04005600 { echo "$as_me:$LINENO: checking for wint_t" >&5
5601echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005602if test "${gt_cv_c_wint_t+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h. */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */
5611#include <wchar.h>
5612 wint_t foo = (wchar_t)'\0';
5613int
5614main ()
5615{
5616
5617 ;
5618 return 0;
5619}
5620_ACEOF
5621rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005622if { (ac_try="$ac_compile"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639esac
5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005646 { (case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 gt_cv_c_wint_t=yes
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
Theodore Ts'oe1052142006-10-21 21:46:47 -04005660 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005662
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005665{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5666echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667 if test $gt_cv_c_wint_t = yes; then
5668
5669cat >>confdefs.h <<\_ACEOF
5670#define HAVE_WINT_T 1
5671_ACEOF
5672
5673 fi
5674
5675
Theodore Ts'oe1052142006-10-21 21:46:47 -04005676 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5677echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005678if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681 cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h. */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h. */
5687#include <sys/types.h>
5688#include <inttypes.h>
5689int
5690main ()
5691{
5692uintmax_t i = (uintmax_t) -1;
5693 ;
5694 return 0;
5695}
5696_ACEOF
5697rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005698if { (ac_try="$ac_compile"
5699case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702esac
5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5712 { (case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715esac
5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005722 { (case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725esac
5726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 jm_ac_cv_header_inttypes_h=yes
5732else
5733 echo "$as_me: failed program was:" >&5
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
Theodore Ts'oe1052142006-10-21 21:46:47 -04005736 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005737fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005738
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005741{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5742echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005743 if test $jm_ac_cv_header_inttypes_h = yes; then
5744
5745cat >>confdefs.h <<_ACEOF
5746#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5747_ACEOF
5748
5749 fi
5750
5751
Theodore Ts'oe1052142006-10-21 21:46:47 -04005752 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5753echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005754if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
5763#include <sys/types.h>
5764#include <stdint.h>
5765int
5766main ()
5767{
5768uintmax_t i = (uintmax_t) -1;
5769 ;
5770 return 0;
5771}
5772_ACEOF
5773rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005774if { (ac_try="$ac_compile"
5775case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778esac
5779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5788 { (case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005798 { (case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801esac
5802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5807 jm_ac_cv_header_stdint_h=yes
5808else
5809 echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
Theodore Ts'oe1052142006-10-21 21:46:47 -04005812 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005813fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005814
5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005816fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005817{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5818echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005819 if test $jm_ac_cv_header_stdint_h = yes; then
5820
5821cat >>confdefs.h <<_ACEOF
5822#define HAVE_STDINT_H_WITH_UINTMAX 1
5823_ACEOF
5824
5825 fi
5826
5827
5828
5829
Theodore Ts'oe1052142006-10-21 21:46:47 -04005830 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5831echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005832if test "${gt_cv_c_intmax_t+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h. */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h. */
5841
5842#include <stddef.h>
5843#include <stdlib.h>
5844#if HAVE_STDINT_H_WITH_UINTMAX
5845#include <stdint.h>
5846#endif
5847#if HAVE_INTTYPES_H_WITH_UINTMAX
5848#include <inttypes.h>
5849#endif
5850
5851int
5852main ()
5853{
5854intmax_t x = -1;
5855 ;
5856 return 0;
5857}
5858_ACEOF
5859rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005860if { (ac_try="$ac_compile"
5861case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005884 { (case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 gt_cv_c_intmax_t=yes
5894else
5895 echo "$as_me: failed program was:" >&5
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
Theodore Ts'oe1052142006-10-21 21:46:47 -04005898 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005899fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005900
5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005902fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005903{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5904echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005905 if test $gt_cv_c_intmax_t = yes; then
5906
5907cat >>confdefs.h <<\_ACEOF
5908#define HAVE_INTMAX_T 1
5909_ACEOF
5910
5911 fi
5912
5913
5914
Theodore Ts'oe1052142006-10-21 21:46:47 -04005915 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5916echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005917if test "${gt_cv_func_printf_posix+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920
5921 if test "$cross_compiling" = yes; then
5922
5923 cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h. */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h. */
5929
5930#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5931 notposix
5932#endif
5933
5934_ACEOF
5935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936 $EGREP "notposix" >/dev/null 2>&1; then
5937 gt_cv_func_printf_posix="guessing no"
5938else
5939 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005940fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005941rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005943
5944else
5945 cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */
5951
5952#include <stdio.h>
5953#include <string.h>
5954/* The string "%2$d %1$d", with dollar characters protected from the shell's
5955 dollar expansion (possibly an autoconf bug). */
5956static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5957static char buf[100];
5958int main ()
5959{
5960 sprintf (buf, format, 33, 55);
5961 return (strcmp (buf, "55 33") != 0);
5962}
5963_ACEOF
5964rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005965if { (ac_try="$ac_link"
5966case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969esac
5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005975 { (case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 gt_cv_func_printf_posix=yes
5985else
5986 echo "$as_me: program exited with status $ac_status" >&5
5987echo "$as_me: failed program was:" >&5
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
5990( exit $ac_status )
5991gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005992fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005995
Theodore Ts'oe1052142006-10-21 21:46:47 -04005996
5997
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005999{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6000echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006001 case $gt_cv_func_printf_posix in
6002 *yes)
6003
6004cat >>confdefs.h <<\_ACEOF
6005#define HAVE_POSIX_PRINTF 1
6006_ACEOF
6007
6008 ;;
6009 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006010
6011# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6012# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04006013{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6014echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006015if test "${ac_cv_working_alloca_h+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018 cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h. */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006024#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006025int
6026main ()
6027{
6028char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006029 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030 ;
6031 return 0;
6032}
6033_ACEOF
6034rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006035if { (ac_try="$ac_link"
6036case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039esac
6040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6049 { (case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052esac
6053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006059 { (case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006069else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070 echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006072
Theodore Ts'oe1052142006-10-21 21:46:47 -04006073 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006075
6076rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077 conftest$ac_exeext conftest.$ac_ext
6078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006079{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6080echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081if test $ac_cv_working_alloca_h = yes; then
6082
6083cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006084#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006086
6087fi
6088
Theodore Ts'oe1052142006-10-21 21:46:47 -04006089{ echo "$as_me:$LINENO: checking for alloca" >&5
6090echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091if test "${ac_cv_func_alloca_works+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006094 cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h. */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006100#ifdef __GNUC__
6101# define alloca __builtin_alloca
6102#else
6103# ifdef _MSC_VER
6104# include <malloc.h>
6105# define alloca _alloca
6106# else
6107# if HAVE_ALLOCA_H
6108# include <alloca.h>
6109# else
6110# ifdef _AIX
6111 #pragma alloca
6112# else
6113# ifndef alloca /* predefined by HP cc +Olibcalls */
6114char *alloca ();
6115# endif
6116# endif
6117# endif
6118# endif
6119#endif
6120
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121int
6122main ()
6123{
6124char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006125 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006126 ;
6127 return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006131if { (ac_try="$ac_link"
6132case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006164 ac_cv_func_alloca_works=yes
6165else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006166 echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006168
Theodore Ts'oe1052142006-10-21 21:46:47 -04006169 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006171
6172rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006173 conftest$ac_exeext conftest.$ac_ext
6174fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006175{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6176echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006177
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006178if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179
6180cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006181#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006183
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006184else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6186# that cause trouble. Some versions do not even contain alloca or
6187# contain a buggy version. If you still want to use their alloca,
6188# use ar to extract alloca.o from them instead of compiling alloca.c.
6189
Theodore Ts'oe1052142006-10-21 21:46:47 -04006190ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006191
6192cat >>confdefs.h <<\_ACEOF
6193#define C_ALLOCA 1
6194_ACEOF
6195
6196
Theodore Ts'oe1052142006-10-21 21:46:47 -04006197{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6198echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199if test "${ac_cv_os_cray+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202 cat >conftest.$ac_ext <<_ACEOF
6203/* confdefs.h. */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006208#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006209webecray
6210#else
6211wenotbecray
6212#endif
6213
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006214_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006216 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006217 ac_cv_os_cray=yes
6218else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006219 ac_cv_os_cray=no
6220fi
6221rm -f conftest*
6222
6223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006224{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6225echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006226if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006227 for ac_func in _getb67 GETB67 getb67; do
6228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006229{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6231if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006232 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006233else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006234 cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h. */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h. */
6240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6242#define $ac_func innocuous_$ac_func
6243
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006244/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006245 which can conflict with char $ac_func (); below.
6246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6247 <limits.h> exists even on freestanding compilers. */
6248
6249#ifdef __STDC__
6250# include <limits.h>
6251#else
6252# include <assert.h>
6253#endif
6254
6255#undef $ac_func
6256
Theodore Ts'oe1052142006-10-21 21:46:47 -04006257/* Override any GCC internal prototype to avoid an error.
6258 Use char because int might match the return type of a GCC
6259 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006260#ifdef __cplusplus
6261extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006262#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006263char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006264/* The GNU C library defines this for functions which it implements
6265 to always fail with ENOSYS. Some functions are actually named
6266 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006267#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006268choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006269#endif
6270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006271int
6272main ()
6273{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006274return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275 ;
6276 return 0;
6277}
6278_ACEOF
6279rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006280if { (ac_try="$ac_link"
6281case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284esac
6285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006287 ac_status=$?
6288 grep -v '^ *+' conftest.er1 >conftest.err
6289 rm -f conftest.er1
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6294 { (case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
6298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006304 { (case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006314else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006315 echo "$as_me: failed program was:" >&5
6316sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006317
Theodore Ts'oe1052142006-10-21 21:46:47 -04006318 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006319fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006320
6321rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006322 conftest$ac_exeext conftest.$ac_ext
6323fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006324ac_res=`eval echo '${'$as_ac_var'}'`
6325 { echo "$as_me:$LINENO: result: $ac_res" >&5
6326echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327if test `eval echo '${'$as_ac_var'}'` = yes; then
6328
6329cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006330#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006331_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006334fi
6335
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006336 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006337fi
6338
Theodore Ts'oe1052142006-10-21 21:46:47 -04006339{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6340echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006341if test "${ac_cv_c_stack_direction+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006343else
6344 if test "$cross_compiling" = yes; then
6345 ac_cv_c_stack_direction=0
6346else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006347 cat >conftest.$ac_ext <<_ACEOF
6348/* confdefs.h. */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006353$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006354int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006355find_stack_direction ()
6356{
6357 static char *addr = 0;
6358 auto char dummy;
6359 if (addr == 0)
6360 {
6361 addr = &dummy;
6362 return find_stack_direction ();
6363 }
6364 else
6365 return (&dummy > addr) ? 1 : -1;
6366}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006367
6368int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006369main ()
6370{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006371 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006372}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373_ACEOF
6374rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006375if { (ac_try="$ac_link"
6376case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379esac
6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006385 { (case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006394 ac_cv_c_stack_direction=1
6395else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006396 echo "$as_me: program exited with status $ac_status" >&5
6397echo "$as_me: failed program was:" >&5
6398sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006400( exit $ac_status )
6401ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006402fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006405
6406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006408{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6409echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006412#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413_ACEOF
6414
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006415
6416fi
6417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006418
6419
6420for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006421do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006427 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006429ac_res=`eval echo '${'$as_ac_Header'}'`
6430 { echo "$as_me:$LINENO: result: $ac_res" >&5
6431echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006432else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006433 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006434{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006436cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h. */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h. */
6442$ac_includes_default
6443#include <$ac_header>
6444_ACEOF
6445rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006446if { (ac_try="$ac_compile"
6447case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; } &&
6469 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006470 { (case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_header_compiler=yes
6480else
6481 echo "$as_me: failed program was:" >&5
6482sed 's/^/| /' conftest.$ac_ext >&5
6483
Theodore Ts'oe1052142006-10-21 21:46:47 -04006484 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006486
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6489echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490
6491# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006492{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006494cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
6500#include <$ac_header>
6501_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006502if { (ac_try="$ac_cpp conftest.$ac_ext"
6503case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } >/dev/null; then
6515 if test -s conftest.err; then
6516 ac_cpp_err=$ac_c_preproc_warn_flag
6517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6518 else
6519 ac_cpp_err=
6520 fi
6521else
6522 ac_cpp_err=yes
6523fi
6524if test -z "$ac_cpp_err"; then
6525 ac_header_preproc=yes
6526else
6527 echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_header_preproc=no
6531fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006534{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6535echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536
6537# So? What about this header?
6538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6539 yes:no: )
6540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6544 ac_header_preproc=yes
6545 ;;
6546 no:yes:* )
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6550echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6554echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560 ;;
6561esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006562{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 eval "$as_ac_Header=\$ac_header_preproc"
6568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006569ac_res=`eval echo '${'$as_ac_Header'}'`
6570 { echo "$as_me:$LINENO: result: $ac_res" >&5
6571echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006572
6573fi
6574if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577_ACEOF
6578
6579fi
6580
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006581done
6582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006584for ac_func in getpagesize
6585do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006590 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006591else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592 cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
6598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6600#define $ac_func innocuous_$ac_func
6601
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006602/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603 which can conflict with char $ac_func (); below.
6604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6605 <limits.h> exists even on freestanding compilers. */
6606
6607#ifdef __STDC__
6608# include <limits.h>
6609#else
6610# include <assert.h>
6611#endif
6612
6613#undef $ac_func
6614
Theodore Ts'oe1052142006-10-21 21:46:47 -04006615/* Override any GCC internal prototype to avoid an error.
6616 Use char because int might match the return type of a GCC
6617 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006618#ifdef __cplusplus
6619extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006621char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006622/* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006625#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006626choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006627#endif
6628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629int
6630main ()
6631{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006632return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633 ;
6634 return 0;
6635}
6636_ACEOF
6637rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006638if { (ac_try="$ac_link"
6639case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642esac
6643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6652 { (case "(($ac_try" in
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6655esac
6656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; } &&
6661 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006662 { (case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665esac
6666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6667 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006672else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673 echo "$as_me: failed program was:" >&5
6674sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006675
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006678
6679rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680 conftest$ac_exeext conftest.$ac_ext
6681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006682ac_res=`eval echo '${'$as_ac_var'}'`
6683 { echo "$as_me:$LINENO: result: $ac_res" >&5
6684echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685if test `eval echo '${'$as_ac_var'}'` = yes; then
6686 cat >>confdefs.h <<_ACEOF
6687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6688_ACEOF
6689
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006690fi
6691done
6692
Theodore Ts'oe1052142006-10-21 21:46:47 -04006693{ echo "$as_me:$LINENO: checking for working mmap" >&5
6694echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006697else
6698 if test "$cross_compiling" = yes; then
6699 ac_cv_func_mmap_fixed_mapped=no
6700else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006701 cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h. */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
6707$ac_includes_default
6708/* malloc might have been renamed as rpl_malloc. */
6709#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006710
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006711/* Thanks to Mike Haertel and Jim Avera for this test.
6712 Here is a matrix of mmap possibilities:
6713 mmap private not fixed
6714 mmap private fixed at somewhere currently unmapped
6715 mmap private fixed at somewhere already mapped
6716 mmap shared not fixed
6717 mmap shared fixed at somewhere currently unmapped
6718 mmap shared fixed at somewhere already mapped
6719 For private mappings, we should verify that changes cannot be read()
6720 back from the file, nor mmap's back from the file at a different
6721 address. (There have been systems where private was not correctly
6722 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006724 like early versions of FreeBSD and possibly contemporary NetBSD.)
6725 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006727
6728 Grep wants private fixed already mapped.
6729 The main things grep needs to know about mmap are:
6730 * does it exist and is it safe to write into the mmap'd area
6731 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006733#include <fcntl.h>
6734#include <sys/mman.h>
6735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736#if !STDC_HEADERS && !HAVE_STDLIB_H
6737char *malloc ();
6738#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740/* This mess was copied from the GNU getpagesize.h. */
6741#if !HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006742/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006743# if !HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006744# define HAVE_SYS_PARAM_H 1
6745# endif
6746
6747# ifdef _SC_PAGESIZE
6748# define getpagesize() sysconf(_SC_PAGESIZE)
6749# else /* no _SC_PAGESIZE */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750# if HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006751# include <sys/param.h>
6752# ifdef EXEC_PAGESIZE
6753# define getpagesize() EXEC_PAGESIZE
6754# else /* no EXEC_PAGESIZE */
6755# ifdef NBPG
6756# define getpagesize() NBPG * CLSIZE
6757# ifndef CLSIZE
6758# define CLSIZE 1
6759# endif /* no CLSIZE */
6760# else /* no NBPG */
6761# ifdef NBPC
6762# define getpagesize() NBPC
6763# else /* no NBPC */
6764# ifdef PAGESIZE
6765# define getpagesize() PAGESIZE
6766# endif /* PAGESIZE */
6767# endif /* no NBPC */
6768# endif /* no NBPG */
6769# endif /* no EXEC_PAGESIZE */
6770# else /* no HAVE_SYS_PARAM_H */
6771# define getpagesize() 8192 /* punt totally */
6772# endif /* no HAVE_SYS_PARAM_H */
6773# endif /* no _SC_PAGESIZE */
6774
6775#endif /* no HAVE_GETPAGESIZE */
6776
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006777int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006779{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006780 char *data, *data2, *data3;
6781 int i, pagesize;
6782 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006785
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786 /* First, make a file with some known garbage in it. */
6787 data = (char *) malloc (pagesize);
6788 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006789 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006790 for (i = 0; i < pagesize; ++i)
6791 *(data + i) = rand ();
6792 umask (0);
6793 fd = creat ("conftest.mmap", 0600);
6794 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006795 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006797 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006798 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006799
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800 /* Next, try to mmap the file at a fixed address which already has
6801 something else allocated at it. If we can, also make sure that
6802 we see the same garbage. */
6803 fd = open ("conftest.mmap", O_RDWR);
6804 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006805 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806 data2 = (char *) malloc (2 * pagesize);
6807 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006808 return 1;
6809 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006810 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6811 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006812 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813 for (i = 0; i < pagesize; ++i)
6814 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006815 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006817 /* Finally, make sure that changes to the mapped area do not
6818 percolate back to the file as seen by read(). (This is a bug on
6819 some variants of i386 svr4.0.) */
6820 for (i = 0; i < pagesize; ++i)
6821 *(data2 + i) = *(data2 + i) + 1;
6822 data3 = (char *) malloc (pagesize);
6823 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006824 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006826 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827 for (i = 0; i < pagesize; ++i)
6828 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006829 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006831 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006832}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833_ACEOF
6834rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006835if { (ac_try="$ac_link"
6836case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839esac
6840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006845 { (case "(($ac_try" in
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6848esac
6849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006854 ac_cv_func_mmap_fixed_mapped=yes
6855else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856 echo "$as_me: program exited with status $ac_status" >&5
6857echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860( exit $ac_status )
6861ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006865
6866
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006868{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6869echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006870if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871
6872cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006873#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006875
6876fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006878
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006879
Theodore Ts'oe1052142006-10-21 21:46:47 -04006880 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6881echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882if test "${ac_cv_gnu_library_2_1+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006884else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006885 cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h. */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006891
6892#include <features.h>
6893#ifdef __GNU_LIBRARY__
6894 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6895 Lucky GNU user
6896 #endif
6897#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898
6899_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006901 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006902 ac_cv_gnu_library_2_1=yes
6903else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006904 ac_cv_gnu_library_2_1=no
6905fi
6906rm -f conftest*
6907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908
6909
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006911{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6912echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006913
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006914 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006915
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006916
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917
6918
Theodore Ts'oe1052142006-10-21 21:46:47 -04006919 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6920echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006921if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006923else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006924
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006925 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006927 # Guess based on the CPU.
6928 case "$host_cpu" in
6929 alpha* | i3456786 | m68k | s390*)
6930 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6931 *)
6932 gt_cv_int_divbyzero_sigfpe="guessing no";;
6933 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006934
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936 cat >conftest.$ac_ext <<_ACEOF
6937/* confdefs.h. */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006942
6943#include <stdlib.h>
6944#include <signal.h>
6945
6946static void
6947#ifdef __cplusplus
6948sigfpe_handler (int sig)
6949#else
6950sigfpe_handler (sig) int sig;
6951#endif
6952{
6953 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6954 exit (sig != SIGFPE);
6955}
6956
6957int x = 1;
6958int y = 0;
6959int z;
6960int nan;
6961
6962int main ()
6963{
6964 signal (SIGFPE, sigfpe_handler);
6965/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6966#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6967 signal (SIGTRAP, sigfpe_handler);
6968#endif
6969/* Linux/SPARC yields signal SIGILL. */
6970#if defined (__sparc__) && defined (__linux__)
6971 signal (SIGILL, sigfpe_handler);
6972#endif
6973
6974 z = x / y;
6975 nan = y / y;
6976 exit (1);
6977}
6978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979_ACEOF
6980rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006981if { (ac_try="$ac_link"
6982case "(($ac_try" in
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6985esac
6986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006991 { (case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994esac
6995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6996 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007000 gt_cv_int_divbyzero_sigfpe=yes
7001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002 echo "$as_me: program exited with status $ac_status" >&5
7003echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006( exit $ac_status )
7007gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007010fi
7011
Theodore Ts'oe1052142006-10-21 21:46:47 -04007012
7013
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007014fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007015{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7016echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007017 case "$gt_cv_int_divbyzero_sigfpe" in
7018 *yes) value=1;;
7019 *) value=0;;
7020 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021
7022cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007023#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007025
7026
7027
Theodore Ts'oe1052142006-10-21 21:46:47 -04007028 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7029echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033 cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h. */
7035_ACEOF
7036cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF
7038/* end confdefs.h. */
7039unsigned long long ull = 1ULL; int i = 63;
7040int
7041main ()
7042{
7043unsigned long long ullmax = (unsigned long long) -1;
7044 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7045 ;
7046 return 0;
7047}
7048_ACEOF
7049rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007050if { (ac_try="$ac_link"
7051case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054esac
7055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067esac
7068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007074 { (case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077esac
7078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_type_unsigned_long_long=yes
7084else
7085 echo "$as_me: failed program was:" >&5
7086sed 's/^/| /' conftest.$ac_ext >&5
7087
Theodore Ts'oe1052142006-10-21 21:46:47 -04007088 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007090
7091rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092 conftest$ac_exeext conftest.$ac_ext
7093fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007094{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7095echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007096 if test $ac_cv_type_unsigned_long_long = yes; then
7097
7098cat >>confdefs.h <<\_ACEOF
7099#define HAVE_UNSIGNED_LONG_LONG 1
7100_ACEOF
7101
7102 fi
7103
7104
7105
7106
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007107 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 -05007108
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007109 test $ac_cv_type_unsigned_long_long = yes \
7110 && ac_type='unsigned long long' \
7111 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007112
7113cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007114#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115_ACEOF
7116
7117 else
7118
7119cat >>confdefs.h <<\_ACEOF
7120#define HAVE_UINTMAX_T 1
7121_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007122
7123 fi
7124
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007125
Theodore Ts'oe1052142006-10-21 21:46:47 -04007126 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7127echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007128if test "${gt_cv_header_inttypes_h+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007130else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007131
7132 cat >conftest.$ac_ext <<_ACEOF
7133/* confdefs.h. */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007138#include <sys/types.h>
7139#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140int
7141main ()
7142{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007143
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007144 ;
7145 return 0;
7146}
7147_ACEOF
7148rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007149if { (ac_try="$ac_compile"
7150case "(($ac_try" in
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7153esac
7154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7163 { (case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166esac
7167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007173 { (case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176esac
7177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007182 gt_cv_header_inttypes_h=yes
7183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007184 echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007186
Theodore Ts'oe1052142006-10-21 21:46:47 -04007187 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007188fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007189
7190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191
7192fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007193{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7194echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007195 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196
7197cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007198#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007200
7201 fi
7202
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007204
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007205 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007206 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7207echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007210else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211
7212 cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h. */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007218#include <inttypes.h>
7219#ifdef PRId32
7220char *p = PRId32;
7221#endif
7222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223int
7224main ()
7225{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007227 ;
7228 return 0;
7229}
7230_ACEOF
7231rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007232if { (ac_try="$ac_compile"
7233case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236esac
7237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7246 { (case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249esac
7250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007256 { (case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259esac
7260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007265 gt_cv_inttypes_pri_broken=no
7266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007267 echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007269
Theodore Ts'oe1052142006-10-21 21:46:47 -04007270 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007272
7273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007274
7275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007276{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7277echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007278 fi
7279 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007280
7281cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007282#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007283_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007284
7285 fi
7286
7287
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289for ac_header in stdint.h
7290do
7291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007298ac_res=`eval echo '${'$as_ac_Header'}'`
7299 { echo "$as_me:$LINENO: result: $ac_res" >&5
7300echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007301else
7302 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007303{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007305cat >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
Theodore Ts'oe1052142006-10-21 21:46:47 -04007315if { (ac_try="$ac_compile"
7316case "(($ac_try" in
7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 *) ac_try_echo=$ac_try;;
7319esac
7320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7329 { (case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332esac
7333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007339 { (case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342esac
7343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_header_compiler=yes
7349else
7350 echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
Theodore Ts'oe1052142006-10-21 21:46:47 -04007353 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007354fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007355
7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7358echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359
7360# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007361{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7362echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007363cat >conftest.$ac_ext <<_ACEOF
7364/* confdefs.h. */
7365_ACEOF
7366cat confdefs.h >>conftest.$ac_ext
7367cat >>conftest.$ac_ext <<_ACEOF
7368/* end confdefs.h. */
7369#include <$ac_header>
7370_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007371if { (ac_try="$ac_cpp conftest.$ac_ext"
7372case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375esac
7376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } >/dev/null; then
7384 if test -s conftest.err; then
7385 ac_cpp_err=$ac_c_preproc_warn_flag
7386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7387 else
7388 ac_cpp_err=
7389 fi
7390else
7391 ac_cpp_err=yes
7392fi
7393if test -z "$ac_cpp_err"; then
7394 ac_header_preproc=yes
7395else
7396 echo "$as_me: failed program was:" >&5
7397sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 ac_header_preproc=no
7400fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007402rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7404echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007405
7406# So? What about this header?
7407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7408 yes:no: )
7409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7410echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7412echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7413 ac_header_preproc=yes
7414 ;;
7415 no:yes:* )
7416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7417echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7419echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7421echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7423echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7427echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007429 ;;
7430esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 eval "$as_ac_Header=\$ac_header_preproc"
7437fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007438ac_res=`eval echo '${'$as_ac_Header'}'`
7439 { echo "$as_me:$LINENO: result: $ac_res" >&5
7440echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441
7442fi
7443if test `eval echo '${'$as_ac_Header'}'` = yes; then
7444 cat >>confdefs.h <<_ACEOF
7445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446_ACEOF
7447
7448fi
7449
7450done
7451
Theodore Ts'oe1052142006-10-21 21:46:47 -04007452 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7453echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007454 result=
7455 cat >conftest.$ac_ext <<_ACEOF
7456/* confdefs.h. */
7457_ACEOF
7458cat confdefs.h >>conftest.$ac_ext
7459cat >>conftest.$ac_ext <<_ACEOF
7460/* end confdefs.h. */
7461
7462#include <limits.h>
7463#if HAVE_STDINT_H
7464#include <stdint.h>
7465#endif
7466#ifdef SIZE_MAX
7467Found it
7468#endif
7469
7470_ACEOF
7471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7472 $EGREP "Found it" >/dev/null 2>&1; then
7473 result=yes
7474fi
7475rm -f conftest*
7476
7477 if test -z "$result"; then
7478 if test "$cross_compiling" = yes; then
7479 # Depending upon the size, compute the lo and hi bounds.
7480cat >conftest.$ac_ext <<_ACEOF
7481/* confdefs.h. */
7482_ACEOF
7483cat confdefs.h >>conftest.$ac_ext
7484cat >>conftest.$ac_ext <<_ACEOF
7485/* end confdefs.h. */
7486#include <stddef.h>
7487int
7488main ()
7489{
7490static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7491test_array [0] = 0
7492
7493 ;
7494 return 0;
7495}
7496_ACEOF
7497rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007498if { (ac_try="$ac_compile"
7499case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502esac
7503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007505 ac_status=$?
7506 grep -v '^ *+' conftest.er1 >conftest.err
7507 rm -f conftest.er1
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7512 { (case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515esac
7516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007522 { (case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525esac
7526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 ac_lo=0 ac_mid=0
7532 while :; do
7533 cat >conftest.$ac_ext <<_ACEOF
7534/* confdefs.h. */
7535_ACEOF
7536cat confdefs.h >>conftest.$ac_ext
7537cat >>conftest.$ac_ext <<_ACEOF
7538/* end confdefs.h. */
7539#include <stddef.h>
7540int
7541main ()
7542{
7543static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7544test_array [0] = 0
7545
7546 ;
7547 return 0;
7548}
7549_ACEOF
7550rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007551if { (ac_try="$ac_compile"
7552case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555esac
7556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7565 { (case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568esac
7569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; } &&
7574 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007575 { (case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578esac
7579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 ac_hi=$ac_mid; break
7585else
7586 echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
Theodore Ts'oe1052142006-10-21 21:46:47 -04007589 ac_lo=`expr $ac_mid + 1`
7590 if test $ac_lo -le $ac_mid; then
7591 ac_lo= ac_hi=
7592 break
7593 fi
7594 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007595fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007596
7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007598 done
7599else
7600 echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
Theodore Ts'oe1052142006-10-21 21:46:47 -04007603 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604/* confdefs.h. */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h. */
7609#include <stddef.h>
7610int
7611main ()
7612{
7613static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7614test_array [0] = 0
7615
7616 ;
7617 return 0;
7618}
7619_ACEOF
7620rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007621if { (ac_try="$ac_compile"
7622case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625esac
7626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7638esac
7639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007645 { (case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648esac
7649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_hi=-1 ac_mid=-1
7655 while :; do
7656 cat >conftest.$ac_ext <<_ACEOF
7657/* confdefs.h. */
7658_ACEOF
7659cat confdefs.h >>conftest.$ac_ext
7660cat >>conftest.$ac_ext <<_ACEOF
7661/* end confdefs.h. */
7662#include <stddef.h>
7663int
7664main ()
7665{
7666static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7667test_array [0] = 0
7668
7669 ;
7670 return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007674if { (ac_try="$ac_compile"
7675case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678esac
7679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7688 { (case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7691esac
7692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007698 { (case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701esac
7702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 ac_lo=$ac_mid; break
7708else
7709 echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
Theodore Ts'oe1052142006-10-21 21:46:47 -04007712 ac_hi=`expr '(' $ac_mid ')' - 1`
7713 if test $ac_mid -le $ac_hi; then
7714 ac_lo= ac_hi=
7715 break
7716 fi
7717 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007719
7720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721 done
7722else
7723 echo "$as_me: failed program was:" >&5
7724sed 's/^/| /' conftest.$ac_ext >&5
7725
Theodore Ts'oe1052142006-10-21 21:46:47 -04007726 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007728
7729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007731
7732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007733# Binary search between lo and hi bounds.
7734while test "x$ac_lo" != "x$ac_hi"; do
7735 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7736 cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h. */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h. */
7742#include <stddef.h>
7743int
7744main ()
7745{
7746static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7747test_array [0] = 0
7748
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007754if { (ac_try="$ac_compile"
7755case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758esac
7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7768 { (case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771esac
7772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; } &&
7777 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007778 { (case "(($ac_try" in
7779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7780 *) ac_try_echo=$ac_try;;
7781esac
7782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7783 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 ac_hi=$ac_mid
7788else
7789 echo "$as_me: failed program was:" >&5
7790sed 's/^/| /' conftest.$ac_ext >&5
7791
Theodore Ts'oe1052142006-10-21 21:46:47 -04007792 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007793fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007794
7795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007796done
7797case $ac_lo in
7798?*) res_hi=$ac_lo;;
7799'') result=? ;;
7800esac
7801else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007802 cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h. */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h. */
7808#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007809static long int longval () { return ~(size_t)0 / 10; }
7810static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007811#include <stdio.h>
7812#include <stdlib.h>
7813int
7814main ()
7815{
7816
7817 FILE *f = fopen ("conftest.val", "w");
7818 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007819 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007820 if ((~(size_t)0 / 10) < 0)
7821 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007822 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007823 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007824 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007825 fprintf (f, "%ld\n", i);
7826 }
7827 else
7828 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007829 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007830 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007831 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007832 fprintf (f, "%lu\n", i);
7833 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007834 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007835
7836 ;
7837 return 0;
7838}
7839_ACEOF
7840rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007841if { (ac_try="$ac_link"
7842case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
7846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 res_hi=`cat conftest.val`
7861else
7862 echo "$as_me: program exited with status $ac_status" >&5
7863echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866( exit $ac_status )
7867result=?
7868fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007870fi
7871rm -f conftest.val
7872 if test "$cross_compiling" = yes; then
7873 # Depending upon the size, compute the lo and hi bounds.
7874cat >conftest.$ac_ext <<_ACEOF
7875/* confdefs.h. */
7876_ACEOF
7877cat confdefs.h >>conftest.$ac_ext
7878cat >>conftest.$ac_ext <<_ACEOF
7879/* end confdefs.h. */
7880#include <stddef.h>
7881int
7882main ()
7883{
7884static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7885test_array [0] = 0
7886
7887 ;
7888 return 0;
7889}
7890_ACEOF
7891rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007892if { (ac_try="$ac_compile"
7893case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906 { (case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909esac
7910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007916 { (case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919esac
7920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_lo=0 ac_mid=0
7926 while :; do
7927 cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h. */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h. */
7933#include <stddef.h>
7934int
7935main ()
7936{
7937static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7938test_array [0] = 0
7939
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007945if { (ac_try="$ac_compile"
7946case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962esac
7963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_hi=$ac_mid; break
7979else
7980 echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
Theodore Ts'oe1052142006-10-21 21:46:47 -04007983 ac_lo=`expr $ac_mid + 1`
7984 if test $ac_lo -le $ac_mid; then
7985 ac_lo= ac_hi=
7986 break
7987 fi
7988 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007989fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007990
7991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007992 done
7993else
7994 echo "$as_me: failed program was:" >&5
7995sed 's/^/| /' conftest.$ac_ext >&5
7996
Theodore Ts'oe1052142006-10-21 21:46:47 -04007997 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007998/* confdefs.h. */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h. */
8003#include <stddef.h>
8004int
8005main ()
8006{
8007static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8008test_array [0] = 0
8009
8010 ;
8011 return 0;
8012}
8013_ACEOF
8014rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008015if { (ac_try="$ac_compile"
8016case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019esac
8020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029 { (case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008039 { (case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042esac
8043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_hi=-1 ac_mid=-1
8049 while :; do
8050 cat >conftest.$ac_ext <<_ACEOF
8051/* confdefs.h. */
8052_ACEOF
8053cat confdefs.h >>conftest.$ac_ext
8054cat >>conftest.$ac_ext <<_ACEOF
8055/* end confdefs.h. */
8056#include <stddef.h>
8057int
8058main ()
8059{
8060static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8061test_array [0] = 0
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008068if { (ac_try="$ac_compile"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082 { (case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085esac
8086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008092 { (case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095esac
8096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_lo=$ac_mid; break
8102else
8103 echo "$as_me: failed program was:" >&5
8104sed 's/^/| /' conftest.$ac_ext >&5
8105
Theodore Ts'oe1052142006-10-21 21:46:47 -04008106 ac_hi=`expr '(' $ac_mid ')' - 1`
8107 if test $ac_mid -le $ac_hi; then
8108 ac_lo= ac_hi=
8109 break
8110 fi
8111 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008112fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008113
8114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008115 done
8116else
8117 echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
Theodore Ts'oe1052142006-10-21 21:46:47 -04008120 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008121fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008122
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008124fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008125
8126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008127# Binary search between lo and hi bounds.
8128while test "x$ac_lo" != "x$ac_hi"; do
8129 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8130 cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h. */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h. */
8136#include <stddef.h>
8137int
8138main ()
8139{
8140static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8141test_array [0] = 0
8142
8143 ;
8144 return 0;
8145}
8146_ACEOF
8147rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008148if { (ac_try="$ac_compile"
8149case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152esac
8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8162 { (case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8165esac
8166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175esac
8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 ac_hi=$ac_mid
8182else
8183 echo "$as_me: failed program was:" >&5
8184sed 's/^/| /' conftest.$ac_ext >&5
8185
Theodore Ts'oe1052142006-10-21 21:46:47 -04008186 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008187fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008188
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008190done
8191case $ac_lo in
8192?*) res_lo=$ac_lo;;
8193'') result=? ;;
8194esac
8195else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008196 cat >conftest.$ac_ext <<_ACEOF
8197/* confdefs.h. */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h. */
8202#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008203static long int longval () { return ~(size_t)0 % 10; }
8204static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008205#include <stdio.h>
8206#include <stdlib.h>
8207int
8208main ()
8209{
8210
8211 FILE *f = fopen ("conftest.val", "w");
8212 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008213 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008214 if ((~(size_t)0 % 10) < 0)
8215 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008216 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008217 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008218 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008219 fprintf (f, "%ld\n", i);
8220 }
8221 else
8222 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008223 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008224 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008225 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008226 fprintf (f, "%lu\n", i);
8227 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008228 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008229
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008235if { (ac_try="$ac_link"
8236case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239esac
8240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008245 { (case "(($ac_try" in
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8248esac
8249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 res_lo=`cat conftest.val`
8255else
8256 echo "$as_me: program exited with status $ac_status" >&5
8257echo "$as_me: failed program was:" >&5
8258sed 's/^/| /' conftest.$ac_ext >&5
8259
8260( exit $ac_status )
8261result=?
8262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008264fi
8265rm -f conftest.val
8266 if test "$cross_compiling" = yes; then
8267 # Depending upon the size, compute the lo and hi bounds.
8268cat >conftest.$ac_ext <<_ACEOF
8269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h. */
8274#include <stddef.h>
8275int
8276main ()
8277{
8278static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8279test_array [0] = 0
8280
8281 ;
8282 return 0;
8283}
8284_ACEOF
8285rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008286if { (ac_try="$ac_compile"
8287case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290esac
8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_lo=0 ac_mid=0
8320 while :; do
8321 cat >conftest.$ac_ext <<_ACEOF
8322/* confdefs.h. */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h. */
8327#include <stddef.h>
8328int
8329main ()
8330{
8331static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8332test_array [0] = 0
8333
8334 ;
8335 return 0;
8336}
8337_ACEOF
8338rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008339if { (ac_try="$ac_compile"
8340case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8343esac
8344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366esac
8367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_hi=$ac_mid; break
8373else
8374 echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
Theodore Ts'oe1052142006-10-21 21:46:47 -04008377 ac_lo=`expr $ac_mid + 1`
8378 if test $ac_lo -le $ac_mid; then
8379 ac_lo= ac_hi=
8380 break
8381 fi
8382 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008384
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008386 done
8387else
8388 echo "$as_me: failed program was:" >&5
8389sed 's/^/| /' conftest.$ac_ext >&5
8390
Theodore Ts'oe1052142006-10-21 21:46:47 -04008391 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008392/* confdefs.h. */
8393_ACEOF
8394cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h. */
8397#include <stddef.h>
8398int
8399main ()
8400{
8401static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8402test_array [0] = 0
8403
8404 ;
8405 return 0;
8406}
8407_ACEOF
8408rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008409if { (ac_try="$ac_compile"
8410case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413esac
8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8423 { (case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426esac
8427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; } &&
8432 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008433 { (case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_hi=-1 ac_mid=-1
8443 while :; do
8444 cat >conftest.$ac_ext <<_ACEOF
8445/* confdefs.h. */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
8449/* end confdefs.h. */
8450#include <stddef.h>
8451int
8452main ()
8453{
8454static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8455test_array [0] = 0
8456
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008462if { (ac_try="$ac_compile"
8463case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8466esac
8467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476 { (case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008486 { (case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489esac
8490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_lo=$ac_mid; break
8496else
8497 echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
Theodore Ts'oe1052142006-10-21 21:46:47 -04008500 ac_hi=`expr '(' $ac_mid ')' - 1`
8501 if test $ac_mid -le $ac_hi; then
8502 ac_lo= ac_hi=
8503 break
8504 fi
8505 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008507
8508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008509 done
8510else
8511 echo "$as_me: failed program was:" >&5
8512sed 's/^/| /' conftest.$ac_ext >&5
8513
Theodore Ts'oe1052142006-10-21 21:46:47 -04008514 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008515fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008516
8517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008518fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008519
8520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008521# Binary search between lo and hi bounds.
8522while test "x$ac_lo" != "x$ac_hi"; do
8523 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8524 cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8530#include <stddef.h>
8531int
8532main ()
8533{
8534static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8535test_array [0] = 0
8536
8537 ;
8538 return 0;
8539}
8540_ACEOF
8541rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008542if { (ac_try="$ac_compile"
8543case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546esac
8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8556 { (case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559esac
8560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008566 { (case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_hi=$ac_mid
8576else
8577 echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
Theodore Ts'oe1052142006-10-21 21:46:47 -04008580 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008581fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008582
8583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008584done
8585case $ac_lo in
8586?*) fits_in_uint=$ac_lo;;
8587'') result=? ;;
8588esac
8589else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008590 cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
8596#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008597static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8598static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008599#include <stdio.h>
8600#include <stdlib.h>
8601int
8602main ()
8603{
8604
8605 FILE *f = fopen ("conftest.val", "w");
8606 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008607 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008608 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8609 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008610 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008611 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008612 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008613 fprintf (f, "%ld\n", i);
8614 }
8615 else
8616 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008617 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008618 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008619 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008620 fprintf (f, "%lu\n", i);
8621 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008622 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008623
8624 ;
8625 return 0;
8626}
8627_ACEOF
8628rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008629if { (ac_try="$ac_link"
8630case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633esac
8634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642esac
8643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 fits_in_uint=`cat conftest.val`
8649else
8650 echo "$as_me: program exited with status $ac_status" >&5
8651echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654( exit $ac_status )
8655result=?
8656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008658fi
8659rm -f conftest.val
8660 if test "$fits_in_uint" = 1; then
8661 cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h. */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h. */
8667#include <stddef.h>
8668 extern size_t foo;
8669 extern unsigned long foo;
8670
8671int
8672main ()
8673{
8674
8675 ;
8676 return 0;
8677}
8678_ACEOF
8679rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008680if { (ac_try="$ac_compile"
8681case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684esac
8685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694 { (case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697esac
8698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008704 { (case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707esac
8708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 fits_in_uint=0
8714else
8715 echo "$as_me: failed program was:" >&5
8716sed 's/^/| /' conftest.$ac_ext >&5
8717
Theodore Ts'oe1052142006-10-21 21:46:47 -04008718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008720
8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008722 fi
8723 if test -z "$result"; then
8724 if test "$fits_in_uint" = 1; then
8725 result="$res_hi$res_lo"U
8726 else
8727 result="$res_hi$res_lo"UL
8728 fi
8729 else
8730 result='~(size_t)0'
8731 fi
8732 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008733 { echo "$as_me:$LINENO: result: $result" >&5
8734echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008735 if test "$result" != yes; then
8736
8737cat >>confdefs.h <<_ACEOF
8738#define SIZE_MAX $result
8739_ACEOF
8740
8741 fi
8742
8743
8744
8745
8746for ac_header in stdint.h
8747do
8748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008755ac_res=`eval echo '${'$as_ac_Header'}'`
8756 { echo "$as_me:$LINENO: result: $ac_res" >&5
8757echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008758else
8759 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008760{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008762cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768$ac_includes_default
8769#include <$ac_header>
8770_ACEOF
8771rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008772if { (ac_try="$ac_compile"
8773case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776esac
8777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008779 ac_status=$?
8780 grep -v '^ *+' conftest.er1 >conftest.err
8781 rm -f conftest.er1
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8786 { (case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789esac
8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008796 { (case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799esac
8800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_header_compiler=yes
8806else
8807 echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
Theodore Ts'oe1052142006-10-21 21:46:47 -04008810 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008812
8813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8815echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008816
8817# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008818{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826#include <$ac_header>
8827_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008828if { (ac_try="$ac_cpp conftest.$ac_ext"
8829case "(($ac_try" in
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8832esac
8833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null; then
8841 if test -s conftest.err; then
8842 ac_cpp_err=$ac_c_preproc_warn_flag
8843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8844 else
8845 ac_cpp_err=
8846 fi
8847else
8848 ac_cpp_err=yes
8849fi
8850if test -z "$ac_cpp_err"; then
8851 ac_header_preproc=yes
8852else
8853 echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ac_header_preproc=no
8857fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008859rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008860{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8861echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008862
8863# So? What about this header?
8864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8865 yes:no: )
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8867echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8869echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8870 ac_header_preproc=yes
8871 ;;
8872 no:yes:* )
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8876echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8878echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8880echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8884echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008885
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008886 ;;
8887esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008888{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892else
8893 eval "$as_ac_Header=\$ac_header_preproc"
8894fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008895ac_res=`eval echo '${'$as_ac_Header'}'`
8896 { echo "$as_me:$LINENO: result: $ac_res" >&5
8897echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008898
8899fi
8900if test `eval echo '${'$as_ac_Header'}'` = yes; then
8901 cat >>confdefs.h <<_ACEOF
8902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8903_ACEOF
8904
8905fi
8906
8907done
8908
8909
8910
8911 if test "X$prefix" = "XNONE"; then
8912 acl_final_prefix="$ac_default_prefix"
8913 else
8914 acl_final_prefix="$prefix"
8915 fi
8916 if test "X$exec_prefix" = "XNONE"; then
8917 acl_final_exec_prefix='${prefix}'
8918 else
8919 acl_final_exec_prefix="$exec_prefix"
8920 fi
8921 acl_save_prefix="$prefix"
8922 prefix="$acl_final_prefix"
8923 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8924 prefix="$acl_save_prefix"
8925
8926
Theodore Ts'oe1052142006-10-21 21:46:47 -04008927# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008928if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008929 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008930else
8931 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008932fi
8933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008934# Prepare PATH_SEPARATOR.
8935# The user is always right.
8936if test "${PATH_SEPARATOR+set}" != set; then
8937 echo "#! /bin/sh" >conf$$.sh
8938 echo "exit 0" >>conf$$.sh
8939 chmod +x conf$$.sh
8940 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8941 PATH_SEPARATOR=';'
8942 else
8943 PATH_SEPARATOR=:
8944 fi
8945 rm -f conf$$.sh
8946fi
8947ac_prog=ld
8948if test "$GCC" = yes; then
8949 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008950 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8951echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008952 case $host in
8953 *-*-mingw*)
8954 # gcc leaves a trailing carriage return which upsets mingw
8955 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8956 *)
8957 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8958 esac
8959 case $ac_prog in
8960 # Accept absolute paths.
8961 [\\/]* | [A-Za-z]:[\\/]*)
8962 re_direlt='/[^/][^/]*/\.\./'
8963 # Canonicalize the path of ld
8964 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8965 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8966 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8967 done
8968 test -z "$LD" && LD="$ac_prog"
8969 ;;
8970 "")
8971 # If it fails, then pretend we aren't using GCC.
8972 ac_prog=ld
8973 ;;
8974 *)
8975 # If it is relative, then search for the first ld in PATH.
8976 with_gnu_ld=unknown
8977 ;;
8978 esac
8979elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008980 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8981echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008982else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008983 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8984echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008985fi
8986if test "${acl_cv_path_LD+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989 if test -z "$LD"; then
8990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8991 for ac_dir in $PATH; do
8992 test -z "$ac_dir" && ac_dir=.
8993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8994 acl_cv_path_LD="$ac_dir/$ac_prog"
8995 # Check to see if the program is GNU ld. I'd rather use --version,
8996 # but apparently some GNU ld's only accept -v.
8997 # Break only if it was the GNU/non-GNU ld that we prefer.
8998 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8999 *GNU* | *'with BFD'*)
9000 test "$with_gnu_ld" != no && break ;;
9001 *)
9002 test "$with_gnu_ld" != yes && break ;;
9003 esac
9004 fi
9005 done
9006 IFS="$ac_save_ifs"
9007else
9008 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9009fi
9010fi
9011
9012LD="$acl_cv_path_LD"
9013if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009014 { echo "$as_me:$LINENO: result: $LD" >&5
9015echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009016else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009017 { echo "$as_me:$LINENO: result: no" >&5
9018echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009019fi
9020test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9021echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9022 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009023{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9024echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009025if test "${acl_cv_prog_gnu_ld+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027else
9028 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9029case `$LD -v 2>&1 </dev/null` in
9030*GNU* | *'with BFD'*)
9031 acl_cv_prog_gnu_ld=yes ;;
9032*)
9033 acl_cv_prog_gnu_ld=no ;;
9034esac
9035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009036{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9037echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009038with_gnu_ld=$acl_cv_prog_gnu_ld
9039
9040
9041
Theodore Ts'oe1052142006-10-21 21:46:47 -04009042 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9043echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009044if test "${acl_cv_rpath+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046else
9047
9048 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9049 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9050 . ./conftest.sh
9051 rm -f ./conftest.sh
9052 acl_cv_rpath=done
9053
9054fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009055{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9056echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009057 wl="$acl_cv_wl"
9058 libext="$acl_cv_libext"
9059 shlibext="$acl_cv_shlibext"
9060 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9061 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9062 hardcode_direct="$acl_cv_hardcode_direct"
9063 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009064 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009065if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009066 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009067else
9068 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009069fi
9070
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009071
9072
9073
9074
9075
9076
9077
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009078 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009079
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009080 acl_save_prefix="$prefix"
9081 prefix="$acl_final_prefix"
9082 acl_save_exec_prefix="$exec_prefix"
9083 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009084
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009085 eval additional_includedir=\"$includedir\"
9086 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009087
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009088 exec_prefix="$acl_save_exec_prefix"
9089 prefix="$acl_save_prefix"
9090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091
Theodore Ts'oe1052142006-10-21 21:46:47 -04009092# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009093if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009094 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009095 if test "X$withval" = "Xno"; then
9096 use_additional=no
9097 else
9098 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009099
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009100 acl_save_prefix="$prefix"
9101 prefix="$acl_final_prefix"
9102 acl_save_exec_prefix="$exec_prefix"
9103 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009105 eval additional_includedir=\"$includedir\"
9106 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009107
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009108 exec_prefix="$acl_save_exec_prefix"
9109 prefix="$acl_save_prefix"
9110
9111 else
9112 additional_includedir="$withval/include"
9113 additional_libdir="$withval/lib"
9114 fi
9115 fi
9116
Theodore Ts'oe1052142006-10-21 21:46:47 -04009117fi
9118
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009119 LIBICONV=
9120 LTLIBICONV=
9121 INCICONV=
9122 rpathdirs=
9123 ltrpathdirs=
9124 names_already_handled=
9125 names_next_round='iconv '
9126 while test -n "$names_next_round"; do
9127 names_this_round="$names_next_round"
9128 names_next_round=
9129 for name in $names_this_round; do
9130 already_handled=
9131 for n in $names_already_handled; do
9132 if test "$n" = "$name"; then
9133 already_handled=yes
9134 break
9135 fi
9136 done
9137 if test -z "$already_handled"; then
9138 names_already_handled="$names_already_handled $name"
9139 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9140 eval value=\"\$HAVE_LIB$uppername\"
9141 if test -n "$value"; then
9142 if test "$value" = yes; then
9143 eval value=\"\$LIB$uppername\"
9144 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9145 eval value=\"\$LTLIB$uppername\"
9146 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9147 else
9148 :
9149 fi
9150 else
9151 found_dir=
9152 found_la=
9153 found_so=
9154 found_a=
9155 if test $use_additional = yes; then
9156 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9157 found_dir="$additional_libdir"
9158 found_so="$additional_libdir/lib$name.$shlibext"
9159 if test -f "$additional_libdir/lib$name.la"; then
9160 found_la="$additional_libdir/lib$name.la"
9161 fi
9162 else
9163 if test -f "$additional_libdir/lib$name.$libext"; then
9164 found_dir="$additional_libdir"
9165 found_a="$additional_libdir/lib$name.$libext"
9166 if test -f "$additional_libdir/lib$name.la"; then
9167 found_la="$additional_libdir/lib$name.la"
9168 fi
9169 fi
9170 fi
9171 fi
9172 if test "X$found_dir" = "X"; then
9173 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009174
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009175 acl_save_prefix="$prefix"
9176 prefix="$acl_final_prefix"
9177 acl_save_exec_prefix="$exec_prefix"
9178 exec_prefix="$acl_final_exec_prefix"
9179 eval x=\"$x\"
9180 exec_prefix="$acl_save_exec_prefix"
9181 prefix="$acl_save_prefix"
9182
9183 case "$x" in
9184 -L*)
9185 dir=`echo "X$x" | sed -e 's/^X-L//'`
9186 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9187 found_dir="$dir"
9188 found_so="$dir/lib$name.$shlibext"
9189 if test -f "$dir/lib$name.la"; then
9190 found_la="$dir/lib$name.la"
9191 fi
9192 else
9193 if test -f "$dir/lib$name.$libext"; then
9194 found_dir="$dir"
9195 found_a="$dir/lib$name.$libext"
9196 if test -f "$dir/lib$name.la"; then
9197 found_la="$dir/lib$name.la"
9198 fi
9199 fi
9200 fi
9201 ;;
9202 esac
9203 if test "X$found_dir" != "X"; then
9204 break
9205 fi
9206 done
9207 fi
9208 if test "X$found_dir" != "X"; then
9209 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9210 if test "X$found_so" != "X"; then
9211 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9212 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9213 else
9214 haveit=
9215 for x in $ltrpathdirs; do
9216 if test "X$x" = "X$found_dir"; then
9217 haveit=yes
9218 break
9219 fi
9220 done
9221 if test -z "$haveit"; then
9222 ltrpathdirs="$ltrpathdirs $found_dir"
9223 fi
9224 if test "$hardcode_direct" = yes; then
9225 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9226 else
9227 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9228 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9229 haveit=
9230 for x in $rpathdirs; do
9231 if test "X$x" = "X$found_dir"; then
9232 haveit=yes
9233 break
9234 fi
9235 done
9236 if test -z "$haveit"; then
9237 rpathdirs="$rpathdirs $found_dir"
9238 fi
9239 else
9240 haveit=
9241 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009242
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009243 acl_save_prefix="$prefix"
9244 prefix="$acl_final_prefix"
9245 acl_save_exec_prefix="$exec_prefix"
9246 exec_prefix="$acl_final_exec_prefix"
9247 eval x=\"$x\"
9248 exec_prefix="$acl_save_exec_prefix"
9249 prefix="$acl_save_prefix"
9250
9251 if test "X$x" = "X-L$found_dir"; then
9252 haveit=yes
9253 break
9254 fi
9255 done
9256 if test -z "$haveit"; then
9257 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9258 fi
9259 if test "$hardcode_minus_L" != no; then
9260 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9261 else
9262 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9263 fi
9264 fi
9265 fi
9266 fi
9267 else
9268 if test "X$found_a" != "X"; then
9269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9270 else
9271 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9272 fi
9273 fi
9274 additional_includedir=
9275 case "$found_dir" in
9276 */lib | */lib/)
9277 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9278 additional_includedir="$basedir/include"
9279 ;;
9280 esac
9281 if test "X$additional_includedir" != "X"; then
9282 if test "X$additional_includedir" != "X/usr/include"; then
9283 haveit=
9284 if test "X$additional_includedir" = "X/usr/local/include"; then
9285 if test -n "$GCC"; then
9286 case $host_os in
9287 linux*) haveit=yes;;
9288 esac
9289 fi
9290 fi
9291 if test -z "$haveit"; then
9292 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009293
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009294 acl_save_prefix="$prefix"
9295 prefix="$acl_final_prefix"
9296 acl_save_exec_prefix="$exec_prefix"
9297 exec_prefix="$acl_final_exec_prefix"
9298 eval x=\"$x\"
9299 exec_prefix="$acl_save_exec_prefix"
9300 prefix="$acl_save_prefix"
9301
9302 if test "X$x" = "X-I$additional_includedir"; then
9303 haveit=yes
9304 break
9305 fi
9306 done
9307 if test -z "$haveit"; then
9308 if test -d "$additional_includedir"; then
9309 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9310 fi
9311 fi
9312 fi
9313 fi
9314 fi
9315 if test -n "$found_la"; then
9316 save_libdir="$libdir"
9317 case "$found_la" in
9318 */* | *\\*) . "$found_la" ;;
9319 *) . "./$found_la" ;;
9320 esac
9321 libdir="$save_libdir"
9322 for dep in $dependency_libs; do
9323 case "$dep" in
9324 -L*)
9325 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9326 if test "X$additional_libdir" != "X/usr/lib"; then
9327 haveit=
9328 if test "X$additional_libdir" = "X/usr/local/lib"; then
9329 if test -n "$GCC"; then
9330 case $host_os in
9331 linux*) haveit=yes;;
9332 esac
9333 fi
9334 fi
9335 if test -z "$haveit"; then
9336 haveit=
9337 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009338
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009339 acl_save_prefix="$prefix"
9340 prefix="$acl_final_prefix"
9341 acl_save_exec_prefix="$exec_prefix"
9342 exec_prefix="$acl_final_exec_prefix"
9343 eval x=\"$x\"
9344 exec_prefix="$acl_save_exec_prefix"
9345 prefix="$acl_save_prefix"
9346
9347 if test "X$x" = "X-L$additional_libdir"; then
9348 haveit=yes
9349 break
9350 fi
9351 done
9352 if test -z "$haveit"; then
9353 if test -d "$additional_libdir"; then
9354 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9355 fi
9356 fi
9357 haveit=
9358 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009359
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009360 acl_save_prefix="$prefix"
9361 prefix="$acl_final_prefix"
9362 acl_save_exec_prefix="$exec_prefix"
9363 exec_prefix="$acl_final_exec_prefix"
9364 eval x=\"$x\"
9365 exec_prefix="$acl_save_exec_prefix"
9366 prefix="$acl_save_prefix"
9367
9368 if test "X$x" = "X-L$additional_libdir"; then
9369 haveit=yes
9370 break
9371 fi
9372 done
9373 if test -z "$haveit"; then
9374 if test -d "$additional_libdir"; then
9375 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9376 fi
9377 fi
9378 fi
9379 fi
9380 ;;
9381 -R*)
9382 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9383 if test "$enable_rpath" != no; then
9384 haveit=
9385 for x in $rpathdirs; do
9386 if test "X$x" = "X$dir"; then
9387 haveit=yes
9388 break
9389 fi
9390 done
9391 if test -z "$haveit"; then
9392 rpathdirs="$rpathdirs $dir"
9393 fi
9394 haveit=
9395 for x in $ltrpathdirs; do
9396 if test "X$x" = "X$dir"; then
9397 haveit=yes
9398 break
9399 fi
9400 done
9401 if test -z "$haveit"; then
9402 ltrpathdirs="$ltrpathdirs $dir"
9403 fi
9404 fi
9405 ;;
9406 -l*)
9407 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9408 ;;
9409 *.la)
9410 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9411 ;;
9412 *)
9413 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9415 ;;
9416 esac
9417 done
9418 fi
9419 else
9420 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9422 fi
9423 fi
9424 fi
9425 done
9426 done
9427 if test "X$rpathdirs" != "X"; then
9428 if test -n "$hardcode_libdir_separator"; then
9429 alldirs=
9430 for found_dir in $rpathdirs; do
9431 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9432 done
9433 acl_save_libdir="$libdir"
9434 libdir="$alldirs"
9435 eval flag=\"$hardcode_libdir_flag_spec\"
9436 libdir="$acl_save_libdir"
9437 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9438 else
9439 for found_dir in $rpathdirs; do
9440 acl_save_libdir="$libdir"
9441 libdir="$found_dir"
9442 eval flag=\"$hardcode_libdir_flag_spec\"
9443 libdir="$acl_save_libdir"
9444 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9445 done
9446 fi
9447 fi
9448 if test "X$ltrpathdirs" != "X"; then
9449 for found_dir in $ltrpathdirs; do
9450 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9451 done
9452 fi
9453
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009454
9455
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009457
9458
9459
9460
Theodore Ts'oe1052142006-10-21 21:46:47 -04009461 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9462echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009463if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009465else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009466 cat >conftest.$ac_ext <<_ACEOF
9467/* confdefs.h. */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
9471/* end confdefs.h. */
9472$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04009473typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474int
9475main ()
9476{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009477if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009478 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04009479if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009480 return 0;
9481 ;
9482 return 0;
9483}
9484_ACEOF
9485rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009486if { (ac_try="$ac_compile"
9487case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9490esac
9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500 { (case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503esac
9504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009510 { (case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513esac
9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 ac_cv_type_ptrdiff_t=yes
9520else
9521 echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
Theodore Ts'oe1052142006-10-21 21:46:47 -04009524 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009526
9527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009529{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9530echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531if test $ac_cv_type_ptrdiff_t = yes; then
9532 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009533else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009534
9535cat >>confdefs.h <<\_ACEOF
9536#define ptrdiff_t long
9537_ACEOF
9538
9539
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009540fi
9541
9542
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009543
9544
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009545
9546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009547
9548
9549
9550
9551
9552for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009553stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009554do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009560 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009562ac_res=`eval echo '${'$as_ac_Header'}'`
9563 { echo "$as_me:$LINENO: result: $ac_res" >&5
9564echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009565else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009566 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009569cat >conftest.$ac_ext <<_ACEOF
9570/* confdefs.h. */
9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h. */
9575$ac_includes_default
9576#include <$ac_header>
9577_ACEOF
9578rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009579if { (ac_try="$ac_compile"
9580case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9593 { (case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009603 { (case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_header_compiler=yes
9613else
9614 echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
Theodore Ts'oe1052142006-10-21 21:46:47 -04009617 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009618fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009619
9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009623
9624# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009627cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633#include <$ac_header>
9634_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009635if { (ac_try="$ac_cpp conftest.$ac_ext"
9636case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639esac
9640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } >/dev/null; then
9648 if test -s conftest.err; then
9649 ac_cpp_err=$ac_c_preproc_warn_flag
9650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9651 else
9652 ac_cpp_err=
9653 fi
9654else
9655 ac_cpp_err=yes
9656fi
9657if test -z "$ac_cpp_err"; then
9658 ac_header_preproc=yes
9659else
9660 echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_header_preproc=no
9664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009669
9670# So? What about this header?
9671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9672 yes:no: )
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9677 ac_header_preproc=yes
9678 ;;
9679 no:yes:* )
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009692
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009693 ;;
9694esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699else
9700 eval "$as_ac_Header=\$ac_header_preproc"
9701fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009702ac_res=`eval echo '${'$as_ac_Header'}'`
9703 { echo "$as_me:$LINENO: result: $ac_res" >&5
9704echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009705
9706fi
9707if test `eval echo '${'$as_ac_Header'}'` = yes; then
9708 cat >>confdefs.h <<_ACEOF
9709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9710_ACEOF
9711
9712fi
9713
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009714done
9715
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9740mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9741strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9742__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009743do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009745{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009748 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009749else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009750 cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758#define $ac_func innocuous_$ac_func
9759
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009760/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009761 which can conflict with char $ac_func (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
9764
9765#ifdef __STDC__
9766# include <limits.h>
9767#else
9768# include <assert.h>
9769#endif
9770
9771#undef $ac_func
9772
Theodore Ts'oe1052142006-10-21 21:46:47 -04009773/* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009776#ifdef __cplusplus
9777extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009778#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009779char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009780/* The GNU C library defines this for functions which it implements
9781 to always fail with ENOSYS. Some functions are actually named
9782 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009783#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009784choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009785#endif
9786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009787int
9788main ()
9789{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009790return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791 ;
9792 return 0;
9793}
9794_ACEOF
9795rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009796if { (ac_try="$ac_link"
9797case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009803 ac_status=$?
9804 grep -v '^ *+' conftest.er1 >conftest.err
9805 rm -f conftest.er1
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9810 { (case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813esac
9814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009830else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009831 echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009833
Theodore Ts'oe1052142006-10-21 21:46:47 -04009834 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009835fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009836
9837rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009838 conftest$ac_exeext conftest.$ac_ext
9839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009840ac_res=`eval echo '${'$as_ac_var'}'`
9841 { echo "$as_me:$LINENO: result: $ac_res" >&5
9842echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009843if test `eval echo '${'$as_ac_var'}'` = yes; then
9844 cat >>confdefs.h <<_ACEOF
9845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9846_ACEOF
9847
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009848fi
9849done
9850
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009852
Theodore Ts'oe1052142006-10-21 21:46:47 -04009853 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9854echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009855if test "${ac_cv_have_decl__snprintf+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857else
9858 cat >conftest.$ac_ext <<_ACEOF
9859/* confdefs.h. */
9860_ACEOF
9861cat confdefs.h >>conftest.$ac_ext
9862cat >>conftest.$ac_ext <<_ACEOF
9863/* end confdefs.h. */
9864#include <stdio.h>
9865int
9866main ()
9867{
9868
9869#ifndef _snprintf
9870 char *p = (char *) _snprintf;
9871#endif
9872
9873 ;
9874 return 0;
9875}
9876_ACEOF
9877rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009878if { (ac_try="$ac_compile"
9879case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009885 ac_status=$?
9886 grep -v '^ *+' conftest.er1 >conftest.err
9887 rm -f conftest.er1
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9892 { (case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009902 { (case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905esac
9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_have_decl__snprintf=yes
9912else
9913 echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
Theodore Ts'oe1052142006-10-21 21:46:47 -04009916 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009918
9919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009920fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009921{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9922echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009923 if test $ac_cv_have_decl__snprintf = yes; then
9924 gt_value=1
9925 else
9926 gt_value=0
9927 fi
9928
9929cat >>confdefs.h <<_ACEOF
9930#define HAVE_DECL__SNPRINTF $gt_value
9931_ACEOF
9932
9933
9934
Theodore Ts'oe1052142006-10-21 21:46:47 -04009935 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9936echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009937if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940 cat >conftest.$ac_ext <<_ACEOF
9941/* confdefs.h. */
9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h. */
9946#include <stdio.h>
9947int
9948main ()
9949{
9950
9951#ifndef _snwprintf
9952 char *p = (char *) _snwprintf;
9953#endif
9954
9955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009960if { (ac_try="$ac_compile"
9961case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977esac
9978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
9988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_have_decl__snwprintf=yes
9994else
9995 echo "$as_me: failed program was:" >&5
9996sed 's/^/| /' conftest.$ac_ext >&5
9997
Theodore Ts'oe1052142006-10-21 21:46:47 -04009998 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009999fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010000
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010003{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10004echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010005 if test $ac_cv_have_decl__snwprintf = yes; then
10006 gt_value=1
10007 else
10008 gt_value=0
10009 fi
10010
10011cat >>confdefs.h <<_ACEOF
10012#define HAVE_DECL__SNWPRINTF $gt_value
10013_ACEOF
10014
10015
10016
10017
Theodore Ts'oe1052142006-10-21 21:46:47 -040010018 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10019echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023 cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h. */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h. */
10029#include <stdio.h>
10030int
10031main ()
10032{
10033
10034#ifndef feof_unlocked
10035 char *p = (char *) feof_unlocked;
10036#endif
10037
10038 ;
10039 return 0;
10040}
10041_ACEOF
10042rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010043if { (ac_try="$ac_compile"
10044case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047esac
10048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060esac
10061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10070esac
10071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_have_decl_feof_unlocked=yes
10077else
10078 echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
Theodore Ts'oe1052142006-10-21 21:46:47 -040010081 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010082fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010083
10084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010086{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10087echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010088 if test $ac_cv_have_decl_feof_unlocked = yes; then
10089 gt_value=1
10090 else
10091 gt_value=0
10092 fi
10093
10094cat >>confdefs.h <<_ACEOF
10095#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10096_ACEOF
10097
10098
10099
Theodore Ts'oe1052142006-10-21 21:46:47 -040010100 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10101echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010102if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105 cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h. */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h. */
10111#include <stdio.h>
10112int
10113main ()
10114{
10115
10116#ifndef fgets_unlocked
10117 char *p = (char *) fgets_unlocked;
10118#endif
10119
10120 ;
10121 return 0;
10122}
10123_ACEOF
10124rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010125if { (ac_try="$ac_compile"
10126case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129esac
10130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 ac_cv_have_decl_fgets_unlocked=yes
10159else
10160 echo "$as_me: failed program was:" >&5
10161sed 's/^/| /' conftest.$ac_ext >&5
10162
Theodore Ts'oe1052142006-10-21 21:46:47 -040010163 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010165
10166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010168{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10169echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010170 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10171 gt_value=1
10172 else
10173 gt_value=0
10174 fi
10175
10176cat >>confdefs.h <<_ACEOF
10177#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10178_ACEOF
10179
10180
10181
Theodore Ts'oe1052142006-10-21 21:46:47 -040010182 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10183echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187 cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h. */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */
10193#include <stdio.h>
10194int
10195main ()
10196{
10197
10198#ifndef getc_unlocked
10199 char *p = (char *) getc_unlocked;
10200#endif
10201
10202 ;
10203 return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010207if { (ac_try="$ac_compile"
10208case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211esac
10212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10221 { (case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10224esac
10225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010231 { (case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_have_decl_getc_unlocked=yes
10241else
10242 echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
Theodore Ts'oe1052142006-10-21 21:46:47 -040010245 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010246fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010247
10248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010249fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010250{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10251echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010252 if test $ac_cv_have_decl_getc_unlocked = yes; then
10253 gt_value=1
10254 else
10255 gt_value=0
10256 fi
10257
10258cat >>confdefs.h <<_ACEOF
10259#define HAVE_DECL_GETC_UNLOCKED $gt_value
10260_ACEOF
10261
10262
10263
10264 case $gt_cv_func_printf_posix in
10265 *yes) HAVE_POSIX_PRINTF=1 ;;
10266 *) HAVE_POSIX_PRINTF=0 ;;
10267 esac
10268
10269 if test "$ac_cv_func_asprintf" = yes; then
10270 HAVE_ASPRINTF=1
10271 else
10272 HAVE_ASPRINTF=0
10273 fi
10274
10275 if test "$ac_cv_func_snprintf" = yes; then
10276 HAVE_SNPRINTF=1
10277 else
10278 HAVE_SNPRINTF=0
10279 fi
10280
10281 if test "$ac_cv_func_wprintf" = yes; then
10282 HAVE_WPRINTF=1
10283 else
10284 HAVE_WPRINTF=0
10285 fi
10286
10287
10288
10289
10290
10291
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010292
10293 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010294
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010295 for element in $INCICONV; do
10296 haveit=
10297 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010298
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010299 acl_save_prefix="$prefix"
10300 prefix="$acl_final_prefix"
10301 acl_save_exec_prefix="$exec_prefix"
10302 exec_prefix="$acl_final_exec_prefix"
10303 eval x=\"$x\"
10304 exec_prefix="$acl_save_exec_prefix"
10305 prefix="$acl_save_prefix"
10306
10307 if test "X$x" = "X$element"; then
10308 haveit=yes
10309 break
10310 fi
10311 done
10312 if test -z "$haveit"; then
10313 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10314 fi
10315 done
10316
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010317
Theodore Ts'oe1052142006-10-21 21:46:47 -040010318 { echo "$as_me:$LINENO: checking for iconv" >&5
10319echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010320if test "${am_cv_func_iconv+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010322else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010323
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010324 am_cv_func_iconv="no, consider installing GNU libiconv"
10325 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010326 cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h. */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010332#include <stdlib.h>
10333#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010334int
10335main ()
10336{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010337iconv_t cd = iconv_open("","");
10338 iconv(cd,NULL,NULL,NULL,NULL);
10339 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010340 ;
10341 return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010345if { (ac_try="$ac_link"
10346case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10349esac
10350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10359 { (case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362esac
10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010369 { (case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
10373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010378 am_cv_func_iconv=yes
10379else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010380 echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
Theodore Ts'oe1052142006-10-21 21:46:47 -040010383
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010384fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010385
10386rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010387 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010388 if test "$am_cv_func_iconv" != yes; then
10389 am_save_LIBS="$LIBS"
10390 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010391 cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h. */
10393_ACEOF
10394cat confdefs.h >>conftest.$ac_ext
10395cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010397#include <stdlib.h>
10398#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010399int
10400main ()
10401{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010402iconv_t cd = iconv_open("","");
10403 iconv(cd,NULL,NULL,NULL,NULL);
10404 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010405 ;
10406 return 0;
10407}
10408_ACEOF
10409rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010410if { (ac_try="$ac_link"
10411case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414esac
10415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010417 ac_status=$?
10418 grep -v '^ *+' conftest.er1 >conftest.err
10419 rm -f conftest.er1
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10424 { (case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427esac
10428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437esac
10438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010443 am_cv_lib_iconv=yes
10444 am_cv_func_iconv=yes
10445else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010446 echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
Theodore Ts'oe1052142006-10-21 21:46:47 -040010449
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010450fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010451
10452rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010454 LIBS="$am_save_LIBS"
10455 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010457fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010458{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10459echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010460 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010461
10462cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010463#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010464_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010465
10466 fi
10467 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010468 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10469echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10470 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
10471echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010472 else
10473 CPPFLAGS="$am_save_CPPFLAGS"
10474 LIBICONV=
10475 LTLIBICONV=
10476 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010477
10478
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010479
10480 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010481 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
10482echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010483 if test "${am_cv_proto_iconv+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010485else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010486
10487 cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h. */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010493
10494#include <stdlib.h>
10495#include <iconv.h>
10496extern
10497#ifdef __cplusplus
10498"C"
10499#endif
10500#if defined(__STDC__) || defined(__cplusplus)
10501size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10502#else
10503size_t iconv();
10504#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010506int
10507main ()
10508{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010510 ;
10511 return 0;
10512}
10513_ACEOF
10514rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010515if { (ac_try="$ac_compile"
10516case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10519esac
10520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522 ac_status=$?
10523 grep -v '^ *+' conftest.er1 >conftest.err
10524 rm -f conftest.er1
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10529 { (case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532esac
10533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; } &&
10538 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010539 { (case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542esac
10543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010548 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010549else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
Theodore Ts'oe1052142006-10-21 21:46:47 -040010553 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010554fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010555
10556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010557 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 +000010558fi
10559
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010560 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040010561 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010562 }$am_cv_proto_iconv" >&5
10563echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -040010564 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010565
10566cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010567#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010568_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010569
10570 fi
10571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010572
Theodore Ts'oe1052142006-10-21 21:46:47 -040010573 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10574echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575if test "${am_cv_langinfo_codeset+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010577else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010578 cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010584#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010585int
10586main ()
10587{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010588char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010589 ;
10590 return 0;
10591}
10592_ACEOF
10593rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010594if { (ac_try="$ac_link"
10595case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598esac
10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010618 { (case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10621esac
10622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010627 am_cv_langinfo_codeset=yes
10628else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010629 echo "$as_me: failed program was:" >&5
10630sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010631
Theodore Ts'oe1052142006-10-21 21:46:47 -040010632 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010633fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010634
10635rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010636 conftest$ac_exeext conftest.$ac_ext
10637
10638fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010639{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10640echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010641 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010642
10643cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010644#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010645_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010646
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010647 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010648
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010649 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010650
Theodore Ts'oe1052142006-10-21 21:46:47 -040010651 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10652echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010653if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010655else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010656 cat >conftest.$ac_ext <<_ACEOF
10657/* confdefs.h. */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010662#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010663int
10664main ()
10665{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010666return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010667 ;
10668 return 0;
10669}
10670_ACEOF
10671rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010672if { (ac_try="$ac_link"
10673case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676esac
10677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689esac
10690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010696 { (case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699esac
10700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010705 am_cv_val_LC_MESSAGES=yes
10706else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707 echo "$as_me: failed program was:" >&5
10708sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010709
Theodore Ts'oe1052142006-10-21 21:46:47 -040010710 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010712
10713rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010714 conftest$ac_exeext conftest.$ac_ext
10715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010716{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10717echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010718 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010719
10720cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010721#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010723
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010724 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010725
10726 fi
10727
10728 for ac_prog in bison
10729do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010731set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010734if test "${ac_cv_prog_INTLBISON+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010736else
10737 if test -n "$INTLBISON"; then
10738 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10739else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741for as_dir in $PATH
10742do
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040010746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010747 ac_cv_prog_INTLBISON="$ac_prog"
10748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10750 fi
10751done
10752done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010753IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010754
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010755fi
10756fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010758if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010759 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10760echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010761else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010762 { echo "$as_me:$LINENO: result: no" >&5
10763echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010764fi
10765
Theodore Ts'oe1052142006-10-21 21:46:47 -040010766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010767 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010768done
10769
10770 if test -z "$INTLBISON"; then
10771 ac_verc_fail=yes
10772 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010773 { echo "$as_me:$LINENO: checking version of bison" >&5
10774echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010775 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10776 case $ac_prog_version in
10777 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10778 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10779 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10780 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10781 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010782 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10783echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010784 fi
10785 if test $ac_verc_fail = yes; then
10786 INTLBISON=:
10787 fi
10788
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010789
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010790
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010791
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010792
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010793
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010794
10795
10796
10797
10798
10799
10800
10801
10802
10803
Theodore Ts'oe1052142006-10-21 21:46:47 -040010804 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10805echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10806 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010807if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010808 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010809else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010810 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010811fi
10812
10813 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10814echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010815
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010817
10818
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010819 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010820 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010822 LIBINTL=
10823 LTLIBINTL=
10824 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010825
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010826 if test "$USE_NLS" = "yes"; then
10827 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010828
Theodore Ts'oe1052142006-10-21 21:46:47 -040010829 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10830echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010831
Theodore Ts'oe1052142006-10-21 21:46:47 -040010832# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010833if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010834 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010835else
10836 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010837fi
10838
10839 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10840echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010841
10842 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10843 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845
10846
10847
10848
10849
Theodore Ts'oe1052142006-10-21 21:46:47 -040010850 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10851echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010852if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010854else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855 cat >conftest.$ac_ext <<_ACEOF
10856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010861#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010862extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010863extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010864int
10865main ()
10866{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010867bindtextdomain ("", "");
10868return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869 ;
10870 return 0;
10871}
10872_ACEOF
10873rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010874if { (ac_try="$ac_link"
10875case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10888 { (case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891esac
10892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010898 { (case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10901esac
10902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010907 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010908else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010909 echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010911
Theodore Ts'oe1052142006-10-21 21:46:47 -040010912 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010913fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010914
10915rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010916 conftest$ac_exeext conftest.$ac_ext
10917fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010918{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10919echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010920
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010921 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010922
10923
10924
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010925 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010926
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010927 acl_save_prefix="$prefix"
10928 prefix="$acl_final_prefix"
10929 acl_save_exec_prefix="$exec_prefix"
10930 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010931
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010932 eval additional_includedir=\"$includedir\"
10933 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010934
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010935 exec_prefix="$acl_save_exec_prefix"
10936 prefix="$acl_save_prefix"
10937
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010938
Theodore Ts'oe1052142006-10-21 21:46:47 -040010939# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010940if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010941 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010942 if test "X$withval" = "Xno"; then
10943 use_additional=no
10944 else
10945 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010946
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010947 acl_save_prefix="$prefix"
10948 prefix="$acl_final_prefix"
10949 acl_save_exec_prefix="$exec_prefix"
10950 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010951
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010952 eval additional_includedir=\"$includedir\"
10953 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010954
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010955 exec_prefix="$acl_save_exec_prefix"
10956 prefix="$acl_save_prefix"
10957
10958 else
10959 additional_includedir="$withval/include"
10960 additional_libdir="$withval/lib"
10961 fi
10962 fi
10963
Theodore Ts'oe1052142006-10-21 21:46:47 -040010964fi
10965
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010966 LIBINTL=
10967 LTLIBINTL=
10968 INCINTL=
10969 rpathdirs=
10970 ltrpathdirs=
10971 names_already_handled=
10972 names_next_round='intl '
10973 while test -n "$names_next_round"; do
10974 names_this_round="$names_next_round"
10975 names_next_round=
10976 for name in $names_this_round; do
10977 already_handled=
10978 for n in $names_already_handled; do
10979 if test "$n" = "$name"; then
10980 already_handled=yes
10981 break
10982 fi
10983 done
10984 if test -z "$already_handled"; then
10985 names_already_handled="$names_already_handled $name"
10986 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10987 eval value=\"\$HAVE_LIB$uppername\"
10988 if test -n "$value"; then
10989 if test "$value" = yes; then
10990 eval value=\"\$LIB$uppername\"
10991 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10992 eval value=\"\$LTLIB$uppername\"
10993 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10994 else
10995 :
10996 fi
10997 else
10998 found_dir=
10999 found_la=
11000 found_so=
11001 found_a=
11002 if test $use_additional = yes; then
11003 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11004 found_dir="$additional_libdir"
11005 found_so="$additional_libdir/lib$name.$shlibext"
11006 if test -f "$additional_libdir/lib$name.la"; then
11007 found_la="$additional_libdir/lib$name.la"
11008 fi
11009 else
11010 if test -f "$additional_libdir/lib$name.$libext"; then
11011 found_dir="$additional_libdir"
11012 found_a="$additional_libdir/lib$name.$libext"
11013 if test -f "$additional_libdir/lib$name.la"; then
11014 found_la="$additional_libdir/lib$name.la"
11015 fi
11016 fi
11017 fi
11018 fi
11019 if test "X$found_dir" = "X"; then
11020 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011021
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011022 acl_save_prefix="$prefix"
11023 prefix="$acl_final_prefix"
11024 acl_save_exec_prefix="$exec_prefix"
11025 exec_prefix="$acl_final_exec_prefix"
11026 eval x=\"$x\"
11027 exec_prefix="$acl_save_exec_prefix"
11028 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011029
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011030 case "$x" in
11031 -L*)
11032 dir=`echo "X$x" | sed -e 's/^X-L//'`
11033 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11034 found_dir="$dir"
11035 found_so="$dir/lib$name.$shlibext"
11036 if test -f "$dir/lib$name.la"; then
11037 found_la="$dir/lib$name.la"
11038 fi
11039 else
11040 if test -f "$dir/lib$name.$libext"; then
11041 found_dir="$dir"
11042 found_a="$dir/lib$name.$libext"
11043 if test -f "$dir/lib$name.la"; then
11044 found_la="$dir/lib$name.la"
11045 fi
11046 fi
11047 fi
11048 ;;
11049 esac
11050 if test "X$found_dir" != "X"; then
11051 break
11052 fi
11053 done
11054 fi
11055 if test "X$found_dir" != "X"; then
11056 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11057 if test "X$found_so" != "X"; then
11058 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11060 else
11061 haveit=
11062 for x in $ltrpathdirs; do
11063 if test "X$x" = "X$found_dir"; then
11064 haveit=yes
11065 break
11066 fi
11067 done
11068 if test -z "$haveit"; then
11069 ltrpathdirs="$ltrpathdirs $found_dir"
11070 fi
11071 if test "$hardcode_direct" = yes; then
11072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11073 else
11074 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11075 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11076 haveit=
11077 for x in $rpathdirs; do
11078 if test "X$x" = "X$found_dir"; then
11079 haveit=yes
11080 break
11081 fi
11082 done
11083 if test -z "$haveit"; then
11084 rpathdirs="$rpathdirs $found_dir"
11085 fi
11086 else
11087 haveit=
11088 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011089
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011090 acl_save_prefix="$prefix"
11091 prefix="$acl_final_prefix"
11092 acl_save_exec_prefix="$exec_prefix"
11093 exec_prefix="$acl_final_exec_prefix"
11094 eval x=\"$x\"
11095 exec_prefix="$acl_save_exec_prefix"
11096 prefix="$acl_save_prefix"
11097
11098 if test "X$x" = "X-L$found_dir"; then
11099 haveit=yes
11100 break
11101 fi
11102 done
11103 if test -z "$haveit"; then
11104 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11105 fi
11106 if test "$hardcode_minus_L" != no; then
11107 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11108 else
11109 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11110 fi
11111 fi
11112 fi
11113 fi
11114 else
11115 if test "X$found_a" != "X"; then
11116 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11117 else
11118 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11119 fi
11120 fi
11121 additional_includedir=
11122 case "$found_dir" in
11123 */lib | */lib/)
11124 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11125 additional_includedir="$basedir/include"
11126 ;;
11127 esac
11128 if test "X$additional_includedir" != "X"; then
11129 if test "X$additional_includedir" != "X/usr/include"; then
11130 haveit=
11131 if test "X$additional_includedir" = "X/usr/local/include"; then
11132 if test -n "$GCC"; then
11133 case $host_os in
11134 linux*) haveit=yes;;
11135 esac
11136 fi
11137 fi
11138 if test -z "$haveit"; then
11139 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011140
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011141 acl_save_prefix="$prefix"
11142 prefix="$acl_final_prefix"
11143 acl_save_exec_prefix="$exec_prefix"
11144 exec_prefix="$acl_final_exec_prefix"
11145 eval x=\"$x\"
11146 exec_prefix="$acl_save_exec_prefix"
11147 prefix="$acl_save_prefix"
11148
11149 if test "X$x" = "X-I$additional_includedir"; then
11150 haveit=yes
11151 break
11152 fi
11153 done
11154 if test -z "$haveit"; then
11155 if test -d "$additional_includedir"; then
11156 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11157 fi
11158 fi
11159 fi
11160 fi
11161 fi
11162 if test -n "$found_la"; then
11163 save_libdir="$libdir"
11164 case "$found_la" in
11165 */* | *\\*) . "$found_la" ;;
11166 *) . "./$found_la" ;;
11167 esac
11168 libdir="$save_libdir"
11169 for dep in $dependency_libs; do
11170 case "$dep" in
11171 -L*)
11172 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11173 if test "X$additional_libdir" != "X/usr/lib"; then
11174 haveit=
11175 if test "X$additional_libdir" = "X/usr/local/lib"; then
11176 if test -n "$GCC"; then
11177 case $host_os in
11178 linux*) haveit=yes;;
11179 esac
11180 fi
11181 fi
11182 if test -z "$haveit"; then
11183 haveit=
11184 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011185
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011186 acl_save_prefix="$prefix"
11187 prefix="$acl_final_prefix"
11188 acl_save_exec_prefix="$exec_prefix"
11189 exec_prefix="$acl_final_exec_prefix"
11190 eval x=\"$x\"
11191 exec_prefix="$acl_save_exec_prefix"
11192 prefix="$acl_save_prefix"
11193
11194 if test "X$x" = "X-L$additional_libdir"; then
11195 haveit=yes
11196 break
11197 fi
11198 done
11199 if test -z "$haveit"; then
11200 if test -d "$additional_libdir"; then
11201 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11202 fi
11203 fi
11204 haveit=
11205 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011206
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011207 acl_save_prefix="$prefix"
11208 prefix="$acl_final_prefix"
11209 acl_save_exec_prefix="$exec_prefix"
11210 exec_prefix="$acl_final_exec_prefix"
11211 eval x=\"$x\"
11212 exec_prefix="$acl_save_exec_prefix"
11213 prefix="$acl_save_prefix"
11214
11215 if test "X$x" = "X-L$additional_libdir"; then
11216 haveit=yes
11217 break
11218 fi
11219 done
11220 if test -z "$haveit"; then
11221 if test -d "$additional_libdir"; then
11222 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11223 fi
11224 fi
11225 fi
11226 fi
11227 ;;
11228 -R*)
11229 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11230 if test "$enable_rpath" != no; then
11231 haveit=
11232 for x in $rpathdirs; do
11233 if test "X$x" = "X$dir"; then
11234 haveit=yes
11235 break
11236 fi
11237 done
11238 if test -z "$haveit"; then
11239 rpathdirs="$rpathdirs $dir"
11240 fi
11241 haveit=
11242 for x in $ltrpathdirs; do
11243 if test "X$x" = "X$dir"; then
11244 haveit=yes
11245 break
11246 fi
11247 done
11248 if test -z "$haveit"; then
11249 ltrpathdirs="$ltrpathdirs $dir"
11250 fi
11251 fi
11252 ;;
11253 -l*)
11254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11255 ;;
11256 *.la)
11257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11258 ;;
11259 *)
11260 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11261 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11262 ;;
11263 esac
11264 done
11265 fi
11266 else
11267 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11268 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11269 fi
11270 fi
11271 fi
11272 done
11273 done
11274 if test "X$rpathdirs" != "X"; then
11275 if test -n "$hardcode_libdir_separator"; then
11276 alldirs=
11277 for found_dir in $rpathdirs; do
11278 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11279 done
11280 acl_save_libdir="$libdir"
11281 libdir="$alldirs"
11282 eval flag=\"$hardcode_libdir_flag_spec\"
11283 libdir="$acl_save_libdir"
11284 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11285 else
11286 for found_dir in $rpathdirs; do
11287 acl_save_libdir="$libdir"
11288 libdir="$found_dir"
11289 eval flag=\"$hardcode_libdir_flag_spec\"
11290 libdir="$acl_save_libdir"
11291 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11292 done
11293 fi
11294 fi
11295 if test "X$ltrpathdirs" != "X"; then
11296 for found_dir in $ltrpathdirs; do
11297 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11298 done
11299 fi
11300
Theodore Ts'oe1052142006-10-21 21:46:47 -040011301 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11302echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011303if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011305else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011306 gt_save_CPPFLAGS="$CPPFLAGS"
11307 CPPFLAGS="$CPPFLAGS $INCINTL"
11308 gt_save_LIBS="$LIBS"
11309 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011310 cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011316#include <libintl.h>
11317extern int _nl_msg_cat_cntr;
11318extern
11319#ifdef __cplusplus
11320"C"
11321#endif
11322const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011323int
11324main ()
11325{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011326bindtextdomain ("", "");
11327return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011328 ;
11329 return 0;
11330}
11331_ACEOF
11332rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011333if { (ac_try="$ac_link"
11334case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040011346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11347 { (case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350esac
11351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; } &&
11356 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360esac
11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011366 gt_cv_func_gnugettext1_libintl=yes
11367else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368 echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
Theodore Ts'oe1052142006-10-21 21:46:47 -040011371 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011372fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011373
11374rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011375 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011376 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11377 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011378 cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011384#include <libintl.h>
11385extern int _nl_msg_cat_cntr;
11386extern
11387#ifdef __cplusplus
11388"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011389#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011390const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011391int
11392main ()
11393{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011394bindtextdomain ("", "");
11395return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011396 ;
11397 return 0;
11398}
11399_ACEOF
11400rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011401if { (ac_try="$ac_link"
11402case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405esac
11406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040011414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418esac
11419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011425 { (case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428esac
11429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011434 LIBINTL="$LIBINTL $LIBICONV"
11435 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11436 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011438else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011439 echo "$as_me: failed program was:" >&5
11440sed 's/^/| /' conftest.$ac_ext >&5
11441
Theodore Ts'oe1052142006-10-21 21:46:47 -040011442
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011443fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011444
11445rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011447 fi
11448 CPPFLAGS="$gt_save_CPPFLAGS"
11449 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011450fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011451{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11452echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011453 fi
11454
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011455 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11456 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011457 && test "$PACKAGE" != gettext-runtime \
11458 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011459 gt_use_preinstalled_gnugettext=yes
11460 else
11461 LIBINTL=
11462 LTLIBINTL=
11463 INCINTL=
11464 fi
11465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011466
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011467 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11468 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011469 fi
11470 fi
11471
11472 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011474 USE_INCLUDED_LIBINTL=yes
11475 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11476 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11477 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011478 fi
11479
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011480 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11481 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11482 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011483 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011485
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011486 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11487 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011488
11489cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011490#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011492
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011493 else
11494 USE_NLS=no
11495 fi
11496 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011497
Theodore Ts'oe1052142006-10-21 21:46:47 -040011498 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11499echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11500 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11501echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011502 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011503 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11504echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11506 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11507 gt_source="external libintl"
11508 else
11509 gt_source="libc"
11510 fi
11511 else
11512 gt_source="included intl directory"
11513 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011514 { echo "$as_me:$LINENO: result: $gt_source" >&5
11515echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516 fi
11517
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011518 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011519
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011520 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11521 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011522 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11523echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11524 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11525echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011527 for element in $INCINTL; do
11528 haveit=
11529 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011530
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011531 acl_save_prefix="$prefix"
11532 prefix="$acl_final_prefix"
11533 acl_save_exec_prefix="$exec_prefix"
11534 exec_prefix="$acl_final_exec_prefix"
11535 eval x=\"$x\"
11536 exec_prefix="$acl_save_exec_prefix"
11537 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011538
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011539 if test "X$x" = "X$element"; then
11540 haveit=yes
11541 break
11542 fi
11543 done
11544 if test -z "$haveit"; then
11545 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11546 fi
11547 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011548
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011549 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011550
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552cat >>confdefs.h <<\_ACEOF
11553#define HAVE_GETTEXT 1
11554_ACEOF
11555
11556
11557cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011558#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011559_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011560
11561 fi
11562
11563 POSUB=po
11564 fi
11565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011566
11567 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011568 BUILD_INCLUDED_LIBINTL=yes
11569 fi
11570
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571
11572
11573
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011574
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011575 nls_cv_header_intl=
11576 nls_cv_header_libgt=
11577
11578 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011580
11581 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011582
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011583
11584 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011585
11586
11587 if test "$USE_INCLUDED_LIBINTL" = yes; then
11588 INTLOBJS="\$(GETTOBJS)"
11589 fi
11590
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011591
11592 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011593
11594
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011595
11596 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011597
11598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599
11600
11601
11602
11603
Theodore Ts'oe1052142006-10-21 21:46:47 -040011604{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11605echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
11606set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11607if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011608 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011609else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011611SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011612all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011613 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011614_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011615# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011616case `${MAKE-make} -f conftest.make 2>/dev/null` in
11617 *@@@%%%=?*=@@@%%%*)
11618 eval ac_cv_prog_make_${ac_make}_set=yes;;
11619 *)
11620 eval ac_cv_prog_make_${ac_make}_set=no;;
11621esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011622rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011623fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011624if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11625 { echo "$as_me:$LINENO: result: yes" >&5
11626echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011627 SET_MAKE=
11628else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011629 { echo "$as_me:$LINENO: result: no" >&5
11630echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011631 SET_MAKE="MAKE=${MAKE-make}"
11632fi
11633
11634# Extract the first word of "ln", so it can be a program name with args.
11635set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011638if test "${ac_cv_path_LN+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011640else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011641 case $LN in
11642 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011643 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11644 ;;
11645 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647for as_dir in $PATH
11648do
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011653 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 break 2
11656 fi
11657done
11658done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011659IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011660
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011661 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11662 ;;
11663esac
11664fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011666if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011667 { echo "$as_me:$LINENO: result: $LN" >&5
11668echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011669else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011670 { echo "$as_me:$LINENO: result: no" >&5
11671echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011672fi
11673
Theodore Ts'oe1052142006-10-21 21:46:47 -040011674
11675{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
11676echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011677LN_S=$as_ln_s
11678if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011679 { echo "$as_me:$LINENO: result: yes" >&5
11680echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011681else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11683echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011684fi
11685
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011686# Extract the first word of "mv", so it can be a program name with args.
11687set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011690if test "${ac_cv_path_MV+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693 case $MV in
11694 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011695 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11696 ;;
11697 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011705 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11708 fi
11709done
11710done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011711IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011712
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011713 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11714 ;;
11715esac
11716fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011717MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011719 { echo "$as_me:$LINENO: result: $MV" >&5
11720echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011722 { echo "$as_me:$LINENO: result: no" >&5
11723echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011724fi
11725
Theodore Ts'oe1052142006-10-21 21:46:47 -040011726
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011727# Extract the first word of "cp", so it can be a program name with args.
11728set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011731if test "${ac_cv_path_CP+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011733else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011734 case $CP in
11735 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011736 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11737 ;;
11738 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740for as_dir in $PATH
11741do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011746 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 break 2
11749 fi
11750done
11751done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011752IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011753
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011754 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11755 ;;
11756esac
11757fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011758CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011760 { echo "$as_me:$LINENO: result: $CP" >&5
11761echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011762else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011763 { echo "$as_me:$LINENO: result: no" >&5
11764echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011765fi
11766
Theodore Ts'oe1052142006-10-21 21:46:47 -040011767
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011768# Extract the first word of "rm", so it can be a program name with args.
11769set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011772if test "${ac_cv_path_RM+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011774else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011775 case $RM in
11776 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011777 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11778 ;;
11779 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781for as_dir in $PATH
11782do
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
11785 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011787 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 break 2
11790 fi
11791done
11792done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011793IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011794
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011795 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11796 ;;
11797esac
11798fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011799RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011800if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011801 { echo "$as_me:$LINENO: result: $RM" >&5
11802echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011803else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011804 { echo "$as_me:$LINENO: result: no" >&5
11805echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011806fi
11807
Theodore Ts'oe1052142006-10-21 21:46:47 -040011808
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011809# Extract the first word of "chmod", so it can be a program name with args.
11810set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011813if test "${ac_cv_path_CHMOD+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011815else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011816 case $CHMOD in
11817 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011818 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11819 ;;
11820 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11831 fi
11832done
11833done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011834IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011835
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011836 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11837 ;;
11838esac
11839fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011840CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011841if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011842 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11843echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011844else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011845 { echo "$as_me:$LINENO: result: no" >&5
11846echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011847fi
11848
Theodore Ts'oe1052142006-10-21 21:46:47 -040011849
Theodore Ts'o32237012005-01-17 19:13:39 -050011850for ac_prog in gawk mawk nawk awk
11851do
11852 # Extract the first word of "$ac_prog", so it can be a program name with args.
11853set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011856if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011858else
Theodore Ts'o32237012005-01-17 19:13:39 -050011859 if test -n "$AWK"; then
11860 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11861else
11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011863for as_dir in $PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011869 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11872 fi
11873done
11874done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011875IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011876
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011877fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011878fi
11879AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011880if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011881 { echo "$as_me:$LINENO: result: $AWK" >&5
11882echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011883else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011884 { echo "$as_me:$LINENO: result: no" >&5
11885echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011886fi
11887
Theodore Ts'oe1052142006-10-21 21:46:47 -040011888
Theodore Ts'o32237012005-01-17 19:13:39 -050011889 test -n "$AWK" && break
11890done
11891
Theodore Ts'oe1052142006-10-21 21:46:47 -040011892{ echo "$as_me:$LINENO: checking for egrep" >&5
11893echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11894if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011897 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11898 then ac_cv_path_EGREP="$GREP -E"
11899 else
11900 # Extract the first word of "egrep" to use in msg output
11901if test -z "$EGREP"; then
11902set dummy egrep; ac_prog_name=$2
11903if test "${ac_cv_path_EGREP+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906 ac_path_EGREP_found=false
11907# Loop through the user's path and test for each of PROGNAME-LIST
11908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11910do
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_prog in egrep; do
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11916 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
11917 # Check for GNU ac_path_EGREP and select it if it is found.
11918 # Check for GNU $ac_path_EGREP
11919case `"$ac_path_EGREP" --version 2>&1` in
11920*GNU*)
11921 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11922*)
11923 ac_count=0
11924 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11925 while :
11926 do
11927 cat "conftest.in" "conftest.in" >"conftest.tmp"
11928 mv "conftest.tmp" "conftest.in"
11929 cp "conftest.in" "conftest.nl"
11930 echo 'EGREP' >> "conftest.nl"
11931 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11933 ac_count=`expr $ac_count + 1`
11934 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11935 # Best one so far, save it but keep looking for a better one
11936 ac_cv_path_EGREP="$ac_path_EGREP"
11937 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011938 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011939 # 10*(2^10) chars as input seems more than enough
11940 test $ac_count -gt 10 && break
11941 done
11942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11943esac
11944
11945
11946 $ac_path_EGREP_found && break 3
11947 done
11948done
11949
11950done
11951IFS=$as_save_IFS
11952
11953
Theodore Ts'o32237012005-01-17 19:13:39 -050011954fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011955
11956EGREP="$ac_cv_path_EGREP"
11957if test -z "$EGREP"; then
11958 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11959echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11960 { (exit 1); exit 1; }; }
11961fi
11962
11963else
11964 ac_cv_path_EGREP=$EGREP
11965fi
11966
11967
11968 fi
11969fi
11970{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11971echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11972 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011973
11974
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011975# Extract the first word of "sed", so it can be a program name with args.
11976set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979if test "${ac_cv_path_SED+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011981else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982 case $SED in
11983 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011984 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11985 ;;
11986 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988for as_dir in $PATH
11989do
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011994 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 break 2
11997 fi
11998done
11999done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012000IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012002 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12003 ;;
12004esac
12005fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012007if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012008 { echo "$as_me:$LINENO: result: $SED" >&5
12009echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012010else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012011 { echo "$as_me:$LINENO: result: no" >&5
12012echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012013fi
12014
Theodore Ts'oe1052142006-10-21 21:46:47 -040012015
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012016# Extract the first word of "perl", so it can be a program name with args.
12017set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020if test "${ac_cv_path_PERL+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012022else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023 case $PERL in
12024 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012025 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12026 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012027 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH
12030do
12031 IFS=$as_save_IFS
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012035 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 break 2
12038 fi
12039done
12040done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012041IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012043 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12044 ;;
12045esac
12046fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012047PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012048if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012049 { echo "$as_me:$LINENO: result: $PERL" >&5
12050echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012051else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012052 { echo "$as_me:$LINENO: result: no" >&5
12053echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012054fi
12055
Theodore Ts'oe1052142006-10-21 21:46:47 -040012056
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012057# Extract the first word of "ldconfig", so it can be a program name with args.
12058set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061if test "${ac_cv_path_LDCONFIG+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012063else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064 case $LDCONFIG in
12065 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012066 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12067 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012068 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070for as_dir in $PATH
12071do
12072 IFS=$as_save_IFS
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 break 2
12079 fi
12080done
12081done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012082IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012084 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12085 ;;
12086esac
12087fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012088LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012089if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012090 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12091echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012092else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012093 { echo "$as_me:$LINENO: result: no" >&5
12094echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012095fi
12096
Theodore Ts'oe1052142006-10-21 21:46:47 -040012097
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098if test -n "$ac_tool_prefix"; then
12099 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012100set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103if test "${ac_cv_prog_AR+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012105else
12106 if test -n "$AR"; then
12107 ac_cv_prog_AR="$AR" # Let the user override the test.
12108else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012116 ac_cv_prog_AR="${ac_tool_prefix}ar"
12117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12119 fi
12120done
12121done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012122IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012124fi
12125fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012126AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012127if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128 { echo "$as_me:$LINENO: result: $AR" >&5
12129echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012130else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012131 { echo "$as_me:$LINENO: result: no" >&5
12132echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012133fi
12134
Theodore Ts'oe1052142006-10-21 21:46:47 -040012135
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012137if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012138 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012139 # Extract the first word of "ar", so it can be a program name with args.
12140set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012145else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012146 if test -n "$ac_ct_AR"; then
12147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012148else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150for as_dir in $PATH
12151do
12152 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
12154 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156 ac_cv_prog_ac_ct_AR="ar"
12157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 break 2
12159 fi
12160done
12161done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012162IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012164fi
12165fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012166ac_ct_AR=$ac_cv_prog_ac_ct_AR
12167if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012168 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12169echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012170else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012171 { echo "$as_me:$LINENO: result: no" >&5
12172echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012173fi
12174
Theodore Ts'oe1052142006-10-21 21:46:47 -040012175 if test "x$ac_ct_AR" = x; then
12176 AR="ar"
12177 else
12178 case $cross_compiling:$ac_tool_warned in
12179yes:)
12180{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12181whose name does not start with the host triplet. If you think this
12182configuration is useful to you, please write to autoconf@gnu.org." >&5
12183echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12184whose name does not start with the host triplet. If you think this
12185configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12186ac_tool_warned=yes ;;
12187esac
12188 AR=$ac_ct_AR
12189 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012190else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012192fi
12193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012194if test -n "$ac_tool_prefix"; then
12195 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012196set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199if test "${ac_cv_prog_RANLIB+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012201else
12202 if test -n "$RANLIB"; then
12203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12204else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
12210 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012212 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 break 2
12215 fi
12216done
12217done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012218IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012219
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012220fi
12221fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012223if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012224 { echo "$as_me:$LINENO: result: $RANLIB" >&5
12225echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012226else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012227 { echo "$as_me:$LINENO: result: no" >&5
12228echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012229fi
12230
Theodore Ts'oe1052142006-10-21 21:46:47 -040012231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012233if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012234 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012235 # Extract the first word of "ranlib", so it can be a program name with args.
12236set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012239if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012241else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242 if test -n "$ac_ct_RANLIB"; then
12243 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012244else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252 ac_cv_prog_ac_ct_RANLIB="ranlib"
12253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12255 fi
12256done
12257done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012258IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012259
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012260fi
12261fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12263if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012264 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12265echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012266else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012267 { echo "$as_me:$LINENO: result: no" >&5
12268echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012269fi
12270
Theodore Ts'oe1052142006-10-21 21:46:47 -040012271 if test "x$ac_ct_RANLIB" = x; then
12272 RANLIB=":"
12273 else
12274 case $cross_compiling:$ac_tool_warned in
12275yes:)
12276{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12277whose name does not start with the host triplet. If you think this
12278configuration is useful to you, please write to autoconf@gnu.org." >&5
12279echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12280whose name does not start with the host triplet. If you think this
12281configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12282ac_tool_warned=yes ;;
12283esac
12284 RANLIB=$ac_ct_RANLIB
12285 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012286else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012287 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012288fi
12289
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290if test -n "$ac_tool_prefix"; then
12291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012292set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012295if test "${ac_cv_prog_STRIP+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012297else
12298 if test -n "$STRIP"; then
12299 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12300else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302for as_dir in $PATH
12303do
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012308 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 break 2
12311 fi
12312done
12313done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012314IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012315
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012316fi
12317fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012318STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012319if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012320 { echo "$as_me:$LINENO: result: $STRIP" >&5
12321echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012322else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012323 { echo "$as_me:$LINENO: result: no" >&5
12324echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012325fi
12326
Theodore Ts'oe1052142006-10-21 21:46:47 -040012327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012328fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012329if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012330 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012331 # Extract the first word of "strip", so it can be a program name with args.
12332set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012335if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012337else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012338 if test -n "$ac_ct_STRIP"; then
12339 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012340else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342for as_dir in $PATH
12343do
12344 IFS=$as_save_IFS
12345 test -z "$as_dir" && as_dir=.
12346 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348 ac_cv_prog_ac_ct_STRIP="strip"
12349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12350 break 2
12351 fi
12352done
12353done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012354IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012355
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012356fi
12357fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012358ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12359if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012360 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12361echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012362else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012363 { echo "$as_me:$LINENO: result: no" >&5
12364echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012365fi
12366
Theodore Ts'oe1052142006-10-21 21:46:47 -040012367 if test "x$ac_ct_STRIP" = x; then
12368 STRIP=":"
12369 else
12370 case $cross_compiling:$ac_tool_warned in
12371yes:)
12372{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12373whose name does not start with the host triplet. If you think this
12374configuration is useful to you, please write to autoconf@gnu.org." >&5
12375echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12376whose name does not start with the host triplet. If you think this
12377configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12378ac_tool_warned=yes ;;
12379esac
12380 STRIP=$ac_ct_STRIP
12381 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012382else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012383 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012384fi
12385
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012386# Find a good install program. We prefer a C program (faster),
12387# so one script is as good as another. But avoid the broken or
12388# incompatible versions:
12389# SysV /etc/install, /usr/sbin/install
12390# SunOS /usr/etc/install
12391# IRIX /sbin/install
12392# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012393# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012394# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012395# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12396# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012397# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012398# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012399{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12400echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012401if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012402if test "${ac_cv_path_install+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012404else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406for as_dir in $PATH
12407do
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 # Account for people who put trailing slashes in PATH elements.
12411case $as_dir/ in
12412 ./ | .// | /cC/* | \
12413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12414 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12415 /usr/ucb/* ) ;;
12416 *)
12417 # OSF1 and SCO ODT 3.0 have their own names for install.
12418 # Don't use installbsd from OSF since it installs stuff as root
12419 # by default.
12420 for ac_prog in ginstall scoinst install; do
12421 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012422 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012423 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012425 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012426 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012427 elif test $ac_prog = install &&
12428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12429 # program-specific install script used by HP pwplus--don't use.
12430 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012431 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12433 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012434 fi
12435 fi
12436 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012437 done
12438 ;;
12439esac
12440done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012441IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012442
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012443
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012444fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012445 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012446 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012447 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012448 # As a last resort, use the slow shell script. Don't cache a
12449 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012450 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040012451 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012452 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012453 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012454fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012455{ echo "$as_me:$LINENO: result: $INSTALL" >&5
12456echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012457
12458# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12459# It thinks the first close brace ends the variable substitution.
12460test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012462test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012463
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012464test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12465
Theodore Ts'o6c133521999-07-03 20:37:03 +000012466# See if we need a separate native compiler.
12467if test $cross_compiling = no; then
12468 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012469
Theodore Ts'o6c133521999-07-03 20:37:03 +000012470else
12471 for ac_prog in gcc cc
12472do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012473 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012474set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012479else
12480 if test -n "$BUILD_CC"; then
12481 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12482else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012485do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012490 ac_cv_prog_BUILD_CC="$ac_prog"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012495done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012496IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012498fi
12499fi
12500BUILD_CC=$ac_cv_prog_BUILD_CC
12501if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012502 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12503echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012504else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012505 { echo "$as_me:$LINENO: result: no" >&5
12506echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012507fi
12508
Theodore Ts'oe1052142006-10-21 21:46:47 -040012509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012510 test -n "$BUILD_CC" && break
12511done
12512
12513fi
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
Theodore Ts'o762c7c62005-04-06 14:44:16 -040012543
12544for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012545do
12546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012553ac_res=`eval echo '${'$as_ac_Header'}'`
12554 { echo "$as_me:$LINENO: result: $ac_res" >&5
12555echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012556else
12557 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040012558{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012560cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
12566$ac_includes_default
12567#include <$ac_header>
12568_ACEOF
12569rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012570if { (ac_try="$ac_compile"
12571case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584 { (case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587esac
12588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597esac
12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_header_compiler=yes
12604else
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012610
12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12613echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012614
12615# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040012616{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012618cat >conftest.$ac_ext <<_ACEOF
12619/* confdefs.h. */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h. */
12624#include <$ac_header>
12625_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012626if { (ac_try="$ac_cpp conftest.$ac_ext"
12627case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630esac
12631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } >/dev/null; then
12639 if test -s conftest.err; then
12640 ac_cpp_err=$ac_c_preproc_warn_flag
12641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12642 else
12643 ac_cpp_err=
12644 fi
12645else
12646 ac_cpp_err=yes
12647fi
12648if test -z "$ac_cpp_err"; then
12649 ac_header_preproc=yes
12650else
12651 echo "$as_me: failed program was:" >&5
12652sed 's/^/| /' conftest.$ac_ext >&5
12653
12654 ac_header_preproc=no
12655fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012656
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012657rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012658{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12659echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012660
12661# So? What about this header?
12662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12663 yes:no: )
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12668 ac_header_preproc=yes
12669 ;;
12670 no:yes:* )
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012683
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012684 ;;
12685esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012686{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689 echo $ECHO_N "(cached) $ECHO_C" >&6
12690else
12691 eval "$as_ac_Header=\$ac_header_preproc"
12692fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012693ac_res=`eval echo '${'$as_ac_Header'}'`
12694 { echo "$as_me:$LINENO: result: $ac_res" >&5
12695echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012696
12697fi
12698if test `eval echo '${'$as_ac_Header'}'` = yes; then
12699 cat >>confdefs.h <<_ACEOF
12700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12701_ACEOF
12702
12703fi
12704
12705done
12706
12707
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012708
12709for ac_header in sys/disk.h sys/mount.h
12710do
12711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012715 echo $ECHO_N "(cached) $ECHO_C" >&6
12716else
12717 cat >conftest.$ac_ext <<_ACEOF
12718/* confdefs.h. */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
12722/* end confdefs.h. */
12723
12724#if HAVE_SYS_QUEUE_H
12725#include <sys/queue.h>
12726#endif
12727
12728
12729#include <$ac_header>
12730_ACEOF
12731rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012732if { (ac_try="$ac_compile"
12733case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 eval "$as_ac_Header=yes"
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
Theodore Ts'oe1052142006-10-21 21:46:47 -040012770 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012772
12773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012775ac_res=`eval echo '${'$as_ac_Header'}'`
12776 { echo "$as_me:$LINENO: result: $ac_res" >&5
12777echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012778if test `eval echo '${'$as_ac_Header'}'` = yes; then
12779 cat >>confdefs.h <<_ACEOF
12780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12781_ACEOF
12782
12783fi
12784
12785done
12786
12787
12788for ac_header in net/if.h
12789do
12790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795else
12796 cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h. */
12802
12803#if HAVE_SYS_TYPES_H
12804#include <sys/types.h>
12805#endif
12806#if HAVE_SYS_SOCKET
12807#include <sys/socket.h>
12808#endif
12809
12810
12811#include <$ac_header>
12812_ACEOF
12813rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012814if { (ac_try="$ac_compile"
12815case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12818esac
12819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 eval "$as_ac_Header=yes"
12848else
12849 echo "$as_me: failed program was:" >&5
12850sed 's/^/| /' conftest.$ac_ext >&5
12851
Theodore Ts'oe1052142006-10-21 21:46:47 -040012852 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012854
12855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012857ac_res=`eval echo '${'$as_ac_Header'}'`
12858 { echo "$as_me:$LINENO: result: $ac_res" >&5
12859echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012860if test `eval echo '${'$as_ac_Header'}'` = yes; then
12861 cat >>confdefs.h <<_ACEOF
12862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12863_ACEOF
12864
12865fi
12866
12867done
12868
12869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012870for ac_func in vprintf
12871do
12872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012873{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12875if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878 cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
12884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12886#define $ac_func innocuous_$ac_func
12887
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012888/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012889 which can conflict with char $ac_func (); below.
12890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12891 <limits.h> exists even on freestanding compilers. */
12892
12893#ifdef __STDC__
12894# include <limits.h>
12895#else
12896# include <assert.h>
12897#endif
12898
12899#undef $ac_func
12900
Theodore Ts'oe1052142006-10-21 21:46:47 -040012901/* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012904#ifdef __cplusplus
12905extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012907char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012908/* The GNU C library defines this for functions which it implements
12909 to always fail with ENOSYS. Some functions are actually named
12910 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012911#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012912choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012913#endif
12914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915int
12916main ()
12917{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012918return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012919 ;
12920 return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012924if { (ac_try="$ac_link"
12925case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928esac
12929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12941esac
12942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012948 { (case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12951esac
12952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012958else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012959 echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012961
Theodore Ts'oe1052142006-10-21 21:46:47 -040012962 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012963fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012964
12965rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012966 conftest$ac_exeext conftest.$ac_ext
12967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012968ac_res=`eval echo '${'$as_ac_var'}'`
12969 { echo "$as_me:$LINENO: result: $ac_res" >&5
12970echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971if test `eval echo '${'$as_ac_var'}'` = yes; then
12972 cat >>confdefs.h <<_ACEOF
12973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12974_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012975
Theodore Ts'oe1052142006-10-21 21:46:47 -040012976{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12977echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012978if test "${ac_cv_func__doprnt+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012980else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012981 cat >conftest.$ac_ext <<_ACEOF
12982/* confdefs.h. */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h. */
12987/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12989#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012990
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012991/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012992 which can conflict with char _doprnt (); below.
12993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12994 <limits.h> exists even on freestanding compilers. */
12995
12996#ifdef __STDC__
12997# include <limits.h>
12998#else
12999# include <assert.h>
13000#endif
13001
13002#undef _doprnt
13003
Theodore Ts'oe1052142006-10-21 21:46:47 -040013004/* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013007#ifdef __cplusplus
13008extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013009#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013010char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013011/* The GNU C library defines this for functions which it implements
13012 to always fail with ENOSYS. Some functions are actually named
13013 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013014#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013015choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013016#endif
13017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013018int
13019main ()
13020{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013021return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013022 ;
13023 return 0;
13024}
13025_ACEOF
13026rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013027if { (ac_try="$ac_link"
13028case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13031esac
13032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13041 { (case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13044esac
13045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013051 { (case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054esac
13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013061else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013062 echo "$as_me: failed program was:" >&5
13063sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013064
Theodore Ts'oe1052142006-10-21 21:46:47 -040013065 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013067
13068rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013069 conftest$ac_exeext conftest.$ac_ext
13070fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013071{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13072echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013073if test $ac_cv_func__doprnt = yes; then
13074
13075cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013076#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013077_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013078
13079fi
13080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013081fi
13082done
13083
13084
Theodore Ts'oe1052142006-10-21 21:46:47 -040013085{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13086echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013087if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013089else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013090 cat >conftest.$ac_ext <<_ACEOF
13091/* confdefs.h. */
13092_ACEOF
13093cat confdefs.h >>conftest.$ac_ext
13094cat >>conftest.$ac_ext <<_ACEOF
13095/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013096#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013097
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013098int
13099main ()
13100{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013101static struct dirent ac_aggr;
13102if (ac_aggr.d_reclen)
13103return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013104 ;
13105 return 0;
13106}
13107_ACEOF
13108rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013109if { (ac_try="$ac_compile"
13110case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113esac
13114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13123 { (case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13126esac
13127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013133 { (case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013142 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040013143else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013144 echo "$as_me: failed program was:" >&5
13145sed 's/^/| /' conftest.$ac_ext >&5
13146
Theodore Ts'oe1052142006-10-21 21:46:47 -040013147 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
13153#include <dirent.h>
13154
13155int
13156main ()
13157{
13158static struct dirent ac_aggr;
13159if (sizeof ac_aggr.d_reclen)
13160return 0;
13161 ;
13162 return 0;
13163}
13164_ACEOF
13165rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013166if { (ac_try="$ac_compile"
13167case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13170esac
13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193esac
13194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013196 ac_status=$?
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 ac_cv_member_struct_dirent_d_reclen=yes
13200else
13201 echo "$as_me: failed program was:" >&5
13202sed 's/^/| /' conftest.$ac_ext >&5
13203
Theodore Ts'oe1052142006-10-21 21:46:47 -040013204 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040013205fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013206
13207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013208fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013209
13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013212{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13213echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013214if test $ac_cv_member_struct_dirent_d_reclen = yes; then
13215 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013216#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013217_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013218
13219fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013220
Theodore Ts'oe1052142006-10-21 21:46:47 -040013221{ echo "$as_me:$LINENO: checking for ssize_t" >&5
13222echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013223if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013224 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013225else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013226 cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h. */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013232#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013233
Theodore Ts'oe1052142006-10-21 21:46:47 -040013234typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013235int
13236main ()
13237{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013238if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013239 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013240if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013241 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013247if { (ac_try="$ac_compile"
13248case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13261 { (case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264esac
13265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013271 { (case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274esac
13275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013280 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040013281else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
Theodore Ts'oe1052142006-10-21 21:46:47 -040013285 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040013286fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013287
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013289fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013290{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13291echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013292if test $ac_cv_type_ssize_t = yes; then
13293 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013294#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013295_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013296
13297fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013298
Theodore Ts'oe1052142006-10-21 21:46:47 -040013299{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13300echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013301if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013302 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013303else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013304 cat >conftest.$ac_ext <<_ACEOF
13305/* confdefs.h. */
13306_ACEOF
13307cat confdefs.h >>conftest.$ac_ext
13308cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013310#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013312int
13313main ()
13314{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013315#ifndef llseek
13316 char *p = (char *) llseek;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013317 return !p;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013318#endif
13319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013320 ;
13321 return 0;
13322}
13323_ACEOF
13324rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013325if { (ac_try="$ac_compile"
13326case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329esac
13330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013332 ac_status=$?
13333 grep -v '^ *+' conftest.er1 >conftest.err
13334 rm -f conftest.er1
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; } &&
13348 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013349 { (case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352esac
13353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013358 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013359else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013360 echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
Theodore Ts'oe1052142006-10-21 21:46:47 -040013363 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013364fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013365
13366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013368{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13369echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013370if test $ac_cv_have_decl_llseek = yes; then
13371 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013372#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013373_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013374
13375fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013376
Theodore Ts'oe1052142006-10-21 21:46:47 -040013377{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13378echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013379if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013380 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013381else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013382 cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013388#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013389 #define _LARGEFILE64_SOURCE
13390 #include <unistd.h>
13391
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013392int
13393main ()
13394{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013395#ifndef lseek64
13396 char *p = (char *) lseek64;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013397 return !p;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013398#endif
13399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013400 ;
13401 return 0;
13402}
13403_ACEOF
13404rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013405if { (ac_try="$ac_compile"
13406case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13409esac
13410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013412 ac_status=$?
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013438 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013439else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013440 echo "$as_me: failed program was:" >&5
13441sed 's/^/| /' conftest.$ac_ext >&5
13442
Theodore Ts'oe1052142006-10-21 21:46:47 -040013443 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013445
13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013447fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013448{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13449echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013450if test $ac_cv_have_decl_lseek64 = yes; then
13451 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013452#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013453_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013454
13455fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013456
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013457if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013458 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013459 ac_cv_sizeof_short=2
13460 ac_cv_sizeof_int=4
13461 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000013462 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013463 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
13464echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013465fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013466{ echo "$as_me:$LINENO: checking for short" >&5
13467echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013468if test "${ac_cv_type_short+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13470else
13471 cat >conftest.$ac_ext <<_ACEOF
13472/* confdefs.h. */
13473_ACEOF
13474cat confdefs.h >>conftest.$ac_ext
13475cat >>conftest.$ac_ext <<_ACEOF
13476/* end confdefs.h. */
13477$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013478typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013479int
13480main ()
13481{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013482if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013483 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013485 return 0;
13486 ;
13487 return 0;
13488}
13489_ACEOF
13490rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013491if { (ac_try="$ac_compile"
13492case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13505 { (case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508esac
13509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013515 { (case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518esac
13519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 ac_cv_type_short=yes
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
Theodore Ts'oe1052142006-10-21 21:46:47 -040013529 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013530fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013531
Theodore Ts'oe1052142006-10-21 21:46:47 -040013532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533fi
13534{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13535echo "${ECHO_T}$ac_cv_type_short" >&6; }
13536
13537{ echo "$as_me:$LINENO: checking size of short" >&5
13538echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013539if test "${ac_cv_sizeof_short+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541else
13542 if test "$ac_cv_type_short" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040013543 # The cast to long int works around a bug in the HP C Compiler
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13546 # This bug is HP SR number 8606223364.
13547 if test "$cross_compiling" = yes; then
13548 # Depending upon the size, compute the lo and hi bounds.
13549cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013556 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013557int
13558main ()
13559{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013560static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013561test_array [0] = 0
13562
13563 ;
13564 return 0;
13565}
13566_ACEOF
13567rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013568if { (ac_try="$ac_compile"
13569case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572esac
13573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13582 { (case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13585esac
13586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013592 { (case "(($ac_try" in
13593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13595esac
13596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601 ac_lo=0 ac_mid=0
13602 while :; do
13603 cat >conftest.$ac_ext <<_ACEOF
13604/* confdefs.h. */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h. */
13609$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013610 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013611int
13612main ()
13613{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013614static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013615test_array [0] = 0
13616
13617 ;
13618 return 0;
13619}
13620_ACEOF
13621rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013622if { (ac_try="$ac_compile"
13623case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626esac
13627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636 { (case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639esac
13640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_hi=$ac_mid; break
13656else
13657 echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
Theodore Ts'oe1052142006-10-21 21:46:47 -040013660 ac_lo=`expr $ac_mid + 1`
13661 if test $ac_lo -le $ac_mid; then
13662 ac_lo= ac_hi=
13663 break
13664 fi
13665 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013667
13668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013669 done
13670else
13671 echo "$as_me: failed program was:" >&5
13672sed 's/^/| /' conftest.$ac_ext >&5
13673
Theodore Ts'oe1052142006-10-21 21:46:47 -040013674 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013675/* confdefs.h. */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h. */
13680$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013681 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013682int
13683main ()
13684{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013685static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013686test_array [0] = 0
13687
13688 ;
13689 return 0;
13690}
13691_ACEOF
13692rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013693if { (ac_try="$ac_compile"
13694case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710esac
13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_hi=-1 ac_mid=-1
13727 while :; do
13728 cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h. */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
13733/* end confdefs.h. */
13734$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013735 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013736int
13737main ()
13738{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013739static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013740test_array [0] = 0
13741
13742 ;
13743 return 0;
13744}
13745_ACEOF
13746rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013747if { (ac_try="$ac_compile"
13748case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013771 { (case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774esac
13775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_lo=$ac_mid; break
13781else
13782 echo "$as_me: failed program was:" >&5
13783sed 's/^/| /' conftest.$ac_ext >&5
13784
Theodore Ts'oe1052142006-10-21 21:46:47 -040013785 ac_hi=`expr '(' $ac_mid ')' - 1`
13786 if test $ac_mid -le $ac_hi; then
13787 ac_lo= ac_hi=
13788 break
13789 fi
13790 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013792
13793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013794 done
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
Theodore Ts'oe1052142006-10-21 21:46:47 -040013799 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013801
13802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013804
13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013806# Binary search between lo and hi bounds.
13807while test "x$ac_lo" != "x$ac_hi"; do
13808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13809 cat >conftest.$ac_ext <<_ACEOF
13810/* confdefs.h. */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
13814/* end confdefs.h. */
13815$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013816 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013817int
13818main ()
13819{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013820static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013821test_array [0] = 0
13822
13823 ;
13824 return 0;
13825}
13826_ACEOF
13827rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013828if { (ac_try="$ac_compile"
13829case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832esac
13833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13842 { (case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_hi=$ac_mid
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
Theodore Ts'oe1052142006-10-21 21:46:47 -040013866 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013868
13869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013870done
13871case $ac_lo in
13872?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013873'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013874See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013875echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013876See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013877 { (exit 77); exit 77; }; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013878esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013879else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013880 cat >conftest.$ac_ext <<_ACEOF
13881/* confdefs.h. */
13882_ACEOF
13883cat confdefs.h >>conftest.$ac_ext
13884cat >>conftest.$ac_ext <<_ACEOF
13885/* end confdefs.h. */
13886$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013887 typedef short ac__type_sizeof_;
13888static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13889static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013890#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013891#include <stdlib.h>
13892int
13893main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013894{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013895
13896 FILE *f = fopen ("conftest.val", "w");
13897 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013898 return 1;
13899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013900 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013901 long int i = longval ();
13902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13903 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013904 fprintf (f, "%ld\n", i);
13905 }
13906 else
13907 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013908 unsigned long int i = ulongval ();
13909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13910 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013911 fprintf (f, "%lu\n", i);
13912 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013913 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013914
13915 ;
13916 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013917}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013918_ACEOF
13919rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013920if { (ac_try="$ac_link"
13921case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924esac
13925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013930 { (case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13933esac
13934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013940else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013941 echo "$as_me: program exited with status $ac_status" >&5
13942echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945( exit $ac_status )
Theodore Ts'oe1052142006-10-21 21:46:47 -040013946{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013947See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013948echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013949See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013950 { (exit 77); exit 77; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013953fi
13954rm -f conftest.val
13955else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013956 ac_cv_sizeof_short=0
13957fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013959{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13960echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013961cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013962#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013963_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013964
13965
Theodore Ts'oe1052142006-10-21 21:46:47 -040013966{ echo "$as_me:$LINENO: checking for int" >&5
13967echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968if test "${ac_cv_type_int+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13970else
13971 cat >conftest.$ac_ext <<_ACEOF
13972/* confdefs.h. */
13973_ACEOF
13974cat confdefs.h >>conftest.$ac_ext
13975cat >>conftest.$ac_ext <<_ACEOF
13976/* end confdefs.h. */
13977$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013978typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013979int
13980main ()
13981{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013982if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013983 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013984if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985 return 0;
13986 ;
13987 return 0;
13988}
13989_ACEOF
13990rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013991if { (ac_try="$ac_compile"
13992case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995esac
13996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998 ac_status=$?
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14005 { (case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008esac
14009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; } &&
14014 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015 { (case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018esac
14019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; }; then
14024 ac_cv_type_int=yes
14025else
14026 echo "$as_me: failed program was:" >&5
14027sed 's/^/| /' conftest.$ac_ext >&5
14028
Theodore Ts'oe1052142006-10-21 21:46:47 -040014029 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014030fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014031
Theodore Ts'oe1052142006-10-21 21:46:47 -040014032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033fi
14034{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14035echo "${ECHO_T}$ac_cv_type_int" >&6; }
14036
14037{ echo "$as_me:$LINENO: checking size of int" >&5
14038echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014039if test "${ac_cv_sizeof_int+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041else
14042 if test "$ac_cv_type_int" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014043 # The cast to long int works around a bug in the HP C Compiler
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14046 # This bug is HP SR number 8606223364.
14047 if test "$cross_compiling" = yes; then
14048 # Depending upon the size, compute the lo and hi bounds.
14049cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
14055$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014056 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014057int
14058main ()
14059{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014061test_array [0] = 0
14062
14063 ;
14064 return 0;
14065}
14066_ACEOF
14067rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014068if { (ac_try="$ac_compile"
14069case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072esac
14073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14082 { (case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14085esac
14086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014092 { (case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095esac
14096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_lo=0 ac_mid=0
14102 while :; do
14103 cat >conftest.$ac_ext <<_ACEOF
14104/* confdefs.h. */
14105_ACEOF
14106cat confdefs.h >>conftest.$ac_ext
14107cat >>conftest.$ac_ext <<_ACEOF
14108/* end confdefs.h. */
14109$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014110 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014111int
14112main ()
14113{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014115test_array [0] = 0
14116
14117 ;
14118 return 0;
14119}
14120_ACEOF
14121rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014122if { (ac_try="$ac_compile"
14123case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014129 ac_status=$?
14130 grep -v '^ *+' conftest.er1 >conftest.err
14131 rm -f conftest.er1
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14136 { (case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139esac
14140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; } &&
14145 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014146 { (case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14149esac
14150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 ac_hi=$ac_mid; break
14156else
14157 echo "$as_me: failed program was:" >&5
14158sed 's/^/| /' conftest.$ac_ext >&5
14159
Theodore Ts'oe1052142006-10-21 21:46:47 -040014160 ac_lo=`expr $ac_mid + 1`
14161 if test $ac_lo -le $ac_mid; then
14162 ac_lo= ac_hi=
14163 break
14164 fi
14165 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014167
14168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014169 done
14170else
14171 echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5
14173
Theodore Ts'oe1052142006-10-21 21:46:47 -040014174 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
14179/* end confdefs.h. */
14180$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014181 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014182int
14183main ()
14184{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014185static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014186test_array [0] = 0
14187
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014193if { (ac_try="$ac_compile"
14194case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_hi=-1 ac_mid=-1
14227 while :; do
14228 cat >conftest.$ac_ext <<_ACEOF
14229/* confdefs.h. */
14230_ACEOF
14231cat confdefs.h >>conftest.$ac_ext
14232cat >>conftest.$ac_ext <<_ACEOF
14233/* end confdefs.h. */
14234$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014235 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014236int
14237main ()
14238{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014240test_array [0] = 0
14241
14242 ;
14243 return 0;
14244}
14245_ACEOF
14246rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014247if { (ac_try="$ac_compile"
14248case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14251esac
14252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014254 ac_status=$?
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14261 { (case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; } &&
14270 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274esac
14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_lo=$ac_mid; break
14281else
14282 echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5
14284
Theodore Ts'oe1052142006-10-21 21:46:47 -040014285 ac_hi=`expr '(' $ac_mid ')' - 1`
14286 if test $ac_mid -le $ac_hi; then
14287 ac_lo= ac_hi=
14288 break
14289 fi
14290 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014292
14293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014294 done
14295else
14296 echo "$as_me: failed program was:" >&5
14297sed 's/^/| /' conftest.$ac_ext >&5
14298
Theodore Ts'oe1052142006-10-21 21:46:47 -040014299 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014300fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014301
14302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014304
14305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014306# Binary search between lo and hi bounds.
14307while test "x$ac_lo" != "x$ac_hi"; do
14308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14309 cat >conftest.$ac_ext <<_ACEOF
14310/* confdefs.h. */
14311_ACEOF
14312cat confdefs.h >>conftest.$ac_ext
14313cat >>conftest.$ac_ext <<_ACEOF
14314/* end confdefs.h. */
14315$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014317int
14318main ()
14319{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014320static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321test_array [0] = 0
14322
14323 ;
14324 return 0;
14325}
14326_ACEOF
14327rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014328if { (ac_try="$ac_compile"
14329case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332esac
14333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345esac
14346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14355esac
14356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_hi=$ac_mid
14362else
14363 echo "$as_me: failed program was:" >&5
14364sed 's/^/| /' conftest.$ac_ext >&5
14365
Theodore Ts'oe1052142006-10-21 21:46:47 -040014366 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014368
14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014370done
14371case $ac_lo in
14372?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014373'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014374See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014375echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014377 { (exit 77); exit 77; }; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014378esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014379else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014380 cat >conftest.$ac_ext <<_ACEOF
14381/* confdefs.h. */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h. */
14386$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014387 typedef int ac__type_sizeof_;
14388static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14389static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014390#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014391#include <stdlib.h>
14392int
14393main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014394{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014395
14396 FILE *f = fopen ("conftest.val", "w");
14397 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014398 return 1;
14399 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014400 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014401 long int i = longval ();
14402 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14403 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404 fprintf (f, "%ld\n", i);
14405 }
14406 else
14407 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014408 unsigned long int i = ulongval ();
14409 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14410 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014411 fprintf (f, "%lu\n", i);
14412 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014413 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014414
14415 ;
14416 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014417}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418_ACEOF
14419rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014420if { (ac_try="$ac_link"
14421case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424esac
14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014430 { (case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14433esac
14434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014440else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014441 echo "$as_me: program exited with status $ac_status" >&5
14442echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
14445( exit $ac_status )
Theodore Ts'oe1052142006-10-21 21:46:47 -040014446{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014447See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014448echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014449See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014450 { (exit 77); exit 77; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014451fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014453fi
14454rm -f conftest.val
14455else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014456 ac_cv_sizeof_int=0
14457fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014458fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014459{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14460echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014461cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014462#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014464
14465
Theodore Ts'oe1052142006-10-21 21:46:47 -040014466{ echo "$as_me:$LINENO: checking for long" >&5
14467echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468if test "${ac_cv_type_long+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470else
14471 cat >conftest.$ac_ext <<_ACEOF
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014478typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014479int
14480main ()
14481{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014482if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014483 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014484if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014485 return 0;
14486 ;
14487 return 0;
14488}
14489_ACEOF
14490rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014491if { (ac_try="$ac_compile"
14492case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14505 { (case "(($ac_try" in
14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507 *) ac_try_echo=$ac_try;;
14508esac
14509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; } &&
14514 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014515 { (case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14518esac
14519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 ac_cv_type_long=yes
14525else
14526 echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
Theodore Ts'oe1052142006-10-21 21:46:47 -040014529 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014530fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531
Theodore Ts'oe1052142006-10-21 21:46:47 -040014532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533fi
14534{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14535echo "${ECHO_T}$ac_cv_type_long" >&6; }
14536
14537{ echo "$as_me:$LINENO: checking size of long" >&5
14538echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014539if test "${ac_cv_sizeof_long+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541else
14542 if test "$ac_cv_type_long" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014543 # The cast to long int works around a bug in the HP C Compiler
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14546 # This bug is HP SR number 8606223364.
14547 if test "$cross_compiling" = yes; then
14548 # Depending upon the size, compute the lo and hi bounds.
14549cat >conftest.$ac_ext <<_ACEOF
14550/* confdefs.h. */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
14555$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014556 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014557int
14558main ()
14559{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014561test_array [0] = 0
14562
14563 ;
14564 return 0;
14565}
14566_ACEOF
14567rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014568if { (ac_try="$ac_compile"
14569case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14582 { (case "(($ac_try" in
14583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14585esac
14586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; } &&
14591 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014592 { (case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14595esac
14596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }; then
14601 ac_lo=0 ac_mid=0
14602 while :; do
14603 cat >conftest.$ac_ext <<_ACEOF
14604/* confdefs.h. */
14605_ACEOF
14606cat confdefs.h >>conftest.$ac_ext
14607cat >>conftest.$ac_ext <<_ACEOF
14608/* end confdefs.h. */
14609$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014610 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014611int
14612main ()
14613{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014614static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014615test_array [0] = 0
14616
14617 ;
14618 return 0;
14619}
14620_ACEOF
14621rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014622if { (ac_try="$ac_compile"
14623case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626esac
14627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639esac
14640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_hi=$ac_mid; break
14656else
14657 echo "$as_me: failed program was:" >&5
14658sed 's/^/| /' conftest.$ac_ext >&5
14659
Theodore Ts'oe1052142006-10-21 21:46:47 -040014660 ac_lo=`expr $ac_mid + 1`
14661 if test $ac_lo -le $ac_mid; then
14662 ac_lo= ac_hi=
14663 break
14664 fi
14665 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667
14668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014669 done
14670else
14671 echo "$as_me: failed program was:" >&5
14672sed 's/^/| /' conftest.$ac_ext >&5
14673
Theodore Ts'oe1052142006-10-21 21:46:47 -040014674 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014675/* confdefs.h. */
14676_ACEOF
14677cat confdefs.h >>conftest.$ac_ext
14678cat >>conftest.$ac_ext <<_ACEOF
14679/* end confdefs.h. */
14680$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014681 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014682int
14683main ()
14684{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014685static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014686test_array [0] = 0
14687
14688 ;
14689 return 0;
14690}
14691_ACEOF
14692rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014693if { (ac_try="$ac_compile"
14694case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697esac
14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707 { (case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014717 { (case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_hi=-1 ac_mid=-1
14727 while :; do
14728 cat >conftest.$ac_ext <<_ACEOF
14729/* confdefs.h. */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h. */
14734$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014735 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014736int
14737main ()
14738{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014739static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014740test_array [0] = 0
14741
14742 ;
14743 return 0;
14744}
14745_ACEOF
14746rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014747if { (ac_try="$ac_compile"
14748case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14761 { (case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764esac
14765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; } &&
14770 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014771 { (case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14774esac
14775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_lo=$ac_mid; break
14781else
14782 echo "$as_me: failed program was:" >&5
14783sed 's/^/| /' conftest.$ac_ext >&5
14784
Theodore Ts'oe1052142006-10-21 21:46:47 -040014785 ac_hi=`expr '(' $ac_mid ')' - 1`
14786 if test $ac_mid -le $ac_hi; then
14787 ac_lo= ac_hi=
14788 break
14789 fi
14790 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014792
14793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014794 done
14795else
14796 echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
Theodore Ts'oe1052142006-10-21 21:46:47 -040014799 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014801
14802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014804
14805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014806# Binary search between lo and hi bounds.
14807while test "x$ac_lo" != "x$ac_hi"; do
14808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14809 cat >conftest.$ac_ext <<_ACEOF
14810/* confdefs.h. */
14811_ACEOF
14812cat confdefs.h >>conftest.$ac_ext
14813cat >>conftest.$ac_ext <<_ACEOF
14814/* end confdefs.h. */
14815$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014816 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014817int
14818main ()
14819{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014820static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014821test_array [0] = 0
14822
14823 ;
14824 return 0;
14825}
14826_ACEOF
14827rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014828if { (ac_try="$ac_compile"
14829case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832esac
14833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14842 { (case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14845esac
14846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; } &&
14851 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014852 { (case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14855esac
14856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_hi=$ac_mid
14862else
14863 echo "$as_me: failed program was:" >&5
14864sed 's/^/| /' conftest.$ac_ext >&5
14865
Theodore Ts'oe1052142006-10-21 21:46:47 -040014866 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014868
14869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014870done
14871case $ac_lo in
14872?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014873'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014874See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014875echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014876See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014877 { (exit 77); exit 77; }; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014878esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014879else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014880 cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h. */
14886$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014887 typedef long ac__type_sizeof_;
14888static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14889static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014890#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014891#include <stdlib.h>
14892int
14893main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014894{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895
14896 FILE *f = fopen ("conftest.val", "w");
14897 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014898 return 1;
14899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014900 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014901 long int i = longval ();
14902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14903 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014904 fprintf (f, "%ld\n", i);
14905 }
14906 else
14907 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014908 unsigned long int i = ulongval ();
14909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14910 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014911 fprintf (f, "%lu\n", i);
14912 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014913 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014914
14915 ;
14916 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014917}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014918_ACEOF
14919rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014920if { (ac_try="$ac_link"
14921case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014930 { (case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933esac
14934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014940else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014941 echo "$as_me: program exited with status $ac_status" >&5
14942echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945( exit $ac_status )
Theodore Ts'oe1052142006-10-21 21:46:47 -040014946{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014947See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014948echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014949See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014950 { (exit 77); exit 77; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014953fi
14954rm -f conftest.val
14955else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014956 ac_cv_sizeof_long=0
14957fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014959{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14960echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014961cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014962#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014963_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014964
14965
Theodore Ts'oe1052142006-10-21 21:46:47 -040014966{ echo "$as_me:$LINENO: checking for long long" >&5
14967echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014968if test "${ac_cv_type_long_long+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970else
14971 cat >conftest.$ac_ext <<_ACEOF
14972/* confdefs.h. */
14973_ACEOF
14974cat confdefs.h >>conftest.$ac_ext
14975cat >>conftest.$ac_ext <<_ACEOF
14976/* end confdefs.h. */
14977$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014978typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014979int
14980main ()
14981{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014982if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014983 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014984if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014985 return 0;
14986 ;
14987 return 0;
14988}
14989_ACEOF
14990rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014991if { (ac_try="$ac_compile"
14992case "(($ac_try" in
14993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994 *) ac_try_echo=$ac_try;;
14995esac
14996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014998 ac_status=$?
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15005 { (case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015015 { (case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018esac
15019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_type_long_long=yes
15025else
15026 echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
Theodore Ts'oe1052142006-10-21 21:46:47 -040015029 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015030fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015031
Theodore Ts'oe1052142006-10-21 21:46:47 -040015032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15033fi
15034{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15035echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15036
15037{ echo "$as_me:$LINENO: checking size of long long" >&5
15038echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015039if test "${ac_cv_sizeof_long_long+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041else
15042 if test "$ac_cv_type_long_long" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015043 # The cast to long int works around a bug in the HP C Compiler
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15046 # This bug is HP SR number 8606223364.
15047 if test "$cross_compiling" = yes; then
15048 # Depending upon the size, compute the lo and hi bounds.
15049cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h. */
15055$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015056 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015057int
15058main ()
15059{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061test_array [0] = 0
15062
15063 ;
15064 return 0;
15065}
15066_ACEOF
15067rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015068if { (ac_try="$ac_compile"
15069case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082 { (case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15085esac
15086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101 ac_lo=0 ac_mid=0
15102 while :; do
15103 cat >conftest.$ac_ext <<_ACEOF
15104/* confdefs.h. */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h. */
15109$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015110 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015111int
15112main ()
15113{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015115test_array [0] = 0
15116
15117 ;
15118 return 0;
15119}
15120_ACEOF
15121rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015122if { (ac_try="$ac_compile"
15123case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139esac
15140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; } &&
15145 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015146 { (case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15149esac
15150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 ac_hi=$ac_mid; break
15156else
15157 echo "$as_me: failed program was:" >&5
15158sed 's/^/| /' conftest.$ac_ext >&5
15159
Theodore Ts'oe1052142006-10-21 21:46:47 -040015160 ac_lo=`expr $ac_mid + 1`
15161 if test $ac_lo -le $ac_mid; then
15162 ac_lo= ac_hi=
15163 break
15164 fi
15165 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015167
15168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015169 done
15170else
15171 echo "$as_me: failed program was:" >&5
15172sed 's/^/| /' conftest.$ac_ext >&5
15173
Theodore Ts'oe1052142006-10-21 21:46:47 -040015174 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015175/* confdefs.h. */
15176_ACEOF
15177cat confdefs.h >>conftest.$ac_ext
15178cat >>conftest.$ac_ext <<_ACEOF
15179/* end confdefs.h. */
15180$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015181 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015182int
15183main ()
15184{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015185static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015186test_array [0] = 0
15187
15188 ;
15189 return 0;
15190}
15191_ACEOF
15192rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015193if { (ac_try="$ac_compile"
15194case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197esac
15198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15207 { (case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; } &&
15216 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015217 { (case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220esac
15221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_hi=-1 ac_mid=-1
15227 while :; do
15228 cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h. */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h. */
15234$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015235 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015236int
15237main ()
15238{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015240test_array [0] = 0
15241
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015247if { (ac_try="$ac_compile"
15248case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251esac
15252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015254 ac_status=$?
15255 grep -v '^ *+' conftest.er1 >conftest.err
15256 rm -f conftest.er1
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264esac
15265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015271 { (case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274esac
15275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_lo=$ac_mid; break
15281else
15282 echo "$as_me: failed program was:" >&5
15283sed 's/^/| /' conftest.$ac_ext >&5
15284
Theodore Ts'oe1052142006-10-21 21:46:47 -040015285 ac_hi=`expr '(' $ac_mid ')' - 1`
15286 if test $ac_mid -le $ac_hi; then
15287 ac_lo= ac_hi=
15288 break
15289 fi
15290 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015292
15293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015294 done
15295else
15296 echo "$as_me: failed program was:" >&5
15297sed 's/^/| /' conftest.$ac_ext >&5
15298
Theodore Ts'oe1052142006-10-21 21:46:47 -040015299 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015300fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015301
15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015304
15305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015306# Binary search between lo and hi bounds.
15307while test "x$ac_lo" != "x$ac_hi"; do
15308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15309 cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015316 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015317int
15318main ()
15319{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015320static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015321test_array [0] = 0
15322
15323 ;
15324 return 0;
15325}
15326_ACEOF
15327rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015328if { (ac_try="$ac_compile"
15329case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15332esac
15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015335 ac_status=$?
15336 grep -v '^ *+' conftest.er1 >conftest.err
15337 rm -f conftest.er1
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015352 { (case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_hi=$ac_mid
15362else
15363 echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
Theodore Ts'oe1052142006-10-21 21:46:47 -040015366 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015368
15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015370done
15371case $ac_lo in
15372?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015373'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015374See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015375echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015376See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015377 { (exit 77); exit 77; }; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015378esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015379else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015380 cat >conftest.$ac_ext <<_ACEOF
15381/* confdefs.h. */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
15386$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015387 typedef long long ac__type_sizeof_;
15388static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15389static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015390#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015391#include <stdlib.h>
15392int
15393main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015394{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015395
15396 FILE *f = fopen ("conftest.val", "w");
15397 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015398 return 1;
15399 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015400 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015401 long int i = longval ();
15402 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15403 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015404 fprintf (f, "%ld\n", i);
15405 }
15406 else
15407 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015408 unsigned long int i = ulongval ();
15409 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15410 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015411 fprintf (f, "%lu\n", i);
15412 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015413 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015414
15415 ;
15416 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015417}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015418_ACEOF
15419rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015420if { (ac_try="$ac_link"
15421case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424esac
15425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015430 { (case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433esac
15434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015440else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015441 echo "$as_me: program exited with status $ac_status" >&5
15442echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445( exit $ac_status )
Theodore Ts'oe1052142006-10-21 21:46:47 -040015446{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015447See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015448echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015449See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015450 { (exit 77); exit 77; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015451fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015453fi
15454rm -f conftest.val
15455else
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015456 ac_cv_sizeof_long_long=0
15457fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015458fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015459{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15460echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015461cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015462#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015463_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015464
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015465
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015466SIZEOF_SHORT=$ac_cv_sizeof_short
15467SIZEOF_INT=$ac_cv_sizeof_int
15468SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015469SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
15470
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015471
15472
15473
Theodore Ts'oe1052142006-10-21 21:46:47 -040015474{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15475echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015476if test "${ac_cv_c_bigendian+set}" = set; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015478else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015479 # See if sys/param.h defines the BYTE_ORDER macro.
15480cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015486#include <sys/types.h>
15487#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015489int
15490main ()
15491{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015492#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15493 bogus endian macros
15494#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015495
15496 ;
15497 return 0;
15498}
15499_ACEOF
15500rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015501if { (ac_try="$ac_compile"
15502case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15505esac
15506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518esac
15519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; } &&
15524 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015525 { (case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528esac
15529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015534 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015535cat >conftest.$ac_ext <<_ACEOF
15536/* confdefs.h. */
15537_ACEOF
15538cat confdefs.h >>conftest.$ac_ext
15539cat >>conftest.$ac_ext <<_ACEOF
15540/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015541#include <sys/types.h>
15542#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015544int
15545main ()
15546{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015547#if BYTE_ORDER != BIG_ENDIAN
15548 not big endian
15549#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015550
15551 ;
15552 return 0;
15553}
15554_ACEOF
15555rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015556if { (ac_try="$ac_compile"
15557case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15560esac
15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570 { (case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015580 { (case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583esac
15584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015589 ac_cv_c_bigendian=yes
15590else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015591 echo "$as_me: failed program was:" >&5
15592sed 's/^/| /' conftest.$ac_ext >&5
15593
Theodore Ts'oe1052142006-10-21 21:46:47 -040015594 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015595fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015596
15597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015598else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
Theodore Ts'oe1052142006-10-21 21:46:47 -040015602 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015603if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015604 # try to guess the endianness by grepping values into an object file
15605 ac_cv_c_bigendian=unknown
15606 cat >conftest.$ac_ext <<_ACEOF
15607/* confdefs.h. */
15608_ACEOF
15609cat confdefs.h >>conftest.$ac_ext
15610cat >>conftest.$ac_ext <<_ACEOF
15611/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015612short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15613short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015614void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015615short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15616short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015617void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15618int
15619main ()
15620{
15621 _ascii (); _ebcdic ();
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015627if { (ac_try="$ac_compile"
15628case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15641 { (case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644esac
15645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; } &&
15650 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015651 { (case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15654esac
15655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15661 ac_cv_c_bigendian=yes
15662fi
15663if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15664 if test "$ac_cv_c_bigendian" = unknown; then
15665 ac_cv_c_bigendian=no
15666 else
15667 # finding both strings is unlikely to happen, but who knows?
15668 ac_cv_c_bigendian=unknown
15669 fi
15670fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015671else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015672 echo "$as_me: failed program was:" >&5
15673sed 's/^/| /' conftest.$ac_ext >&5
15674
Theodore Ts'oe1052142006-10-21 21:46:47 -040015675
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015676fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015677
15678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015679else
15680 cat >conftest.$ac_ext <<_ACEOF
15681/* confdefs.h. */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015686$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015687int
15688main ()
15689{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015690
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015691 /* Are we little or big endian? From Harbison&Steele. */
15692 union
15693 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015694 long int l;
15695 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015696 } u;
15697 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015698 return u.c[sizeof (long int) - 1] == 1;
15699
15700 ;
15701 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015702}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015703_ACEOF
15704rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015705if { (ac_try="$ac_link"
15706case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015715 { (case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15718esac
15719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015724 ac_cv_c_bigendian=no
15725else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015726 echo "$as_me: program exited with status $ac_status" >&5
15727echo "$as_me: failed program was:" >&5
15728sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015730( exit $ac_status )
15731ac_cv_c_bigendian=yes
15732fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015735
15736
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015737fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015738
15739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015741{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15742echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015743case $ac_cv_c_bigendian in
15744 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015745
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015746cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015747#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015748_ACEOF
15749 ;;
15750 no)
15751 ;;
15752 *)
15753 { { echo "$as_me:$LINENO: error: unknown endianness
15754presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15755echo "$as_me: error: unknown endianness
15756presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15757 { (exit 1); exit 1; }; } ;;
15758esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015759
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015760/bin/sh $ac_aux_dir/parse-types.sh
15761ASM_TYPES_HEADER=./asm_types.h
15762
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015763
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015764for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015765do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015771 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015772fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015773ac_res=`eval echo '${'$as_ac_Header'}'`
15774 { echo "$as_me:$LINENO: result: $ac_res" >&5
15775echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015777 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040015778{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015780cat >conftest.$ac_ext <<_ACEOF
15781/* confdefs.h. */
15782_ACEOF
15783cat confdefs.h >>conftest.$ac_ext
15784cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h. */
15786$ac_includes_default
15787#include <$ac_header>
15788_ACEOF
15789rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015790if { (ac_try="$ac_compile"
15791case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794esac
15795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15804 { (case "(($ac_try" in
15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15807esac
15808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015814 { (case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15823 ac_header_compiler=yes
15824else
15825 echo "$as_me: failed program was:" >&5
15826sed 's/^/| /' conftest.$ac_ext >&5
15827
Theodore Ts'oe1052142006-10-21 21:46:47 -040015828 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015829fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015830
15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15833echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015834
15835# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040015836{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015838cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
15844#include <$ac_header>
15845_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015846if { (ac_try="$ac_cpp conftest.$ac_ext"
15847case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15850esac
15851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } >/dev/null; then
15859 if test -s conftest.err; then
15860 ac_cpp_err=$ac_c_preproc_warn_flag
15861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15862 else
15863 ac_cpp_err=
15864 fi
15865else
15866 ac_cpp_err=yes
15867fi
15868if test -z "$ac_cpp_err"; then
15869 ac_header_preproc=yes
15870else
15871 echo "$as_me: failed program was:" >&5
15872sed 's/^/| /' conftest.$ac_ext >&5
15873
15874 ac_header_preproc=no
15875fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015877rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015878{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15879echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015880
15881# So? What about this header?
15882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15883 yes:no: )
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15885echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15887echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15888 ac_header_preproc=yes
15889 ;;
15890 no:yes:* )
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15894echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15896echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15898echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15902echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015904 ;;
15905esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015906{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910else
15911 eval "$as_ac_Header=\$ac_header_preproc"
15912fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015913ac_res=`eval echo '${'$as_ac_Header'}'`
15914 { echo "$as_me:$LINENO: result: $ac_res" >&5
15915echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015916
15917fi
15918if test `eval echo '${'$as_ac_Header'}'` = yes; then
15919 cat >>confdefs.h <<_ACEOF
15920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15921_ACEOF
15922
15923fi
15924
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015925done
15926
Theodore Ts'oe1052142006-10-21 21:46:47 -040015927{ echo "$as_me:$LINENO: checking for intptr_t" >&5
15928echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015929if test "${ac_cv_type_intptr_t+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015931else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015932 cat >conftest.$ac_ext <<_ACEOF
15933/* confdefs.h. */
15934_ACEOF
15935cat confdefs.h >>conftest.$ac_ext
15936cat >>conftest.$ac_ext <<_ACEOF
15937/* end confdefs.h. */
15938$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015939typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015940int
15941main ()
15942{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015943if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015944 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015945if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015946 return 0;
15947 ;
15948 return 0;
15949}
15950_ACEOF
15951rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015952if { (ac_try="$ac_compile"
15953case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956esac
15957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969esac
15970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979esac
15980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015985 ac_cv_type_intptr_t=yes
15986else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015987 echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015989
Theodore Ts'oe1052142006-10-21 21:46:47 -040015990 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015991fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015992
15993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015994fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015995{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15996echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015997if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015998
15999cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050016000#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016001_ACEOF
16002
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050016003
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016004fi
16005
Theodore Ts'oe1052142006-10-21 21:46:47 -040016006{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
16007echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016008if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011 cat >conftest.$ac_ext <<_ACEOF
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016017#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016018int
16019main ()
16020{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016021struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016022 ;
16023 return 0;
16024}
16025_ACEOF
16026rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016027if { (ac_try="$ac_compile"
16028case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16031esac
16032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016034 ac_status=$?
16035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16041 { (case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16044esac
16045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016051 { (case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054esac
16055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016057 ac_status=$?
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016060 e2fsprogs_cv_struct_st_flags=yes
16061else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016062 echo "$as_me: failed program was:" >&5
16063sed 's/^/| /' conftest.$ac_ext >&5
16064
Theodore Ts'oe1052142006-10-21 21:46:47 -040016065 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016066fi
16067
Theodore Ts'oe1052142006-10-21 21:46:47 -040016068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16069fi
16070
16071{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
16072echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016073if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016074 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
16075echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016076 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016078else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016079 cat >conftest.$ac_ext <<_ACEOF
16080/* confdefs.h. */
16081_ACEOF
16082cat confdefs.h >>conftest.$ac_ext
16083cat >>conftest.$ac_ext <<_ACEOF
16084/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016085#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016086int
16087main ()
16088{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016089struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016090 ;
16091 return 0;
16092}
16093_ACEOF
16094rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016095if { (ac_try="$ac_compile"
16096case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16099esac
16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016102 ac_status=$?
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16109 { (case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016119 { (case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16122esac
16123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016128 e2fsprogs_cv_struct_st_flags_immut=yes
16129else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016130 echo "$as_me: failed program was:" >&5
16131sed 's/^/| /' conftest.$ac_ext >&5
16132
Theodore Ts'oe1052142006-10-21 21:46:47 -040016133 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016134fi
16135
Theodore Ts'oe1052142006-10-21 21:46:47 -040016136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137fi
16138
16139 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
16140echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016141 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016142 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016143#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016144_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016145
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016146 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016147fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016148{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16149echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016150if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016151 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016152else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016153 cat >conftest.$ac_ext <<_ACEOF
16154/* confdefs.h. */
16155_ACEOF
16156cat confdefs.h >>conftest.$ac_ext
16157cat >>conftest.$ac_ext <<_ACEOF
16158/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016159#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016160 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016161
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016162int
16163main ()
16164{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016165static struct sockaddr ac_aggr;
16166if (ac_aggr.sa_len)
16167return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016168 ;
16169 return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016173if { (ac_try="$ac_compile"
16174case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016180 ac_status=$?
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200esac
16201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016206 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016207else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016208 echo "$as_me: failed program was:" >&5
16209sed 's/^/| /' conftest.$ac_ext >&5
16210
Theodore Ts'oe1052142006-10-21 21:46:47 -040016211 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016212/* confdefs.h. */
16213_ACEOF
16214cat confdefs.h >>conftest.$ac_ext
16215cat >>conftest.$ac_ext <<_ACEOF
16216/* end confdefs.h. */
16217#include <sys/types.h>
16218 #include <sys/socket.h>
16219
16220int
16221main ()
16222{
16223static struct sockaddr ac_aggr;
16224if (sizeof ac_aggr.sa_len)
16225return 0;
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016231if { (ac_try="$ac_compile"
16232case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016238 ac_status=$?
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245 { (case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16248esac
16249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_try") 2>&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016255 { (case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258esac
16259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_try") 2>&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_cv_member_struct_sockaddr_sa_len=yes
16265else
16266 echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
Theodore Ts'oe1052142006-10-21 21:46:47 -040016269 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016270fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016271
16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016273fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016274
16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016276fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016277{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16278echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016279if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016280
16281cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016282#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016283_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016284
16285fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016305
Theodore Ts'o762c7c62005-04-06 14:44:16 -040016306
16307
Andreas Dilger9b7d8112005-07-09 22:06:59 -050016308
16309for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016310do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016312{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16314if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016315 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016316else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016317 cat >conftest.$ac_ext <<_ACEOF
16318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
16323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16325#define $ac_func innocuous_$ac_func
16326
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016327/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016328 which can conflict with char $ac_func (); below.
16329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16330 <limits.h> exists even on freestanding compilers. */
16331
16332#ifdef __STDC__
16333# include <limits.h>
16334#else
16335# include <assert.h>
16336#endif
16337
16338#undef $ac_func
16339
Theodore Ts'oe1052142006-10-21 21:46:47 -040016340/* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016343#ifdef __cplusplus
16344extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016345#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016346char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016347/* The GNU C library defines this for functions which it implements
16348 to always fail with ENOSYS. Some functions are actually named
16349 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040016350#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016351choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016352#endif
16353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016354int
16355main ()
16356{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016357return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016358 ;
16359 return 0;
16360}
16361_ACEOF
16362rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016363if { (ac_try="$ac_link"
16364case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16367esac
16368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016370 ac_status=$?
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16377 { (case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380esac
16381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; } &&
16386 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016387 { (case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390esac
16391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016397else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016398 echo "$as_me: failed program was:" >&5
16399sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000016400
Theodore Ts'oe1052142006-10-21 21:46:47 -040016401 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016402fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016403
16404rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016405 conftest$ac_exeext conftest.$ac_ext
16406fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016407ac_res=`eval echo '${'$as_ac_var'}'`
16408 { echo "$as_me:$LINENO: result: $ac_res" >&5
16409echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016410if test `eval echo '${'$as_ac_var'}'` = yes; then
16411 cat >>confdefs.h <<_ACEOF
16412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16413_ACEOF
16414
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016415fi
16416done
16417
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016418SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040016419{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16420echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016421if test "${ac_cv_lib_socket_socket+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016423else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016424 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016425LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016426cat >conftest.$ac_ext <<_ACEOF
16427/* confdefs.h. */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h. */
16432
Theodore Ts'oe1052142006-10-21 21:46:47 -040016433/* Override any GCC internal prototype to avoid an error.
16434 Use char because int might match the return type of a GCC
16435 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016436#ifdef __cplusplus
16437extern "C"
16438#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016439char socket ();
16440int
16441main ()
16442{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016443return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016444 ;
16445 return 0;
16446}
16447_ACEOF
16448rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016449if { (ac_try="$ac_link"
16450case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16463 { (case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466esac
16467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; } &&
16472 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016473 { (case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476esac
16477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016483else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016484 echo "$as_me: failed program was:" >&5
16485sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016486
Theodore Ts'oe1052142006-10-21 21:46:47 -040016487 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016489
16490rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016491 conftest$ac_exeext conftest.$ac_ext
16492LIBS=$ac_check_lib_save_LIBS
16493fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016494{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16495echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016496if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016497 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016498fi
16499
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016500
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016501DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040016502{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16503echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016504if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016506else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016507 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016508LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016509cat >conftest.$ac_ext <<_ACEOF
16510/* confdefs.h. */
16511_ACEOF
16512cat confdefs.h >>conftest.$ac_ext
16513cat >>conftest.$ac_ext <<_ACEOF
16514/* end confdefs.h. */
16515
Theodore Ts'oe1052142006-10-21 21:46:47 -040016516/* Override any GCC internal prototype to avoid an error.
16517 Use char because int might match the return type of a GCC
16518 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016519#ifdef __cplusplus
16520extern "C"
16521#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016522char dlopen ();
16523int
16524main ()
16525{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016526return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016532if { (ac_try="$ac_link"
16533case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16536esac
16537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016539 ac_status=$?
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549esac
16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016556 { (case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559esac
16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016566else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016569
Theodore Ts'oe1052142006-10-21 21:46:47 -040016570 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016572
16573rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016574 conftest$ac_exeext conftest.$ac_ext
16575LIBS=$ac_check_lib_save_LIBS
16576fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016577{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16578echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016579if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016580 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016581cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016582#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016583_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016584
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016585fi
16586
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016587
Theodore Ts'oe1052142006-10-21 21:46:47 -040016588{ echo "$as_me:$LINENO: checking for optreset" >&5
16589echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016590if test "${ac_cv_have_optreset+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016592else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016593 cat >conftest.$ac_ext <<_ACEOF
16594/* confdefs.h. */
16595_ACEOF
16596cat confdefs.h >>conftest.$ac_ext
16597cat >>conftest.$ac_ext <<_ACEOF
16598/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016599#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016600
16601_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016603 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016604 ac_cv_have_optreset=yes
16605else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016606 ac_cv_have_optreset=no
16607fi
16608rm -f conftest*
16609
16610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016611{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16612echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016613if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016614 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016615#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016616_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016617
16618fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016619{ echo "$as_me:$LINENO: checking for unified diff option" >&5
16620echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016621if diff -u $0 $0 >& /dev/null ; then
16622 UNI_DIFF_OPTS=-u
16623else
16624 UNI_DIFF_OPTS=-c
16625fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016626{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16627echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016628
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016629case "$host_os" in
16630linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016631 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016632#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016633_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016634
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016635 ;;
16636esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016637LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016638CYGWIN_CMT="#"
16639UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016640case "$host_os" in
16641linux*)
16642 LINUX_CMT=
16643 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040016644cygwin)
16645 CYGWIN_CMT=
16646 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016647 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016648esac
16649
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016650
16651
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016652case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016653linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016654 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16655 root_prefix="";
16656 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016657 fi
16658 ;;
16659esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016660case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016661linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016662 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016663 prefix="/usr";
16664 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040016665 if test "$mandir" = '${prefix}/man' ; then
16666 echo "...and mandir defaults to /usr/share/man"
16667 mandir=/usr/share/man
16668 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016669 fi
16670;;
16671esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016672if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000016673 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016674 root_prefix="$ac_default_prefix"
16675 else
16676 root_prefix="$prefix"
16677 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040016678 root_bindir=$bindir
16679 root_sbindir=$sbindir
16680 root_libdir=$libdir
16681 root_sysconfdir=$sysconfdir
16682else
16683 root_bindir='${root_prefix}/bin'
16684 root_sbindir='${root_prefix}/sbin'
16685 root_libdir='${root_prefix}/lib'
16686 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016687fi
16688
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016689
16690
16691
16692
Theodore Ts'oe1052142006-10-21 21:46:47 -040016693{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16694echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016695if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000016697else
16698 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016699cat >conftest.$ac_ext <<_ACEOF
16700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000016705#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016706int
16707main ()
16708{
Theodore Ts'oae851481997-04-29 18:13:24 +000016709fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016710 ;
16711 return 0;
16712}
16713_ACEOF
16714rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016715if { (ac_try="$ac_link"
16716case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16719esac
16720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016722 ac_status=$?
16723 grep -v '^ *+' conftest.er1 >conftest.err
16724 rm -f conftest.er1
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16729 { (case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16732esac
16733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; } &&
16738 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016739 { (case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742esac
16743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000016748 ac_cv_e2fsprogs_use_static=yes
16749else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016750 echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
Theodore Ts'oe1052142006-10-21 21:46:47 -040016753 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000016754fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016755
16756rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016757 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000016758LDFLAGS=$SAVE_LDFLAGS
16759fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016760
Theodore Ts'odefde781999-01-04 07:39:19 +000016761case "$host_os" in
16762solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016763 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000016764;;
16765esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016766{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16767echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000016768LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000016769if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016770 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000016771fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016772
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016773case "$host_os" in
16774darwin*)
16775 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016776 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016777#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016778_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016779
16780 ;;
16781esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016782SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16783ET_DIR=`cd ${srcdir}/lib/et; pwd`
16784
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016785
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016786if test "$cross_compiling" = yes ; then
16787 DO_TEST_SUITE=
16788else
16789 DO_TEST_SUITE=check
16790fi
16791
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040016792INTL_FLAGS=
16793if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16794 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16795fi
16796
Theodore Ts'odd947da2005-11-09 18:37:07 -040016797if test $cross_compiling = no; then
16798 BUILD_CFLAGS="$CFLAGS"
16799 BUILD_LDFLAGS="$LDFLAGS"
16800else
16801 BUILD_CFLAGS=
16802 BUILD_LDFLAGS=
16803fi
16804
16805
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016806test -d lib || mkdir lib
16807test -d include || mkdir include
16808test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000016809test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050016810for i in MCONFIG Makefile e2fsprogs.spec \
16811 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040016812 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16813 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016814 lib/uuid/Makefile lib/uuid/uuid_types.h \
16815 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050016816 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16817 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050016818 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016819 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16820 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
16821 if test -d `dirname ${srcdir}/$i` ; then
16822 outlist="$outlist $i"
16823 fi
16824done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016825ac_config_files="$ac_config_files $outlist"
16826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016827cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016828# This file is a shell script that caches the results of configure
16829# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016830# scripts and configure runs, see configure's option --config-cache.
16831# It is not useful on other systems. If it contains results you don't
16832# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016833#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016834# config.status only pays attention to the cache file if you give it
16835# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016836#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016837# `ac_cv_env_foo' variables (set or unset) will be overridden when
16838# loading this file, other *unset* `ac_cv_foo' will be assigned the
16839# following values.
16840
16841_ACEOF
16842
Theodore Ts'o21c84b71997-04-29 16:15:03 +000016843# The following way of writing the cache mishandles newlines in values,
16844# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016845# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016846# Ultrix sh set writes to stderr and can't be redirected directly,
16847# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016848(
16849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16850 eval ac_val=\$$ac_var
16851 case $ac_val in #(
16852 *${as_nl}*)
16853 case $ac_var in #(
16854 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16855echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16856 esac
16857 case $ac_var in #(
16858 _ | IFS | as_nl) ;; #(
16859 *) $as_unset $ac_var ;;
16860 esac ;;
16861 esac
16862 done
16863
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016864 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16866 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016867 # `set' does not quote correctly, so add quotes (double-quote
16868 # substitution turns \\\\ into \\, and sed turns \\ into \).
16869 sed -n \
16870 "s/'/'\\\\''/g;
16871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040016872 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016873 *)
16874 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016876 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016877 esac |
16878 sort
16879) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016880 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016881 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016882 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016883 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16885 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040016886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16887 :end' >>confcache
16888if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16889 if test -w "$cache_file"; then
16890 test "x$cache_file" != "x/dev/null" &&
16891 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16892echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016893 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016894 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040016895 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16896echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016897 fi
16898fi
16899rm -f confcache
16900
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016901test "x$prefix" = xNONE && prefix=$ac_default_prefix
16902# Let make expand exec_prefix.
16903test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16904
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016905# Transform confdefs.h into DEFS.
16906# Protect against shell expansion while executing Makefile rules.
16907# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016908#
16909# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040016910# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016911# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016912ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016913t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016914:clear
16915s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016916t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016917s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016918t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016919b any
16920:quote
16921s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16922s/\[/\\&/g
16923s/\]/\\&/g
16924s/\$/$$/g
16925H
16926:any
16927${
16928 g
16929 s/^\n//
16930 s/\n/ /g
16931 p
16932}
16933'
16934DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016935
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016937ac_libobjs=
16938ac_ltlibobjs=
16939for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16940 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016941 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16942 ac_i=`echo "$ac_i" | sed "$ac_script"`
16943 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16944 # will be set to the directory where LIBOBJS objects are built.
16945 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16946 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016947done
16948LIBOBJS=$ac_libobjs
16949
16950LTLIBOBJS=$ac_ltlibobjs
16951
16952
16953
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016954: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016955ac_clean_files_save=$ac_clean_files
16956ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16957{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16958echo "$as_me: creating $CONFIG_STATUS" >&6;}
16959cat >$CONFIG_STATUS <<_ACEOF
16960#! $SHELL
16961# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016962# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016963# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016964# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016965
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016966debug=false
16967ac_cs_recheck=false
16968ac_cs_silent=false
16969SHELL=\${CONFIG_SHELL-$SHELL}
16970_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016972cat >>$CONFIG_STATUS <<\_ACEOF
16973## --------------------- ##
16974## M4sh Initialization. ##
16975## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016976
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016977# Be Bourne compatible
16978if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16979 emulate sh
16980 NULLCMD=:
16981 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16982 # is contrary to our usage. Disable this feature.
16983 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016984 setopt NO_GLOB_SUBST
16985else
16986 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016987fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016988BIN_SH=xpg4; export BIN_SH # for Tru64
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016989DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016990
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016991
Theodore Ts'oe1052142006-10-21 21:46:47 -040016992# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016993# Avoid depending upon Character Ranges.
16994as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16995as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16996as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16997as_cr_digits='0123456789'
16998as_cr_alnum=$as_cr_Letters$as_cr_digits
16999
17000# The user is always right.
17001if test "${PATH_SEPARATOR+set}" != set; then
17002 echo "#! /bin/sh" >conf$$.sh
17003 echo "exit 0" >>conf$$.sh
17004 chmod +x conf$$.sh
17005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17006 PATH_SEPARATOR=';'
17007 else
17008 PATH_SEPARATOR=:
17009 fi
17010 rm -f conf$$.sh
17011fi
17012
Theodore Ts'oe1052142006-10-21 21:46:47 -040017013# Support unset when possible.
17014if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17015 as_unset=unset
17016else
17017 as_unset=false
17018fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017019
Theodore Ts'oe1052142006-10-21 21:46:47 -040017020
17021# IFS
17022# We need space, tab and new line, in precisely that order. Quoting is
17023# there to prevent editors from complaining about space-tab.
17024# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17025# splitting by setting IFS to empty value.)
17026as_nl='
17027'
17028IFS=" "" $as_nl"
17029
17030# Find who we are. Look in the path if we contain no directory separator.
17031case $0 in
17032 *[\\/]* ) as_myself=$0 ;;
17033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017034for as_dir in $PATH
17035do
17036 IFS=$as_save_IFS
17037 test -z "$as_dir" && as_dir=.
17038 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17039done
Theodore Ts'oe1052142006-10-21 21:46:47 -040017040IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017041
Theodore Ts'oe1052142006-10-21 21:46:47 -040017042 ;;
17043esac
17044# We did not find ourselves, most probably we were run as `sh COMMAND'
17045# in which case we are not to be found in the path.
17046if test "x$as_myself" = x; then
17047 as_myself=$0
17048fi
17049if test ! -f "$as_myself"; then
17050 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17051 { (exit 1); exit 1; }
17052fi
17053
17054# Work around bugs in pre-3.0 UWIN ksh.
17055for as_var in ENV MAIL MAILPATH
17056do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17057done
17058PS1='$ '
17059PS2='> '
17060PS4='+ '
17061
17062# NLS nuisances.
17063for as_var in \
17064 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17065 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17066 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017067do
Theodore Ts'oe1052142006-10-21 21:46:47 -040017068 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17069 eval $as_var=C; export $as_var
17070 else
17071 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17072 fi
17073done
17074
17075# Required to use basename.
17076if expr a : '\(a\)' >/dev/null 2>&1 &&
17077 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17078 as_expr=expr
17079else
17080 as_expr=false
17081fi
17082
17083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17084 as_basename=basename
17085else
17086 as_basename=false
17087fi
17088
17089
17090# Name of the executable.
17091as_me=`$as_basename -- "$0" ||
17092$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17093 X"$0" : 'X\(//\)$' \| \
17094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17095echo X/"$0" |
17096 sed '/^.*\/\([^/][^/]*\)\/*$/{
17097 s//\1/
17098 q
17099 }
17100 /^X\/\(\/\/\)$/{
17101 s//\1/
17102 q
17103 }
17104 /^X\/\(\/\).*/{
17105 s//\1/
17106 q
17107 }
17108 s/.*/./; q'`
17109
17110# CDPATH.
17111$as_unset CDPATH
17112
17113
17114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017115 as_lineno_1=$LINENO
17116 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017117 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017118 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017120 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17121 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040017122 # line-number line after each line using $LINENO; the second 'sed'
17123 # does the real work. The second script uses 'N' to pair each
17124 # line-number line with the line containing $LINENO, and appends
17125 # trailing '-' during substitution so that $LINENO is not a special
17126 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017127 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040017128 # scripts with optimization help from Paolo Bonzini. Blame Lee
17129 # E. McMahon (1931-1989) for sed's syntax. :-)
17130 sed -n '
17131 p
17132 /[$]LINENO/=
17133 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017134 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040017135 s/[$]LINENO.*/&-/
17136 t lineno
17137 b
17138 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017139 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040017140 :loop
17141 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017142 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040017143 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017144 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017145 chmod +x "$as_me.lineno" ||
17146 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017147 { (exit 1); exit 1; }; }
17148
17149 # Don't try to exec as it changes $[0], causing all sort of problems
17150 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040017151 # original and so on. Autoconf is especially sensitive to this).
17152 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017153 # Exit status is that of the last command.
17154 exit
17155}
17156
17157
Theodore Ts'oe1052142006-10-21 21:46:47 -040017158if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17159 as_dirname=dirname
17160else
17161 as_dirname=false
17162fi
17163
17164ECHO_C= ECHO_N= ECHO_T=
17165case `echo -n x` in
17166-n*)
17167 case `echo 'x\c'` in
17168 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17169 *) ECHO_C='\c';;
17170 esac;;
17171*)
17172 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017173esac
17174
Theodore Ts'oe1052142006-10-21 21:46:47 -040017175if expr a : '\(a\)' >/dev/null 2>&1 &&
17176 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017177 as_expr=expr
17178else
17179 as_expr=false
17180fi
17181
17182rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040017183if test -d conf$$.dir; then
17184 rm -f conf$$.dir/conf$$.file
17185else
17186 rm -f conf$$.dir
17187 mkdir conf$$.dir
17188fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017189echo >conf$$.file
17190if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017191 as_ln_s='ln -s'
17192 # ... but there are two gotchas:
17193 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17194 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17195 # In both cases, we have to default to `cp -p'.
17196 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017197 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017198elif ln conf$$.file conf$$ 2>/dev/null; then
17199 as_ln_s=ln
17200else
17201 as_ln_s='cp -p'
17202fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017203rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17204rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017205
17206if mkdir -p . 2>/dev/null; then
17207 as_mkdir_p=:
17208else
17209 test -d ./-p && rmdir ./-p
17210 as_mkdir_p=false
17211fi
17212
Theodore Ts'oe1052142006-10-21 21:46:47 -040017213# Find out whether ``test -x'' works. Don't use a zero-byte file, as
17214# systems may use methods other than mode bits to determine executability.
17215cat >conf$$.file <<_ASEOF
17216#! /bin/sh
17217exit 0
17218_ASEOF
17219chmod +x conf$$.file
17220if test -x conf$$.file >/dev/null 2>&1; then
17221 as_executable_p="test -x"
17222else
17223 as_executable_p=:
17224fi
17225rm -f conf$$.file
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017226
17227# Sed expression to map a string onto a valid CPP name.
17228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17229
17230# Sed expression to map a string onto a valid variable name.
17231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17232
17233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017234exec 6>&1
17235
Theodore Ts'oe1052142006-10-21 21:46:47 -040017236# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017237# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040017238# values after options handling.
17239ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017240This file was extended by $as_me, which was
Theodore Ts'oe1052142006-10-21 21:46:47 -040017241generated by GNU Autoconf 2.60. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017242
17243 CONFIG_FILES = $CONFIG_FILES
17244 CONFIG_HEADERS = $CONFIG_HEADERS
17245 CONFIG_LINKS = $CONFIG_LINKS
17246 CONFIG_COMMANDS = $CONFIG_COMMANDS
17247 $ $0 $@
17248
Theodore Ts'oe1052142006-10-21 21:46:47 -040017249on `(hostname || uname -n) 2>/dev/null | sed 1q`
17250"
17251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017252_ACEOF
17253
Theodore Ts'oe1052142006-10-21 21:46:47 -040017254cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017255# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017256config_files="$ac_config_files"
17257config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017258
Theodore Ts'oe1052142006-10-21 21:46:47 -040017259_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017260
17261cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017262ac_cs_usage="\
17263\`$as_me' instantiates files from templates according to the
17264current configuration.
17265
17266Usage: $0 [OPTIONS] [FILE]...
17267
17268 -h, --help print this help, then exit
17269 -V, --version print version number, then exit
17270 -q, --quiet do not print progress messages
17271 -d, --debug don't remove temporary files
17272 --recheck update $as_me by reconfiguring in the same conditions
17273 --file=FILE[:TEMPLATE]
17274 instantiate the configuration file FILE
17275
17276Configuration files:
17277$config_files
17278
17279Configuration commands:
17280$config_commands
17281
17282Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017283
Theodore Ts'oe1052142006-10-21 21:46:47 -040017284_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017285cat >>$CONFIG_STATUS <<_ACEOF
17286ac_cs_version="\\
17287config.status
Theodore Ts'oe1052142006-10-21 21:46:47 -040017288configured by $0, generated by GNU Autoconf 2.60,
17289 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017290
Theodore Ts'oe1052142006-10-21 21:46:47 -040017291Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017292This config.status script is free software; the Free Software Foundation
17293gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040017294
17295ac_pwd='$ac_pwd'
17296srcdir='$srcdir'
17297INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017298_ACEOF
17299
17300cat >>$CONFIG_STATUS <<\_ACEOF
17301# If no file are specified by the user, then we need to provide default
17302# value. By we need to know if files were specified by the user.
17303ac_need_defaults=:
17304while test $# != 0
17305do
17306 case $1 in
17307 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040017308 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17309 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017310 ac_shift=:
17311 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017312 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017313 ac_option=$1
17314 ac_optarg=$2
17315 ac_shift=shift
17316 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017317 esac
17318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017319 case $ac_option in
17320 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17322 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017323 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17324 echo "$ac_cs_version"; exit ;;
17325 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017326 debug=: ;;
17327 --file | --fil | --fi | --f )
17328 $ac_shift
17329 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17330 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017331 --he | --h | --help | --hel | -h )
17332 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17334 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17335 ac_cs_silent=: ;;
17336
17337 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017338 -*) { echo "$as_me: error: unrecognized option: $1
17339Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017340 { (exit 1); exit 1; }; } ;;
17341
Theodore Ts'oe1052142006-10-21 21:46:47 -040017342 *) ac_config_targets="$ac_config_targets $1"
17343 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017344
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017345 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017346 shift
17347done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017348
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017349ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017351if $ac_cs_silent; then
17352 exec 6>/dev/null
17353 ac_configure_extra_args="$ac_configure_extra_args --silent"
17354fi
17355
17356_ACEOF
17357cat >>$CONFIG_STATUS <<_ACEOF
17358if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017359 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17360 CONFIG_SHELL=$SHELL
17361 export CONFIG_SHELL
17362 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017363fi
17364
17365_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017366cat >>$CONFIG_STATUS <<\_ACEOF
17367exec 5>>config.log
17368{
17369 echo
17370 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17371## Running $as_me. ##
17372_ASBOX
17373 echo "$ac_log"
17374} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017375
Theodore Ts'oe1052142006-10-21 21:46:47 -040017376_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017377cat >>$CONFIG_STATUS <<_ACEOF
17378#
Theodore Ts'oe1052142006-10-21 21:46:47 -040017379# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017380#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017381# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017382 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017383 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017384 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017385 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17386 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017387
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017389_ACEOF
17390
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017391cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017392
17393# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017394for ac_config_target in $ac_config_targets
17395do
Theodore Ts'oe1052142006-10-21 21:46:47 -040017396 case $ac_config_target in
17397 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17398 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017400 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17401echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17402 { (exit 1); exit 1; }; };;
17403 esac
17404done
17405
Theodore Ts'oe1052142006-10-21 21:46:47 -040017406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017407# If the user did not use the arguments to specify the items to instantiate,
17408# then the envvar interface is used. Set only those that are not.
17409# We use the long form for the default assignment because of an extremely
17410# bizarre bug on SunOS 4.1.3.
17411if $ac_need_defaults; then
17412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17413 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17414fi
17415
17416# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040017417# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017418# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017419# Hook for its removal unless debugging.
17420# Note that there is a small window in which the directory will not be cleaned:
17421# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017422$debug ||
17423{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017424 tmp=
17425 trap 'exit_status=$?
17426 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17427' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017428 trap '{ (exit 1); exit 1; }' 1 2 13 15
17429}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017430# Create a (secure) tmp directory for tmp files.
17431
17432{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017433 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017434 test -n "$tmp" && test -d "$tmp"
17435} ||
17436{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017437 tmp=./conf$$-$RANDOM
17438 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017439} ||
17440{
17441 echo "$me: cannot create a temporary directory in ." >&2
17442 { (exit 1); exit 1; }
17443}
17444
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017445#
Theodore Ts'oe1052142006-10-21 21:46:47 -040017446# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017447#
17448
17449# No need to generate the scripts if there are no CONFIG_FILES.
17450# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040017451if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017452
17453_ACEOF
17454
Theodore Ts'oe1052142006-10-21 21:46:47 -040017455# Create sed commands to just substitute file output variables.
17456
17457# Remaining file output variables are in a fragment that also has non-file
17458# output varibles.
17459
17460
17461
17462ac_delim='%!_!# '
17463for ac_last_try in false false false false false :; do
17464 cat >conf$$subs.sed <<_ACEOF
17465SHELL!$SHELL$ac_delim
17466PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17467PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17468PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17469PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17470PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17471PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17472exec_prefix!$exec_prefix$ac_delim
17473prefix!$prefix$ac_delim
17474program_transform_name!$program_transform_name$ac_delim
17475bindir!$bindir$ac_delim
17476sbindir!$sbindir$ac_delim
17477libexecdir!$libexecdir$ac_delim
17478datarootdir!$datarootdir$ac_delim
17479datadir!$datadir$ac_delim
17480sysconfdir!$sysconfdir$ac_delim
17481sharedstatedir!$sharedstatedir$ac_delim
17482localstatedir!$localstatedir$ac_delim
17483includedir!$includedir$ac_delim
17484oldincludedir!$oldincludedir$ac_delim
17485docdir!$docdir$ac_delim
17486infodir!$infodir$ac_delim
17487htmldir!$htmldir$ac_delim
17488dvidir!$dvidir$ac_delim
17489pdfdir!$pdfdir$ac_delim
17490psdir!$psdir$ac_delim
17491libdir!$libdir$ac_delim
17492localedir!$localedir$ac_delim
17493mandir!$mandir$ac_delim
17494DEFS!$DEFS$ac_delim
17495ECHO_C!$ECHO_C$ac_delim
17496ECHO_N!$ECHO_N$ac_delim
17497ECHO_T!$ECHO_T$ac_delim
17498LIBS!$LIBS$ac_delim
17499build_alias!$build_alias$ac_delim
17500host_alias!$host_alias$ac_delim
17501target_alias!$target_alias$ac_delim
17502E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
17503E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
17504E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
17505E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
17506build!$build$ac_delim
17507build_cpu!$build_cpu$ac_delim
17508build_vendor!$build_vendor$ac_delim
17509build_os!$build_os$ac_delim
17510host!$host$ac_delim
17511host_cpu!$host_cpu$ac_delim
17512host_vendor!$host_vendor$ac_delim
17513host_os!$host_os$ac_delim
17514CC!$CC$ac_delim
17515CFLAGS!$CFLAGS$ac_delim
17516LDFLAGS!$LDFLAGS$ac_delim
17517CPPFLAGS!$CPPFLAGS$ac_delim
17518ac_ct_CC!$ac_ct_CC$ac_delim
17519EXEEXT!$EXEEXT$ac_delim
17520OBJEXT!$OBJEXT$ac_delim
17521LD!$LD$ac_delim
17522CPP!$CPP$ac_delim
17523GREP!$GREP$ac_delim
17524EGREP!$EGREP$ac_delim
17525LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
17526MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
17527HTREE_CMT!$HTREE_CMT$ac_delim
17528ELF_CMT!$ELF_CMT$ac_delim
17529BSDLIB_CMT!$BSDLIB_CMT$ac_delim
17530PROFILE_CMT!$PROFILE_CMT$ac_delim
17531CHECKER_CMT!$CHECKER_CMT$ac_delim
17532LIB_EXT!$LIB_EXT$ac_delim
17533STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
17534PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
17535SWAPFS_CMT!$SWAPFS_CMT$ac_delim
17536DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
17537IMAGER_CMT!$IMAGER_CMT$ac_delim
17538RESIZER_CMT!$RESIZER_CMT$ac_delim
17539E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
17540FSCK_PROG!$FSCK_PROG$ac_delim
17541_ACEOF
17542
17543 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
17544 break
17545 elif $ac_last_try; then
17546 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17547echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17548 { (exit 1); exit 1; }; }
17549 else
17550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017551 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017552done
17553
17554ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17555if test -n "$ac_eof"; then
17556 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17557 ac_eof=`expr $ac_eof + 1`
17558fi
17559
17560cat >>$CONFIG_STATUS <<_ACEOF
17561cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17562/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17563/^[ ]*@MCONFIG@[ ]*$/{
17564r $MCONFIG
17565d
17566}
17567/^[ ]*@MAKEFILE_ELF@[ ]*$/{
17568r $MAKEFILE_ELF
17569d
17570}
17571/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
17572r $MAKEFILE_BSDLIB
17573d
17574}
17575/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
17576r $MAKEFILE_PROFILE
17577d
17578}
17579/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
17580r $MAKEFILE_CHECKER
17581d
17582}
17583/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
17584r $MAKEFILE_LIBRARY
17585d
17586}
17587/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
17588r $ASM_TYPES_HEADER
17589d
17590}
17591_ACEOF
17592sed '
17593s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17594s/^/s,@/; s/!/@,|#_!!_#|/
17595:n
17596t n
17597s/'"$ac_delim"'$/,g/; t
17598s/$/\\/; p
17599N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17600' >>$CONFIG_STATUS <conf$$subs.sed
17601rm -f conf$$subs.sed
17602cat >>$CONFIG_STATUS <<_ACEOF
17603CEOF$ac_eof
17604_ACEOF
17605
17606
17607ac_delim='%!_!# '
17608for ac_last_try in false false false false false :; do
17609 cat >conf$$subs.sed <<_ACEOF
17610FSCK_MAN!$FSCK_MAN$ac_delim
17611E2INITRD_PROG!$E2INITRD_PROG$ac_delim
17612E2INITRD_MAN!$E2INITRD_MAN$ac_delim
17613DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
17614DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
17615DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
17616STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
17617GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
17618PACKAGE!$PACKAGE$ac_delim
17619VERSION!$VERSION$ac_delim
17620SET_MAKE!$SET_MAKE$ac_delim
17621INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17622INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17623INSTALL_DATA!$INSTALL_DATA$ac_delim
17624MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17625USE_NLS!$USE_NLS$ac_delim
17626MSGFMT!$MSGFMT$ac_delim
17627GMSGFMT!$GMSGFMT$ac_delim
17628XGETTEXT!$XGETTEXT$ac_delim
17629MSGMERGE!$MSGMERGE$ac_delim
17630RANLIB!$RANLIB$ac_delim
17631ALLOCA!$ALLOCA$ac_delim
17632GLIBC21!$GLIBC21$ac_delim
17633HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
17634HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
17635HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
17636HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
17637LIBICONV!$LIBICONV$ac_delim
17638LTLIBICONV!$LTLIBICONV$ac_delim
17639INTLBISON!$INTLBISON$ac_delim
17640BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
17641USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
17642CATOBJEXT!$CATOBJEXT$ac_delim
17643DATADIRNAME!$DATADIRNAME$ac_delim
17644INSTOBJEXT!$INSTOBJEXT$ac_delim
17645GENCAT!$GENCAT$ac_delim
17646INTLOBJS!$INTLOBJS$ac_delim
17647INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
17648INTLLIBS!$INTLLIBS$ac_delim
17649LIBINTL!$LIBINTL$ac_delim
17650LTLIBINTL!$LTLIBINTL$ac_delim
17651POSUB!$POSUB$ac_delim
17652BINARY_TYPE!$BINARY_TYPE$ac_delim
17653LN!$LN$ac_delim
17654LN_S!$LN_S$ac_delim
17655MV!$MV$ac_delim
17656CP!$CP$ac_delim
17657RM!$RM$ac_delim
17658CHMOD!$CHMOD$ac_delim
17659AWK!$AWK$ac_delim
17660SED!$SED$ac_delim
17661PERL!$PERL$ac_delim
17662LDCONFIG!$LDCONFIG$ac_delim
17663AR!$AR$ac_delim
17664STRIP!$STRIP$ac_delim
17665BUILD_CC!$BUILD_CC$ac_delim
17666SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
17667SIZEOF_INT!$SIZEOF_INT$ac_delim
17668SIZEOF_LONG!$SIZEOF_LONG$ac_delim
17669SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
17670SOCKET_LIB!$SOCKET_LIB$ac_delim
17671DLOPEN_LIB!$DLOPEN_LIB$ac_delim
17672UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
17673LINUX_CMT!$LINUX_CMT$ac_delim
17674CYGWIN_CMT!$CYGWIN_CMT$ac_delim
17675UNIX_CMT!$UNIX_CMT$ac_delim
17676root_prefix!$root_prefix$ac_delim
17677root_bindir!$root_bindir$ac_delim
17678root_sbindir!$root_sbindir$ac_delim
17679root_libdir!$root_libdir$ac_delim
17680root_sysconfdir!$root_sysconfdir$ac_delim
17681LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
17682SS_DIR!$SS_DIR$ac_delim
17683ET_DIR!$ET_DIR$ac_delim
17684DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
17685INTL_FLAGS!$INTL_FLAGS$ac_delim
17686BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
17687BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
17688LIBOBJS!$LIBOBJS$ac_delim
17689LTLIBOBJS!$LTLIBOBJS$ac_delim
17690_ACEOF
17691
17692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
17693 break
17694 elif $ac_last_try; then
17695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17696echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17697 { (exit 1); exit 1; }; }
17698 else
17699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17700 fi
17701done
17702
17703ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17704if test -n "$ac_eof"; then
17705 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17706 ac_eof=`expr $ac_eof + 1`
17707fi
17708
17709cat >>$CONFIG_STATUS <<_ACEOF
17710cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17711/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17712_ACEOF
17713sed '
17714s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17715s/^/s,@/; s/!/@,|#_!!_#|/
17716:n
17717t n
17718s/'"$ac_delim"'$/,g/; t
17719s/$/\\/; p
17720N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17721' >>$CONFIG_STATUS <conf$$subs.sed
17722rm -f conf$$subs.sed
17723cat >>$CONFIG_STATUS <<_ACEOF
17724:end
17725s/|#_!!_#|//g
17726CEOF$ac_eof
17727_ACEOF
17728
17729
17730# VPATH may cause trouble with some makes, so we remove $(srcdir),
17731# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17732# trailing colons and then remove the whole line if VPATH becomes empty
17733# (actually we leave an empty line to preserve line numbers).
17734if test "x$srcdir" = x.; then
17735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17736s/:*\$(srcdir):*/:/
17737s/:*\${srcdir}:*/:/
17738s/:*@srcdir@:*/:/
17739s/^\([^=]*=[ ]*\):*/\1/
17740s/:*$//
17741s/^[^=]*=[ ]*$//
17742}'
17743fi
17744
17745cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017746fi # test -n "$CONFIG_FILES"
17747
Theodore Ts'oe1052142006-10-21 21:46:47 -040017748
17749for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
17750do
17751 case $ac_tag in
17752 :[FHLC]) ac_mode=$ac_tag; continue;;
17753 esac
17754 case $ac_mode$ac_tag in
17755 :[FHL]*:*);;
17756 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17757echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17758 { (exit 1); exit 1; }; };;
17759 :[FH]-) ac_tag=-:-;;
17760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17761 esac
17762 ac_save_IFS=$IFS
17763 IFS=:
17764 set x $ac_tag
17765 IFS=$ac_save_IFS
17766 shift
17767 ac_file=$1
17768 shift
17769
17770 case $ac_mode in
17771 :L) ac_source=$1;;
17772 :[FH])
17773 ac_file_inputs=
17774 for ac_f
17775 do
17776 case $ac_f in
17777 -) ac_f="$tmp/stdin";;
17778 *) # Look for the file first in the build tree, then in the source tree
17779 # (if the path is not absolute). The absolute path cannot be DOS-style,
17780 # because $ac_f cannot contain `:'.
17781 test -f "$ac_f" ||
17782 case $ac_f in
17783 [\\/$]*) false;;
17784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17785 esac ||
17786 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17787echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17788 { (exit 1); exit 1; }; };;
17789 esac
17790 ac_file_inputs="$ac_file_inputs $ac_f"
17791 done
17792
17793 # Let's still pretend it is `configure' which instantiates (i.e., don't
17794 # use $as_me), people would be surprised to read:
17795 # /* config.h. Generated by config.status. */
17796 configure_input="Generated from "`IFS=:
17797 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17798 if test x"$ac_file" != x-; then
17799 configure_input="$ac_file. $configure_input"
17800 { echo "$as_me:$LINENO: creating $ac_file" >&5
17801echo "$as_me: creating $ac_file" >&6;}
17802 fi
17803
17804 case $ac_tag in
17805 *:-:* | *:-) cat >"$tmp/stdin";;
17806 esac
17807 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017808 esac
17809
Theodore Ts'oe1052142006-10-21 21:46:47 -040017810 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017811$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17812 X"$ac_file" : 'X\(//\)[^/]' \| \
17813 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017815echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17817 s//\1/
17818 q
17819 }
17820 /^X\(\/\/\)[^/].*/{
17821 s//\1/
17822 q
17823 }
17824 /^X\(\/\/\)$/{
17825 s//\1/
17826 q
17827 }
17828 /^X\(\/\).*/{
17829 s//\1/
17830 q
17831 }
17832 s/.*/./; q'`
17833 { as_dir="$ac_dir"
17834 case $as_dir in #(
17835 -*) as_dir=./$as_dir;;
17836 esac
17837 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017838 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040017839 while :; do
17840 case $as_dir in #(
17841 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17842 *) as_qdir=$as_dir;;
17843 esac
17844 as_dirs="'$as_qdir' $as_dirs"
17845 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017846$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17847 X"$as_dir" : 'X\(//\)[^/]' \| \
17848 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017850echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17852 s//\1/
17853 q
17854 }
17855 /^X\(\/\/\)[^/].*/{
17856 s//\1/
17857 q
17858 }
17859 /^X\(\/\/\)$/{
17860 s//\1/
17861 q
17862 }
17863 /^X\(\/\).*/{
17864 s//\1/
17865 q
17866 }
17867 s/.*/./; q'`
17868 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017869 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040017870 test -z "$as_dirs" || eval "mkdir $as_dirs"
17871 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17872echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017873 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017874 ac_builddir=.
17875
Theodore Ts'oe1052142006-10-21 21:46:47 -040017876case "$ac_dir" in
17877.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17878*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017880 # A ".." for each directory in $ac_dir_suffix.
17881 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17882 case $ac_top_builddir_sub in
17883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17885 esac ;;
17886esac
17887ac_abs_top_builddir=$ac_pwd
17888ac_abs_builddir=$ac_pwd$ac_dir_suffix
17889# for backward compatibility:
17890ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017891
17892case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017893 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017894 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017895 ac_top_srcdir=$ac_top_builddir_sub
17896 ac_abs_top_srcdir=$ac_pwd ;;
17897 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017898 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017899 ac_top_srcdir=$srcdir
17900 ac_abs_top_srcdir=$srcdir ;;
17901 *) # Relative name.
17902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17903 ac_top_srcdir=$ac_top_build_prefix$srcdir
17904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017905esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017906ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017908
Theodore Ts'oe1052142006-10-21 21:46:47 -040017909 case $ac_mode in
17910 :F)
17911 #
17912 # CONFIG_FILE
17913 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017914
17915 case $INSTALL in
17916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017917 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017918 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017919_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017920
17921cat >>$CONFIG_STATUS <<\_ACEOF
17922# If the template does not know about datarootdir, expand it.
17923# FIXME: This hack should be removed a few years after 2.60.
17924ac_datarootdir_hack=; ac_datarootdir_seen=
17925
17926case `sed -n '/datarootdir/ {
17927 p
17928 q
17929}
17930/@datadir@/p
17931/@docdir@/p
17932/@infodir@/p
17933/@localedir@/p
17934/@mandir@/p
17935' $ac_file_inputs` in
17936*datarootdir*) ac_datarootdir_seen=yes;;
17937*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17938 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17939echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17940_ACEOF
17941cat >>$CONFIG_STATUS <<_ACEOF
17942 ac_datarootdir_hack='
17943 s&@datadir@&$datadir&g
17944 s&@docdir@&$docdir&g
17945 s&@infodir@&$infodir&g
17946 s&@localedir@&$localedir&g
17947 s&@mandir@&$mandir&g
17948 s&\\\${datarootdir}&$datarootdir&g' ;;
17949esac
17950_ACEOF
17951
17952# Neutralize VPATH when `$srcdir' = `.'.
17953# Shell code in configure.ac might set extrasub.
17954# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017955cat >>$CONFIG_STATUS <<_ACEOF
17956 sed "$ac_vpsub
17957$extrasub
17958_ACEOF
17959cat >>$CONFIG_STATUS <<\_ACEOF
17960:t
17961/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040017962s&@configure_input@&$configure_input&;t t
17963s&@top_builddir@&$ac_top_builddir_sub&;t t
17964s&@srcdir@&$ac_srcdir&;t t
17965s&@abs_srcdir@&$ac_abs_srcdir&;t t
17966s&@top_srcdir@&$ac_top_srcdir&;t t
17967s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17968s&@builddir@&$ac_builddir&;t t
17969s&@abs_builddir@&$ac_abs_builddir&;t t
17970s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17971s&@INSTALL@&$ac_INSTALL&;t t
17972$ac_datarootdir_hack
17973" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017974
Theodore Ts'oe1052142006-10-21 21:46:47 -040017975test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17976 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17977 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17978 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17979which seems to be undefined. Please make sure it is defined." >&5
17980echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17981which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017982
Theodore Ts'oe1052142006-10-21 21:46:47 -040017983 rm -f "$tmp/stdin"
17984 case $ac_file in
17985 -) cat "$tmp/out"; rm -f "$tmp/out";;
17986 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17987 esac
17988 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017989
17990
Theodore Ts'oe1052142006-10-21 21:46:47 -040017991 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17992echo "$as_me: executing $ac_file commands" >&6;}
17993 ;;
17994 esac
17995
17996
17997 case $ac_file$ac_mode in
17998 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017999 for ac_file in $CONFIG_FILES; do
18000 # Support "outfile[:infile[:infile...]]"
18001 case "$ac_file" in
18002 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000018003 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018004 # PO directories have a Makefile.in generated from Makefile.in.in.
18005 case "$ac_file" in */Makefile.in)
18006 # Adjust a relative srcdir.
18007 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18008 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18009 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18010 # In autoconf-2.13 it is called $ac_given_srcdir.
18011 # In autoconf-2.50 it is called $srcdir.
18012 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18013 case "$ac_given_srcdir" in
18014 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18015 /*) top_srcdir="$ac_given_srcdir" ;;
18016 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18017 esac
18018 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18019 rm -f "$ac_dir/POTFILES"
18020 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18021 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 -050018022 POMAKEFILEDEPS="POTFILES.in"
18023 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018024 # on $ac_dir but don't depend on user-specified configuration
18025 # parameters.
18026 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18027 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018028 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018029 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18030 fi
18031 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18032 # Hide the ALL_LINGUAS assigment from automake.
18033 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018034 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18035 else
18036 # The set of available languages was given in configure.in.
18037 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018038 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018039 # Compute POFILES
18040 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18041 # Compute UPDATEPOFILES
18042 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18043 # Compute DUMMYPOFILES
18044 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18045 # Compute GMOFILES
18046 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018047 case "$ac_given_srcdir" in
18048 .) srcdirpre= ;;
18049 *) srcdirpre='$(srcdir)/' ;;
18050 esac
18051 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018052 UPDATEPOFILES=
18053 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018054 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018055 for lang in $ALL_LINGUAS; do
18056 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018057 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18058 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018059 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018060 done
18061 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18062 # environment variable.
18063 INST_LINGUAS=
18064 if test -n "$ALL_LINGUAS"; then
18065 for presentlang in $ALL_LINGUAS; do
18066 useit=no
18067 if test "%UNSET%" != "$LINGUAS"; then
18068 desiredlanguages="$LINGUAS"
18069 else
18070 desiredlanguages="$ALL_LINGUAS"
18071 fi
18072 for desiredlang in $desiredlanguages; do
18073 # Use the presentlang catalog if desiredlang is
18074 # a. equal to presentlang, or
18075 # b. a variant of presentlang (because in this case,
18076 # presentlang can be used as a fallback for messages
18077 # which are not translated in the desiredlang catalog).
18078 case "$desiredlang" in
18079 "$presentlang"*) useit=yes;;
18080 esac
18081 done
18082 if test $useit = yes; then
18083 INST_LINGUAS="$INST_LINGUAS $presentlang"
18084 fi
18085 done
18086 fi
18087 CATALOGS=
18088 if test -n "$INST_LINGUAS"; then
18089 for lang in $INST_LINGUAS; do
18090 CATALOGS="$CATALOGS $lang.gmo"
18091 done
18092 fi
18093 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018094 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 -040018095 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18096 if test -f "$f"; then
18097 case "$f" in
18098 *.orig | *.bak | *~) ;;
18099 *) cat "$f" >> "$ac_dir/Makefile" ;;
18100 esac
18101 fi
18102 done
18103 fi
18104 ;;
18105 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018106 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000018107
Theodore Ts'oe1052142006-10-21 21:46:47 -040018108 esac
18109done # for ac_tag
18110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018111
18112{ (exit 0); exit 0; }
18113_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000018114chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018115ac_clean_files=$ac_clean_files_save
18116
18117
18118# configure is writing to config.log, and then calls config.status.
18119# config.status does its own redirection, appending to config.log.
18120# Unfortunately, on DOS this fails, as config.log is still kept open
18121# by configure, so config.status won't be able to write to it; its
18122# output is simply discarded. So we exec the FD to /dev/null,
18123# effectively closing config.log, so it can be properly (re)opened and
18124# appended to by config.status. When coming back to configure, we
18125# need to make the FD available again.
18126if test "$no_create" != yes; then
18127 ac_cs_success=:
18128 ac_config_status_args=
18129 test "$silent" = yes &&
18130 ac_config_status_args="$ac_config_status_args --quiet"
18131 exec 5>/dev/null
18132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18133 exec 5>>config.log
18134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18135 # would make configure fail if this is the last instruction.
18136 $ac_cs_success || { (exit 1); exit 1; }
18137fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000018138
Theodore Ts'oee683a12005-02-05 15:53:56 -050018139if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
18140