blob: 244a509b083aa8e127da57a15a2a4af5cbe4c019 [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'o29a5dee2007-07-04 16:28:47 -04003# Generated by GNU Autoconf 2.61.
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'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Theodore Ts'oe1052142006-10-21 21:46:47 -040053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050059
Theodore Ts'oe1052142006-10-21 21:46:47 -040060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Theodore Ts'oe1052142006-10-21 21:46:47 -040080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081
Theodore Ts'oe1052142006-10-21 21:46:47 -040082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500112 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400226 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500227 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Theodore Ts'oe1052142006-10-21 21:46:47 -0400252fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400253
Theodore Ts'oe1052142006-10-21 21:46:47 -0400254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400274
Theodore Ts'oe1052142006-10-21 21:46:47 -0400275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500442 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500450 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400451 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461 # Exit status is that of the last command.
462 exit
463}
464
465
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481esac
482
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500505 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400523else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400542as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551
Theodore Ts'oe1052142006-10-21 21:46:47 -0400552exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559#
560# Initializations.
561#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500564ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400565LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="version.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400583#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584# include <sys/types.h>
585#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400586#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587# include <sys/stat.h>
588#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <stdlib.h>
591# include <stddef.h>
592#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400593# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# include <stdlib.h>
595# endif
596#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500604# include <strings.h>
605#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400606#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500607# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400610# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <unistd.h>
614#endif"
615
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653E2FSPROGS_YEAR
654E2FSPROGS_MONTH
655E2FSPROGS_DAY
656E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500657E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400673CPP
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400674LD
Theodore Ts'oe1052142006-10-21 21:46:47 -0400675GREP
676EGREP
677LINUX_INCLUDE
678MAINTAINER_CMT
679HTREE_CMT
680ELF_CMT
681BSDLIB_CMT
682PROFILE_CMT
683CHECKER_CMT
684LIB_EXT
685STATIC_LIB_EXT
686PROFILED_LIB_EXT
687SWAPFS_CMT
688DEBUGFS_CMT
689IMAGER_CMT
690RESIZER_CMT
691E2FSCK_TYPE
692FSCK_PROG
693FSCK_MAN
694E2INITRD_PROG
695E2INITRD_MAN
696DEVMAPPER_REQ
697DEVMAPPER_PC_LIBS
698DEVMAPPER_LIBS
699STATIC_DEVMAPPER_LIBS
700GETTEXT_PACKAGE
701PACKAGE
702VERSION
703SET_MAKE
704INSTALL_PROGRAM
705INSTALL_SCRIPT
706INSTALL_DATA
707MKINSTALLDIRS
708USE_NLS
709MSGFMT
710GMSGFMT
711XGETTEXT
712MSGMERGE
713RANLIB
714ALLOCA
715GLIBC21
716HAVE_POSIX_PRINTF
717HAVE_ASPRINTF
718HAVE_SNPRINTF
719HAVE_WPRINTF
720LIBICONV
721LTLIBICONV
722INTLBISON
723BUILD_INCLUDED_LIBINTL
724USE_INCLUDED_LIBINTL
725CATOBJEXT
726DATADIRNAME
727INSTOBJEXT
728GENCAT
729INTLOBJS
730INTL_LIBTOOL_SUFFIX_PREFIX
731INTLLIBS
732LIBINTL
733LTLIBINTL
734POSUB
735BINARY_TYPE
736LN
737LN_S
738MV
739CP
740RM
741CHMOD
742AWK
743SED
744PERL
745LDCONFIG
746AR
747STRIP
748BUILD_CC
749SIZEOF_SHORT
750SIZEOF_INT
751SIZEOF_LONG
752SIZEOF_LONG_LONG
753SOCKET_LIB
754DLOPEN_LIB
755UNI_DIFF_OPTS
756LINUX_CMT
757CYGWIN_CMT
758UNIX_CMT
759root_prefix
760root_bindir
761root_sbindir
762root_libdir
763root_sysconfdir
764LDFLAG_STATIC
765SS_DIR
766ET_DIR
767DO_TEST_SUITE
768INTL_FLAGS
769BUILD_CFLAGS
770BUILD_LDFLAGS
771LIBOBJS
772LTLIBOBJS'
773ac_subst_files='MCONFIG
774MAKEFILE_ELF
775MAKEFILE_BSDLIB
776MAKEFILE_PROFILE
777MAKEFILE_CHECKER
778MAKEFILE_LIBRARY
779ASM_TYPES_HEADER'
780 ac_precious_vars='build_alias
781host_alias
782target_alias
783CC
784CFLAGS
785LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400786LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400787CPPFLAGS
788CPP'
789
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000790
791# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500792ac_init_help=
793ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000794# The variables have the same names as the options, with
795# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500796cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000797exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000798no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000807verbose=
808x_includes=NONE
809x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400816# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000825includedir='${prefix}/include'
826oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400827docdir='${datarootdir}/doc/${PACKAGE}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000836
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000837ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400838ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839for ac_option
840do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400843 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000844 ac_prev=
845 continue
846 fi
847
Theodore Ts'oe1052142006-10-21 21:46:47 -0400848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
Theodore Ts'oe1052142006-10-21 21:46:47 -0400855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000858
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500862 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000863
864 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500865 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500867 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000878
Theodore Ts'oe1052142006-10-21 21:46:47 -0400879 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000880 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500882 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000883
Theodore Ts'oe1052142006-10-21 21:46:47 -0400884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000891 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500892 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000893 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400894 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500895 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
896 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400897 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400898 eval enable_$ac_feature=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000909
910 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500911 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000912 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400913 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500914 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
915 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400916 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400917 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500926 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
930 with_gas=yes ;;
931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500932 -help | --help | --hel | --he | -h)
933 ac_init_help=long ;;
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000938
939 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500940 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000941 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500942 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000943
Theodore Ts'oe1052142006-10-21 21:46:47 -0400944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 ac_prev=htmldir ;;
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 | --ht=*)
948 htmldir=$ac_optarg ;;
949
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500955 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000956
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 ac_prev=infodir ;;
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500960 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000961
962 -libdir | --libdir | --libdi | --libd)
963 ac_prev=libdir ;;
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500965 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000966
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500972 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000973
Theodore Ts'oe1052142006-10-21 21:46:47 -0400974 -localedir | --localedir | --localedi | --localed | --locale)
975 ac_prev=localedir ;;
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
978
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000979 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400980 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500984 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000985
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 ac_prev=mandir ;;
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000990
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000991 -nfp | --nfp | --nf)
992 # Obsolete; use --without-fp.
993 with_fp=no ;;
994
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500996 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000997 no_create=yes ;;
998
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 no_recursion=yes ;;
1002
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001010 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001011
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 ac_prev=prefix ;;
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001015 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001022 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001023
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001029 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001030
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001046 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001047
Theodore Ts'oe1052142006-10-21 21:46:47 -04001048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 ac_prev=pdfdir ;;
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1052
1053 -psdir | --psdir | --psdi | --psd | --ps)
1054 ac_prev=psdir ;;
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 psdir=$ac_optarg ;;
1057
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 silent=yes ;;
1061
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 ac_prev=sbindir ;;
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001066 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001067
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1071 | --sha | --sh)
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001077 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001078
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079 -site | --site | --sit)
1080 ac_prev=site ;;
1081 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001082 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001083
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 ac_prev=srcdir ;;
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001088
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001094 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001095
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001096 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001099 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001100
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 verbose=yes ;;
1103
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001106
1107 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001109 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001110 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001111 { echo "$as_me: error: invalid package name: $ac_package" >&2
1112 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001113 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001114 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001115
1116 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001117 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001118 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001119 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 { echo "$as_me: error: invalid package name: $ac_package" >&2
1121 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001122 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001123 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001124
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1128
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001134 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001135
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001141 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001143 -*) { echo "$as_me: error: unrecognized option: $ac_option
1144Try \`$0 --help' for more information." >&2
1145 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146 ;;
1147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1153 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001154 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001155 export $ac_envvar ;;
1156
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001157 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 # FIXME: should be removed in autoconf 3.0.
1159 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001163 ;;
1164
1165 esac
1166done
1167
1168if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 { echo "$as_me: error: missing argument to $ac_option" >&2
1171 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001172fi
1173
Theodore Ts'oe1052142006-10-21 21:46:47 -04001174# Be sure to have absolute directory names.
1175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001180 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001181 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001184 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001185 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1186 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001187done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001189# There might be people who depend on the old broken behavior: `$host'
1190# used to hold the argument of --host etc.
1191# FIXME: To remove some day.
1192build=$build_alias
1193host=$host_alias
1194target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001195
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001196# FIXME: To remove some day.
1197if test "x$host_alias" != x; then
1198 if test "x$build_alias" = x; then
1199 cross_compiling=maybe
1200 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1201 If a cross compiler is detected then cross compile mode will be used." >&2
1202 elif test "x$build_alias" != "x$host_alias"; then
1203 cross_compiling=yes
1204 fi
1205fi
1206
1207ac_tool_prefix=
1208test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209
1210test "$silent" = yes && exec 6>/dev/null
1211
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001212
Theodore Ts'oe1052142006-10-21 21:46:47 -04001213ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214ac_ls_di=`ls -di .` &&
1215ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 { echo "$as_me: error: Working directory cannot be determined" >&2
1217 { (exit 1); exit 1; }; }
1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 { echo "$as_me: error: pwd does not report name of working directory" >&2
1220 { (exit 1); exit 1; }; }
1221
1222
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001228$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$0" : 'X\(//\)[^/]' \| \
1230 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)$/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\).*/{
1246 s//\1/
1247 q
1248 }
1249 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001250 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001251 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252 srcdir=..
1253 fi
1254else
1255 ac_srcdir_defaulted=no
1256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001257if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001260 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001261fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001265 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266 pwd)`
1267# When building in place, set srcdir=.
1268if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 srcdir=.
1270fi
1271# Remove unnecessary trailing slashes from srcdir.
1272# Double slashes in file names in object file debugging info
1273# mess up M-x gdb in Emacs.
1274case $srcdir in
1275*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276esac
1277for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001284#
1285# Report the --help message.
1286#
1287if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1290 cat <<_ACEOF
1291\`configure' configures this package to adapt to many kinds of systems.
1292
1293Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296VAR=VALUE. See below for descriptions of some of the useful variables.
1297
1298Defaults for the options are specified in brackets.
1299
1300Configuration:
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001311Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 [PREFIX]
1316
1317By default, \`make install' will install all the files in
1318\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320for instance \`--prefix=\$HOME'.
1321
1322For better control, use the options below.
1323
1324Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001344_ACEOF
1345
1346 cat <<\_ACEOF
1347
1348System types:
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1351_ACEOF
1352fi
1353
1354if test -n "$ac_init_help"; then
1355
1356 cat <<\_ACEOF
1357
1358Optional Features:
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001361 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001362 --enable-compression enable EXPERIMENTAL compression support
1363 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001364 --enable-elf-shlibs select ELF shared libraries
1365 --enable-bsd-shlibs select BSD shared libraries
1366 --enable-profile build profiling libraries
1367 --enable-checker build checker libraries
1368 --enable-jbd-debug enable journal debugging
1369 --enable-blkid-debug enable blkid debugging
1370 --enable-testio-debug enable the use of the test I/O manager for debugging
1371 --disable-swapfs disable support of legacy byte-swapped filesystems
1372 --disable-debugfs disable support of debugfs program
1373 --disable-imager disable support of e2image program
1374 --disable-resizer disable support of e2resize program
1375 --enable-dynamic-e2fsck build e2fsck dynamically
1376 --enable-fsck build fsck wrapper program
1377 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001378 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001379 --disable-nls do not use Native Language Support
1380 --disable-rpath do not hardcode runtime library paths
1381
1382Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-diet-libc Use diet libc
1386 --with-cc=COMPILER select compiler to use
1387 --with-linker=LINKER select linker to use
1388 --with-ccopts=CCOPTS select compiler command line options
1389 --with-ldopts=LDOPTS select linker command line options
1390 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1391 --with-gnu-ld assume the C compiler uses GNU ld default=no
1392 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1393 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1394 --with-included-gettext use the GNU gettext library included here
1395 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1396 --without-libintl-prefix don't search for libintl in includedir and libdir
1397
1398Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001403 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001406 CPP C preprocessor
1407
1408Use these variables to override the choices made by `configure' or to help
1409it to find libraries and programs with nonstandard names/locations.
1410
1411_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001412ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001413fi
1414
1415if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001419 ac_builddir=.
1420
Theodore Ts'oe1052142006-10-21 21:46:47 -04001421case "$ac_dir" in
1422.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 esac ;;
1431esac
1432ac_abs_top_builddir=$ac_pwd
1433ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434# for backward compatibility:
1435ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001436
1437case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001438 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1446 *) # Relative name.
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001450esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001451ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001452
Theodore Ts'oe1052142006-10-21 21:46:47 -04001453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001461 else
1462 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001463 fi || ac_status=$?
1464 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465 done
1466fi
1467
Theodore Ts'oe1052142006-10-21 21:46:47 -04001468test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469if $ac_init_version; then
1470 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001471configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001472generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473
Theodore Ts'oe1052142006-10-21 21:46:47 -04001474Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14752002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001476This configure script is free software; the Free Software Foundation
1477gives unlimited permission to copy, distribute and modify it.
1478_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001479 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001481cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482This file contains any messages produced by compilers while
1483running configure, to aid debugging if configure makes a mistake.
1484
1485It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001486generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487
1488 $ $0 $@
1489
1490_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001491exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492{
1493cat <<_ASUNAME
1494## --------- ##
1495## Platform. ##
1496## --------- ##
1497
1498hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1499uname -m = `(uname -m) 2>/dev/null || echo unknown`
1500uname -r = `(uname -r) 2>/dev/null || echo unknown`
1501uname -s = `(uname -s) 2>/dev/null || echo unknown`
1502uname -v = `(uname -v) 2>/dev/null || echo unknown`
1503
1504/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1505/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1506
1507/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1508/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1509/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001510/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001511/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1512/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1513/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1514
1515_ASUNAME
1516
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 echo "PATH: $as_dir"
1523done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001524IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525
1526} >&5
1527
1528cat >&5 <<_ACEOF
1529
1530
1531## ----------- ##
1532## Core tests. ##
1533## ----------- ##
1534
1535_ACEOF
1536
1537
1538# Keep a trace of the command line.
1539# Strip out --no-create and --no-recursion so they do not pile up.
1540# Strip out --silent because we don't want to record it for future runs.
1541# Also quote any args containing shell meta-characters.
1542# Make two passes to allow for proper duplicate-argument suppression.
1543ac_configure_args=
1544ac_configure_args0=
1545ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546ac_must_keep_next=false
1547for ac_pass in 1 2
1548do
1549 for ac_arg
1550 do
1551 case $ac_arg in
1552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1554 | -silent | --silent | --silen | --sile | --sil)
1555 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001556 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001557 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1558 esac
1559 case $ac_pass in
1560 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1561 2)
1562 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1563 if test $ac_must_keep_next = true; then
1564 ac_must_keep_next=false # Got value, back to normal.
1565 else
1566 case $ac_arg in
1567 *=* | --config-cache | -C | -disable-* | --disable-* \
1568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1570 | -with-* | --with-* | -without-* | --without-* | --x)
1571 case "$ac_configure_args0 " in
1572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1573 esac
1574 ;;
1575 -* ) ac_must_keep_next=true ;;
1576 esac
1577 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001578 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001579 ;;
1580 esac
1581 done
1582done
1583$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1584$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1585
1586# When interrupted or exit'd, cleanup temporary files, and complete
1587# config.log. We remove comments because anyway the quotes in there
1588# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001589# WARNING: Use '\'' to represent an apostrophe within the trap.
1590# 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 -05001591trap 'exit_status=$?
1592 # Save into config.log some information that might help in debugging.
1593 {
1594 echo
1595
1596 cat <<\_ASBOX
1597## ---------------- ##
1598## Cache variables. ##
1599## ---------------- ##
1600_ASBOX
1601 echo
1602 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001603(
1604 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in #(
1607 *${as_nl}*)
1608 case $ac_var in #(
1609 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1610echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1611 esac
1612 case $ac_var in #(
1613 _ | IFS | as_nl) ;; #(
1614 *) $as_unset $ac_var ;;
1615 esac ;;
1616 esac
1617 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001618 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1620 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001621 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001622 "s/'\''/'\''\\\\'\'''\''/g;
1623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1624 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001625 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001627 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001628 esac |
1629 sort
1630)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001631 echo
1632
1633 cat <<\_ASBOX
1634## ----------------- ##
1635## Output variables. ##
1636## ----------------- ##
1637_ASBOX
1638 echo
1639 for ac_var in $ac_subst_vars
1640 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001641 eval ac_val=\$$ac_var
1642 case $ac_val in
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
1645 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001646 done | sort
1647 echo
1648
1649 if test -n "$ac_subst_files"; then
1650 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001651## ------------------- ##
1652## File substitutions. ##
1653## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654_ASBOX
1655 echo
1656 for ac_var in $ac_subst_files
1657 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001658 eval ac_val=\$$ac_var
1659 case $ac_val in
1660 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661 esac
1662 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001663 done | sort
1664 echo
1665 fi
1666
1667 if test -s confdefs.h; then
1668 cat <<\_ASBOX
1669## ----------- ##
1670## confdefs.h. ##
1671## ----------- ##
1672_ASBOX
1673 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001674 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001675 echo
1676 fi
1677 test "$ac_signal" != 0 &&
1678 echo "$as_me: caught signal $ac_signal"
1679 echo "$as_me: exit $exit_status"
1680 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001681 rm -f core *.core core.conftest.* &&
1682 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001683 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001684' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001685for ac_signal in 1 2 13 15; do
1686 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1687done
1688ac_signal=0
1689
1690# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001691rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001692
1693# Predefined preprocessor variables.
1694
1695cat >>confdefs.h <<_ACEOF
1696#define PACKAGE_NAME "$PACKAGE_NAME"
1697_ACEOF
1698
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1702_ACEOF
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_VERSION "$PACKAGE_VERSION"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_STRING "$PACKAGE_STRING"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1717_ACEOF
1718
1719
1720# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001721# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001722if test -n "$CONFIG_SITE"; then
1723 set x "$CONFIG_SITE"
1724elif test "x$prefix" != xNONE; then
1725 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1726else
1727 set x "$ac_default_prefix/share/config.site" \
1728 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001729fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001730shift
1731for ac_site_file
1732do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001733 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001734 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1735echo "$as_me: loading site script $ac_site_file" >&6;}
1736 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001737 . "$ac_site_file"
1738 fi
1739done
1740
1741if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001742 # Some versions of bash will fail to source /dev/null (special
1743 # files actually), so we avoid doing that.
1744 if test -f "$cache_file"; then
1745 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1746echo "$as_me: loading cache $cache_file" >&6;}
1747 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001748 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1749 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001750 esac
1751 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001752else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001753 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1754echo "$as_me: creating cache $cache_file" >&6;}
1755 >$cache_file
1756fi
1757
1758# Check that the precious variables saved in the cache have kept the same
1759# value.
1760ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001761for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001766 case $ac_old_set,$ac_new_set in
1767 set,)
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1771 ,set)
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1773echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1775 ,);;
1776 *)
1777 if test "x$ac_old_val" != "x$ac_new_val"; then
1778 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1779echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1780 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1781echo "$as_me: former value: $ac_old_val" >&2;}
1782 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1783echo "$as_me: current value: $ac_new_val" >&2;}
1784 ac_cache_corrupted=:
1785 fi;;
1786 esac
1787 # Pass precious variables to config.status.
1788 if test "$ac_new_set" = set; then
1789 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001790 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001791 *) ac_arg=$ac_var=$ac_new_val ;;
1792 esac
1793 case " $ac_configure_args " in
1794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1795 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796 esac
1797 fi
1798done
1799if $ac_cache_corrupted; then
1800 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001805fi
1806
Theodore Ts'oe1052142006-10-21 21:46:47 -04001807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001823ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001824ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001829
1830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001831ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001832for ac_dir in config "$srcdir"/config; do
1833 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001834 ac_aux_dir=$ac_dir
1835 ac_install_sh="$ac_aux_dir/install-sh -c"
1836 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001837 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/install.sh -c"
1840 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001841 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001842 ac_aux_dir=$ac_dir
1843 ac_install_sh="$ac_aux_dir/shtool install -c"
1844 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001845 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001846done
1847if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1849echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001850 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001852
1853# These three variables are undocumented and unsupported,
1854# and are intended to be withdrawn in a future Autoconf release.
1855# They can cause serious problems if a builder's source tree is in a directory
1856# whose full name contains unusual characters.
1857ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1858ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1859ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1860
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001861
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001862MCONFIG=./MCONFIG
1863
Theodore Ts'o74becf31997-04-26 14:37:06 +00001864BINARY_TYPE=bin
1865E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1866 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1867DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1868 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001869E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001870MONTH=`echo $DATE | awk -F- '{print $2}'`
1871YEAR=`echo $DATE | awk -F- '{print $3}'`
1872
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001873if expr $YEAR ">" 1900 > /dev/null ; then
1874 E2FSPROGS_YEAR=$YEAR
1875elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001876 E2FSPROGS_YEAR=19$YEAR
1877else
1878 E2FSPROGS_YEAR=20$YEAR
1879fi
1880
1881case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001882Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1883Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1884Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1885Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1886May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1887Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1888Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1889Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1890Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1891Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1892Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1893Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001894*) echo "Unknown month $MONTH??" ;;
1895esac
1896
Andreas Dilger927566a2006-11-12 19:41:25 -05001897base_ver=`echo $E2FSPROGS_VERSION | \
1898 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1899pre_vers=`echo $base_ver 0.01 - p | dc`
1900
1901date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1902
1903case $E2FSPROGS_VERSION in
1904*-WIP|pre-*)
1905 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1906 ;;
1907*)
1908 E2FSPROGS_PKGVER="$base_ver"
1909 ;;
1910esac
1911
1912unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001913echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1914echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1915
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001916
1917
1918
Andreas Dilger927566a2006-11-12 19:41:25 -05001919
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001920# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001921$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1922 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1923echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001924 { (exit 1); exit 1; }; }
1925
Theodore Ts'oe1052142006-10-21 21:46:47 -04001926{ echo "$as_me:$LINENO: checking build system type" >&5
1927echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001928if test "${ac_cv_build+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001931 ac_build_alias=$build_alias
1932test "x$ac_build_alias" = x &&
1933 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1934test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001935 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1936echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1937 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001938ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1939 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1940echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001941 { (exit 1); exit 1; }; }
1942
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001943fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001944{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1945echo "${ECHO_T}$ac_cv_build" >&6; }
1946case $ac_cv_build in
1947*-*-*) ;;
1948*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1949echo "$as_me: error: invalid value of canonical build" >&2;}
1950 { (exit 1); exit 1; }; };;
1951esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001952build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001953ac_save_IFS=$IFS; IFS='-'
1954set x $ac_cv_build
1955shift
1956build_cpu=$1
1957build_vendor=$2
1958shift; shift
1959# Remember, the first character of IFS is used to create $*,
1960# except with old shells:
1961build_os=$*
1962IFS=$ac_save_IFS
1963case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001964
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001965
Theodore Ts'oe1052142006-10-21 21:46:47 -04001966{ echo "$as_me:$LINENO: checking host system type" >&5
1967echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001968if test "${ac_cv_host+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001971 if test "x$host_alias" = x; then
1972 ac_cv_host=$ac_cv_build
1973else
1974 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1975 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1976echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001977 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001978fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001980fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001981{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1982echo "${ECHO_T}$ac_cv_host" >&6; }
1983case $ac_cv_host in
1984*-*-*) ;;
1985*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1986echo "$as_me: error: invalid value of canonical host" >&2;}
1987 { (exit 1); exit 1; }; };;
1988esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001989host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001990ac_save_IFS=$IFS; IFS='-'
1991set x $ac_cv_host
1992shift
1993host_cpu=$1
1994host_vendor=$2
1995shift; shift
1996# Remember, the first character of IFS is used to create $*,
1997# except with old shells:
1998host_os=$*
1999IFS=$ac_save_IFS
2000case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002001
2002
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002003
Theodore Ts'oe1052142006-10-21 21:46:47 -04002004# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002005if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002006 withval=$with_diet_libc; CC="diet cc -nostdinc"
2007{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2008echo "${ECHO_T}CC=$CC" >&6; }
2009fi
2010
2011# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002012if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002013 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2014echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002015CC=$withval
2016else
2017 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002018{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2019echo "${ECHO_T}CC defaults to $CC" >&6; }
2020fi
2021export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002033if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002035else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050done
2051done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002052IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002053
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002054fi
2055fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002056CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002057if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002058 { echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002060else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002063fi
2064
Theodore Ts'oe1052142006-10-21 21:46:47 -04002065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002066fi
2067if test -z "$ac_cv_prog_CC"; then
2068 ac_ct_CC=$CC
2069 # Extract the first word of "gcc", so it can be a program name with args.
2070set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002086 ac_cv_prog_ac_ct_CC="gcc"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2089 fi
2090done
2091done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002092IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002093
2094fi
2095fi
2096ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002098 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002100else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002101 { echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002103fi
2104
Theodore Ts'oe1052142006-10-21 21:46:47 -04002105 if test "x$ac_ct_CC" = x; then
2106 CC=""
2107 else
2108 case $cross_compiling:$ac_tool_warned in
2109yes:)
2110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111whose name does not start with the host triplet. If you think this
2112configuration is useful to you, please write to autoconf@gnu.org." >&5
2113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114whose name does not start with the host triplet. If you think this
2115configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116ac_tool_warned=yes ;;
2117esac
2118 CC=$ac_ct_CC
2119 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002120else
2121 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002122fi
2123
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002124if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002125 if test -n "$ac_tool_prefix"; then
2126 # 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 -05002127set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002130if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002132else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002143 ac_cv_prog_CC="${ac_tool_prefix}cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147done
2148done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002149IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002150
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002155 { echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002157else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002158 { echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002160fi
2161
Theodore Ts'oe1052142006-10-21 21:46:47 -04002162
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002163 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002164fi
2165if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002170if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002176 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2187 fi
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192done
2193done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002194IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002195
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002196if test $ac_prog_rejected = yes; then
2197 # We found a bogon in the path, so make sure we never use it.
2198 set dummy $ac_cv_prog_CC
2199 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002200 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002201 # We chose a different compiler from the bogus one.
2202 # However, it has the same basename, so the bogon will be chosen
2203 # first if we set CC to just the basename; use the full file name.
2204 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002206 fi
2207fi
2208fi
2209fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002210CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002211if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002212 { echo "$as_me:$LINENO: result: $CC" >&5
2213echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002214else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002215 { echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002217fi
2218
Theodore Ts'oe1052142006-10-21 21:46:47 -04002219
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002220fi
2221if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002223 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002224 do
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002229if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002231else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246done
2247done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002248IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002249
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002250fi
2251fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002252CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002253if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002254 { echo "$as_me:$LINENO: result: $CC" >&5
2255echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002256else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002257 { echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002259fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002260
Theodore Ts'oe1052142006-10-21 21:46:47 -04002261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002262 test -n "$CC" && break
2263 done
2264fi
2265if test -z "$CC"; then
2266 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002267 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002268do
2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2270set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278else
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002286 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002289 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002290done
2291done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002292IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002293
2294fi
2295fi
2296ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002300else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002301 { echo "$as_me:$LINENO: result: no" >&5
2302echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002303fi
2304
Theodore Ts'oe1052142006-10-21 21:46:47 -04002305
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306 test -n "$ac_ct_CC" && break
2307done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002308
Theodore Ts'oe1052142006-10-21 21:46:47 -04002309 if test "x$ac_ct_CC" = x; then
2310 CC=""
2311 else
2312 case $cross_compiling:$ac_tool_warned in
2313yes:)
2314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315whose name does not start with the host triplet. If you think this
2316configuration is useful to you, please write to autoconf@gnu.org." >&5
2317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318whose name does not start with the host triplet. If you think this
2319configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320ac_tool_warned=yes ;;
2321esac
2322 CC=$ac_ct_CC
2323 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002324fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002326fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002327
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002329test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: no acceptable C compiler found in \$PATH
2332See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2334
2335# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002336echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002337ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002338{ (ac_try="$ac_compiler --version >&5"
2339case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342esac
2343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002348{ (ac_try="$ac_compiler -v >&5"
2349case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
2353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002358{ (ac_try="$ac_compiler -V >&5"
2359case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362esac
2363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2368
2369cat >conftest.$ac_ext <<_ACEOF
2370/* confdefs.h. */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h. */
2375
2376int
2377main ()
2378{
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384ac_clean_files_save=$ac_clean_files
2385ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386# Try to create an executable without -o first, disregard a.out.
2387# It will help us diagnose broken compilers, and finding out an intuition
2388# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002389{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002391ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002392#
2393# List of possible output files, starting from the most likely.
2394# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395# only as a last resort. b.out is created by i960 compilers.
2396ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2397#
2398# The IRIX 6 linker writes into existing files which may not be
2399# executable, retaining their permissions. Remove them first so a
2400# subsequent execution test works.
2401ac_rmfiles=
2402for ac_file in $ac_files
2403do
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407 esac
2408done
2409rm -f $ac_rmfiles
2410
2411if { (ac_try="$ac_link_default"
2412case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415esac
2416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423# in a Makefile. We should not override ac_cv_exeext if it was cached,
2424# so that the user can short-circuit this test for compilers unknown to
2425# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002426for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002427do
2428 test -f "$ac_file" || continue
2429 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431 ;;
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 then :; else
2439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 fi
2441 # We set ac_cv_exeext here because the later test for it is not
2442 # safe: cross compilers may not add the suffix if given an `-o'
2443 # argument, so we may need to know it at that point already.
2444 # Even if this section looks crufty: it has the advantage of
2445 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 break;;
2447 * )
2448 break;;
2449 esac
2450done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002451test "$ac_cv_exeext" = no && ac_cv_exeext=
2452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002454 ac_file=''
2455fi
2456
2457{ echo "$as_me:$LINENO: result: $ac_file" >&5
2458echo "${ECHO_T}$ac_file" >&6; }
2459if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460 echo "$as_me: failed program was:" >&5
2461sed 's/^/| /' conftest.$ac_ext >&5
2462
2463{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2464See \`config.log' for more details." >&5
2465echo "$as_me: error: C compiler cannot create executables
2466See \`config.log' for more details." >&2;}
2467 { (exit 77); exit 77; }; }
2468fi
2469
2470ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471
Theodore Ts'oe1052142006-10-21 21:46:47 -04002472# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002473# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002474{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2475echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2477# If not cross compiling, check that we can run a simple program.
2478if test "$cross_compiling" != yes; then
2479 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480 { (case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002490 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491 if test "$cross_compiling" = maybe; then
2492 cross_compiling=yes
2493 else
2494 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2495If you meant to cross compile, use \`--host'.
2496See \`config.log' for more details." >&5
2497echo "$as_me: error: cannot run C compiled programs.
2498If you meant to cross compile, use \`--host'.
2499See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2501 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002502 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002503fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504{ echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002506
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507rm -f a.out a.exe conftest$ac_cv_exeext b.out
2508ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002509# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2512echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2513{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2514echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002515
Theodore Ts'oe1052142006-10-21 21:46:47 -04002516{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2517echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2518if { (ac_try="$ac_link"
2519case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522esac
2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2529# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2530# work properly (i.e., refer to `conftest.exe'), while it won't with
2531# `rm'.
2532for ac_file in conftest.exe conftest conftest.*; do
2533 test -f "$ac_file" || continue
2534 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537 break;;
2538 * ) break;;
2539 esac
2540done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002541else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2543See \`config.log' for more details." >&5
2544echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2545See \`config.log' for more details." >&2;}
2546 { (exit 1); exit 1; }; }
2547fi
2548
2549rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002550{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2551echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552
2553rm -f conftest.$ac_ext
2554EXEEXT=$ac_cv_exeext
2555ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558if test "${ac_cv_objext+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561 cat >conftest.$ac_ext <<_ACEOF
2562/* confdefs.h. */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h. */
2567
2568int
2569main ()
2570{
2571
2572 ;
2573 return 0;
2574}
2575_ACEOF
2576rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002577if { (ac_try="$ac_compile"
2578case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2581esac
2582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002587 for ac_file in conftest.o conftest.obj conftest.*; do
2588 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2592 break;;
2593 esac
2594done
2595else
2596 echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2600See \`config.log' for more details." >&5
2601echo "$as_me: error: cannot compute suffix of object files: cannot compile
2602See \`config.log' for more details." >&2;}
2603 { (exit 1); exit 1; }; }
2604fi
2605
2606rm -f conftest.$ac_cv_objext conftest.$ac_ext
2607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002608{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2609echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002610OBJEXT=$ac_cv_objext
2611ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002612{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2613echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002614if test "${ac_cv_c_compiler_gnu+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h. */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h. */
2623
2624int
2625main ()
2626{
2627#ifndef __GNUC__
2628 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002629#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002631 ;
2632 return 0;
2633}
2634_ACEOF
2635rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002636if { (ac_try="$ac_compile"
2637case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640esac
2641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002643 ac_status=$?
2644 grep -v '^ *+' conftest.er1 >conftest.err
2645 rm -f conftest.er1
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002648 (exit $ac_status); } && {
2649 test -z "$ac_c_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002652 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002653else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002654 echo "$as_me: failed program was:" >&5
2655sed 's/^/| /' conftest.$ac_ext >&5
2656
Theodore Ts'oe1052142006-10-21 21:46:47 -04002657 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002658fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002659
2660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002664{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2665echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002666GCC=`test $ac_compiler_gnu = yes && echo yes`
2667ac_test_CFLAGS=${CFLAGS+set}
2668ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002669{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2670echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002671if test "${ac_cv_prog_cc_g+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002673else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002674 ac_save_c_werror_flag=$ac_c_werror_flag
2675 ac_c_werror_flag=yes
2676 ac_cv_prog_cc_g=no
2677 CFLAGS="-g"
2678 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h. */
2684
2685int
2686main ()
2687{
2688
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002694if { (ac_try="$ac_compile"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002706 (exit $ac_status); } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002710 ac_cv_prog_cc_g=yes
2711else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002712 echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002714
Theodore Ts'oe1052142006-10-21 21:46:47 -04002715 CFLAGS=""
2716 cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
2722
2723int
2724main ()
2725{
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731rm -f conftest.$ac_objext
2732if { (ac_try="$ac_compile"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002748 :
2749else
2750 echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 ac_c_werror_flag=$ac_save_c_werror_flag
2754 CFLAGS="-g"
2755 cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
2761
2762int
2763main ()
2764{
2765
2766 ;
2767 return 0;
2768}
2769_ACEOF
2770rm -f conftest.$ac_objext
2771if { (ac_try="$ac_compile"
2772case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002787 ac_cv_prog_cc_g=yes
2788else
2789 echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002793fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002794
2795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002797
2798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799fi
2800
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ac_c_werror_flag=$ac_save_c_werror_flag
2803fi
2804{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002806if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002807 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002808elif test $ac_cv_prog_cc_g = yes; then
2809 if test "$GCC" = yes; then
2810 CFLAGS="-g -O2"
2811 else
2812 CFLAGS="-g"
2813 fi
2814else
2815 if test "$GCC" = yes; then
2816 CFLAGS="-O2"
2817 else
2818 CFLAGS=
2819 fi
2820fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002821{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2822echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2823if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002826 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002827ac_save_CC=$CC
2828cat >conftest.$ac_ext <<_ACEOF
2829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
2834#include <stdarg.h>
2835#include <stdio.h>
2836#include <sys/types.h>
2837#include <sys/stat.h>
2838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2839struct buf { int x; };
2840FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841static char *e (p, i)
2842 char **p;
2843 int i;
2844{
2845 return p[i];
2846}
2847static char *f (char * (*g) (char **, int), char **p, ...)
2848{
2849 char *s;
2850 va_list v;
2851 va_start (v,p);
2852 s = g (p, va_arg (v,int));
2853 va_end (v);
2854 return s;
2855}
2856
2857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2858 function prototypes and stuff, but not '\xHH' hex character constants.
2859 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002860 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2862 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002863 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002864int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2865
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2867 inside strings and character constants. */
2868#define FOO(x) 'x'
2869int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2870
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002871int test (int i, double x);
2872struct s1 {int (*f) (int a);};
2873struct s2 {int (*f) (double a);};
2874int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875int argc;
2876char **argv;
2877int
2878main ()
2879{
2880return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2881 ;
2882 return 0;
2883}
2884_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002885for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002887do
2888 CC="$ac_save_CC $ac_arg"
2889 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002890if { (ac_try="$ac_compile"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002902 (exit $ac_status); } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002906 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002907else
2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
Theodore Ts'oe1052142006-10-21 21:46:47 -04002911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002912fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002913
2914rm -f core conftest.err conftest.$ac_objext
2915 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002916done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918CC=$ac_save_CC
2919
2920fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002921# AC_CACHE_VAL
2922case "x$ac_cv_prog_cc_c89" in
2923 x)
2924 { echo "$as_me:$LINENO: result: none needed" >&5
2925echo "${ECHO_T}none needed" >&6; } ;;
2926 xno)
2927 { echo "$as_me:$LINENO: result: unsupported" >&5
2928echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002929 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002930 CC="$CC $ac_cv_prog_cc_c89"
2931 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2932echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933esac
2934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936ac_ext=c
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002947{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2948echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002949# On Suns, sometimes $CPP names a directory.
2950if test -n "$CPP" && test -d "$CPP"; then
2951 CPP=
2952fi
2953if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954 if test "${ac_cv_prog_CPP+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002956else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957 # Double quotes because CPP needs to be expanded
2958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2959 do
2960 ac_preproc_ok=false
2961for ac_c_preproc_warn_flag in '' yes
2962do
2963 # Use a header file that comes with gcc, so configuring glibc
2964 # with a fresh cross-compiler works.
2965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002967 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968 # not just through cpp. "Syntax error" is here to catch this case.
2969 cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h. */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h. */
2975#ifdef __STDC__
2976# include <limits.h>
2977#else
2978# include <assert.h>
2979#endif
2980 Syntax error
2981_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002982if { (ac_try="$ac_cpp conftest.$ac_ext"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002994 (exit $ac_status); } >/dev/null && {
2995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002998 :
2999else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000 echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003 # Broken: fails on valid input.
3004continue
3005fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007rm -f conftest.err conftest.$ac_ext
3008
Theodore Ts'oe1052142006-10-21 21:46:47 -04003009 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010 # can be detected and how.
3011 cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017#include <ac_nonexistent.h>
3018_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003019if { (ac_try="$ac_cpp conftest.$ac_ext"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003031 (exit $ac_status); } >/dev/null && {
3032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035 # Broken: success on invalid input.
3036continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003037else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 # Passes both tests.
3042ac_preproc_ok=:
3043break
3044fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003046rm -f conftest.err conftest.$ac_ext
3047
3048done
3049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050rm -f conftest.err conftest.$ac_ext
3051if $ac_preproc_ok; then
3052 break
3053fi
3054
3055 done
3056 ac_cv_prog_CPP=$CPP
3057
3058fi
3059 CPP=$ac_cv_prog_CPP
3060else
3061 ac_cv_prog_CPP=$CPP
3062fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003063{ echo "$as_me:$LINENO: result: $CPP" >&5
3064echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065ac_preproc_ok=false
3066for ac_c_preproc_warn_flag in '' yes
3067do
3068 # Use a header file that comes with gcc, so configuring glibc
3069 # with a fresh cross-compiler works.
3070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071 # <limits.h> exists even on freestanding compilers.
3072 # On the NeXT, cc -E runs the code through the compiler's parser,
3073 # not just through cpp. "Syntax error" is here to catch this case.
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080#ifdef __STDC__
3081# include <limits.h>
3082#else
3083# include <assert.h>
3084#endif
3085 Syntax error
3086_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003087if { (ac_try="$ac_cpp conftest.$ac_ext"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003099 (exit $ac_status); } >/dev/null && {
3100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103 :
3104else
3105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 # Broken: fails on valid input.
3109continue
3110fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003112rm -f conftest.err conftest.$ac_ext
3113
Theodore Ts'oe1052142006-10-21 21:46:47 -04003114 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115 # can be detected and how.
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#include <ac_nonexistent.h>
3123_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003124if { (ac_try="$ac_cpp conftest.$ac_ext"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003136 (exit $ac_status); } >/dev/null && {
3137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140 # Broken: success on invalid input.
3141continue
3142else
3143 echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 # Passes both tests.
3147ac_preproc_ok=:
3148break
3149fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151rm -f conftest.err conftest.$ac_ext
3152
3153done
3154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155rm -f conftest.err conftest.$ac_ext
3156if $ac_preproc_ok; then
3157 :
3158else
3159 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3160See \`config.log' for more details." >&5
3161echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3162See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3164fi
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003173# Check whether --with-linker was given.
3174if test "${with_linker+set}" = set; then
3175 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3176echo "${ECHO_T}LD=$withval" >&6; }
3177LD=$withval
3178else
3179 if test -z "$LD" ; then LD=$CC; fi
3180{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3181echo "${ECHO_T}LD defaults to $LD" >&6; }
3182fi
3183export LD
3184
3185
3186# Check whether --with-ccopts was given.
3187if test "${with_ccopts+set}" = set; then
3188 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3189echo "${ECHO_T}CCOPTS is $withval" >&6; }
3190CFLAGS=$withval
3191fi
3192
3193
Theodore Ts'oe1052142006-10-21 21:46:47 -04003194{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3195echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3196if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003199 # Extract the first word of "grep ggrep" to use in msg output
3200if test -z "$GREP"; then
3201set dummy grep ggrep; ac_prog_name=$2
3202if test "${ac_cv_path_GREP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205 ac_path_GREP_found=false
3206# Loop through the user's path and test for each of PROGNAME-LIST
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3209do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_prog in grep ggrep; do
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003215 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003216 # Check for GNU ac_path_GREP and select it if it is found.
3217 # Check for GNU $ac_path_GREP
3218case `"$ac_path_GREP" --version 2>&1` in
3219*GNU*)
3220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3221*)
3222 ac_count=0
3223 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3224 while :
3225 do
3226 cat "conftest.in" "conftest.in" >"conftest.tmp"
3227 mv "conftest.tmp" "conftest.in"
3228 cp "conftest.in" "conftest.nl"
3229 echo 'GREP' >> "conftest.nl"
3230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3232 ac_count=`expr $ac_count + 1`
3233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3234 # Best one so far, save it but keep looking for a better one
3235 ac_cv_path_GREP="$ac_path_GREP"
3236 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003237 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003238 # 10*(2^10) chars as input seems more than enough
3239 test $ac_count -gt 10 && break
3240 done
3241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3242esac
3243
3244
3245 $ac_path_GREP_found && break 3
3246 done
3247done
3248
3249done
3250IFS=$as_save_IFS
3251
3252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003253fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003254
3255GREP="$ac_cv_path_GREP"
3256if test -z "$GREP"; then
3257 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3258echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3259 { (exit 1); exit 1; }; }
3260fi
3261
3262else
3263 ac_cv_path_GREP=$GREP
3264fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003265
3266
Theodore Ts'oe1052142006-10-21 21:46:47 -04003267fi
3268{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3269echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3270 GREP="$ac_cv_path_GREP"
3271
3272
3273{ echo "$as_me:$LINENO: checking for egrep" >&5
3274echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3275if test "${ac_cv_path_EGREP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3279 then ac_cv_path_EGREP="$GREP -E"
3280 else
3281 # Extract the first word of "egrep" to use in msg output
3282if test -z "$EGREP"; then
3283set dummy egrep; ac_prog_name=$2
3284if test "${ac_cv_path_EGREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 ac_path_EGREP_found=false
3288# Loop through the user's path and test for each of PROGNAME-LIST
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_prog in egrep; do
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003297 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003298 # Check for GNU ac_path_EGREP and select it if it is found.
3299 # Check for GNU $ac_path_EGREP
3300case `"$ac_path_EGREP" --version 2>&1` in
3301*GNU*)
3302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3303*)
3304 ac_count=0
3305 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3306 while :
3307 do
3308 cat "conftest.in" "conftest.in" >"conftest.tmp"
3309 mv "conftest.tmp" "conftest.in"
3310 cp "conftest.in" "conftest.nl"
3311 echo 'EGREP' >> "conftest.nl"
3312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3314 ac_count=`expr $ac_count + 1`
3315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3316 # Best one so far, save it but keep looking for a better one
3317 ac_cv_path_EGREP="$ac_path_EGREP"
3318 ac_path_EGREP_max=$ac_count
3319 fi
3320 # 10*(2^10) chars as input seems more than enough
3321 test $ac_count -gt 10 && break
3322 done
3323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3324esac
3325
3326
3327 $ac_path_EGREP_found && break 3
3328 done
3329done
3330
3331done
3332IFS=$as_save_IFS
3333
3334
3335fi
3336
3337EGREP="$ac_cv_path_EGREP"
3338if test -z "$EGREP"; then
3339 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3340echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3341 { (exit 1); exit 1; }; }
3342fi
3343
3344else
3345 ac_cv_path_EGREP=$EGREP
3346fi
3347
3348
3349 fi
3350fi
3351{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3352echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3353 EGREP="$ac_cv_path_EGREP"
3354
3355
3356{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3357echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003358if test "${ac_cv_header_stdc+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h. */
3367#include <stdlib.h>
3368#include <stdarg.h>
3369#include <string.h>
3370#include <float.h>
3371
3372int
3373main ()
3374{
3375
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003381if { (ac_try="$ac_compile"
3382case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003393 (exit $ac_status); } && {
3394 test -z "$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003397 ac_cv_header_stdc=yes
3398else
3399 echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
Theodore Ts'oe1052142006-10-21 21:46:47 -04003402 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003403fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003404
3405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003406
3407if test $ac_cv_header_stdc = yes; then
3408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3409 cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415#include <string.h>
3416
3417_ACEOF
3418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "memchr" >/dev/null 2>&1; then
3420 :
3421else
3422 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003423fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003424rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003426fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003427
3428if test $ac_cv_header_stdc = yes; then
3429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3430 cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h. */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h. */
3436#include <stdlib.h>
3437
3438_ACEOF
3439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 $EGREP "free" >/dev/null 2>&1; then
3441 :
3442else
3443 ac_cv_header_stdc=no
3444fi
3445rm -f conftest*
3446
3447fi
3448
3449if test $ac_cv_header_stdc = yes; then
3450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3451 if test "$cross_compiling" = yes; then
3452 :
3453else
3454 cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003461#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462#if ((' ' & 0x0FF) == 0x020)
3463# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3464# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3465#else
3466# define ISLOWER(c) \
3467 (('a' <= (c) && (c) <= 'i') \
3468 || ('j' <= (c) && (c) <= 'r') \
3469 || ('s' <= (c) && (c) <= 'z'))
3470# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3471#endif
3472
3473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3474int
3475main ()
3476{
3477 int i;
3478 for (i = 0; i < 256; i++)
3479 if (XOR (islower (i), ISLOWER (i))
3480 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003481 return 2;
3482 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003483}
3484_ACEOF
3485rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003486if { (ac_try="$ac_link"
3487case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490esac
3491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003496 { (case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499esac
3500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 :
3506else
3507 echo "$as_me: program exited with status $ac_status" >&5
3508echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511( exit $ac_status )
3512ac_cv_header_stdc=no
3513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3515fi
3516
3517
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003518fi
3519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003520{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3521echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003522if test $ac_cv_header_stdc = yes; then
3523
3524cat >>confdefs.h <<\_ACEOF
3525#define STDC_HEADERS 1
3526_ACEOF
3527
3528fi
3529
3530# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3541 inttypes.h stdint.h unistd.h
3542do
3543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003544{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555$ac_includes_default
3556
3557#include <$ac_header>
3558_ACEOF
3559rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003560if { (ac_try="$ac_compile"
3561case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564esac
3565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003576 eval "$as_ac_Header=yes"
3577else
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
Theodore Ts'oe1052142006-10-21 21:46:47 -04003581 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003583
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586ac_res=`eval echo '${'$as_ac_Header'}'`
3587 { echo "$as_me:$LINENO: result: $ac_res" >&5
3588echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589if test `eval echo '${'$as_ac_Header'}'` = yes; then
3590 cat >>confdefs.h <<_ACEOF
3591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3592_ACEOF
3593
3594fi
3595
3596done
3597
3598
3599if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003600 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3601echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602if test "${ac_cv_header_linux_fs_h+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003605{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3606echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003607else
3608 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003609{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3610echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003611cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
3617$ac_includes_default
3618#include <linux/fs.h>
3619_ACEOF
3620rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003621if { (ac_try="$ac_compile"
3622case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625esac
3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003633 (exit $ac_status); } && {
3634 test -z "$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003637 ac_header_compiler=yes
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
Theodore Ts'oe1052142006-10-21 21:46:47 -04003642 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003643fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003644
3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3647echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003648
3649# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3651echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652cat >conftest.$ac_ext <<_ACEOF
3653/* confdefs.h. */
3654_ACEOF
3655cat confdefs.h >>conftest.$ac_ext
3656cat >>conftest.$ac_ext <<_ACEOF
3657/* end confdefs.h. */
3658#include <linux/fs.h>
3659_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003660if { (ac_try="$ac_cpp conftest.$ac_ext"
3661case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003672 (exit $ac_status); } >/dev/null && {
3673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003676 ac_header_preproc=yes
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 ac_header_preproc=no
3682fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003683
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003684rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003685{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3686echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003687
3688# So? What about this header?
3689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3690 yes:no: )
3691 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3692echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3694echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3695 ac_header_preproc=yes
3696 ;;
3697 no:yes:* )
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3699echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3701echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3703echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3705echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3707echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3709echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003711 ;;
3712esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003713{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3714echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003715if test "${ac_cv_header_linux_fs_h+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718 ac_cv_header_linux_fs_h=$ac_header_preproc
3719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003720{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3721echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003722
3723fi
3724if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003725 linux_headers=yes
3726else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003727 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003728fi
3729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003730
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003731if test "$linux_headers" != yes; then
3732 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003733fi
3734
Theodore Ts'oe1052142006-10-21 21:46:47 -04003735{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3736echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003737if test "$GCC" = yes
3738then
3739 case "$host_cpu" in
3740 alpha) addcflags="-mieee" ;;
3741 esac
3742fi
3743if test "x$addcflags" != x
3744then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003745 { echo "$as_me:$LINENO: result: $addcflags" >&5
3746echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003747 CFLAGS="$addcflags $CFLAGS"
3748else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003749 { echo "$as_me:$LINENO: result: (none)" >&5
3750echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003751fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003752LIB_EXT=.a
3753STATIC_LIB_EXT=.a
3754PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003755
Theodore Ts'oe1052142006-10-21 21:46:47 -04003756# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003757if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003758 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3759echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003760LDFLAGS=$withval
3761else
3762 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003763fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003764
Theodore Ts'oe1052142006-10-21 21:46:47 -04003765
3766# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003767if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003768 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003769else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003770 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003771fi
3772# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003773if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003774 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003775then
3776 MAINTAINER_CMT=#
3777 echo "Disabling maintainer mode"
3778else
3779 MAINTAINER_CMT=
3780 echo "Enabling maintainer mode"
3781fi
3782
3783else
3784 MAINTAINER_CMT=#
3785echo "Disabling maintainer mode by default"
3786
Theodore Ts'oe1052142006-10-21 21:46:47 -04003787fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003788
Theodore Ts'oe1052142006-10-21 21:46:47 -04003789
3790# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003791if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003792 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003793then
3794 echo "Disabling compression support"
3795else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003796 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003797#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003798_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003799
3800 echo "Enabling compression support"
3801 echo "WARNING: Compression support is experimental"
3802fi
3803
3804else
3805 echo "Disabling compression support by default"
3806
Theodore Ts'oe1052142006-10-21 21:46:47 -04003807fi
3808
3809# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003810if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003811 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003812then
3813 HTREE_CMT=#
3814 echo "Disabling htree directory support"
3815else
3816 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003817 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003818#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003819_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003820
3821 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003822fi
3823
3824else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003825 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003826cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003827#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003828_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003829
3830echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003831
Theodore Ts'oe1052142006-10-21 21:46:47 -04003832fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003833
Theodore Ts'oe1052142006-10-21 21:46:47 -04003834
3835# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003836if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003837 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003838then
3839 ELF_CMT=#
3840 MAKEFILE_ELF=/dev/null
3841 echo "Disabling ELF shared libraries"
3842else
3843 ELF_CMT=
3844 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003845 case "$host_os" in
3846 solaris2.*)
3847 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3848 ;;
3849 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003850 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003851 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003852 echo "Enabling ELF shared libraries"
3853fi
3854
3855else
3856 MAKEFILE_ELF=/dev/null
3857ELF_CMT=#
3858echo "Disabling ELF shared libraries by default"
3859
Theodore Ts'oe1052142006-10-21 21:46:47 -04003860fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003861
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003862
Theodore Ts'oe1052142006-10-21 21:46:47 -04003863
3864# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003865if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003866 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003867then
3868 BSDLIB_CMT=#
3869 MAKEFILE_BSDLIB=/dev/null
3870 echo "Disabling BSD shared libraries"
3871else
3872 BSDLIB_CMT=
3873 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003874 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003875 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003876 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003877 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3878 LIB_EXT=.dylib
3879 ;;
3880 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003881 echo "Enabling BSD shared libraries"
3882fi
3883
3884else
3885 MAKEFILE_BSDLIB=/dev/null
3886BSDLIB_CMT=#
3887echo "Disabling BSD shared libraries by default"
3888
Theodore Ts'oe1052142006-10-21 21:46:47 -04003889fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003890
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003891
Theodore Ts'oe1052142006-10-21 21:46:47 -04003892
3893# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003894if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003895 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003896then
3897 PROFILE_CMT=#
3898 MAKEFILE_PROFILE=/dev/null
3899 echo "Disabling profiling libraries"
3900else
3901 PROFILE_CMT=
3902 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3903 PROFILED_LIB_EXT=_p.a
3904 echo "Building profiling libraries"
3905fi
3906
3907else
3908 PROFILE_CMT=#
3909MAKEFILE_PROFILE=/dev/null
3910echo "Disabling profiling libraries by default"
3911
Theodore Ts'oe1052142006-10-21 21:46:47 -04003912fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003913
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003914
Theodore Ts'oe1052142006-10-21 21:46:47 -04003915
3916# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003917if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003918 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003919then
3920 CHECKER_CMT=#
3921 MAKEFILE_CHECKER=/dev/null
3922 echo "Disabling checker libraries"
3923else
3924 CHECKER_CMT=
3925 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3926 echo "Building checker libraries"
3927fi
3928
3929else
3930 CHECKER_CMT=#
3931MAKEFILE_CHECKER=/dev/null
3932echo "Disabling checker libraries by default"
3933
Theodore Ts'oe1052142006-10-21 21:46:47 -04003934fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003935
3936
3937
3938
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003939
Theodore Ts'oe1052142006-10-21 21:46:47 -04003940
3941# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003942if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003943 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003944then
3945 echo "Disabling journal debugging"
3946else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003947 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003948#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003949_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003950
3951 echo "Enabling journal debugging"
3952fi
3953
3954else
3955 echo "Disabling journal debugging by default"
3956
Theodore Ts'oe1052142006-10-21 21:46:47 -04003957fi
3958
3959# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003960if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003961 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003962then
3963 echo "Disabling blkid debugging"
3964else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003965 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003966#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003967_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003968
3969 echo "Enabling blkid debugging"
3970fi
3971
3972else
3973 echo "Disabling blkid debugging by default"
3974
Theodore Ts'oe1052142006-10-21 21:46:47 -04003975fi
3976
3977# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003978if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003979 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003980then
3981 echo "Disabling testio debugging"
3982else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003983 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003984#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003985_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003986
3987 echo "Enabling testio debugging"
3988fi
3989
3990else
3991 echo "Disabling testio debugging by default"
3992
Theodore Ts'oe1052142006-10-21 21:46:47 -04003993fi
3994
3995# Check whether --enable-swapfs was given.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003996if test "${enable_swapfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003997 enableval=$enable_swapfs; if test "$enableval" = "no"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003998then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003999 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004000 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004001else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004002 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004003 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004004#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004005_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004006
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004007 echo "Enabling swapfs support"
4008fi
4009
4010else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004011 SWAPFS_CMT=
4012echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004013cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004014#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004015_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004016
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004017
Theodore Ts'oe1052142006-10-21 21:46:47 -04004018fi
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004019
Theodore Ts'oe1052142006-10-21 21:46:47 -04004020
4021# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004022if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004023 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004024then
4025 echo "Disabling debugfs support"
4026 DEBUGFS_CMT="#"
4027else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004028 DEBUGFS_CMT=
4029 echo "Enabling debugfs support"
4030fi
4031
4032else
4033 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004034DEBUGFS_CMT=
4035
Theodore Ts'oe1052142006-10-21 21:46:47 -04004036fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004037
Theodore Ts'oe1052142006-10-21 21:46:47 -04004038
4039# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004040if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004041 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004042then
4043 echo "Disabling e2image support"
4044 IMAGER_CMT="#"
4045else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004046 IMAGER_CMT=
4047 echo "Enabling e2image support"
4048fi
4049
4050else
4051 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004052IMAGER_CMT=
4053
Theodore Ts'oe1052142006-10-21 21:46:47 -04004054fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004055
Theodore Ts'oe1052142006-10-21 21:46:47 -04004056
4057# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004058if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004059 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004060then
4061 echo "Disabling e2resize support"
4062 RESIZER_CMT="#"
4063else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004064 RESIZER_CMT=
4065 echo "Enabling e2resize support"
4066fi
4067
4068else
4069 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004070RESIZER_CMT=
4071
Theodore Ts'oe1052142006-10-21 21:46:47 -04004072fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004073
Theodore Ts'oe1052142006-10-21 21:46:47 -04004074
4075# Check whether --enable-dynamic-e2fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004076if test "${enable_dynamic_e2fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004077 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004078then
4079 E2FSCK_TYPE=static
4080 echo "Building e2fsck statically"
4081else
4082 E2FSCK_TYPE=shared
4083 echo "Building e2fsck dynamically"
4084fi
4085
4086else
4087 E2FSCK_TYPE=static
4088echo "Building e2fsck statically by default"
4089
Theodore Ts'oe1052142006-10-21 21:46:47 -04004090fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004091
Theodore Ts'oe1052142006-10-21 21:46:47 -04004092
4093# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004094if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004095 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004096then
4097 FSCK_PROG='' FSCK_MAN=''
4098 echo "Not building fsck wrapper"
4099else
4100 FSCK_PROG=fsck FSCK_MAN=fsck.8
4101 echo "Building fsck wrapper"
4102fi
4103
4104else
4105 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004106 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004107 FSCK_PROG='' FSCK_MAN=''
4108 echo "Not building fsck wrapper by default"
4109 ;;
4110 *)
4111 FSCK_PROG=fsck FSCK_MAN=fsck.8
4112 echo "Building fsck wrapper by default"
4113esac
4114
Theodore Ts'oe1052142006-10-21 21:46:47 -04004115fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004116
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004117
Theodore Ts'oe1052142006-10-21 21:46:47 -04004118
4119# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004120if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004121 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004122then
4123 E2INITRD_PROG='' E2INITRD_MAN=''
4124 echo "Not building e2initrd helper"
4125else
4126 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4127 echo "Building e2initrd helper"
4128fi
4129
4130else
4131 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4132echo "Building e2initrd helper by default"
4133
Theodore Ts'oe1052142006-10-21 21:46:47 -04004134fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004135
4136
Theodore Ts'oe1052142006-10-21 21:46:47 -04004137
4138# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004139if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004140 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004141then
4142 echo "Disabling device-mapper support"
4143 DEVMAPPER_REQ=''
4144 DEVMAPPER_LIBS=''
4145 STATIC_DEVMAPPER_LIBS=''
4146else
4147 cat >>confdefs.h <<\_ACEOF
4148#define HAVE_DEVMAPPER 1
4149_ACEOF
4150
4151 echo "Enabling device-mapper support"
4152
4153 DEVMAPPER_REQ='libselinux libsepol'
4154 DEVMAPPER_PC_LIBS='-ldevmapper'
Theodore Ts'oe1052142006-10-21 21:46:47 -04004155 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4156 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
Karel Zak4db2f592006-03-08 14:17:28 -05004157
4158fi
4159
4160else
4161 echo "Disabling device-mapper support by default"
4162
Theodore Ts'oe1052142006-10-21 21:46:47 -04004163fi
4164
Karel Zak4db2f592006-03-08 14:17:28 -05004165
4166
4167
4168
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004169MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4170
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004171GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004172PACKAGE=e2fsprogs
4173VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004174VERSION=0.14.1
4175cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004176#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004177_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004179cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004180#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004181_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004182
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004183
4184
4185
4186
Theodore Ts'oe1052142006-10-21 21:46:47 -04004187{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4188echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4189set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4190if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004191 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004192else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004193 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004194SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004195all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004196 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004197_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004198# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004199case `${MAKE-make} -f conftest.make 2>/dev/null` in
4200 *@@@%%%=?*=@@@%%%*)
4201 eval ac_cv_prog_make_${ac_make}_set=yes;;
4202 *)
4203 eval ac_cv_prog_make_${ac_make}_set=no;;
4204esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004205rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004206fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004207if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4208 { echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004210 SET_MAKE=
4211else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004212 { echo "$as_me:$LINENO: result: no" >&5
4213echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004214 SET_MAKE="MAKE=${MAKE-make}"
4215fi
4216
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004217# Find a good install program. We prefer a C program (faster),
4218# so one script is as good as another. But avoid the broken or
4219# incompatible versions:
4220# SysV /etc/install, /usr/sbin/install
4221# SunOS /usr/etc/install
4222# IRIX /sbin/install
4223# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004224# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004225# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4226# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4227# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004228# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004229# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004230{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4231echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004232if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004233if test "${ac_cv_path_install+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004235else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 # Account for people who put trailing slashes in PATH elements.
4242case $as_dir/ in
4243 ./ | .// | /cC/* | \
4244 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4245 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4246 /usr/ucb/* ) ;;
4247 *)
4248 # OSF1 and SCO ODT 3.0 have their own names for install.
4249 # Don't use installbsd from OSF since it installs stuff as root
4250 # by default.
4251 for ac_prog in ginstall scoinst install; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004253 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004254 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004255 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004256 # AIX install. It has an incompatible calling convention.
4257 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004258 elif test $ac_prog = install &&
4259 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4260 # program-specific install script used by HP pwplus--don't use.
4261 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004262 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004263 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4264 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004265 fi
4266 fi
4267 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004268 done
4269 ;;
4270esac
4271done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004272IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004273
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004274
4275fi
4276 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004278 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004279 # As a last resort, use the slow shell script. Don't cache a
4280 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004281 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004282 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004284 fi
4285fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004286{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4287echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004288
4289# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4290# It thinks the first close brace ends the variable substitution.
4291test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004293test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004294
4295test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4296
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004297
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004298 MKINSTALLDIRS=
4299 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004300 case "$ac_aux_dir" in
4301 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4302 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4303 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004304 fi
4305 if test -z "$MKINSTALLDIRS"; then
4306 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4307 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004309
4310
Theodore Ts'oe1052142006-10-21 21:46:47 -04004311 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4312echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4313 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004314if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004315 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004316else
4317 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004318fi
4319
4320 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4321echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004322
4323
4324
4325
4326
4327
4328# Prepare PATH_SEPARATOR.
4329# The user is always right.
4330if test "${PATH_SEPARATOR+set}" != set; then
4331 echo "#! /bin/sh" >conf$$.sh
4332 echo "exit 0" >>conf$$.sh
4333 chmod +x conf$$.sh
4334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4335 PATH_SEPARATOR=';'
4336 else
4337 PATH_SEPARATOR=:
4338 fi
4339 rm -f conf$$.sh
4340fi
4341
4342# Find out how to test for executable files. Don't use a zero-byte file,
4343# as systems may use methods other than mode bits to determine executability.
4344cat >conf$$.file <<_ASEOF
4345#! /bin/sh
4346exit 0
4347_ASEOF
4348chmod +x conf$$.file
4349if test -x conf$$.file >/dev/null 2>&1; then
4350 ac_executable_p="test -x"
4351else
4352 ac_executable_p="test -f"
4353fi
4354rm -f conf$$.file
4355
4356# Extract the first word of "msgfmt", so it can be a program name with args.
4357set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004360if test "${ac_cv_path_MSGFMT+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363 case "$MSGFMT" in
4364 [\\/]* | ?:[\\/]*)
4365 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4366 ;;
4367 *)
4368 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4369 for ac_dir in $PATH; do
4370 IFS="$ac_save_IFS"
4371 test -z "$ac_dir" && ac_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4374 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4375 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4376 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4377 break 2
4378 fi
4379 fi
4380 done
4381 done
4382 IFS="$ac_save_IFS"
4383 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4384 ;;
4385esac
4386fi
4387MSGFMT="$ac_cv_path_MSGFMT"
4388if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004389 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4390echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004391else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004392 { echo "$as_me:$LINENO: result: no" >&5
4393echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004394fi
4395
4396 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4397set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400if test "${ac_cv_path_GMSGFMT+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 case $GMSGFMT in
4404 [\\/]* | ?:[\\/]*)
4405 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4406 ;;
4407 *)
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004415 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419done
4420done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004421IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004422
4423 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4424 ;;
4425esac
4426fi
4427GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004428if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004429 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4430echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004431else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004432 { echo "$as_me:$LINENO: result: no" >&5
4433echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004434fi
4435
4436
4437
Theodore Ts'oe1052142006-10-21 21:46:47 -04004438
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004439# Prepare PATH_SEPARATOR.
4440# The user is always right.
4441if test "${PATH_SEPARATOR+set}" != set; then
4442 echo "#! /bin/sh" >conf$$.sh
4443 echo "exit 0" >>conf$$.sh
4444 chmod +x conf$$.sh
4445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4446 PATH_SEPARATOR=';'
4447 else
4448 PATH_SEPARATOR=:
4449 fi
4450 rm -f conf$$.sh
4451fi
4452
4453# Find out how to test for executable files. Don't use a zero-byte file,
4454# as systems may use methods other than mode bits to determine executability.
4455cat >conf$$.file <<_ASEOF
4456#! /bin/sh
4457exit 0
4458_ASEOF
4459chmod +x conf$$.file
4460if test -x conf$$.file >/dev/null 2>&1; then
4461 ac_executable_p="test -x"
4462else
4463 ac_executable_p="test -f"
4464fi
4465rm -f conf$$.file
4466
4467# Extract the first word of "xgettext", so it can be a program name with args.
4468set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004471if test "${ac_cv_path_XGETTEXT+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 case "$XGETTEXT" in
4475 [\\/]* | ?:[\\/]*)
4476 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4477 ;;
4478 *)
4479 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4480 for ac_dir in $PATH; do
4481 IFS="$ac_save_IFS"
4482 test -z "$ac_dir" && ac_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4485 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4486 (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
4487 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4488 break 2
4489 fi
4490 fi
4491 done
4492 done
4493 IFS="$ac_save_IFS"
4494 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4495 ;;
4496esac
4497fi
4498XGETTEXT="$ac_cv_path_XGETTEXT"
4499if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004500 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4501echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004502else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004503 { echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004505fi
4506
4507 rm -f messages.po
4508
4509
4510# Prepare PATH_SEPARATOR.
4511# The user is always right.
4512if test "${PATH_SEPARATOR+set}" != set; then
4513 echo "#! /bin/sh" >conf$$.sh
4514 echo "exit 0" >>conf$$.sh
4515 chmod +x conf$$.sh
4516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4517 PATH_SEPARATOR=';'
4518 else
4519 PATH_SEPARATOR=:
4520 fi
4521 rm -f conf$$.sh
4522fi
4523
4524# Find out how to test for executable files. Don't use a zero-byte file,
4525# as systems may use methods other than mode bits to determine executability.
4526cat >conf$$.file <<_ASEOF
4527#! /bin/sh
4528exit 0
4529_ASEOF
4530chmod +x conf$$.file
4531if test -x conf$$.file >/dev/null 2>&1; then
4532 ac_executable_p="test -x"
4533else
4534 ac_executable_p="test -f"
4535fi
4536rm -f conf$$.file
4537
4538# Extract the first word of "msgmerge", so it can be a program name with args.
4539set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004542if test "${ac_cv_path_MSGMERGE+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545 case "$MSGMERGE" in
4546 [\\/]* | ?:[\\/]*)
4547 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4548 ;;
4549 *)
4550 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4551 for ac_dir in $PATH; do
4552 IFS="$ac_save_IFS"
4553 test -z "$ac_dir" && ac_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4556 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4557 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4558 break 2
4559 fi
4560 fi
4561 done
4562 done
4563 IFS="$ac_save_IFS"
4564 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4565 ;;
4566esac
4567fi
4568MSGMERGE="$ac_cv_path_MSGMERGE"
4569if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004570 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4571echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004572else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004573 { echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004575fi
4576
4577
4578 if test "$GMSGFMT" != ":"; then
4579 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4580 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4581 : ;
4582 else
4583 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004584 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4585echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004586 GMSGFMT=":"
4587 fi
4588 fi
4589
4590 if test "$XGETTEXT" != ":"; then
4591 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4592 (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
4593 : ;
4594 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004595 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4596echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004597 XGETTEXT=":"
4598 fi
4599 rm -f messages.po
4600 fi
4601
Theodore Ts'oe1052142006-10-21 21:46:47 -04004602 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004603
4604
4605if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4607set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004610if test "${ac_cv_prog_RANLIB+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004612else
4613 if test -n "$RANLIB"; then
4614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4615else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004623 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004628done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004629IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004630
4631fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004632fi
4633RANLIB=$ac_cv_prog_RANLIB
4634if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004635 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4636echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004637else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004638 { echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004640fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004641
Theodore Ts'oe1052142006-10-21 21:46:47 -04004642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004643fi
4644if test -z "$ac_cv_prog_RANLIB"; then
4645 ac_ct_RANLIB=$RANLIB
4646 # Extract the first word of "ranlib", so it can be a program name with args.
4647set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004650if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -n "$ac_ct_RANLIB"; then
4654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004663 ac_cv_prog_ac_ct_RANLIB="ranlib"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004669IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004670
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004671fi
4672fi
4673ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4674if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004675 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4676echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004677else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004678 { echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004680fi
4681
Theodore Ts'oe1052142006-10-21 21:46:47 -04004682 if test "x$ac_ct_RANLIB" = x; then
4683 RANLIB=":"
4684 else
4685 case $cross_compiling:$ac_tool_warned in
4686yes:)
4687{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4688whose name does not start with the host triplet. If you think this
4689configuration is useful to you, please write to autoconf@gnu.org." >&5
4690echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4691whose name does not start with the host triplet. If you think this
4692configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4693ac_tool_warned=yes ;;
4694esac
4695 RANLIB=$ac_ct_RANLIB
4696 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004697else
4698 RANLIB="$ac_cv_prog_RANLIB"
4699fi
4700
4701
Theodore Ts'oe1052142006-10-21 21:46:47 -04004702 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4703echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004704if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707 ac_check_lib_save_LIBS=$LIBS
4708LIBS="-lcposix $LIBS"
4709cat >conftest.$ac_ext <<_ACEOF
4710/* confdefs.h. */
4711_ACEOF
4712cat confdefs.h >>conftest.$ac_ext
4713cat >>conftest.$ac_ext <<_ACEOF
4714/* end confdefs.h. */
4715
Theodore Ts'oe1052142006-10-21 21:46:47 -04004716/* Override any GCC internal prototype to avoid an error.
4717 Use char because int might match the return type of a GCC
4718 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004719#ifdef __cplusplus
4720extern "C"
4721#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004722char strerror ();
4723int
4724main ()
4725{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004726return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004727 ;
4728 return 0;
4729}
4730_ACEOF
4731rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004732if { (ac_try="$ac_link"
4733case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736esac
4737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest$ac_exeext &&
4748 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004749 ac_cv_lib_cposix_strerror=yes
4750else
4751 echo "$as_me: failed program was:" >&5
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
Theodore Ts'oe1052142006-10-21 21:46:47 -04004754 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004755fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004756
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004758 conftest$ac_exeext conftest.$ac_ext
4759LIBS=$ac_check_lib_save_LIBS
4760fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004761{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4762echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004763if test $ac_cv_lib_cposix_strerror = yes; then
4764 LIBS="$LIBS -lcposix"
4765fi
4766
4767
4768
Theodore Ts'oe1052142006-10-21 21:46:47 -04004769{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4770echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004771if test "${ac_cv_c_const+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774 cat >conftest.$ac_ext <<_ACEOF
4775/* confdefs.h. */
4776_ACEOF
4777cat confdefs.h >>conftest.$ac_ext
4778cat >>conftest.$ac_ext <<_ACEOF
4779/* end confdefs.h. */
4780
4781int
4782main ()
4783{
4784/* FIXME: Include the comments suggested by Paul. */
4785#ifndef __cplusplus
4786 /* Ultrix mips cc rejects this. */
4787 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004788 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004789 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004790 char const *const *pcpcc;
4791 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004792 /* NEC SVR4.0.2 mips cc rejects this. */
4793 struct point {int x, y;};
4794 static struct point const zero = {0,0};
4795 /* AIX XL C 1.02.0.0 rejects this.
4796 It does not let you subtract one const X* pointer from another in
4797 an arm of an if-expression whose if-part is not a constant
4798 expression */
4799 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004800 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004801 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004802 ++pcpcc;
4803 ppc = (char**) pcpcc;
4804 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004805 { /* SCO 3.2v4 cc rejects this. */
4806 char *t;
4807 char const *s = 0 ? (char *) 0 : (char const *) 0;
4808
4809 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004810 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004811 }
4812 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4813 int x[] = {25, 17};
4814 const int *foo = &x[0];
4815 ++foo;
4816 }
4817 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4818 typedef const int *iptr;
4819 iptr p = 0;
4820 ++p;
4821 }
4822 { /* AIX XL C 1.02.0.0 rejects this saying
4823 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4824 struct s { int j; const int *ap[3]; };
4825 struct s *b; b->j = 5;
4826 }
4827 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4828 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004829 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004830 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004831 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004832#endif
4833
4834 ;
4835 return 0;
4836}
4837_ACEOF
4838rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004839if { (ac_try="$ac_compile"
4840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
4844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004855 ac_cv_c_const=yes
4856else
4857 echo "$as_me: failed program was:" >&5
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
Theodore Ts'oe1052142006-10-21 21:46:47 -04004860 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004862
4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004864fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004865{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4866echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004867if test $ac_cv_c_const = no; then
4868
4869cat >>confdefs.h <<\_ACEOF
4870#define const
4871_ACEOF
4872
4873fi
4874
4875
Theodore Ts'oe1052142006-10-21 21:46:47 -04004876 { echo "$as_me:$LINENO: checking for signed" >&5
4877echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004878if test "${bh_cv_c_signed+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
4881 cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887
4888int
4889main ()
4890{
4891signed char x;
4892 ;
4893 return 0;
4894}
4895_ACEOF
4896rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004897if { (ac_try="$ac_compile"
4898case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901esac
4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004913 bh_cv_c_signed=yes
4914else
4915 echo "$as_me: failed program was:" >&5
4916sed 's/^/| /' conftest.$ac_ext >&5
4917
Theodore Ts'oe1052142006-10-21 21:46:47 -04004918 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004919fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004920
4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004922fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004923{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4924echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004925 if test $bh_cv_c_signed = no; then
4926
4927cat >>confdefs.h <<\_ACEOF
4928#define signed
4929_ACEOF
4930
4931 fi
4932
Theodore Ts'oe1052142006-10-21 21:46:47 -04004933{ echo "$as_me:$LINENO: checking for inline" >&5
4934echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004935if test "${ac_cv_c_inline+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937else
4938 ac_cv_c_inline=no
4939for ac_kw in inline __inline__ __inline; do
4940 cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946#ifndef __cplusplus
4947typedef int foo_t;
4948static $ac_kw foo_t static_foo () {return 0; }
4949$ac_kw foo_t foo () {return 0; }
4950#endif
4951
4952_ACEOF
4953rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004954if { (ac_try="$ac_compile"
4955case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958esac
4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004966 (exit $ac_status); } && {
4967 test -z "$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004970 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
Theodore Ts'oe1052142006-10-21 21:46:47 -04004975
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004976fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004977
4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004980done
4981
4982fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004983{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4984echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004985
4986
4987case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004988 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004989 *)
4990 case $ac_cv_c_inline in
4991 no) ac_val=;;
4992 *) ac_val=$ac_cv_c_inline;;
4993 esac
4994 cat >>confdefs.h <<_ACEOF
4995#ifndef __cplusplus
4996#define inline $ac_val
4997#endif
4998_ACEOF
4999 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005000esac
5001
Theodore Ts'oe1052142006-10-21 21:46:47 -04005002{ echo "$as_me:$LINENO: checking for off_t" >&5
5003echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005004if test "${ac_cv_type_off_t+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005006else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005007 cat >conftest.$ac_ext <<_ACEOF
5008/* confdefs.h. */
5009_ACEOF
5010cat confdefs.h >>conftest.$ac_ext
5011cat >>conftest.$ac_ext <<_ACEOF
5012/* end confdefs.h. */
5013$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005014typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005015int
5016main ()
5017{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005018if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005019 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005020if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005021 return 0;
5022 ;
5023 return 0;
5024}
5025_ACEOF
5026rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005027if { (ac_try="$ac_compile"
5028case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031esac
5032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005043 ac_cv_type_off_t=yes
5044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005045 echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005047
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005049fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005050
5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005052fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005053{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5054echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005055if test $ac_cv_type_off_t = yes; then
5056 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005058
5059cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005060#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005061_ACEOF
5062
5063fi
5064
Theodore Ts'oe1052142006-10-21 21:46:47 -04005065{ echo "$as_me:$LINENO: checking for size_t" >&5
5066echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005067if test "${ac_cv_type_size_t+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069else
5070 cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005077typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005078int
5079main ()
5080{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005081if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005082 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005083if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005084 return 0;
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005090if { (ac_try="$ac_compile"
5091case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094esac
5095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005102 (exit $ac_status); } && {
5103 test -z "$ac_c_werror_flag" ||
5104 test ! -s conftest.err
5105 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005106 ac_cv_type_size_t=yes
5107else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005108 echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
Theodore Ts'oe1052142006-10-21 21:46:47 -04005111 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005112fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005113
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005115fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005116{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5117echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005118if test $ac_cv_type_size_t = yes; then
5119 :
5120else
5121
5122cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005123#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005124_ACEOF
5125
5126fi
5127
5128
Theodore Ts'oe1052142006-10-21 21:46:47 -04005129 { echo "$as_me:$LINENO: checking for long long" >&5
5130echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005131if test "${ac_cv_type_long_long+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134 cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h. */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h. */
5140long long ll = 1LL; int i = 63;
5141int
5142main ()
5143{
5144long long llmax = (long long) -1;
5145 return ll << i | ll >> i | llmax / ll | llmax % ll;
5146 ;
5147 return 0;
5148}
5149_ACEOF
5150rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005151if { (ac_try="$ac_link"
5152case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155esac
5156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005163 (exit $ac_status); } && {
5164 test -z "$ac_c_werror_flag" ||
5165 test ! -s conftest.err
5166 } && test -s conftest$ac_exeext &&
5167 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005168 ac_cv_type_long_long=yes
5169else
5170 echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
Theodore Ts'oe1052142006-10-21 21:46:47 -04005173 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005174fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005175
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005177 conftest$ac_exeext conftest.$ac_ext
5178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005179{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5180echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005181 if test $ac_cv_type_long_long = yes; then
5182
5183cat >>confdefs.h <<\_ACEOF
5184#define HAVE_LONG_LONG 1
5185_ACEOF
5186
5187 fi
5188
5189
Theodore Ts'oe1052142006-10-21 21:46:47 -04005190 { echo "$as_me:$LINENO: checking for long double" >&5
5191echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005192if test "${gt_cv_c_long_double+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 if test "$GCC" = yes; then
5196 gt_cv_c_long_double=yes
5197 else
5198 cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h. */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h. */
5204
5205 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5206 long double foo = 0.0;
5207 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5208 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5209
5210int
5211main ()
5212{
5213
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005219if { (ac_try="$ac_compile"
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005231 (exit $ac_status); } && {
5232 test -z "$ac_c_werror_flag" ||
5233 test ! -s conftest.err
5234 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005235 gt_cv_c_long_double=yes
5236else
5237 echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
Theodore Ts'oe1052142006-10-21 21:46:47 -04005240 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005241fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005242
5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005244 fi
5245fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005246{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5247echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005248 if test $gt_cv_c_long_double = yes; then
5249
5250cat >>confdefs.h <<\_ACEOF
5251#define HAVE_LONG_DOUBLE 1
5252_ACEOF
5253
5254 fi
5255
5256
Theodore Ts'oe1052142006-10-21 21:46:47 -04005257 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5258echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005259if test "${gt_cv_c_wchar_t+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 cat >conftest.$ac_ext <<_ACEOF
5263/* confdefs.h. */
5264_ACEOF
5265cat confdefs.h >>conftest.$ac_ext
5266cat >>conftest.$ac_ext <<_ACEOF
5267/* end confdefs.h. */
5268#include <stddef.h>
5269 wchar_t foo = (wchar_t)'\0';
5270int
5271main ()
5272{
5273
5274 ;
5275 return 0;
5276}
5277_ACEOF
5278rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005279if { (ac_try="$ac_compile"
5280case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283esac
5284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005295 gt_cv_c_wchar_t=yes
5296else
5297 echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
Theodore Ts'oe1052142006-10-21 21:46:47 -04005300 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005301fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005302
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005304fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005305{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5306echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005307 if test $gt_cv_c_wchar_t = yes; then
5308
5309cat >>confdefs.h <<\_ACEOF
5310#define HAVE_WCHAR_T 1
5311_ACEOF
5312
5313 fi
5314
5315
Theodore Ts'oe1052142006-10-21 21:46:47 -04005316 { echo "$as_me:$LINENO: checking for wint_t" >&5
5317echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005318if test "${gt_cv_c_wint_t+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321 cat >conftest.$ac_ext <<_ACEOF
5322/* confdefs.h. */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327#include <wchar.h>
5328 wint_t foo = (wchar_t)'\0';
5329int
5330main ()
5331{
5332
5333 ;
5334 return 0;
5335}
5336_ACEOF
5337rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005338if { (ac_try="$ac_compile"
5339case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342esac
5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005350 (exit $ac_status); } && {
5351 test -z "$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5353 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005354 gt_cv_c_wint_t=yes
5355else
5356 echo "$as_me: failed program was:" >&5
5357sed 's/^/| /' conftest.$ac_ext >&5
5358
Theodore Ts'oe1052142006-10-21 21:46:47 -04005359 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005361
5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005363fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005364{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5365echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005366 if test $gt_cv_c_wint_t = yes; then
5367
5368cat >>confdefs.h <<\_ACEOF
5369#define HAVE_WINT_T 1
5370_ACEOF
5371
5372 fi
5373
5374
Theodore Ts'oe1052142006-10-21 21:46:47 -04005375 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5376echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005377if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380 cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h. */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h. */
5386#include <sys/types.h>
5387#include <inttypes.h>
5388int
5389main ()
5390{
5391uintmax_t i = (uintmax_t) -1;
5392 ;
5393 return 0;
5394}
5395_ACEOF
5396rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005397if { (ac_try="$ac_compile"
5398case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401esac
5402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005409 (exit $ac_status); } && {
5410 test -z "$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005413 jm_ac_cv_header_inttypes_h=yes
5414else
5415 echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
Theodore Ts'oe1052142006-10-21 21:46:47 -04005418 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005419fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005420
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005422fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005423{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5424echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005425 if test $jm_ac_cv_header_inttypes_h = yes; then
5426
5427cat >>confdefs.h <<_ACEOF
5428#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5429_ACEOF
5430
5431 fi
5432
5433
Theodore Ts'oe1052142006-10-21 21:46:47 -04005434 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5435echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005436if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439 cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h. */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h. */
5445#include <sys/types.h>
5446#include <stdint.h>
5447int
5448main ()
5449{
5450uintmax_t i = (uintmax_t) -1;
5451 ;
5452 return 0;
5453}
5454_ACEOF
5455rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005456if { (ac_try="$ac_compile"
5457case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460esac
5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005472 jm_ac_cv_header_stdint_h=yes
5473else
5474 echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
Theodore Ts'oe1052142006-10-21 21:46:47 -04005477 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005478fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005479
5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005481fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005482{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5483echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005484 if test $jm_ac_cv_header_stdint_h = yes; then
5485
5486cat >>confdefs.h <<_ACEOF
5487#define HAVE_STDINT_H_WITH_UINTMAX 1
5488_ACEOF
5489
5490 fi
5491
5492
5493
5494
Theodore Ts'oe1052142006-10-21 21:46:47 -04005495 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5496echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005497if test "${gt_cv_c_intmax_t+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
5500 cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h. */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h. */
5506
5507#include <stddef.h>
5508#include <stdlib.h>
5509#if HAVE_STDINT_H_WITH_UINTMAX
5510#include <stdint.h>
5511#endif
5512#if HAVE_INTTYPES_H_WITH_UINTMAX
5513#include <inttypes.h>
5514#endif
5515
5516int
5517main ()
5518{
5519intmax_t x = -1;
5520 ;
5521 return 0;
5522}
5523_ACEOF
5524rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005525if { (ac_try="$ac_compile"
5526case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5529esac
5530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005537 (exit $ac_status); } && {
5538 test -z "$ac_c_werror_flag" ||
5539 test ! -s conftest.err
5540 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005541 gt_cv_c_intmax_t=yes
5542else
5543 echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
Theodore Ts'oe1052142006-10-21 21:46:47 -04005546 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005548
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005550fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005551{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5552echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005553 if test $gt_cv_c_intmax_t = yes; then
5554
5555cat >>confdefs.h <<\_ACEOF
5556#define HAVE_INTMAX_T 1
5557_ACEOF
5558
5559 fi
5560
5561
5562
Theodore Ts'oe1052142006-10-21 21:46:47 -04005563 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5564echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005565if test "${gt_cv_func_printf_posix+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
5568
5569 if test "$cross_compiling" = yes; then
5570
5571 cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h. */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
5576/* end confdefs.h. */
5577
5578#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5579 notposix
5580#endif
5581
5582_ACEOF
5583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584 $EGREP "notposix" >/dev/null 2>&1; then
5585 gt_cv_func_printf_posix="guessing no"
5586else
5587 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005588fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005589rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005591
5592else
5593 cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h. */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h. */
5599
5600#include <stdio.h>
5601#include <string.h>
5602/* The string "%2$d %1$d", with dollar characters protected from the shell's
5603 dollar expansion (possibly an autoconf bug). */
5604static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5605static char buf[100];
5606int main ()
5607{
5608 sprintf (buf, format, 33, 55);
5609 return (strcmp (buf, "55 33") != 0);
5610}
5611_ACEOF
5612rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005613if { (ac_try="$ac_link"
5614case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005623 { (case "(($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_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 gt_cv_func_printf_posix=yes
5633else
5634 echo "$as_me: program exited with status $ac_status" >&5
5635echo "$as_me: failed program was:" >&5
5636sed 's/^/| /' conftest.$ac_ext >&5
5637
5638( exit $ac_status )
5639gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005641rm -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 -05005642fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005643
Theodore Ts'oe1052142006-10-21 21:46:47 -04005644
5645
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005647{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5648echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005649 case $gt_cv_func_printf_posix in
5650 *yes)
5651
5652cat >>confdefs.h <<\_ACEOF
5653#define HAVE_POSIX_PRINTF 1
5654_ACEOF
5655
5656 ;;
5657 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005658
5659# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5660# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005661{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5662echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663if test "${ac_cv_working_alloca_h+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005665else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005666 cat >conftest.$ac_ext <<_ACEOF
5667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005672#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005673int
5674main ()
5675{
5676char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005677 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005678 ;
5679 return 0;
5680}
5681_ACEOF
5682rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005683if { (ac_try="$ac_link"
5684case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687esac
5688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest$ac_exeext &&
5699 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005700 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005701else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005702 echo "$as_me: failed program was:" >&5
5703sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005704
Theodore Ts'oe1052142006-10-21 21:46:47 -04005705 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005706fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005707
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005709 conftest$ac_exeext conftest.$ac_ext
5710fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005711{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5712echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005713if test $ac_cv_working_alloca_h = yes; then
5714
5715cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005716#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005718
5719fi
5720
Theodore Ts'oe1052142006-10-21 21:46:47 -04005721{ echo "$as_me:$LINENO: checking for alloca" >&5
5722echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005723if test "${ac_cv_func_alloca_works+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005725else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005726 cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005732#ifdef __GNUC__
5733# define alloca __builtin_alloca
5734#else
5735# ifdef _MSC_VER
5736# include <malloc.h>
5737# define alloca _alloca
5738# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005739# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005740# include <alloca.h>
5741# else
5742# ifdef _AIX
5743 #pragma alloca
5744# else
5745# ifndef alloca /* predefined by HP cc +Olibcalls */
5746char *alloca ();
5747# endif
5748# endif
5749# endif
5750# endif
5751#endif
5752
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005753int
5754main ()
5755{
5756char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005758 ;
5759 return 0;
5760}
5761_ACEOF
5762rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005763if { (ac_try="$ac_link"
5764case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767esac
5768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005775 (exit $ac_status); } && {
5776 test -z "$ac_c_werror_flag" ||
5777 test ! -s conftest.err
5778 } && test -s conftest$ac_exeext &&
5779 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005780 ac_cv_func_alloca_works=yes
5781else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005782 echo "$as_me: failed program was:" >&5
5783sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005784
Theodore Ts'oe1052142006-10-21 21:46:47 -04005785 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005786fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005787
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005789 conftest$ac_exeext conftest.$ac_ext
5790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005791{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5792echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005793
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005794if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005795
5796cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005797#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005798_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005799
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005800else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005801 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5802# that cause trouble. Some versions do not even contain alloca or
5803# contain a buggy version. If you still want to use their alloca,
5804# use ar to extract alloca.o from them instead of compiling alloca.c.
5805
Theodore Ts'oe1052142006-10-21 21:46:47 -04005806ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005807
5808cat >>confdefs.h <<\_ACEOF
5809#define C_ALLOCA 1
5810_ACEOF
5811
5812
Theodore Ts'oe1052142006-10-21 21:46:47 -04005813{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5814echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005815if test "${ac_cv_os_cray+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005824#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005825webecray
5826#else
5827wenotbecray
5828#endif
5829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005830_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005832 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005833 ac_cv_os_cray=yes
5834else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005835 ac_cv_os_cray=no
5836fi
5837rm -f conftest*
5838
5839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005840{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5841echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005842if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005843 for ac_func in _getb67 GETB67 getb67; do
5844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04005845{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005848 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005849else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005850 cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
5856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5858#define $ac_func innocuous_$ac_func
5859
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005860/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005861 which can conflict with char $ac_func (); below.
5862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5863 <limits.h> exists even on freestanding compilers. */
5864
5865#ifdef __STDC__
5866# include <limits.h>
5867#else
5868# include <assert.h>
5869#endif
5870
5871#undef $ac_func
5872
Theodore Ts'oe1052142006-10-21 21:46:47 -04005873/* Override any GCC internal prototype to avoid an error.
5874 Use char because int might match the return type of a GCC
5875 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005876#ifdef __cplusplus
5877extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005878#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005879char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005880/* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005883#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005884choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005885#endif
5886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005887int
5888main ()
5889{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005890return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005891 ;
5892 return 0;
5893}
5894_ACEOF
5895rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005896if { (ac_try="$ac_link"
5897case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest$ac_exeext &&
5912 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005913 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005914else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005915 echo "$as_me: failed program was:" >&5
5916sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005917
Theodore Ts'oe1052142006-10-21 21:46:47 -04005918 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005919fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005920
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005922 conftest$ac_exeext conftest.$ac_ext
5923fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005924ac_res=`eval echo '${'$as_ac_var'}'`
5925 { echo "$as_me:$LINENO: result: $ac_res" >&5
5926echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005927if test `eval echo '${'$as_ac_var'}'` = yes; then
5928
5929cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005930#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005931_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005933 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005934fi
5935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005936 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005937fi
5938
Theodore Ts'oe1052142006-10-21 21:46:47 -04005939{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5940echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005941if test "${ac_cv_c_stack_direction+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005943else
5944 if test "$cross_compiling" = yes; then
5945 ac_cv_c_stack_direction=0
5946else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005947 cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005953$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005954int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005955find_stack_direction ()
5956{
5957 static char *addr = 0;
5958 auto char dummy;
5959 if (addr == 0)
5960 {
5961 addr = &dummy;
5962 return find_stack_direction ();
5963 }
5964 else
5965 return (&dummy > addr) ? 1 : -1;
5966}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005967
5968int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005969main ()
5970{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005971 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005972}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005973_ACEOF
5974rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005975if { (ac_try="$ac_link"
5976case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005994 ac_cv_c_stack_direction=1
5995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996 echo "$as_me: program exited with status $ac_status" >&5
5997echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000( exit $ac_status )
6001ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006003rm -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 -05006004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006005
6006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006007fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006008{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6009echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006012#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006013_ACEOF
6014
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006015
6016fi
6017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018
6019
6020for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006021do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006028fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006029ac_res=`eval echo '${'$as_ac_Header'}'`
6030 { echo "$as_me:$LINENO: result: $ac_res" >&5
6031echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006032else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006033 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006034{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006036cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h. */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h. */
6042$ac_includes_default
6043#include <$ac_header>
6044_ACEOF
6045rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006046if { (ac_try="$ac_compile"
6047case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050esac
6051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062 ac_header_compiler=yes
6063else
6064 echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
6066
Theodore Ts'oe1052142006-10-21 21:46:47 -04006067 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006069
6070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6072echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073
6074# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006075{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h. */
6083#include <$ac_header>
6084_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006085if { (ac_try="$ac_cpp conftest.$ac_ext"
6086case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089esac
6090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006097 (exit $ac_status); } >/dev/null && {
6098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6100 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101 ac_header_preproc=yes
6102else
6103 echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 ac_header_preproc=no
6107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006108
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006110{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6111echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006112
6113# So? What about this header?
6114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6115 yes:no: )
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6120 ac_header_preproc=yes
6121 ;;
6122 no:yes:* )
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6126echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6130echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006135
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136 ;;
6137esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006138{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 eval "$as_ac_Header=\$ac_header_preproc"
6144fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006145ac_res=`eval echo '${'$as_ac_Header'}'`
6146 { echo "$as_me:$LINENO: result: $ac_res" >&5
6147echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006148
6149fi
6150if test `eval echo '${'$as_ac_Header'}'` = yes; then
6151 cat >>confdefs.h <<_ACEOF
6152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6153_ACEOF
6154
6155fi
6156
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006157done
6158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006159
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006160for ac_func in getpagesize
6161do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006163{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6165if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006166 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006167else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006168 cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h. */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h. */
6174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6176#define $ac_func innocuous_$ac_func
6177
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006178/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179 which can conflict with char $ac_func (); below.
6180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181 <limits.h> exists even on freestanding compilers. */
6182
6183#ifdef __STDC__
6184# include <limits.h>
6185#else
6186# include <assert.h>
6187#endif
6188
6189#undef $ac_func
6190
Theodore Ts'oe1052142006-10-21 21:46:47 -04006191/* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006194#ifdef __cplusplus
6195extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006197char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006198/* The GNU C library defines this for functions which it implements
6199 to always fail with ENOSYS. Some functions are actually named
6200 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006201#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006202choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006203#endif
6204
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006205int
6206main ()
6207{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006208return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006209 ;
6210 return 0;
6211}
6212_ACEOF
6213rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006214if { (ac_try="$ac_link"
6215case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218esac
6219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest$ac_exeext &&
6230 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006231 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233 echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006235
Theodore Ts'oe1052142006-10-21 21:46:47 -04006236 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006237fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006238
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006240 conftest$ac_exeext conftest.$ac_ext
6241fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006242ac_res=`eval echo '${'$as_ac_var'}'`
6243 { echo "$as_me:$LINENO: result: $ac_res" >&5
6244echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006245if test `eval echo '${'$as_ac_var'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6248_ACEOF
6249
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006250fi
6251done
6252
Theodore Ts'oe1052142006-10-21 21:46:47 -04006253{ echo "$as_me:$LINENO: checking for working mmap" >&5
6254echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006255if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006257else
6258 if test "$cross_compiling" = yes; then
6259 ac_cv_func_mmap_fixed_mapped=no
6260else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006261 cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267$ac_includes_default
6268/* malloc might have been renamed as rpl_malloc. */
6269#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006270
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006271/* Thanks to Mike Haertel and Jim Avera for this test.
6272 Here is a matrix of mmap possibilities:
6273 mmap private not fixed
6274 mmap private fixed at somewhere currently unmapped
6275 mmap private fixed at somewhere already mapped
6276 mmap shared not fixed
6277 mmap shared fixed at somewhere currently unmapped
6278 mmap shared fixed at somewhere already mapped
6279 For private mappings, we should verify that changes cannot be read()
6280 back from the file, nor mmap's back from the file at a different
6281 address. (There have been systems where private was not correctly
6282 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006283 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006284 like early versions of FreeBSD and possibly contemporary NetBSD.)
6285 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006286 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006287
6288 Grep wants private fixed already mapped.
6289 The main things grep needs to know about mmap are:
6290 * does it exist and is it safe to write into the mmap'd area
6291 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006292
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006293#include <fcntl.h>
6294#include <sys/mman.h>
6295
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006296#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006297char *malloc ();
6298#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006299
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006300/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006301#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006302/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006303# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006304# define HAVE_SYS_PARAM_H 1
6305# endif
6306
6307# ifdef _SC_PAGESIZE
6308# define getpagesize() sysconf(_SC_PAGESIZE)
6309# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006310# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006311# include <sys/param.h>
6312# ifdef EXEC_PAGESIZE
6313# define getpagesize() EXEC_PAGESIZE
6314# else /* no EXEC_PAGESIZE */
6315# ifdef NBPG
6316# define getpagesize() NBPG * CLSIZE
6317# ifndef CLSIZE
6318# define CLSIZE 1
6319# endif /* no CLSIZE */
6320# else /* no NBPG */
6321# ifdef NBPC
6322# define getpagesize() NBPC
6323# else /* no NBPC */
6324# ifdef PAGESIZE
6325# define getpagesize() PAGESIZE
6326# endif /* PAGESIZE */
6327# endif /* no NBPC */
6328# endif /* no NBPG */
6329# endif /* no EXEC_PAGESIZE */
6330# else /* no HAVE_SYS_PARAM_H */
6331# define getpagesize() 8192 /* punt totally */
6332# endif /* no HAVE_SYS_PARAM_H */
6333# endif /* no _SC_PAGESIZE */
6334
6335#endif /* no HAVE_GETPAGESIZE */
6336
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006337int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006339{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006340 char *data, *data2, *data3;
6341 int i, pagesize;
6342 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006343
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006344 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346 /* First, make a file with some known garbage in it. */
6347 data = (char *) malloc (pagesize);
6348 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006349 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006350 for (i = 0; i < pagesize; ++i)
6351 *(data + i) = rand ();
6352 umask (0);
6353 fd = creat ("conftest.mmap", 0600);
6354 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006355 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006356 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006357 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006358 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006360 /* Next, try to mmap the file at a fixed address which already has
6361 something else allocated at it. If we can, also make sure that
6362 we see the same garbage. */
6363 fd = open ("conftest.mmap", O_RDWR);
6364 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006365 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366 data2 = (char *) malloc (2 * pagesize);
6367 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006368 return 1;
6369 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006370 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6371 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006372 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373 for (i = 0; i < pagesize; ++i)
6374 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006375 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006377 /* Finally, make sure that changes to the mapped area do not
6378 percolate back to the file as seen by read(). (This is a bug on
6379 some variants of i386 svr4.0.) */
6380 for (i = 0; i < pagesize; ++i)
6381 *(data2 + i) = *(data2 + i) + 1;
6382 data3 = (char *) malloc (pagesize);
6383 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006384 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006385 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006386 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006387 for (i = 0; i < pagesize; ++i)
6388 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006389 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006390 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006391 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006392}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393_ACEOF
6394rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006395if { (ac_try="$ac_link"
6396case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006414 ac_cv_func_mmap_fixed_mapped=yes
6415else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416 echo "$as_me: program exited with status $ac_status" >&5
6417echo "$as_me: failed program was:" >&5
6418sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006420( exit $ac_status )
6421ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006422fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006423rm -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 -05006424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006425
6426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006427fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006428{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6429echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006430if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006431
6432cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006433#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006434_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006435
6436fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006437rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006438
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006439
Theodore Ts'oe1052142006-10-21 21:46:47 -04006440 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6441echo $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 -05006442if test "${ac_cv_gnu_library_2_1+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006444else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006445 cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h. */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006451
6452#include <features.h>
6453#ifdef __GNU_LIBRARY__
6454 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6455 Lucky GNU user
6456 #endif
6457#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458
6459_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006462 ac_cv_gnu_library_2_1=yes
6463else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006464 ac_cv_gnu_library_2_1=no
6465fi
6466rm -f conftest*
6467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468
6469
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006471{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6472echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006473
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006474 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006475
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006477
6478
Theodore Ts'oe1052142006-10-21 21:46:47 -04006479 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6480echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006483else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006484
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006485 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006487 # Guess based on the CPU.
6488 case "$host_cpu" in
6489 alpha* | i3456786 | m68k | s390*)
6490 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6491 *)
6492 gt_cv_int_divbyzero_sigfpe="guessing no";;
6493 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006494
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006495else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006496 cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006502
6503#include <stdlib.h>
6504#include <signal.h>
6505
6506static void
6507#ifdef __cplusplus
6508sigfpe_handler (int sig)
6509#else
6510sigfpe_handler (sig) int sig;
6511#endif
6512{
6513 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6514 exit (sig != SIGFPE);
6515}
6516
6517int x = 1;
6518int y = 0;
6519int z;
6520int nan;
6521
6522int main ()
6523{
6524 signal (SIGFPE, sigfpe_handler);
6525/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6526#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6527 signal (SIGTRAP, sigfpe_handler);
6528#endif
6529/* Linux/SPARC yields signal SIGILL. */
6530#if defined (__sparc__) && defined (__linux__)
6531 signal (SIGILL, sigfpe_handler);
6532#endif
6533
6534 z = x / y;
6535 nan = y / y;
6536 exit (1);
6537}
6538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006539_ACEOF
6540rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006541if { (ac_try="$ac_link"
6542case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545esac
6546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006551 { (case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554esac
6555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006560 gt_cv_int_divbyzero_sigfpe=yes
6561else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562 echo "$as_me: program exited with status $ac_status" >&5
6563echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
6566( exit $ac_status )
6567gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006569rm -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 -04006570fi
6571
Theodore Ts'oe1052142006-10-21 21:46:47 -04006572
6573
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006575{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6576echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006577 case "$gt_cv_int_divbyzero_sigfpe" in
6578 *yes) value=1;;
6579 *) value=0;;
6580 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006581
6582cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006583#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006585
6586
6587
Theodore Ts'oe1052142006-10-21 21:46:47 -04006588 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6589echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006590if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592else
6593 cat >conftest.$ac_ext <<_ACEOF
6594/* confdefs.h. */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h. */
6599unsigned long long ull = 1ULL; int i = 63;
6600int
6601main ()
6602{
6603unsigned long long ullmax = (unsigned long long) -1;
6604 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6605 ;
6606 return 0;
6607}
6608_ACEOF
6609rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006610if { (ac_try="$ac_link"
6611case "(($ac_try" in
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6614esac
6615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest$ac_exeext &&
6626 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006627 ac_cv_type_unsigned_long_long=yes
6628else
6629 echo "$as_me: failed program was:" >&5
6630sed 's/^/| /' conftest.$ac_ext >&5
6631
Theodore Ts'oe1052142006-10-21 21:46:47 -04006632 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006634
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636 conftest$ac_exeext conftest.$ac_ext
6637fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006638{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6639echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006640 if test $ac_cv_type_unsigned_long_long = yes; then
6641
6642cat >>confdefs.h <<\_ACEOF
6643#define HAVE_UNSIGNED_LONG_LONG 1
6644_ACEOF
6645
6646 fi
6647
6648
6649
6650
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006651 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 -05006652
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006653 test $ac_cv_type_unsigned_long_long = yes \
6654 && ac_type='unsigned long long' \
6655 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656
6657cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006658#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006659_ACEOF
6660
6661 else
6662
6663cat >>confdefs.h <<\_ACEOF
6664#define HAVE_UINTMAX_T 1
6665_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006666
6667 fi
6668
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006669
Theodore Ts'oe1052142006-10-21 21:46:47 -04006670 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6671echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672if test "${gt_cv_header_inttypes_h+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006674else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675
6676 cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h. */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006682#include <sys/types.h>
6683#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684int
6685main ()
6686{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006688 ;
6689 return 0;
6690}
6691_ACEOF
6692rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006693if { (ac_try="$ac_compile"
6694case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697esac
6698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006700 ac_status=$?
6701 grep -v '^ *+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006705 (exit $ac_status); } && {
6706 test -z "$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006709 gt_cv_header_inttypes_h=yes
6710else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006711 echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006713
Theodore Ts'oe1052142006-10-21 21:46:47 -04006714 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006716
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718
6719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006720{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6721echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006722 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723
6724cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006725#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006727
6728 fi
6729
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006732 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04006733 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6734echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006735if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006737else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738
6739 cat >conftest.$ac_ext <<_ACEOF
6740/* confdefs.h. */
6741_ACEOF
6742cat confdefs.h >>conftest.$ac_ext
6743cat >>conftest.$ac_ext <<_ACEOF
6744/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006745#include <inttypes.h>
6746#ifdef PRId32
6747char *p = PRId32;
6748#endif
6749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750int
6751main ()
6752{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006753
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754 ;
6755 return 0;
6756}
6757_ACEOF
6758rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006759if { (ac_try="$ac_compile"
6760case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6763esac
6764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766 ac_status=$?
6767 grep -v '^ *+' conftest.er1 >conftest.err
6768 rm -f conftest.er1
6769 cat conftest.err >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006771 (exit $ac_status); } && {
6772 test -z "$ac_c_werror_flag" ||
6773 test ! -s conftest.err
6774 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006775 gt_cv_inttypes_pri_broken=no
6776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777 echo "$as_me: failed program was:" >&5
6778sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006779
Theodore Ts'oe1052142006-10-21 21:46:47 -04006780 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006782
6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784
6785fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006786{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6787echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006788 fi
6789 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006790
6791cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006792#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006793_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006794
6795 fi
6796
6797
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006798
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799for ac_header in stdint.h
6800do
6801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006808ac_res=`eval echo '${'$as_ac_Header'}'`
6809 { echo "$as_me:$LINENO: result: $ac_res" >&5
6810echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811else
6812 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006813{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815cat >conftest.$ac_ext <<_ACEOF
6816/* confdefs.h. */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */
6821$ac_includes_default
6822#include <$ac_header>
6823_ACEOF
6824rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006825if { (ac_try="$ac_compile"
6826case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
6830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006841 ac_header_compiler=yes
6842else
6843 echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
6845
Theodore Ts'oe1052142006-10-21 21:46:47 -04006846 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006848
6849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6851echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006852
6853# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006854{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856cat >conftest.$ac_ext <<_ACEOF
6857/* confdefs.h. */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h. */
6862#include <$ac_header>
6863_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006864if { (ac_try="$ac_cpp conftest.$ac_ext"
6865case "(($ac_try" in
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6868esac
6869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871 ac_status=$?
6872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006876 (exit $ac_status); } >/dev/null && {
6877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880 ac_header_preproc=yes
6881else
6882 echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 ac_header_preproc=no
6886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006887
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006889{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6890echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006891
6892# So? What about this header?
6893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6894 yes:no: )
6895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6899 ac_header_preproc=yes
6900 ;;
6901 no:yes:* )
6902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6905echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6909echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915 ;;
6916esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006917{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922 eval "$as_ac_Header=\$ac_header_preproc"
6923fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006924ac_res=`eval echo '${'$as_ac_Header'}'`
6925 { echo "$as_me:$LINENO: result: $ac_res" >&5
6926echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927
6928fi
6929if test `eval echo '${'$as_ac_Header'}'` = yes; then
6930 cat >>confdefs.h <<_ACEOF
6931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6932_ACEOF
6933
6934fi
6935
6936done
6937
Theodore Ts'oe1052142006-10-21 21:46:47 -04006938 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6939echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940 result=
6941 cat >conftest.$ac_ext <<_ACEOF
6942/* confdefs.h. */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h. */
6947
6948#include <limits.h>
6949#if HAVE_STDINT_H
6950#include <stdint.h>
6951#endif
6952#ifdef SIZE_MAX
6953Found it
6954#endif
6955
6956_ACEOF
6957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "Found it" >/dev/null 2>&1; then
6959 result=yes
6960fi
6961rm -f conftest*
6962
6963 if test -z "$result"; then
6964 if test "$cross_compiling" = yes; then
6965 # Depending upon the size, compute the lo and hi bounds.
6966cat >conftest.$ac_ext <<_ACEOF
6967/* confdefs.h. */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h. */
6972#include <stddef.h>
6973int
6974main ()
6975{
6976static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6977test_array [0] = 0
6978
6979 ;
6980 return 0;
6981}
6982_ACEOF
6983rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006984if { (ac_try="$ac_compile"
6985case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988esac
6989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007000 ac_lo=0 ac_mid=0
7001 while :; do
7002 cat >conftest.$ac_ext <<_ACEOF
7003/* confdefs.h. */
7004_ACEOF
7005cat confdefs.h >>conftest.$ac_ext
7006cat >>conftest.$ac_ext <<_ACEOF
7007/* end confdefs.h. */
7008#include <stddef.h>
7009int
7010main ()
7011{
7012static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7013test_array [0] = 0
7014
7015 ;
7016 return 0;
7017}
7018_ACEOF
7019rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007020if { (ac_try="$ac_compile"
7021case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024esac
7025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007036 ac_hi=$ac_mid; break
7037else
7038 echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
Theodore Ts'oe1052142006-10-21 21:46:47 -04007041 ac_lo=`expr $ac_mid + 1`
7042 if test $ac_lo -le $ac_mid; then
7043 ac_lo= ac_hi=
7044 break
7045 fi
7046 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007048
7049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050 done
7051else
7052 echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
Theodore Ts'oe1052142006-10-21 21:46:47 -04007055 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
7061#include <stddef.h>
7062int
7063main ()
7064{
7065static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7066test_array [0] = 0
7067
7068 ;
7069 return 0;
7070}
7071_ACEOF
7072rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007073if { (ac_try="$ac_compile"
7074case "(($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_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007085 (exit $ac_status); } && {
7086 test -z "$ac_c_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089 ac_hi=-1 ac_mid=-1
7090 while :; do
7091 cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h. */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h. */
7097#include <stddef.h>
7098int
7099main ()
7100{
7101static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7102test_array [0] = 0
7103
7104 ;
7105 return 0;
7106}
7107_ACEOF
7108rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007109if { (ac_try="$ac_compile"
7110case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113esac
7114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125 ac_lo=$ac_mid; break
7126else
7127 echo "$as_me: failed program was:" >&5
7128sed 's/^/| /' conftest.$ac_ext >&5
7129
Theodore Ts'oe1052142006-10-21 21:46:47 -04007130 ac_hi=`expr '(' $ac_mid ')' - 1`
7131 if test $ac_mid -le $ac_hi; then
7132 ac_lo= ac_hi=
7133 break
7134 fi
7135 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007136fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007137
7138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139 done
7140else
7141 echo "$as_me: failed program was:" >&5
7142sed 's/^/| /' conftest.$ac_ext >&5
7143
Theodore Ts'oe1052142006-10-21 21:46:47 -04007144 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007145fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007146
7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007149
7150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151# Binary search between lo and hi bounds.
7152while test "x$ac_lo" != "x$ac_hi"; do
7153 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7154 cat >conftest.$ac_ext <<_ACEOF
7155/* confdefs.h. */
7156_ACEOF
7157cat confdefs.h >>conftest.$ac_ext
7158cat >>conftest.$ac_ext <<_ACEOF
7159/* end confdefs.h. */
7160#include <stddef.h>
7161int
7162main ()
7163{
7164static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7165test_array [0] = 0
7166
7167 ;
7168 return 0;
7169}
7170_ACEOF
7171rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007172if { (ac_try="$ac_compile"
7173case "(($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_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007188 ac_hi=$ac_mid
7189else
7190 echo "$as_me: failed program was:" >&5
7191sed 's/^/| /' conftest.$ac_ext >&5
7192
Theodore Ts'oe1052142006-10-21 21:46:47 -04007193 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007195
7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007197done
7198case $ac_lo in
7199?*) res_hi=$ac_lo;;
7200'') result=? ;;
7201esac
7202else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203 cat >conftest.$ac_ext <<_ACEOF
7204/* confdefs.h. */
7205_ACEOF
7206cat confdefs.h >>conftest.$ac_ext
7207cat >>conftest.$ac_ext <<_ACEOF
7208/* end confdefs.h. */
7209#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007210static long int longval () { return ~(size_t)0 / 10; }
7211static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007212#include <stdio.h>
7213#include <stdlib.h>
7214int
7215main ()
7216{
7217
7218 FILE *f = fopen ("conftest.val", "w");
7219 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007220 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221 if ((~(size_t)0 / 10) < 0)
7222 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007223 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007225 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007226 fprintf (f, "%ld\n", i);
7227 }
7228 else
7229 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007230 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007231 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007232 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233 fprintf (f, "%lu\n", i);
7234 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007235 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236
7237 ;
7238 return 0;
7239}
7240_ACEOF
7241rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007242if { (ac_try="$ac_link"
7243case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246esac
7247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007252 { (case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7255esac
7256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 res_hi=`cat conftest.val`
7262else
7263 echo "$as_me: program exited with status $ac_status" >&5
7264echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267( exit $ac_status )
7268result=?
7269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007270rm -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 -05007271fi
7272rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007273
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007274 if test "$cross_compiling" = yes; then
7275 # Depending upon the size, compute the lo and hi bounds.
7276cat >conftest.$ac_ext <<_ACEOF
7277/* confdefs.h. */
7278_ACEOF
7279cat confdefs.h >>conftest.$ac_ext
7280cat >>conftest.$ac_ext <<_ACEOF
7281/* end confdefs.h. */
7282#include <stddef.h>
7283int
7284main ()
7285{
7286static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7287test_array [0] = 0
7288
7289 ;
7290 return 0;
7291}
7292_ACEOF
7293rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007294if { (ac_try="$ac_compile"
7295case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298esac
7299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007310 ac_lo=0 ac_mid=0
7311 while :; do
7312 cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h. */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h. */
7318#include <stddef.h>
7319int
7320main ()
7321{
7322static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7323test_array [0] = 0
7324
7325 ;
7326 return 0;
7327}
7328_ACEOF
7329rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007330if { (ac_try="$ac_compile"
7331case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334esac
7335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007346 ac_hi=$ac_mid; break
7347else
7348 echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
Theodore Ts'oe1052142006-10-21 21:46:47 -04007351 ac_lo=`expr $ac_mid + 1`
7352 if test $ac_lo -le $ac_mid; then
7353 ac_lo= ac_hi=
7354 break
7355 fi
7356 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007357fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007358
7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007360 done
7361else
7362 echo "$as_me: failed program was:" >&5
7363sed 's/^/| /' conftest.$ac_ext >&5
7364
Theodore Ts'oe1052142006-10-21 21:46:47 -04007365 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007366/* confdefs.h. */
7367_ACEOF
7368cat confdefs.h >>conftest.$ac_ext
7369cat >>conftest.$ac_ext <<_ACEOF
7370/* end confdefs.h. */
7371#include <stddef.h>
7372int
7373main ()
7374{
7375static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7376test_array [0] = 0
7377
7378 ;
7379 return 0;
7380}
7381_ACEOF
7382rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007383if { (ac_try="$ac_compile"
7384case "(($ac_try" in
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7387esac
7388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399 ac_hi=-1 ac_mid=-1
7400 while :; do
7401 cat >conftest.$ac_ext <<_ACEOF
7402/* confdefs.h. */
7403_ACEOF
7404cat confdefs.h >>conftest.$ac_ext
7405cat >>conftest.$ac_ext <<_ACEOF
7406/* end confdefs.h. */
7407#include <stddef.h>
7408int
7409main ()
7410{
7411static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7412test_array [0] = 0
7413
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007419if { (ac_try="$ac_compile"
7420case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423esac
7424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007435 ac_lo=$ac_mid; break
7436else
7437 echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
Theodore Ts'oe1052142006-10-21 21:46:47 -04007440 ac_hi=`expr '(' $ac_mid ')' - 1`
7441 if test $ac_mid -le $ac_hi; then
7442 ac_lo= ac_hi=
7443 break
7444 fi
7445 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007447
7448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007449 done
7450else
7451 echo "$as_me: failed program was:" >&5
7452sed 's/^/| /' conftest.$ac_ext >&5
7453
Theodore Ts'oe1052142006-10-21 21:46:47 -04007454 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007456
7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007458fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007459
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007461# Binary search between lo and hi bounds.
7462while test "x$ac_lo" != "x$ac_hi"; do
7463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7464 cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h. */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h. */
7470#include <stddef.h>
7471int
7472main ()
7473{
7474static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7475test_array [0] = 0
7476
7477 ;
7478 return 0;
7479}
7480_ACEOF
7481rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007482if { (ac_try="$ac_compile"
7483case "(($ac_try" in
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7486esac
7487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007489 ac_status=$?
7490 grep -v '^ *+' conftest.er1 >conftest.err
7491 rm -f conftest.er1
7492 cat conftest.err >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007498 ac_hi=$ac_mid
7499else
7500 echo "$as_me: failed program was:" >&5
7501sed 's/^/| /' conftest.$ac_ext >&5
7502
Theodore Ts'oe1052142006-10-21 21:46:47 -04007503 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007505
7506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507done
7508case $ac_lo in
7509?*) res_lo=$ac_lo;;
7510'') result=? ;;
7511esac
7512else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513 cat >conftest.$ac_ext <<_ACEOF
7514/* confdefs.h. */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h. */
7519#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007520static long int longval () { return ~(size_t)0 % 10; }
7521static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522#include <stdio.h>
7523#include <stdlib.h>
7524int
7525main ()
7526{
7527
7528 FILE *f = fopen ("conftest.val", "w");
7529 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007530 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531 if ((~(size_t)0 % 10) < 0)
7532 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007533 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007534 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007535 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536 fprintf (f, "%ld\n", i);
7537 }
7538 else
7539 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007540 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007542 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543 fprintf (f, "%lu\n", i);
7544 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007545 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007546
7547 ;
7548 return 0;
7549}
7550_ACEOF
7551rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007552if { (ac_try="$ac_link"
7553case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556esac
7557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007562 { (case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565esac
7566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 res_lo=`cat conftest.val`
7572else
7573 echo "$as_me: program exited with status $ac_status" >&5
7574echo "$as_me: failed program was:" >&5
7575sed 's/^/| /' conftest.$ac_ext >&5
7576
7577( exit $ac_status )
7578result=?
7579fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007580rm -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 -05007581fi
7582rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007584 if test "$cross_compiling" = yes; then
7585 # Depending upon the size, compute the lo and hi bounds.
7586cat >conftest.$ac_ext <<_ACEOF
7587/* confdefs.h. */
7588_ACEOF
7589cat confdefs.h >>conftest.$ac_ext
7590cat >>conftest.$ac_ext <<_ACEOF
7591/* end confdefs.h. */
7592#include <stddef.h>
7593int
7594main ()
7595{
7596static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7597test_array [0] = 0
7598
7599 ;
7600 return 0;
7601}
7602_ACEOF
7603rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007604if { (ac_try="$ac_compile"
7605case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608esac
7609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620 ac_lo=0 ac_mid=0
7621 while :; do
7622 cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h. */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h. */
7628#include <stddef.h>
7629int
7630main ()
7631{
7632static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7633test_array [0] = 0
7634
7635 ;
7636 return 0;
7637}
7638_ACEOF
7639rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007640if { (ac_try="$ac_compile"
7641case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644esac
7645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656 ac_hi=$ac_mid; break
7657else
7658 echo "$as_me: failed program was:" >&5
7659sed 's/^/| /' conftest.$ac_ext >&5
7660
Theodore Ts'oe1052142006-10-21 21:46:47 -04007661 ac_lo=`expr $ac_mid + 1`
7662 if test $ac_lo -le $ac_mid; then
7663 ac_lo= ac_hi=
7664 break
7665 fi
7666 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007668
7669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670 done
7671else
7672 echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
Theodore Ts'oe1052142006-10-21 21:46:47 -04007675 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007676/* confdefs.h. */
7677_ACEOF
7678cat confdefs.h >>conftest.$ac_ext
7679cat >>conftest.$ac_ext <<_ACEOF
7680/* end confdefs.h. */
7681#include <stddef.h>
7682int
7683main ()
7684{
7685static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7686test_array [0] = 0
7687
7688 ;
7689 return 0;
7690}
7691_ACEOF
7692rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007693if { (ac_try="$ac_compile"
7694case "(($ac_try" in
7695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7697esac
7698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709 ac_hi=-1 ac_mid=-1
7710 while :; do
7711 cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
7717#include <stddef.h>
7718int
7719main ()
7720{
7721static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7722test_array [0] = 0
7723
7724 ;
7725 return 0;
7726}
7727_ACEOF
7728rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007729if { (ac_try="$ac_compile"
7730case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733esac
7734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007745 ac_lo=$ac_mid; break
7746else
7747 echo "$as_me: failed program was:" >&5
7748sed 's/^/| /' conftest.$ac_ext >&5
7749
Theodore Ts'oe1052142006-10-21 21:46:47 -04007750 ac_hi=`expr '(' $ac_mid ')' - 1`
7751 if test $ac_mid -le $ac_hi; then
7752 ac_lo= ac_hi=
7753 break
7754 fi
7755 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007756fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007757
7758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007759 done
7760else
7761 echo "$as_me: failed program was:" >&5
7762sed 's/^/| /' conftest.$ac_ext >&5
7763
Theodore Ts'oe1052142006-10-21 21:46:47 -04007764 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007765fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007766
7767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007768fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007769
7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007771# Binary search between lo and hi bounds.
7772while test "x$ac_lo" != "x$ac_hi"; do
7773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7774 cat >conftest.$ac_ext <<_ACEOF
7775/* confdefs.h. */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
7779/* end confdefs.h. */
7780#include <stddef.h>
7781int
7782main ()
7783{
7784static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7785test_array [0] = 0
7786
7787 ;
7788 return 0;
7789}
7790_ACEOF
7791rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007792if { (ac_try="$ac_compile"
7793case "(($ac_try" in
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7796esac
7797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007808 ac_hi=$ac_mid
7809else
7810 echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
Theodore Ts'oe1052142006-10-21 21:46:47 -04007813 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007814fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007815
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007817done
7818case $ac_lo in
7819?*) fits_in_uint=$ac_lo;;
7820'') result=? ;;
7821esac
7822else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007823 cat >conftest.$ac_ext <<_ACEOF
7824/* confdefs.h. */
7825_ACEOF
7826cat confdefs.h >>conftest.$ac_ext
7827cat >>conftest.$ac_ext <<_ACEOF
7828/* end confdefs.h. */
7829#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007830static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7831static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007832#include <stdio.h>
7833#include <stdlib.h>
7834int
7835main ()
7836{
7837
7838 FILE *f = fopen ("conftest.val", "w");
7839 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007840 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007841 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7842 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007843 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007844 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007845 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007846 fprintf (f, "%ld\n", i);
7847 }
7848 else
7849 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007850 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007851 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007852 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007853 fprintf (f, "%lu\n", i);
7854 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007855 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007856
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007862if { (ac_try="$ac_link"
7863case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866esac
7867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007872 { (case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875esac
7876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 fits_in_uint=`cat conftest.val`
7882else
7883 echo "$as_me: program exited with status $ac_status" >&5
7884echo "$as_me: failed program was:" >&5
7885sed 's/^/| /' conftest.$ac_ext >&5
7886
7887( exit $ac_status )
7888result=?
7889fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007890rm -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 -05007891fi
7892rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007893
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007894 if test "$fits_in_uint" = 1; then
7895 cat >conftest.$ac_ext <<_ACEOF
7896/* confdefs.h. */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
7900/* end confdefs.h. */
7901#include <stddef.h>
7902 extern size_t foo;
7903 extern unsigned long foo;
7904
7905int
7906main ()
7907{
7908
7909 ;
7910 return 0;
7911}
7912_ACEOF
7913rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007914if { (ac_try="$ac_compile"
7915case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918esac
7919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007926 (exit $ac_status); } && {
7927 test -z "$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7929 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007930 fits_in_uint=0
7931else
7932 echo "$as_me: failed program was:" >&5
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
Theodore Ts'oe1052142006-10-21 21:46:47 -04007935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007936fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007937
7938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939 fi
7940 if test -z "$result"; then
7941 if test "$fits_in_uint" = 1; then
7942 result="$res_hi$res_lo"U
7943 else
7944 result="$res_hi$res_lo"UL
7945 fi
7946 else
7947 result='~(size_t)0'
7948 fi
7949 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007950 { echo "$as_me:$LINENO: result: $result" >&5
7951echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007952 if test "$result" != yes; then
7953
7954cat >>confdefs.h <<_ACEOF
7955#define SIZE_MAX $result
7956_ACEOF
7957
7958 fi
7959
7960
7961
7962
7963for ac_header in stdint.h
7964do
7965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007972ac_res=`eval echo '${'$as_ac_Header'}'`
7973 { echo "$as_me:$LINENO: result: $ac_res" >&5
7974echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007975else
7976 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007977{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007979cat >conftest.$ac_ext <<_ACEOF
7980/* confdefs.h. */
7981_ACEOF
7982cat confdefs.h >>conftest.$ac_ext
7983cat >>conftest.$ac_ext <<_ACEOF
7984/* end confdefs.h. */
7985$ac_includes_default
7986#include <$ac_header>
7987_ACEOF
7988rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007989if { (ac_try="$ac_compile"
7990case "(($ac_try" in
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7993esac
7994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008001 (exit $ac_status); } && {
8002 test -z "$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008005 ac_header_compiler=yes
8006else
8007 echo "$as_me: failed program was:" >&5
8008sed 's/^/| /' conftest.$ac_ext >&5
8009
Theodore Ts'oe1052142006-10-21 21:46:47 -04008010 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008012
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8015echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008016
8017# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008018{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008020cat >conftest.$ac_ext <<_ACEOF
8021/* confdefs.h. */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h. */
8026#include <$ac_header>
8027_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008028if { (ac_try="$ac_cpp conftest.$ac_ext"
8029case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008040 (exit $ac_status); } >/dev/null && {
8041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8043 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008044 ac_header_preproc=yes
8045else
8046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 ac_header_preproc=no
8050fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008052rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008053{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008055
8056# So? What about this header?
8057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8058 yes:no: )
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8063 ac_header_preproc=yes
8064 ;;
8065 no:yes:* )
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8073echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008078
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008079 ;;
8080esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008081{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008084 echo $ECHO_N "(cached) $ECHO_C" >&6
8085else
8086 eval "$as_ac_Header=\$ac_header_preproc"
8087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008088ac_res=`eval echo '${'$as_ac_Header'}'`
8089 { echo "$as_me:$LINENO: result: $ac_res" >&5
8090echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008091
8092fi
8093if test `eval echo '${'$as_ac_Header'}'` = yes; then
8094 cat >>confdefs.h <<_ACEOF
8095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8096_ACEOF
8097
8098fi
8099
8100done
8101
8102
8103
8104 if test "X$prefix" = "XNONE"; then
8105 acl_final_prefix="$ac_default_prefix"
8106 else
8107 acl_final_prefix="$prefix"
8108 fi
8109 if test "X$exec_prefix" = "XNONE"; then
8110 acl_final_exec_prefix='${prefix}'
8111 else
8112 acl_final_exec_prefix="$exec_prefix"
8113 fi
8114 acl_save_prefix="$prefix"
8115 prefix="$acl_final_prefix"
8116 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8117 prefix="$acl_save_prefix"
8118
8119
Theodore Ts'oe1052142006-10-21 21:46:47 -04008120# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008121if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008123else
8124 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008125fi
8126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008127# Prepare PATH_SEPARATOR.
8128# The user is always right.
8129if test "${PATH_SEPARATOR+set}" != set; then
8130 echo "#! /bin/sh" >conf$$.sh
8131 echo "exit 0" >>conf$$.sh
8132 chmod +x conf$$.sh
8133 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8134 PATH_SEPARATOR=';'
8135 else
8136 PATH_SEPARATOR=:
8137 fi
8138 rm -f conf$$.sh
8139fi
8140ac_prog=ld
8141if test "$GCC" = yes; then
8142 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008143 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8144echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008145 case $host in
8146 *-*-mingw*)
8147 # gcc leaves a trailing carriage return which upsets mingw
8148 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8149 *)
8150 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8151 esac
8152 case $ac_prog in
8153 # Accept absolute paths.
8154 [\\/]* | [A-Za-z]:[\\/]*)
8155 re_direlt='/[^/][^/]*/\.\./'
8156 # Canonicalize the path of ld
8157 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8159 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8160 done
8161 test -z "$LD" && LD="$ac_prog"
8162 ;;
8163 "")
8164 # If it fails, then pretend we aren't using GCC.
8165 ac_prog=ld
8166 ;;
8167 *)
8168 # If it is relative, then search for the first ld in PATH.
8169 with_gnu_ld=unknown
8170 ;;
8171 esac
8172elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008173 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8174echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008175else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008176 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8177echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008178fi
8179if test "${acl_cv_path_LD+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182 if test -z "$LD"; then
8183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8184 for ac_dir in $PATH; do
8185 test -z "$ac_dir" && ac_dir=.
8186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8187 acl_cv_path_LD="$ac_dir/$ac_prog"
8188 # Check to see if the program is GNU ld. I'd rather use --version,
8189 # but apparently some GNU ld's only accept -v.
8190 # Break only if it was the GNU/non-GNU ld that we prefer.
8191 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8192 *GNU* | *'with BFD'*)
8193 test "$with_gnu_ld" != no && break ;;
8194 *)
8195 test "$with_gnu_ld" != yes && break ;;
8196 esac
8197 fi
8198 done
8199 IFS="$ac_save_ifs"
8200else
8201 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8202fi
8203fi
8204
8205LD="$acl_cv_path_LD"
8206if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008207 { echo "$as_me:$LINENO: result: $LD" >&5
8208echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008209else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008210 { echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008212fi
8213test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8214echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8215 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008216{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8217echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008218if test "${acl_cv_prog_gnu_ld+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220else
8221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8222case `$LD -v 2>&1 </dev/null` in
8223*GNU* | *'with BFD'*)
8224 acl_cv_prog_gnu_ld=yes ;;
8225*)
8226 acl_cv_prog_gnu_ld=no ;;
8227esac
8228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008229{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8230echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008231with_gnu_ld=$acl_cv_prog_gnu_ld
8232
8233
8234
Theodore Ts'oe1052142006-10-21 21:46:47 -04008235 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8236echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008237if test "${acl_cv_rpath+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239else
8240
8241 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8242 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8243 . ./conftest.sh
8244 rm -f ./conftest.sh
8245 acl_cv_rpath=done
8246
8247fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008248{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8249echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008250 wl="$acl_cv_wl"
8251 libext="$acl_cv_libext"
8252 shlibext="$acl_cv_shlibext"
8253 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8254 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8255 hardcode_direct="$acl_cv_hardcode_direct"
8256 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008257 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008258if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008259 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008260else
8261 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008262fi
8263
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008264
8265
8266
8267
8268
8269
8270
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008271 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008273 acl_save_prefix="$prefix"
8274 prefix="$acl_final_prefix"
8275 acl_save_exec_prefix="$exec_prefix"
8276 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008277
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008278 eval additional_includedir=\"$includedir\"
8279 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008280
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008281 exec_prefix="$acl_save_exec_prefix"
8282 prefix="$acl_save_prefix"
8283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008284
Theodore Ts'oe1052142006-10-21 21:46:47 -04008285# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008286if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008287 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008288 if test "X$withval" = "Xno"; then
8289 use_additional=no
8290 else
8291 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008293 acl_save_prefix="$prefix"
8294 prefix="$acl_final_prefix"
8295 acl_save_exec_prefix="$exec_prefix"
8296 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008297
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008298 eval additional_includedir=\"$includedir\"
8299 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008301 exec_prefix="$acl_save_exec_prefix"
8302 prefix="$acl_save_prefix"
8303
8304 else
8305 additional_includedir="$withval/include"
8306 additional_libdir="$withval/lib"
8307 fi
8308 fi
8309
Theodore Ts'oe1052142006-10-21 21:46:47 -04008310fi
8311
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008312 LIBICONV=
8313 LTLIBICONV=
8314 INCICONV=
8315 rpathdirs=
8316 ltrpathdirs=
8317 names_already_handled=
8318 names_next_round='iconv '
8319 while test -n "$names_next_round"; do
8320 names_this_round="$names_next_round"
8321 names_next_round=
8322 for name in $names_this_round; do
8323 already_handled=
8324 for n in $names_already_handled; do
8325 if test "$n" = "$name"; then
8326 already_handled=yes
8327 break
8328 fi
8329 done
8330 if test -z "$already_handled"; then
8331 names_already_handled="$names_already_handled $name"
8332 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8333 eval value=\"\$HAVE_LIB$uppername\"
8334 if test -n "$value"; then
8335 if test "$value" = yes; then
8336 eval value=\"\$LIB$uppername\"
8337 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8338 eval value=\"\$LTLIB$uppername\"
8339 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8340 else
8341 :
8342 fi
8343 else
8344 found_dir=
8345 found_la=
8346 found_so=
8347 found_a=
8348 if test $use_additional = yes; then
8349 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8350 found_dir="$additional_libdir"
8351 found_so="$additional_libdir/lib$name.$shlibext"
8352 if test -f "$additional_libdir/lib$name.la"; then
8353 found_la="$additional_libdir/lib$name.la"
8354 fi
8355 else
8356 if test -f "$additional_libdir/lib$name.$libext"; then
8357 found_dir="$additional_libdir"
8358 found_a="$additional_libdir/lib$name.$libext"
8359 if test -f "$additional_libdir/lib$name.la"; then
8360 found_la="$additional_libdir/lib$name.la"
8361 fi
8362 fi
8363 fi
8364 fi
8365 if test "X$found_dir" = "X"; then
8366 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008367
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008368 acl_save_prefix="$prefix"
8369 prefix="$acl_final_prefix"
8370 acl_save_exec_prefix="$exec_prefix"
8371 exec_prefix="$acl_final_exec_prefix"
8372 eval x=\"$x\"
8373 exec_prefix="$acl_save_exec_prefix"
8374 prefix="$acl_save_prefix"
8375
8376 case "$x" in
8377 -L*)
8378 dir=`echo "X$x" | sed -e 's/^X-L//'`
8379 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8380 found_dir="$dir"
8381 found_so="$dir/lib$name.$shlibext"
8382 if test -f "$dir/lib$name.la"; then
8383 found_la="$dir/lib$name.la"
8384 fi
8385 else
8386 if test -f "$dir/lib$name.$libext"; then
8387 found_dir="$dir"
8388 found_a="$dir/lib$name.$libext"
8389 if test -f "$dir/lib$name.la"; then
8390 found_la="$dir/lib$name.la"
8391 fi
8392 fi
8393 fi
8394 ;;
8395 esac
8396 if test "X$found_dir" != "X"; then
8397 break
8398 fi
8399 done
8400 fi
8401 if test "X$found_dir" != "X"; then
8402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8403 if test "X$found_so" != "X"; then
8404 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8405 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8406 else
8407 haveit=
8408 for x in $ltrpathdirs; do
8409 if test "X$x" = "X$found_dir"; then
8410 haveit=yes
8411 break
8412 fi
8413 done
8414 if test -z "$haveit"; then
8415 ltrpathdirs="$ltrpathdirs $found_dir"
8416 fi
8417 if test "$hardcode_direct" = yes; then
8418 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8419 else
8420 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8422 haveit=
8423 for x in $rpathdirs; do
8424 if test "X$x" = "X$found_dir"; then
8425 haveit=yes
8426 break
8427 fi
8428 done
8429 if test -z "$haveit"; then
8430 rpathdirs="$rpathdirs $found_dir"
8431 fi
8432 else
8433 haveit=
8434 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008435
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008436 acl_save_prefix="$prefix"
8437 prefix="$acl_final_prefix"
8438 acl_save_exec_prefix="$exec_prefix"
8439 exec_prefix="$acl_final_exec_prefix"
8440 eval x=\"$x\"
8441 exec_prefix="$acl_save_exec_prefix"
8442 prefix="$acl_save_prefix"
8443
8444 if test "X$x" = "X-L$found_dir"; then
8445 haveit=yes
8446 break
8447 fi
8448 done
8449 if test -z "$haveit"; then
8450 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8451 fi
8452 if test "$hardcode_minus_L" != no; then
8453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8454 else
8455 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8456 fi
8457 fi
8458 fi
8459 fi
8460 else
8461 if test "X$found_a" != "X"; then
8462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8463 else
8464 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8465 fi
8466 fi
8467 additional_includedir=
8468 case "$found_dir" in
8469 */lib | */lib/)
8470 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8471 additional_includedir="$basedir/include"
8472 ;;
8473 esac
8474 if test "X$additional_includedir" != "X"; then
8475 if test "X$additional_includedir" != "X/usr/include"; then
8476 haveit=
8477 if test "X$additional_includedir" = "X/usr/local/include"; then
8478 if test -n "$GCC"; then
8479 case $host_os in
8480 linux*) haveit=yes;;
8481 esac
8482 fi
8483 fi
8484 if test -z "$haveit"; then
8485 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008486
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008487 acl_save_prefix="$prefix"
8488 prefix="$acl_final_prefix"
8489 acl_save_exec_prefix="$exec_prefix"
8490 exec_prefix="$acl_final_exec_prefix"
8491 eval x=\"$x\"
8492 exec_prefix="$acl_save_exec_prefix"
8493 prefix="$acl_save_prefix"
8494
8495 if test "X$x" = "X-I$additional_includedir"; then
8496 haveit=yes
8497 break
8498 fi
8499 done
8500 if test -z "$haveit"; then
8501 if test -d "$additional_includedir"; then
8502 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8503 fi
8504 fi
8505 fi
8506 fi
8507 fi
8508 if test -n "$found_la"; then
8509 save_libdir="$libdir"
8510 case "$found_la" in
8511 */* | *\\*) . "$found_la" ;;
8512 *) . "./$found_la" ;;
8513 esac
8514 libdir="$save_libdir"
8515 for dep in $dependency_libs; do
8516 case "$dep" in
8517 -L*)
8518 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8519 if test "X$additional_libdir" != "X/usr/lib"; then
8520 haveit=
8521 if test "X$additional_libdir" = "X/usr/local/lib"; then
8522 if test -n "$GCC"; then
8523 case $host_os in
8524 linux*) haveit=yes;;
8525 esac
8526 fi
8527 fi
8528 if test -z "$haveit"; then
8529 haveit=
8530 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008531
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008532 acl_save_prefix="$prefix"
8533 prefix="$acl_final_prefix"
8534 acl_save_exec_prefix="$exec_prefix"
8535 exec_prefix="$acl_final_exec_prefix"
8536 eval x=\"$x\"
8537 exec_prefix="$acl_save_exec_prefix"
8538 prefix="$acl_save_prefix"
8539
8540 if test "X$x" = "X-L$additional_libdir"; then
8541 haveit=yes
8542 break
8543 fi
8544 done
8545 if test -z "$haveit"; then
8546 if test -d "$additional_libdir"; then
8547 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8548 fi
8549 fi
8550 haveit=
8551 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008552
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008553 acl_save_prefix="$prefix"
8554 prefix="$acl_final_prefix"
8555 acl_save_exec_prefix="$exec_prefix"
8556 exec_prefix="$acl_final_exec_prefix"
8557 eval x=\"$x\"
8558 exec_prefix="$acl_save_exec_prefix"
8559 prefix="$acl_save_prefix"
8560
8561 if test "X$x" = "X-L$additional_libdir"; then
8562 haveit=yes
8563 break
8564 fi
8565 done
8566 if test -z "$haveit"; then
8567 if test -d "$additional_libdir"; then
8568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8569 fi
8570 fi
8571 fi
8572 fi
8573 ;;
8574 -R*)
8575 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8576 if test "$enable_rpath" != no; then
8577 haveit=
8578 for x in $rpathdirs; do
8579 if test "X$x" = "X$dir"; then
8580 haveit=yes
8581 break
8582 fi
8583 done
8584 if test -z "$haveit"; then
8585 rpathdirs="$rpathdirs $dir"
8586 fi
8587 haveit=
8588 for x in $ltrpathdirs; do
8589 if test "X$x" = "X$dir"; then
8590 haveit=yes
8591 break
8592 fi
8593 done
8594 if test -z "$haveit"; then
8595 ltrpathdirs="$ltrpathdirs $dir"
8596 fi
8597 fi
8598 ;;
8599 -l*)
8600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8601 ;;
8602 *.la)
8603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8604 ;;
8605 *)
8606 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8608 ;;
8609 esac
8610 done
8611 fi
8612 else
8613 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8614 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8615 fi
8616 fi
8617 fi
8618 done
8619 done
8620 if test "X$rpathdirs" != "X"; then
8621 if test -n "$hardcode_libdir_separator"; then
8622 alldirs=
8623 for found_dir in $rpathdirs; do
8624 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8625 done
8626 acl_save_libdir="$libdir"
8627 libdir="$alldirs"
8628 eval flag=\"$hardcode_libdir_flag_spec\"
8629 libdir="$acl_save_libdir"
8630 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8631 else
8632 for found_dir in $rpathdirs; do
8633 acl_save_libdir="$libdir"
8634 libdir="$found_dir"
8635 eval flag=\"$hardcode_libdir_flag_spec\"
8636 libdir="$acl_save_libdir"
8637 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8638 done
8639 fi
8640 fi
8641 if test "X$ltrpathdirs" != "X"; then
8642 for found_dir in $ltrpathdirs; do
8643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8644 done
8645 fi
8646
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008647
8648
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008650
8651
8652
8653
Theodore Ts'oe1052142006-10-21 21:46:47 -04008654 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8655echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008656if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008658else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008659 cat >conftest.$ac_ext <<_ACEOF
8660/* confdefs.h. */
8661_ACEOF
8662cat confdefs.h >>conftest.$ac_ext
8663cat >>conftest.$ac_ext <<_ACEOF
8664/* end confdefs.h. */
8665$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008666typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008667int
8668main ()
8669{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008670if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008671 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008672if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008673 return 0;
8674 ;
8675 return 0;
8676}
8677_ACEOF
8678rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008679if { (ac_try="$ac_compile"
8680case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683esac
8684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008691 (exit $ac_status); } && {
8692 test -z "$ac_c_werror_flag" ||
8693 test ! -s conftest.err
8694 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008695 ac_cv_type_ptrdiff_t=yes
8696else
8697 echo "$as_me: failed program was:" >&5
8698sed 's/^/| /' conftest.$ac_ext >&5
8699
Theodore Ts'oe1052142006-10-21 21:46:47 -04008700 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008701fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008702
8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008704fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008705{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8706echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008707if test $ac_cv_type_ptrdiff_t = yes; then
8708 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008709else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008710
8711cat >>confdefs.h <<\_ACEOF
8712#define ptrdiff_t long
8713_ACEOF
8714
8715
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008716fi
8717
8718
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008719
8720
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008721
8722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008723
8724
8725
8726
8727
8728for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008729stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008730do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008736 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008737fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008738ac_res=`eval echo '${'$as_ac_Header'}'`
8739 { echo "$as_me:$LINENO: result: $ac_res" >&5
8740echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008741else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008742 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008743{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008745cat >conftest.$ac_ext <<_ACEOF
8746/* confdefs.h. */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
8750/* end confdefs.h. */
8751$ac_includes_default
8752#include <$ac_header>
8753_ACEOF
8754rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008755if { (ac_try="$ac_compile"
8756case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759esac
8760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008771 ac_header_compiler=yes
8772else
8773 echo "$as_me: failed program was:" >&5
8774sed 's/^/| /' conftest.$ac_ext >&5
8775
Theodore Ts'oe1052142006-10-21 21:46:47 -04008776 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008777fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008778
8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8781echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008782
8783# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008784{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008786cat >conftest.$ac_ext <<_ACEOF
8787/* confdefs.h. */
8788_ACEOF
8789cat confdefs.h >>conftest.$ac_ext
8790cat >>conftest.$ac_ext <<_ACEOF
8791/* end confdefs.h. */
8792#include <$ac_header>
8793_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008794if { (ac_try="$ac_cpp conftest.$ac_ext"
8795case "(($ac_try" in
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8798esac
8799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008806 (exit $ac_status); } >/dev/null && {
8807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008810 ac_header_preproc=yes
8811else
8812 echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_header_preproc=no
8816fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008817
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008818rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008821
8822# So? What about this header?
8823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8824 yes:no: )
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8829 ac_header_preproc=yes
8830 ;;
8831 no:yes:* )
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8835echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8839echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008845 ;;
8846esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851else
8852 eval "$as_ac_Header=\$ac_header_preproc"
8853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008854ac_res=`eval echo '${'$as_ac_Header'}'`
8855 { echo "$as_me:$LINENO: result: $ac_res" >&5
8856echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008857
8858fi
8859if test `eval echo '${'$as_ac_Header'}'` = yes; then
8860 cat >>confdefs.h <<_ACEOF
8861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862_ACEOF
8863
8864fi
8865
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008866done
8867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8892mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8893strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8894__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008895do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008897{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8899if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008900 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008901else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008902 cat >conftest.$ac_ext <<_ACEOF
8903/* confdefs.h. */
8904_ACEOF
8905cat confdefs.h >>conftest.$ac_ext
8906cat >>conftest.$ac_ext <<_ACEOF
8907/* end confdefs.h. */
8908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8910#define $ac_func innocuous_$ac_func
8911
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008912/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008913 which can conflict with char $ac_func (); below.
8914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8915 <limits.h> exists even on freestanding compilers. */
8916
8917#ifdef __STDC__
8918# include <limits.h>
8919#else
8920# include <assert.h>
8921#endif
8922
8923#undef $ac_func
8924
Theodore Ts'oe1052142006-10-21 21:46:47 -04008925/* Override any GCC internal prototype to avoid an error.
8926 Use char because int might match the return type of a GCC
8927 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008928#ifdef __cplusplus
8929extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008930#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008931char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008932/* The GNU C library defines this for functions which it implements
8933 to always fail with ENOSYS. Some functions are actually named
8934 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008935#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008936choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008937#endif
8938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008939int
8940main ()
8941{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008942return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008943 ;
8944 return 0;
8945}
8946_ACEOF
8947rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008948if { (ac_try="$ac_link"
8949case "(($ac_try" in
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8952esac
8953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008955 ac_status=$?
8956 grep -v '^ *+' conftest.er1 >conftest.err
8957 rm -f conftest.er1
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008960 (exit $ac_status); } && {
8961 test -z "$ac_c_werror_flag" ||
8962 test ! -s conftest.err
8963 } && test -s conftest$ac_exeext &&
8964 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008965 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008966else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008967 echo "$as_me: failed program was:" >&5
8968sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008969
Theodore Ts'oe1052142006-10-21 21:46:47 -04008970 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008971fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008972
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008974 conftest$ac_exeext conftest.$ac_ext
8975fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008976ac_res=`eval echo '${'$as_ac_var'}'`
8977 { echo "$as_me:$LINENO: result: $ac_res" >&5
8978echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008979if test `eval echo '${'$as_ac_var'}'` = yes; then
8980 cat >>confdefs.h <<_ACEOF
8981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8982_ACEOF
8983
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008984fi
8985done
8986
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008988
Theodore Ts'oe1052142006-10-21 21:46:47 -04008989 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8990echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008991if test "${ac_cv_have_decl__snprintf+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993else
8994 cat >conftest.$ac_ext <<_ACEOF
8995/* confdefs.h. */
8996_ACEOF
8997cat confdefs.h >>conftest.$ac_ext
8998cat >>conftest.$ac_ext <<_ACEOF
8999/* end confdefs.h. */
9000#include <stdio.h>
9001int
9002main ()
9003{
9004
9005#ifndef _snprintf
9006 char *p = (char *) _snprintf;
9007#endif
9008
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009014if { (ac_try="$ac_compile"
9015case "(($ac_try" in
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9018esac
9019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009021 ac_status=$?
9022 grep -v '^ *+' conftest.er1 >conftest.err
9023 rm -f conftest.er1
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009026 (exit $ac_status); } && {
9027 test -z "$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009030 ac_cv_have_decl__snprintf=yes
9031else
9032 echo "$as_me: failed program was:" >&5
9033sed 's/^/| /' conftest.$ac_ext >&5
9034
Theodore Ts'oe1052142006-10-21 21:46:47 -04009035 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009036fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009037
9038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009039fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009040{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9041echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009042 if test $ac_cv_have_decl__snprintf = yes; then
9043 gt_value=1
9044 else
9045 gt_value=0
9046 fi
9047
9048cat >>confdefs.h <<_ACEOF
9049#define HAVE_DECL__SNPRINTF $gt_value
9050_ACEOF
9051
9052
9053
Theodore Ts'oe1052142006-10-21 21:46:47 -04009054 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9055echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009056if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9058else
9059 cat >conftest.$ac_ext <<_ACEOF
9060/* confdefs.h. */
9061_ACEOF
9062cat confdefs.h >>conftest.$ac_ext
9063cat >>conftest.$ac_ext <<_ACEOF
9064/* end confdefs.h. */
9065#include <stdio.h>
9066int
9067main ()
9068{
9069
9070#ifndef _snwprintf
9071 char *p = (char *) _snwprintf;
9072#endif
9073
9074 ;
9075 return 0;
9076}
9077_ACEOF
9078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009079if { (ac_try="$ac_compile"
9080case "(($ac_try" in
9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9083esac
9084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009091 (exit $ac_status); } && {
9092 test -z "$ac_c_werror_flag" ||
9093 test ! -s conftest.err
9094 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009095 ac_cv_have_decl__snwprintf=yes
9096else
9097 echo "$as_me: failed program was:" >&5
9098sed 's/^/| /' conftest.$ac_ext >&5
9099
Theodore Ts'oe1052142006-10-21 21:46:47 -04009100 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009102
9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009105{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9106echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009107 if test $ac_cv_have_decl__snwprintf = yes; then
9108 gt_value=1
9109 else
9110 gt_value=0
9111 fi
9112
9113cat >>confdefs.h <<_ACEOF
9114#define HAVE_DECL__SNWPRINTF $gt_value
9115_ACEOF
9116
9117
9118
9119
Theodore Ts'oe1052142006-10-21 21:46:47 -04009120 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9121echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009122if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125 cat >conftest.$ac_ext <<_ACEOF
9126/* confdefs.h. */
9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h. */
9131#include <stdio.h>
9132int
9133main ()
9134{
9135
9136#ifndef feof_unlocked
9137 char *p = (char *) feof_unlocked;
9138#endif
9139
9140 ;
9141 return 0;
9142}
9143_ACEOF
9144rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009145if { (ac_try="$ac_compile"
9146case "(($ac_try" in
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9149esac
9150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009161 ac_cv_have_decl_feof_unlocked=yes
9162else
9163 echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
Theodore Ts'oe1052142006-10-21 21:46:47 -04009166 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009168
9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009170fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009171{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9172echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009173 if test $ac_cv_have_decl_feof_unlocked = yes; then
9174 gt_value=1
9175 else
9176 gt_value=0
9177 fi
9178
9179cat >>confdefs.h <<_ACEOF
9180#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9181_ACEOF
9182
9183
9184
Theodore Ts'oe1052142006-10-21 21:46:47 -04009185 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9186echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009187if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190 cat >conftest.$ac_ext <<_ACEOF
9191/* confdefs.h. */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h. */
9196#include <stdio.h>
9197int
9198main ()
9199{
9200
9201#ifndef fgets_unlocked
9202 char *p = (char *) fgets_unlocked;
9203#endif
9204
9205 ;
9206 return 0;
9207}
9208_ACEOF
9209rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009210if { (ac_try="$ac_compile"
9211case "(($ac_try" in
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9214esac
9215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009222 (exit $ac_status); } && {
9223 test -z "$ac_c_werror_flag" ||
9224 test ! -s conftest.err
9225 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009226 ac_cv_have_decl_fgets_unlocked=yes
9227else
9228 echo "$as_me: failed program was:" >&5
9229sed 's/^/| /' conftest.$ac_ext >&5
9230
Theodore Ts'oe1052142006-10-21 21:46:47 -04009231 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009232fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009233
9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009235fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009236{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9237echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009238 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9239 gt_value=1
9240 else
9241 gt_value=0
9242 fi
9243
9244cat >>confdefs.h <<_ACEOF
9245#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9246_ACEOF
9247
9248
9249
Theodore Ts'oe1052142006-10-21 21:46:47 -04009250 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9251echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254else
9255 cat >conftest.$ac_ext <<_ACEOF
9256/* confdefs.h. */
9257_ACEOF
9258cat confdefs.h >>conftest.$ac_ext
9259cat >>conftest.$ac_ext <<_ACEOF
9260/* end confdefs.h. */
9261#include <stdio.h>
9262int
9263main ()
9264{
9265
9266#ifndef getc_unlocked
9267 char *p = (char *) getc_unlocked;
9268#endif
9269
9270 ;
9271 return 0;
9272}
9273_ACEOF
9274rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009275if { (ac_try="$ac_compile"
9276case "(($ac_try" in
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9279esac
9280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009287 (exit $ac_status); } && {
9288 test -z "$ac_c_werror_flag" ||
9289 test ! -s conftest.err
9290 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009291 ac_cv_have_decl_getc_unlocked=yes
9292else
9293 echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
Theodore Ts'oe1052142006-10-21 21:46:47 -04009296 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009297fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009298
9299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009300fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009301{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9302echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009303 if test $ac_cv_have_decl_getc_unlocked = yes; then
9304 gt_value=1
9305 else
9306 gt_value=0
9307 fi
9308
9309cat >>confdefs.h <<_ACEOF
9310#define HAVE_DECL_GETC_UNLOCKED $gt_value
9311_ACEOF
9312
9313
9314
9315 case $gt_cv_func_printf_posix in
9316 *yes) HAVE_POSIX_PRINTF=1 ;;
9317 *) HAVE_POSIX_PRINTF=0 ;;
9318 esac
9319
9320 if test "$ac_cv_func_asprintf" = yes; then
9321 HAVE_ASPRINTF=1
9322 else
9323 HAVE_ASPRINTF=0
9324 fi
9325
9326 if test "$ac_cv_func_snprintf" = yes; then
9327 HAVE_SNPRINTF=1
9328 else
9329 HAVE_SNPRINTF=0
9330 fi
9331
9332 if test "$ac_cv_func_wprintf" = yes; then
9333 HAVE_WPRINTF=1
9334 else
9335 HAVE_WPRINTF=0
9336 fi
9337
9338
9339
9340
9341
9342
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009343
9344 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009345
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009346 for element in $INCICONV; do
9347 haveit=
9348 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009349
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009350 acl_save_prefix="$prefix"
9351 prefix="$acl_final_prefix"
9352 acl_save_exec_prefix="$exec_prefix"
9353 exec_prefix="$acl_final_exec_prefix"
9354 eval x=\"$x\"
9355 exec_prefix="$acl_save_exec_prefix"
9356 prefix="$acl_save_prefix"
9357
9358 if test "X$x" = "X$element"; then
9359 haveit=yes
9360 break
9361 fi
9362 done
9363 if test -z "$haveit"; then
9364 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9365 fi
9366 done
9367
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009368
Theodore Ts'oe1052142006-10-21 21:46:47 -04009369 { echo "$as_me:$LINENO: checking for iconv" >&5
9370echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009371if test "${am_cv_func_iconv+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009373else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009374
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009375 am_cv_func_iconv="no, consider installing GNU libiconv"
9376 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009377 cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h. */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009383#include <stdlib.h>
9384#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009385int
9386main ()
9387{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009388iconv_t cd = iconv_open("","");
9389 iconv(cd,NULL,NULL,NULL,NULL);
9390 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009391 ;
9392 return 0;
9393}
9394_ACEOF
9395rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009396if { (ac_try="$ac_link"
9397case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400esac
9401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest$ac_exeext &&
9412 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009413 am_cv_func_iconv=yes
9414else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009415 echo "$as_me: failed program was:" >&5
9416sed 's/^/| /' conftest.$ac_ext >&5
9417
Theodore Ts'oe1052142006-10-21 21:46:47 -04009418
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009419fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009420
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009422 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009423 if test "$am_cv_func_iconv" != yes; then
9424 am_save_LIBS="$LIBS"
9425 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009426 cat >conftest.$ac_ext <<_ACEOF
9427/* confdefs.h. */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009432#include <stdlib.h>
9433#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009434int
9435main ()
9436{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009437iconv_t cd = iconv_open("","");
9438 iconv(cd,NULL,NULL,NULL,NULL);
9439 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009440 ;
9441 return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009445if { (ac_try="$ac_link"
9446case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449esac
9450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest$ac_exeext &&
9461 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009462 am_cv_lib_iconv=yes
9463 am_cv_func_iconv=yes
9464else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465 echo "$as_me: failed program was:" >&5
9466sed 's/^/| /' conftest.$ac_ext >&5
9467
Theodore Ts'oe1052142006-10-21 21:46:47 -04009468
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009469fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009470
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009473 LIBS="$am_save_LIBS"
9474 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009475
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009477{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9478echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009479 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009480
9481cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009482#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009484
9485 fi
9486 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009487 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9488echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9489 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9490echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009491 else
9492 CPPFLAGS="$am_save_CPPFLAGS"
9493 LIBICONV=
9494 LTLIBICONV=
9495 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009496
9497
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009498
9499 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009500 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9501echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009502 if test "${am_cv_proto_iconv+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009504else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009505
9506 cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
9511/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009512
9513#include <stdlib.h>
9514#include <iconv.h>
9515extern
9516#ifdef __cplusplus
9517"C"
9518#endif
9519#if defined(__STDC__) || defined(__cplusplus)
9520size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9521#else
9522size_t iconv();
9523#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009525int
9526main ()
9527{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009529 ;
9530 return 0;
9531}
9532_ACEOF
9533rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009534if { (ac_try="$ac_compile"
9535case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538esac
9539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009550 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009552 echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
Theodore Ts'oe1052142006-10-21 21:46:47 -04009555 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009557
9558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009559 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 +00009560fi
9561
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009562 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009563 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009564 }$am_cv_proto_iconv" >&5
9565echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009566 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009567
9568cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009569#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009570_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009571
9572 fi
9573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009574
Theodore Ts'oe1052142006-10-21 21:46:47 -04009575 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9576echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577if test "${am_cv_langinfo_codeset+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009579else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009580 cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009586#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009587int
9588main ()
9589{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009590char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009591 ;
9592 return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009596if { (ac_try="$ac_link"
9597case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest$ac_exeext &&
9612 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009613 am_cv_langinfo_codeset=yes
9614else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009615 echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009617
Theodore Ts'oe1052142006-10-21 21:46:47 -04009618 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009619fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009620
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009622 conftest$ac_exeext conftest.$ac_ext
9623
9624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009625{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9626echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009627 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009628
9629cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009630#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009631_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009632
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009633 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009634
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009635 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009636
Theodore Ts'oe1052142006-10-21 21:46:47 -04009637 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9638echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009639if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009641else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 cat >conftest.$ac_ext <<_ACEOF
9643/* confdefs.h. */
9644_ACEOF
9645cat confdefs.h >>conftest.$ac_ext
9646cat >>conftest.$ac_ext <<_ACEOF
9647/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009648#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649int
9650main ()
9651{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009652return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009658if { (ac_try="$ac_link"
9659case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest$ac_exeext &&
9674 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009675 am_cv_val_LC_MESSAGES=yes
9676else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009679
Theodore Ts'oe1052142006-10-21 21:46:47 -04009680 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009682
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009684 conftest$ac_exeext conftest.$ac_ext
9685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009686{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9687echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009688 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009689
9690cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009691#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009692_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009693
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009694 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009695
9696 fi
9697
9698 for ac_prog in bison
9699do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009700 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009701set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009704if test "${ac_cv_prog_INTLBISON+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009706else
9707 if test -n "$INTLBISON"; then
9708 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9709else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711for as_dir in $PATH
9712do
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009717 ac_cv_prog_INTLBISON="$ac_prog"
9718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9720 fi
9721done
9722done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009723IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009724
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009725fi
9726fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009727INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009728if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009729 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9730echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009731else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009732 { echo "$as_me:$LINENO: result: no" >&5
9733echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009734fi
9735
Theodore Ts'oe1052142006-10-21 21:46:47 -04009736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009737 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009738done
9739
9740 if test -z "$INTLBISON"; then
9741 ac_verc_fail=yes
9742 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009743 { echo "$as_me:$LINENO: checking version of bison" >&5
9744echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009745 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9746 case $ac_prog_version in
9747 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9748 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9749 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9750 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9751 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009752 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9753echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009754 fi
9755 if test $ac_verc_fail = yes; then
9756 INTLBISON=:
9757 fi
9758
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009759
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009760
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009761
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009762
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009763
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009764
9765
9766
9767
9768
9769
9770
9771
9772
9773
Theodore Ts'oe1052142006-10-21 21:46:47 -04009774 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9775echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9776 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009777if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009778 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009779else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009780 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009781fi
9782
9783 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9784echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009785
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009787
9788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009789 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009790 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009792 LIBINTL=
9793 LTLIBINTL=
9794 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009795
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009796 if test "$USE_NLS" = "yes"; then
9797 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009798
Theodore Ts'oe1052142006-10-21 21:46:47 -04009799 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9800echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009801
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009803if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009804 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009805else
9806 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807fi
9808
9809 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9810echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009811
9812 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9813 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009814
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009815
9816
9817
9818
9819
Theodore Ts'oe1052142006-10-21 21:46:47 -04009820 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9821echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009822if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009824else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825 cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009831#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009832extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009833extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009834int
9835main ()
9836{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009837bindtextdomain ("", "");
9838return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009839 ;
9840 return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009844if { (ac_try="$ac_link"
9845case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext &&
9860 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009861 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009862else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009863 echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009865
Theodore Ts'oe1052142006-10-21 21:46:47 -04009866 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009868
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009870 conftest$ac_exeext conftest.$ac_ext
9871fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009872{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9873echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009874
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009875 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009876
9877
9878
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009879 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009881 acl_save_prefix="$prefix"
9882 prefix="$acl_final_prefix"
9883 acl_save_exec_prefix="$exec_prefix"
9884 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009885
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009886 eval additional_includedir=\"$includedir\"
9887 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009888
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009889 exec_prefix="$acl_save_exec_prefix"
9890 prefix="$acl_save_prefix"
9891
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009892
Theodore Ts'oe1052142006-10-21 21:46:47 -04009893# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009894if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009895 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009896 if test "X$withval" = "Xno"; then
9897 use_additional=no
9898 else
9899 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009900
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009901 acl_save_prefix="$prefix"
9902 prefix="$acl_final_prefix"
9903 acl_save_exec_prefix="$exec_prefix"
9904 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009905
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009906 eval additional_includedir=\"$includedir\"
9907 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009908
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009909 exec_prefix="$acl_save_exec_prefix"
9910 prefix="$acl_save_prefix"
9911
9912 else
9913 additional_includedir="$withval/include"
9914 additional_libdir="$withval/lib"
9915 fi
9916 fi
9917
Theodore Ts'oe1052142006-10-21 21:46:47 -04009918fi
9919
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009920 LIBINTL=
9921 LTLIBINTL=
9922 INCINTL=
9923 rpathdirs=
9924 ltrpathdirs=
9925 names_already_handled=
9926 names_next_round='intl '
9927 while test -n "$names_next_round"; do
9928 names_this_round="$names_next_round"
9929 names_next_round=
9930 for name in $names_this_round; do
9931 already_handled=
9932 for n in $names_already_handled; do
9933 if test "$n" = "$name"; then
9934 already_handled=yes
9935 break
9936 fi
9937 done
9938 if test -z "$already_handled"; then
9939 names_already_handled="$names_already_handled $name"
9940 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9941 eval value=\"\$HAVE_LIB$uppername\"
9942 if test -n "$value"; then
9943 if test "$value" = yes; then
9944 eval value=\"\$LIB$uppername\"
9945 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9946 eval value=\"\$LTLIB$uppername\"
9947 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9948 else
9949 :
9950 fi
9951 else
9952 found_dir=
9953 found_la=
9954 found_so=
9955 found_a=
9956 if test $use_additional = yes; then
9957 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9958 found_dir="$additional_libdir"
9959 found_so="$additional_libdir/lib$name.$shlibext"
9960 if test -f "$additional_libdir/lib$name.la"; then
9961 found_la="$additional_libdir/lib$name.la"
9962 fi
9963 else
9964 if test -f "$additional_libdir/lib$name.$libext"; then
9965 found_dir="$additional_libdir"
9966 found_a="$additional_libdir/lib$name.$libext"
9967 if test -f "$additional_libdir/lib$name.la"; then
9968 found_la="$additional_libdir/lib$name.la"
9969 fi
9970 fi
9971 fi
9972 fi
9973 if test "X$found_dir" = "X"; then
9974 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009976 acl_save_prefix="$prefix"
9977 prefix="$acl_final_prefix"
9978 acl_save_exec_prefix="$exec_prefix"
9979 exec_prefix="$acl_final_exec_prefix"
9980 eval x=\"$x\"
9981 exec_prefix="$acl_save_exec_prefix"
9982 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009983
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009984 case "$x" in
9985 -L*)
9986 dir=`echo "X$x" | sed -e 's/^X-L//'`
9987 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9988 found_dir="$dir"
9989 found_so="$dir/lib$name.$shlibext"
9990 if test -f "$dir/lib$name.la"; then
9991 found_la="$dir/lib$name.la"
9992 fi
9993 else
9994 if test -f "$dir/lib$name.$libext"; then
9995 found_dir="$dir"
9996 found_a="$dir/lib$name.$libext"
9997 if test -f "$dir/lib$name.la"; then
9998 found_la="$dir/lib$name.la"
9999 fi
10000 fi
10001 fi
10002 ;;
10003 esac
10004 if test "X$found_dir" != "X"; then
10005 break
10006 fi
10007 done
10008 fi
10009 if test "X$found_dir" != "X"; then
10010 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10011 if test "X$found_so" != "X"; then
10012 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10013 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10014 else
10015 haveit=
10016 for x in $ltrpathdirs; do
10017 if test "X$x" = "X$found_dir"; then
10018 haveit=yes
10019 break
10020 fi
10021 done
10022 if test -z "$haveit"; then
10023 ltrpathdirs="$ltrpathdirs $found_dir"
10024 fi
10025 if test "$hardcode_direct" = yes; then
10026 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10027 else
10028 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10030 haveit=
10031 for x in $rpathdirs; do
10032 if test "X$x" = "X$found_dir"; then
10033 haveit=yes
10034 break
10035 fi
10036 done
10037 if test -z "$haveit"; then
10038 rpathdirs="$rpathdirs $found_dir"
10039 fi
10040 else
10041 haveit=
10042 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010044 acl_save_prefix="$prefix"
10045 prefix="$acl_final_prefix"
10046 acl_save_exec_prefix="$exec_prefix"
10047 exec_prefix="$acl_final_exec_prefix"
10048 eval x=\"$x\"
10049 exec_prefix="$acl_save_exec_prefix"
10050 prefix="$acl_save_prefix"
10051
10052 if test "X$x" = "X-L$found_dir"; then
10053 haveit=yes
10054 break
10055 fi
10056 done
10057 if test -z "$haveit"; then
10058 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10059 fi
10060 if test "$hardcode_minus_L" != no; then
10061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10062 else
10063 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10064 fi
10065 fi
10066 fi
10067 fi
10068 else
10069 if test "X$found_a" != "X"; then
10070 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10071 else
10072 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10073 fi
10074 fi
10075 additional_includedir=
10076 case "$found_dir" in
10077 */lib | */lib/)
10078 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10079 additional_includedir="$basedir/include"
10080 ;;
10081 esac
10082 if test "X$additional_includedir" != "X"; then
10083 if test "X$additional_includedir" != "X/usr/include"; then
10084 haveit=
10085 if test "X$additional_includedir" = "X/usr/local/include"; then
10086 if test -n "$GCC"; then
10087 case $host_os in
10088 linux*) haveit=yes;;
10089 esac
10090 fi
10091 fi
10092 if test -z "$haveit"; then
10093 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010094
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010095 acl_save_prefix="$prefix"
10096 prefix="$acl_final_prefix"
10097 acl_save_exec_prefix="$exec_prefix"
10098 exec_prefix="$acl_final_exec_prefix"
10099 eval x=\"$x\"
10100 exec_prefix="$acl_save_exec_prefix"
10101 prefix="$acl_save_prefix"
10102
10103 if test "X$x" = "X-I$additional_includedir"; then
10104 haveit=yes
10105 break
10106 fi
10107 done
10108 if test -z "$haveit"; then
10109 if test -d "$additional_includedir"; then
10110 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10111 fi
10112 fi
10113 fi
10114 fi
10115 fi
10116 if test -n "$found_la"; then
10117 save_libdir="$libdir"
10118 case "$found_la" in
10119 */* | *\\*) . "$found_la" ;;
10120 *) . "./$found_la" ;;
10121 esac
10122 libdir="$save_libdir"
10123 for dep in $dependency_libs; do
10124 case "$dep" in
10125 -L*)
10126 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10127 if test "X$additional_libdir" != "X/usr/lib"; then
10128 haveit=
10129 if test "X$additional_libdir" = "X/usr/local/lib"; then
10130 if test -n "$GCC"; then
10131 case $host_os in
10132 linux*) haveit=yes;;
10133 esac
10134 fi
10135 fi
10136 if test -z "$haveit"; then
10137 haveit=
10138 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010139
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010140 acl_save_prefix="$prefix"
10141 prefix="$acl_final_prefix"
10142 acl_save_exec_prefix="$exec_prefix"
10143 exec_prefix="$acl_final_exec_prefix"
10144 eval x=\"$x\"
10145 exec_prefix="$acl_save_exec_prefix"
10146 prefix="$acl_save_prefix"
10147
10148 if test "X$x" = "X-L$additional_libdir"; then
10149 haveit=yes
10150 break
10151 fi
10152 done
10153 if test -z "$haveit"; then
10154 if test -d "$additional_libdir"; then
10155 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10156 fi
10157 fi
10158 haveit=
10159 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010160
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010161 acl_save_prefix="$prefix"
10162 prefix="$acl_final_prefix"
10163 acl_save_exec_prefix="$exec_prefix"
10164 exec_prefix="$acl_final_exec_prefix"
10165 eval x=\"$x\"
10166 exec_prefix="$acl_save_exec_prefix"
10167 prefix="$acl_save_prefix"
10168
10169 if test "X$x" = "X-L$additional_libdir"; then
10170 haveit=yes
10171 break
10172 fi
10173 done
10174 if test -z "$haveit"; then
10175 if test -d "$additional_libdir"; then
10176 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10177 fi
10178 fi
10179 fi
10180 fi
10181 ;;
10182 -R*)
10183 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10184 if test "$enable_rpath" != no; then
10185 haveit=
10186 for x in $rpathdirs; do
10187 if test "X$x" = "X$dir"; then
10188 haveit=yes
10189 break
10190 fi
10191 done
10192 if test -z "$haveit"; then
10193 rpathdirs="$rpathdirs $dir"
10194 fi
10195 haveit=
10196 for x in $ltrpathdirs; do
10197 if test "X$x" = "X$dir"; then
10198 haveit=yes
10199 break
10200 fi
10201 done
10202 if test -z "$haveit"; then
10203 ltrpathdirs="$ltrpathdirs $dir"
10204 fi
10205 fi
10206 ;;
10207 -l*)
10208 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10209 ;;
10210 *.la)
10211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10212 ;;
10213 *)
10214 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10215 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10216 ;;
10217 esac
10218 done
10219 fi
10220 else
10221 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10222 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10223 fi
10224 fi
10225 fi
10226 done
10227 done
10228 if test "X$rpathdirs" != "X"; then
10229 if test -n "$hardcode_libdir_separator"; then
10230 alldirs=
10231 for found_dir in $rpathdirs; do
10232 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10233 done
10234 acl_save_libdir="$libdir"
10235 libdir="$alldirs"
10236 eval flag=\"$hardcode_libdir_flag_spec\"
10237 libdir="$acl_save_libdir"
10238 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10239 else
10240 for found_dir in $rpathdirs; do
10241 acl_save_libdir="$libdir"
10242 libdir="$found_dir"
10243 eval flag=\"$hardcode_libdir_flag_spec\"
10244 libdir="$acl_save_libdir"
10245 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10246 done
10247 fi
10248 fi
10249 if test "X$ltrpathdirs" != "X"; then
10250 for found_dir in $ltrpathdirs; do
10251 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10252 done
10253 fi
10254
Theodore Ts'oe1052142006-10-21 21:46:47 -040010255 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10256echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010257if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010259else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010260 gt_save_CPPFLAGS="$CPPFLAGS"
10261 CPPFLAGS="$CPPFLAGS $INCINTL"
10262 gt_save_LIBS="$LIBS"
10263 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010264 cat >conftest.$ac_ext <<_ACEOF
10265/* confdefs.h. */
10266_ACEOF
10267cat confdefs.h >>conftest.$ac_ext
10268cat >>conftest.$ac_ext <<_ACEOF
10269/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010270#include <libintl.h>
10271extern int _nl_msg_cat_cntr;
10272extern
10273#ifdef __cplusplus
10274"C"
10275#endif
10276const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010277int
10278main ()
10279{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010280bindtextdomain ("", "");
10281return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010282 ;
10283 return 0;
10284}
10285_ACEOF
10286rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010287if { (ac_try="$ac_link"
10288case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291esac
10292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010294 ac_status=$?
10295 grep -v '^ *+' conftest.er1 >conftest.err
10296 rm -f conftest.er1
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010299 (exit $ac_status); } && {
10300 test -z "$ac_c_werror_flag" ||
10301 test ! -s conftest.err
10302 } && test -s conftest$ac_exeext &&
10303 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010304 gt_cv_func_gnugettext1_libintl=yes
10305else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010306 echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
Theodore Ts'oe1052142006-10-21 21:46:47 -040010309 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010310fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010311
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010313 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010314 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10315 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010316 cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h. */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010322#include <libintl.h>
10323extern int _nl_msg_cat_cntr;
10324extern
10325#ifdef __cplusplus
10326"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010327#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010328const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010329int
10330main ()
10331{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010332bindtextdomain ("", "");
10333return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010334 ;
10335 return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010339if { (ac_try="$ac_link"
10340case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343esac
10344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest$ac_exeext &&
10355 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010356 LIBINTL="$LIBINTL $LIBICONV"
10357 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10358 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010359
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010360else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010361 echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
Theodore Ts'oe1052142006-10-21 21:46:47 -040010364
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010365fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010366
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010368 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010369 fi
10370 CPPFLAGS="$gt_save_CPPFLAGS"
10371 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010372fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010373{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10374echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010375 fi
10376
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010377 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10378 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010379 && test "$PACKAGE" != gettext-runtime \
10380 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010381 gt_use_preinstalled_gnugettext=yes
10382 else
10383 LIBINTL=
10384 LTLIBINTL=
10385 INCINTL=
10386 fi
10387
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010388
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010389 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10390 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010391 fi
10392 fi
10393
10394 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010395 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010396 USE_INCLUDED_LIBINTL=yes
10397 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10398 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10399 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010400 fi
10401
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010402 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10403 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10404 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010405 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010406
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010407
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010408 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10409 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010410
10411cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010412#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010413_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010414
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010415 else
10416 USE_NLS=no
10417 fi
10418 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010419
Theodore Ts'oe1052142006-10-21 21:46:47 -040010420 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10421echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10422 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10423echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010424 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010425 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10426echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010427 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10428 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10429 gt_source="external libintl"
10430 else
10431 gt_source="libc"
10432 fi
10433 else
10434 gt_source="included intl directory"
10435 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010436 { echo "$as_me:$LINENO: result: $gt_source" >&5
10437echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010438 fi
10439
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010440 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010441
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010442 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10443 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010444 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10445echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10446 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10447echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010448
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010449 for element in $INCINTL; do
10450 haveit=
10451 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010452
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010453 acl_save_prefix="$prefix"
10454 prefix="$acl_final_prefix"
10455 acl_save_exec_prefix="$exec_prefix"
10456 exec_prefix="$acl_final_exec_prefix"
10457 eval x=\"$x\"
10458 exec_prefix="$acl_save_exec_prefix"
10459 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010460
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010461 if test "X$x" = "X$element"; then
10462 haveit=yes
10463 break
10464 fi
10465 done
10466 if test -z "$haveit"; then
10467 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10468 fi
10469 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010470
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010471 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010472
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010474cat >>confdefs.h <<\_ACEOF
10475#define HAVE_GETTEXT 1
10476_ACEOF
10477
10478
10479cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010480#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010481_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010482
10483 fi
10484
10485 POSUB=po
10486 fi
10487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010488
10489 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010490 BUILD_INCLUDED_LIBINTL=yes
10491 fi
10492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010493
10494
10495
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010496
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010497 nls_cv_header_intl=
10498 nls_cv_header_libgt=
10499
10500 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010501
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010502
10503 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010504
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010505
10506 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010507
10508
10509 if test "$USE_INCLUDED_LIBINTL" = yes; then
10510 INTLOBJS="\$(GETTOBJS)"
10511 fi
10512
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010513
10514 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010515
10516
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010517
10518 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010519
10520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010521
10522
10523
10524
10525
Theodore Ts'oe1052142006-10-21 21:46:47 -040010526{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10527echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10528set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10529if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010530 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010531else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010532 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010533SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010534all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010535 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010536_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010537# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010538case `${MAKE-make} -f conftest.make 2>/dev/null` in
10539 *@@@%%%=?*=@@@%%%*)
10540 eval ac_cv_prog_make_${ac_make}_set=yes;;
10541 *)
10542 eval ac_cv_prog_make_${ac_make}_set=no;;
10543esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010544rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010545fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010546if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10547 { echo "$as_me:$LINENO: result: yes" >&5
10548echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010549 SET_MAKE=
10550else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010551 { echo "$as_me:$LINENO: result: no" >&5
10552echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010553 SET_MAKE="MAKE=${MAKE-make}"
10554fi
10555
10556# Extract the first word of "ln", so it can be a program name with args.
10557set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010560if test "${ac_cv_path_LN+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010562else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010563 case $LN in
10564 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010565 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10566 ;;
10567 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569for as_dir in $PATH
10570do
10571 IFS=$as_save_IFS
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010575 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 break 2
10578 fi
10579done
10580done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010581IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010582
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010583 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10584 ;;
10585esac
10586fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010587LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010588if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010589 { echo "$as_me:$LINENO: result: $LN" >&5
10590echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010591else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010592 { echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010594fi
10595
Theodore Ts'oe1052142006-10-21 21:46:47 -040010596
10597{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10598echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010599LN_S=$as_ln_s
10600if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010601 { echo "$as_me:$LINENO: result: yes" >&5
10602echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010603else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010604 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10605echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010606fi
10607
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010608# Extract the first word of "mv", so it can be a program name with args.
10609set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010612if test "${ac_cv_path_MV+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010614else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010615 case $MV in
10616 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010617 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10618 ;;
10619 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621for as_dir in $PATH
10622do
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010627 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10630 fi
10631done
10632done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010633IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010634
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010635 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10636 ;;
10637esac
10638fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010639MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010640if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010641 { echo "$as_me:$LINENO: result: $MV" >&5
10642echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010643else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010644 { echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010646fi
10647
Theodore Ts'oe1052142006-10-21 21:46:47 -040010648
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010649# Extract the first word of "cp", so it can be a program name with args.
10650set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010653if test "${ac_cv_path_CP+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010655else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010656 case $CP in
10657 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010658 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10659 ;;
10660 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10671 fi
10672done
10673done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010674IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010675
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010676 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10677 ;;
10678esac
10679fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010681if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010682 { echo "$as_me:$LINENO: result: $CP" >&5
10683echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010684else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010685 { echo "$as_me:$LINENO: result: no" >&5
10686echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010687fi
10688
Theodore Ts'oe1052142006-10-21 21:46:47 -040010689
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010690# Extract the first word of "rm", so it can be a program name with args.
10691set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010694if test "${ac_cv_path_RM+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010696else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010697 case $RM in
10698 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010699 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10700 ;;
10701 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703for as_dir in $PATH
10704do
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010709 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10712 fi
10713done
10714done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010715IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010717 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10718 ;;
10719esac
10720fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010722if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010723 { echo "$as_me:$LINENO: result: $RM" >&5
10724echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010725else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010726 { echo "$as_me:$LINENO: result: no" >&5
10727echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010728fi
10729
Theodore Ts'oe1052142006-10-21 21:46:47 -040010730
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010731# Extract the first word of "chmod", so it can be a program name with args.
10732set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010735if test "${ac_cv_path_CHMOD+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010737else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010738 case $CHMOD in
10739 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010740 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10741 ;;
10742 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744for as_dir in $PATH
10745do
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010750 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10753 fi
10754done
10755done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010756IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010758 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10759 ;;
10760esac
10761fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010762CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010763if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010764 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10765echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010766else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010767 { echo "$as_me:$LINENO: result: no" >&5
10768echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010769fi
10770
Theodore Ts'oe1052142006-10-21 21:46:47 -040010771
Theodore Ts'o32237012005-01-17 19:13:39 -050010772for ac_prog in gawk mawk nawk awk
10773do
10774 # Extract the first word of "$ac_prog", so it can be a program name with args.
10775set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050010778if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010779 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010780else
Theodore Ts'o32237012005-01-17 19:13:39 -050010781 if test -n "$AWK"; then
10782 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10783else
10784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010785for as_dir in $PATH
10786do
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010791 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10794 fi
10795done
10796done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010797IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010798
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010799fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010800fi
10801AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010802if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010803 { echo "$as_me:$LINENO: result: $AWK" >&5
10804echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010805else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010806 { echo "$as_me:$LINENO: result: no" >&5
10807echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010808fi
10809
Theodore Ts'oe1052142006-10-21 21:46:47 -040010810
Theodore Ts'o32237012005-01-17 19:13:39 -050010811 test -n "$AWK" && break
10812done
10813
Theodore Ts'oe1052142006-10-21 21:46:47 -040010814{ echo "$as_me:$LINENO: checking for egrep" >&5
10815echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10816if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010819 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10820 then ac_cv_path_EGREP="$GREP -E"
10821 else
10822 # Extract the first word of "egrep" to use in msg output
10823if test -z "$EGREP"; then
10824set dummy egrep; ac_prog_name=$2
10825if test "${ac_cv_path_EGREP+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 ac_path_EGREP_found=false
10829# Loop through the user's path and test for each of PROGNAME-LIST
10830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10832do
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
10835 for ac_prog in egrep; do
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010838 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040010839 # Check for GNU ac_path_EGREP and select it if it is found.
10840 # Check for GNU $ac_path_EGREP
10841case `"$ac_path_EGREP" --version 2>&1` in
10842*GNU*)
10843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10844*)
10845 ac_count=0
10846 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10847 while :
10848 do
10849 cat "conftest.in" "conftest.in" >"conftest.tmp"
10850 mv "conftest.tmp" "conftest.in"
10851 cp "conftest.in" "conftest.nl"
10852 echo 'EGREP' >> "conftest.nl"
10853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10855 ac_count=`expr $ac_count + 1`
10856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10857 # Best one so far, save it but keep looking for a better one
10858 ac_cv_path_EGREP="$ac_path_EGREP"
10859 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050010860 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010861 # 10*(2^10) chars as input seems more than enough
10862 test $ac_count -gt 10 && break
10863 done
10864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10865esac
10866
10867
10868 $ac_path_EGREP_found && break 3
10869 done
10870done
10871
10872done
10873IFS=$as_save_IFS
10874
10875
Theodore Ts'o32237012005-01-17 19:13:39 -050010876fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010877
10878EGREP="$ac_cv_path_EGREP"
10879if test -z "$EGREP"; then
10880 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10881echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10882 { (exit 1); exit 1; }; }
10883fi
10884
10885else
10886 ac_cv_path_EGREP=$EGREP
10887fi
10888
10889
10890 fi
10891fi
10892{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10893echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
10894 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050010895
10896
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010897# Extract the first word of "sed", so it can be a program name with args.
10898set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010901if test "${ac_cv_path_SED+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010903else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010904 case $SED in
10905 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010906 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10907 ;;
10908 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910for as_dir in $PATH
10911do
10912 IFS=$as_save_IFS
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010916 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10918 break 2
10919 fi
10920done
10921done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010922IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010923
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010924 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10925 ;;
10926esac
10927fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010928SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010929if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010930 { echo "$as_me:$LINENO: result: $SED" >&5
10931echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010932else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933 { echo "$as_me:$LINENO: result: no" >&5
10934echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010935fi
10936
Theodore Ts'oe1052142006-10-21 21:46:47 -040010937
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010938# Extract the first word of "perl", so it can be a program name with args.
10939set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010942if test "${ac_cv_path_PERL+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010944else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010945 case $PERL in
10946 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010947 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10948 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010949 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010957 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10962done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010963IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010964
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010965 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10966 ;;
10967esac
10968fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010969PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010970if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010971 { echo "$as_me:$LINENO: result: $PERL" >&5
10972echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010973else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010974 { echo "$as_me:$LINENO: result: no" >&5
10975echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010976fi
10977
Theodore Ts'oe1052142006-10-21 21:46:47 -040010978
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010979# Extract the first word of "ldconfig", so it can be a program name with args.
10980set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010983if test "${ac_cv_path_LDCONFIG+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010985else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010986 case $LDCONFIG in
10987 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010988 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10989 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010990 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992for as_dir in $PATH
10993do
10994 IFS=$as_save_IFS
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010998 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 break 2
11001 fi
11002done
11003done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011004IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011005
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011006 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11007 ;;
11008esac
11009fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011010LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011011if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011012 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11013echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011014else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011015 { echo "$as_me:$LINENO: result: no" >&5
11016echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011017fi
11018
Theodore Ts'oe1052142006-10-21 21:46:47 -040011019
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020if test -n "$ac_tool_prefix"; then
11021 # 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 +000011022set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011025if test "${ac_cv_prog_AR+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011027else
11028 if test -n "$AR"; then
11029 ac_cv_prog_AR="$AR" # Let the user override the test.
11030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011038 ac_cv_prog_AR="${ac_tool_prefix}ar"
11039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011044IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011045
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011046fi
11047fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011048AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011049if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011050 { echo "$as_me:$LINENO: result: $AR" >&5
11051echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011052else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011053 { echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011055fi
11056
Theodore Ts'oe1052142006-10-21 21:46:47 -040011057
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011058fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011059if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011060 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011061 # Extract the first word of "ar", so it can be a program name with args.
11062set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011065if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011067else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011068 if test -n "$ac_ct_AR"; then
11069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011070else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011078 ac_cv_prog_ac_ct_AR="ar"
11079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082done
11083done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011084IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011085
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011086fi
11087fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011088ac_ct_AR=$ac_cv_prog_ac_ct_AR
11089if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011090 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11091echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011092else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011093 { echo "$as_me:$LINENO: result: no" >&5
11094echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011095fi
11096
Theodore Ts'oe1052142006-10-21 21:46:47 -040011097 if test "x$ac_ct_AR" = x; then
11098 AR="ar"
11099 else
11100 case $cross_compiling:$ac_tool_warned in
11101yes:)
11102{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11103whose name does not start with the host triplet. If you think this
11104configuration is useful to you, please write to autoconf@gnu.org." >&5
11105echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11106whose name does not start with the host triplet. If you think this
11107configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11108ac_tool_warned=yes ;;
11109esac
11110 AR=$ac_ct_AR
11111 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011112else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011113 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011114fi
11115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011116if test -n "$ac_tool_prefix"; then
11117 # 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 +000011118set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011121if test "${ac_cv_prog_RANLIB+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011123else
11124 if test -n "$RANLIB"; then
11125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11126else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11137 fi
11138done
11139done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011140IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011141
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011142fi
11143fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011144RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011145if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011146 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11147echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011148else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011149 { echo "$as_me:$LINENO: result: no" >&5
11150echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011151fi
11152
Theodore Ts'oe1052142006-10-21 21:46:47 -040011153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011154fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011155if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011156 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011157 # Extract the first word of "ranlib", so it can be a program name with args.
11158set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011161if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011163else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011164 if test -n "$ac_ct_RANLIB"; then
11165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011166else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011174 ac_cv_prog_ac_ct_RANLIB="ranlib"
11175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11177 fi
11178done
11179done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011180IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011181
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011182fi
11183fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011184ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11185if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011186 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11187echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011188else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011189 { echo "$as_me:$LINENO: result: no" >&5
11190echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011191fi
11192
Theodore Ts'oe1052142006-10-21 21:46:47 -040011193 if test "x$ac_ct_RANLIB" = x; then
11194 RANLIB=":"
11195 else
11196 case $cross_compiling:$ac_tool_warned in
11197yes:)
11198{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11199whose name does not start with the host triplet. If you think this
11200configuration is useful to you, please write to autoconf@gnu.org." >&5
11201echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11202whose name does not start with the host triplet. If you think this
11203configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11204ac_tool_warned=yes ;;
11205esac
11206 RANLIB=$ac_ct_RANLIB
11207 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011208else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011209 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011210fi
11211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011212if test -n "$ac_tool_prefix"; then
11213 # 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 +000011214set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011217if test "${ac_cv_prog_STRIP+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011219else
11220 if test -n "$STRIP"; then
11221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11222else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234done
11235done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011236IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011237
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011238fi
11239fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011240STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011241if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011242 { echo "$as_me:$LINENO: result: $STRIP" >&5
11243echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011244else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011245 { echo "$as_me:$LINENO: result: no" >&5
11246echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011247fi
11248
Theodore Ts'oe1052142006-10-21 21:46:47 -040011249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011250fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011251if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011252 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011253 # Extract the first word of "strip", so it can be a program name with args.
11254set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011257if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011259else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011260 if test -n "$ac_ct_STRIP"; then
11261 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011262else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264for as_dir in $PATH
11265do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011270 ac_cv_prog_ac_ct_STRIP="strip"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 break 2
11273 fi
11274done
11275done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011276IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011277
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011278fi
11279fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011280ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11281if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011282 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11283echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011284else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011285 { echo "$as_me:$LINENO: result: no" >&5
11286echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011287fi
11288
Theodore Ts'oe1052142006-10-21 21:46:47 -040011289 if test "x$ac_ct_STRIP" = x; then
11290 STRIP=":"
11291 else
11292 case $cross_compiling:$ac_tool_warned in
11293yes:)
11294{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11295whose name does not start with the host triplet. If you think this
11296configuration is useful to you, please write to autoconf@gnu.org." >&5
11297echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11298whose name does not start with the host triplet. If you think this
11299configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11300ac_tool_warned=yes ;;
11301esac
11302 STRIP=$ac_ct_STRIP
11303 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011304else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011305 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011306fi
11307
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011308# Find a good install program. We prefer a C program (faster),
11309# so one script is as good as another. But avoid the broken or
11310# incompatible versions:
11311# SysV /etc/install, /usr/sbin/install
11312# SunOS /usr/etc/install
11313# IRIX /sbin/install
11314# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011315# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011316# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011317# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11318# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011319# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011320# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011321{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11322echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011323if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011324if test "${ac_cv_path_install+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH
11329do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 # Account for people who put trailing slashes in PATH elements.
11333case $as_dir/ in
11334 ./ | .// | /cC/* | \
11335 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11336 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11337 /usr/ucb/* ) ;;
11338 *)
11339 # OSF1 and SCO ODT 3.0 have their own names for install.
11340 # Don't use installbsd from OSF since it installs stuff as root
11341 # by default.
11342 for ac_prog in ginstall scoinst install; do
11343 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011344 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011345 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011346 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011347 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011348 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011349 elif test $ac_prog = install &&
11350 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11351 # program-specific install script used by HP pwplus--don't use.
11352 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011353 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011354 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11355 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011356 fi
11357 fi
11358 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011359 done
11360 ;;
11361esac
11362done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011363IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011364
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011365
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011366fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011367 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011369 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011370 # As a last resort, use the slow shell script. Don't cache a
11371 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011372 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011373 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011374 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011375 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011376fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011377{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11378echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011379
11380# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11381# It thinks the first close brace ends the variable substitution.
11382test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011384test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011385
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011386test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11387
Theodore Ts'o6c133521999-07-03 20:37:03 +000011388# See if we need a separate native compiler.
11389if test $cross_compiling = no; then
11390 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011391
Theodore Ts'o6c133521999-07-03 20:37:03 +000011392else
11393 for ac_prog in gcc cc
11394do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011395 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011396set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011399if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011401else
11402 if test -n "$BUILD_CC"; then
11403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11404else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011407do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011412 ac_cv_prog_BUILD_CC="$ac_prog"
11413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11415 fi
11416done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011417done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011418IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011420fi
11421fi
11422BUILD_CC=$ac_cv_prog_BUILD_CC
11423if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011424 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11425echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011426else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011427 { echo "$as_me:$LINENO: result: no" >&5
11428echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011429fi
11430
Theodore Ts'oe1052142006-10-21 21:46:47 -040011431
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432 test -n "$BUILD_CC" && break
11433done
11434
11435fi
11436
Theodore Ts'o740837d2007-12-16 17:21:38 -050011437 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
11438echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
11439 if test "${ac_cv_tls+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441else
11442
11443 ax_tls_keywords="__thread __declspec(thread) none"
11444 for ax_tls_keyword in $ax_tls_keywords; do
11445 case $ax_tls_keyword in
11446 none) ac_cv_tls=none ; break ;;
11447 *)
11448 cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
11454#include <stdlib.h>
11455 static void
11456 foo(void) {
11457 static $ax_tls_keyword int bar;
11458 exit(1);
11459 }
11460int
11461main ()
11462{
11463
11464 ;
11465 return 0;
11466}
11467_ACEOF
11468rm -f conftest.$ac_objext
11469if { (ac_try="$ac_compile"
11470case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473esac
11474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_compile") 2>conftest.er1
11476 ac_status=$?
11477 grep -v '^ *+' conftest.er1 >conftest.err
11478 rm -f conftest.er1
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } && {
11482 test -z "$ac_c_werror_flag" ||
11483 test ! -s conftest.err
11484 } && test -s conftest.$ac_objext; then
11485 ac_cv_tls=$ax_tls_keyword ; break
11486else
11487 echo "$as_me: failed program was:" >&5
11488sed 's/^/| /' conftest.$ac_ext >&5
11489
11490 ac_cv_tls=none
11491
11492fi
11493
11494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 esac
11496 done
11497
11498fi
11499
11500
11501 if test "$ac_cv_tls" != "none"; then
11502
11503cat >>confdefs.h <<_ACEOF
11504#define TLS $ac_cv_tls
11505_ACEOF
11506
11507 fi
11508 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
11509echo "${ECHO_T}$ac_cv_tls" >&6; }
11510
11511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011540
Theodore Ts'o106ad962007-04-04 21:26:37 -040011541
11542
11543for 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/mman.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 utime.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544do
11545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011552ac_res=`eval echo '${'$as_ac_Header'}'`
11553 { echo "$as_me:$LINENO: result: $ac_res" >&5
11554echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011555else
11556 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011557{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011559cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565$ac_includes_default
11566#include <$ac_header>
11567_ACEOF
11568rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011569if { (ac_try="$ac_compile"
11570case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011581 (exit $ac_status); } && {
11582 test -z "$ac_c_werror_flag" ||
11583 test ! -s conftest.err
11584 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011585 ac_header_compiler=yes
11586else
11587 echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
Theodore Ts'oe1052142006-10-21 21:46:47 -040011590 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011592
11593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11595echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596
11597# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011598{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011600cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
11606#include <$ac_header>
11607_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011608if { (ac_try="$ac_cpp conftest.$ac_ext"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011620 (exit $ac_status); } >/dev/null && {
11621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011624 ac_header_preproc=yes
11625else
11626 echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_header_preproc=no
11630fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011632rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011633{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11634echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011635
11636# So? What about this header?
11637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11638 yes:no: )
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11640echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11642echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11643 ac_header_preproc=yes
11644 ;;
11645 no:yes:* )
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11651echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11653echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11655echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11657echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011658
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659 ;;
11660esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665else
11666 eval "$as_ac_Header=\$ac_header_preproc"
11667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011668ac_res=`eval echo '${'$as_ac_Header'}'`
11669 { echo "$as_me:$LINENO: result: $ac_res" >&5
11670echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671
11672fi
11673if test `eval echo '${'$as_ac_Header'}'` = yes; then
11674 cat >>confdefs.h <<_ACEOF
11675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11676_ACEOF
11677
11678fi
11679
11680done
11681
11682
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011683
11684for ac_header in sys/disk.h sys/mount.h
11685do
11686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011687{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698
11699#if HAVE_SYS_QUEUE_H
11700#include <sys/queue.h>
11701#endif
11702
11703
11704#include <$ac_header>
11705_ACEOF
11706rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011707if { (ac_try="$ac_compile"
11708case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711esac
11712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011719 (exit $ac_status); } && {
11720 test -z "$ac_c_werror_flag" ||
11721 test ! -s conftest.err
11722 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011723 eval "$as_ac_Header=yes"
11724else
11725 echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
Theodore Ts'oe1052142006-10-21 21:46:47 -040011728 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011729fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011730
11731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011732fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011733ac_res=`eval echo '${'$as_ac_Header'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011736if test `eval echo '${'$as_ac_Header'}'` = yes; then
11737 cat >>confdefs.h <<_ACEOF
11738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11739_ACEOF
11740
11741fi
11742
11743done
11744
11745
11746for ac_header in net/if.h
11747do
11748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
11760
11761#if HAVE_SYS_TYPES_H
11762#include <sys/types.h>
11763#endif
11764#if HAVE_SYS_SOCKET
11765#include <sys/socket.h>
11766#endif
11767
11768
11769#include <$ac_header>
11770_ACEOF
11771rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011772if { (ac_try="$ac_compile"
11773case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011784 (exit $ac_status); } && {
11785 test -z "$ac_c_werror_flag" ||
11786 test ! -s conftest.err
11787 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011788 eval "$as_ac_Header=yes"
11789else
11790 echo "$as_me: failed program was:" >&5
11791sed 's/^/| /' conftest.$ac_ext >&5
11792
Theodore Ts'oe1052142006-10-21 21:46:47 -040011793 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011795
11796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011798ac_res=`eval echo '${'$as_ac_Header'}'`
11799 { echo "$as_me:$LINENO: result: $ac_res" >&5
11800echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011801if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11804_ACEOF
11805
11806fi
11807
11808done
11809
11810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011811for ac_func in vprintf
11812do
11813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011814{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818else
11819 cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11827#define $ac_func innocuous_$ac_func
11828
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011829/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011830 which can conflict with char $ac_func (); below.
11831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11832 <limits.h> exists even on freestanding compilers. */
11833
11834#ifdef __STDC__
11835# include <limits.h>
11836#else
11837# include <assert.h>
11838#endif
11839
11840#undef $ac_func
11841
Theodore Ts'oe1052142006-10-21 21:46:47 -040011842/* Override any GCC internal prototype to avoid an error.
11843 Use char because int might match the return type of a GCC
11844 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011845#ifdef __cplusplus
11846extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011847#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011848char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011849/* The GNU C library defines this for functions which it implements
11850 to always fail with ENOSYS. Some functions are actually named
11851 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011852#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011853choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011854#endif
11855
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011856int
11857main ()
11858{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011859return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011860 ;
11861 return 0;
11862}
11863_ACEOF
11864rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011865if { (ac_try="$ac_link"
11866case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869esac
11870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest$ac_exeext &&
11881 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011882 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011883else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011886
Theodore Ts'oe1052142006-10-21 21:46:47 -040011887 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011888fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011889
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891 conftest$ac_exeext conftest.$ac_ext
11892fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011893ac_res=`eval echo '${'$as_ac_var'}'`
11894 { echo "$as_me:$LINENO: result: $ac_res" >&5
11895echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896if test `eval echo '${'$as_ac_var'}'` = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011900
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901{ echo "$as_me:$LINENO: checking for _doprnt" >&5
11902echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011903if test "${ac_cv_func__doprnt+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011906 cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h. */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h. */
11912/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11914#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011915
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011916/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011917 which can conflict with char _doprnt (); below.
11918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919 <limits.h> exists even on freestanding compilers. */
11920
11921#ifdef __STDC__
11922# include <limits.h>
11923#else
11924# include <assert.h>
11925#endif
11926
11927#undef _doprnt
11928
Theodore Ts'oe1052142006-10-21 21:46:47 -040011929/* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932#ifdef __cplusplus
11933extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011934#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011936/* The GNU C library defines this for functions which it implements
11937 to always fail with ENOSYS. Some functions are actually named
11938 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011939#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011940choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011941#endif
11942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943int
11944main ()
11945{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011946return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011947 ;
11948 return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011952if { (ac_try="$ac_link"
11953case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956esac
11957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest$ac_exeext &&
11968 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011969 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011970else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971 echo "$as_me: failed program was:" >&5
11972sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011973
Theodore Ts'oe1052142006-10-21 21:46:47 -040011974 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011975fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011976
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011978 conftest$ac_exeext conftest.$ac_ext
11979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011980{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11981echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982if test $ac_cv_func__doprnt = yes; then
11983
11984cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011985#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011986_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011987
11988fi
11989
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990fi
11991done
11992
11993
Theodore Ts'oe1052142006-10-21 21:46:47 -040011994{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11995echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011996if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011997 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011998else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999 cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012005#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012007int
12008main ()
12009{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012010static struct dirent ac_aggr;
12011if (ac_aggr.d_reclen)
12012return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012018if { (ac_try="$ac_compile"
12019case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022esac
12023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012030 (exit $ac_status); } && {
12031 test -z "$ac_c_werror_flag" ||
12032 test ! -s conftest.err
12033 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012034 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012035else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
Theodore Ts'oe1052142006-10-21 21:46:47 -040012039 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012040/* confdefs.h. */
12041_ACEOF
12042cat confdefs.h >>conftest.$ac_ext
12043cat >>conftest.$ac_ext <<_ACEOF
12044/* end confdefs.h. */
12045#include <dirent.h>
12046
12047int
12048main ()
12049{
12050static struct dirent ac_aggr;
12051if (sizeof ac_aggr.d_reclen)
12052return 0;
12053 ;
12054 return 0;
12055}
12056_ACEOF
12057rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012058if { (ac_try="$ac_compile"
12059case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12062esac
12063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012070 (exit $ac_status); } && {
12071 test -z "$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012074 ac_cv_member_struct_dirent_d_reclen=yes
12075else
12076 echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
Theodore Ts'oe1052142006-10-21 21:46:47 -040012079 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012080fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012081
12082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012083fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012084
12085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012086fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012087{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12088echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012089if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12090 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012091#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012093
12094fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012095
Theodore Ts'oe1052142006-10-21 21:46:47 -040012096{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12097echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012098if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012099 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012101 cat >conftest.$ac_ext <<_ACEOF
12102/* confdefs.h. */
12103_ACEOF
12104cat confdefs.h >>conftest.$ac_ext
12105cat >>conftest.$ac_ext <<_ACEOF
12106/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012107#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012108
Theodore Ts'oe1052142006-10-21 21:46:47 -040012109typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110int
12111main ()
12112{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012113if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012114 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012115if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012116 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117 ;
12118 return 0;
12119}
12120_ACEOF
12121rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012122if { (ac_try="$ac_compile"
12123case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012138 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
12142
Theodore Ts'oe1052142006-10-21 21:46:47 -040012143 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012144fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145
12146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012147fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012148{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12149echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012150if test $ac_cv_type_ssize_t = yes; then
12151 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012152#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012154
12155fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012156
Theodore Ts'oe1052142006-10-21 21:46:47 -040012157{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12158echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012159if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012161else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012162 cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012168#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012169
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012170int
12171main ()
12172{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012173#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012174 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012175#endif
12176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012177 ;
12178 return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012182if { (ac_try="$ac_compile"
12183case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186esac
12187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012194 (exit $ac_status); } && {
12195 test -z "$ac_c_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012198 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012199else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200 echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
Theodore Ts'oe1052142006-10-21 21:46:47 -040012203 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012204fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012205
12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012207fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012208{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12209echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012210if test $ac_cv_have_decl_llseek = yes; then
12211 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012212#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012213_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012214
12215fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012216
Theodore Ts'oe1052142006-10-21 21:46:47 -040012217{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12218echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012219if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012220 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012221else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222 cat >conftest.$ac_ext <<_ACEOF
12223/* confdefs.h. */
12224_ACEOF
12225cat confdefs.h >>conftest.$ac_ext
12226cat >>conftest.$ac_ext <<_ACEOF
12227/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012228#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012229 #define _LARGEFILE64_SOURCE
12230 #include <unistd.h>
12231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232int
12233main ()
12234{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012235#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012236 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012237#endif
12238
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012239 ;
12240 return 0;
12241}
12242_ACEOF
12243rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012244if { (ac_try="$ac_compile"
12245case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012260 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012261else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262 echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
Theodore Ts'oe1052142006-10-21 21:46:47 -040012265 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012266fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012267
12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012270{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12271echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012272if test $ac_cv_have_decl_lseek64 = yes; then
12273 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012274#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012276
12277fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012278
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012279if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012280 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012281 ac_cv_sizeof_short=2
12282 ac_cv_sizeof_int=4
12283 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012284 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012285 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12286echo "$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 +000012287fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012288{ echo "$as_me:$LINENO: checking for short" >&5
12289echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290if test "${ac_cv_type_short+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292else
12293 cat >conftest.$ac_ext <<_ACEOF
12294/* confdefs.h. */
12295_ACEOF
12296cat confdefs.h >>conftest.$ac_ext
12297cat >>conftest.$ac_ext <<_ACEOF
12298/* end confdefs.h. */
12299$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012300typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301int
12302main ()
12303{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012304if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012305 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012306if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012307 return 0;
12308 ;
12309 return 0;
12310}
12311_ACEOF
12312rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012313if { (ac_try="$ac_compile"
12314case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12317esac
12318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012325 (exit $ac_status); } && {
12326 test -z "$ac_c_werror_flag" ||
12327 test ! -s conftest.err
12328 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012329 ac_cv_type_short=yes
12330else
12331 echo "$as_me: failed program was:" >&5
12332sed 's/^/| /' conftest.$ac_ext >&5
12333
Theodore Ts'oe1052142006-10-21 21:46:47 -040012334 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012335fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336
Theodore Ts'oe1052142006-10-21 21:46:47 -040012337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338fi
12339{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12340echo "${ECHO_T}$ac_cv_type_short" >&6; }
12341
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012342# The cast to long int works around a bug in the HP C Compiler
12343# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12344# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12345# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012346{ echo "$as_me:$LINENO: checking size of short" >&5
12347echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348if test "${ac_cv_sizeof_short+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012351 if test "$cross_compiling" = yes; then
12352 # Depending upon the size, compute the lo and hi bounds.
12353cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012360 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012361int
12362main ()
12363{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012364static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012365test_array [0] = 0
12366
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012372if { (ac_try="$ac_compile"
12373case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376esac
12377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012384 (exit $ac_status); } && {
12385 test -z "$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012388 ac_lo=0 ac_mid=0
12389 while :; do
12390 cat >conftest.$ac_ext <<_ACEOF
12391/* confdefs.h. */
12392_ACEOF
12393cat confdefs.h >>conftest.$ac_ext
12394cat >>conftest.$ac_ext <<_ACEOF
12395/* end confdefs.h. */
12396$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012397 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012398int
12399main ()
12400{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012401static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012402test_array [0] = 0
12403
12404 ;
12405 return 0;
12406}
12407_ACEOF
12408rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012409if { (ac_try="$ac_compile"
12410case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012421 (exit $ac_status); } && {
12422 test -z "$ac_c_werror_flag" ||
12423 test ! -s conftest.err
12424 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012425 ac_hi=$ac_mid; break
12426else
12427 echo "$as_me: failed program was:" >&5
12428sed 's/^/| /' conftest.$ac_ext >&5
12429
Theodore Ts'oe1052142006-10-21 21:46:47 -040012430 ac_lo=`expr $ac_mid + 1`
12431 if test $ac_lo -le $ac_mid; then
12432 ac_lo= ac_hi=
12433 break
12434 fi
12435 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012437
12438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012439 done
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
Theodore Ts'oe1052142006-10-21 21:46:47 -040012444 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
12450$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012451 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012452int
12453main ()
12454{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012455static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012456test_array [0] = 0
12457
12458 ;
12459 return 0;
12460}
12461_ACEOF
12462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012463if { (ac_try="$ac_compile"
12464case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012479 ac_hi=-1 ac_mid=-1
12480 while :; do
12481 cat >conftest.$ac_ext <<_ACEOF
12482/* confdefs.h. */
12483_ACEOF
12484cat confdefs.h >>conftest.$ac_ext
12485cat >>conftest.$ac_ext <<_ACEOF
12486/* end confdefs.h. */
12487$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012488 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012489int
12490main ()
12491{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012492static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012493test_array [0] = 0
12494
12495 ;
12496 return 0;
12497}
12498_ACEOF
12499rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012500if { (ac_try="$ac_compile"
12501case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12504esac
12505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012512 (exit $ac_status); } && {
12513 test -z "$ac_c_werror_flag" ||
12514 test ! -s conftest.err
12515 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012516 ac_lo=$ac_mid; break
12517else
12518 echo "$as_me: failed program was:" >&5
12519sed 's/^/| /' conftest.$ac_ext >&5
12520
Theodore Ts'oe1052142006-10-21 21:46:47 -040012521 ac_hi=`expr '(' $ac_mid ')' - 1`
12522 if test $ac_mid -le $ac_hi; then
12523 ac_lo= ac_hi=
12524 break
12525 fi
12526 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012527fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012528
12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012530 done
12531else
12532 echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
Theodore Ts'oe1052142006-10-21 21:46:47 -040012535 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012537
12538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012540
12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012542# Binary search between lo and hi bounds.
12543while test "x$ac_lo" != "x$ac_hi"; do
12544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12545 cat >conftest.$ac_ext <<_ACEOF
12546/* confdefs.h. */
12547_ACEOF
12548cat confdefs.h >>conftest.$ac_ext
12549cat >>conftest.$ac_ext <<_ACEOF
12550/* end confdefs.h. */
12551$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012552 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553int
12554main ()
12555{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012556static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557test_array [0] = 0
12558
12559 ;
12560 return 0;
12561}
12562_ACEOF
12563rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012564if { (ac_try="$ac_compile"
12565case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568esac
12569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012576 (exit $ac_status); } && {
12577 test -z "$ac_c_werror_flag" ||
12578 test ! -s conftest.err
12579 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012580 ac_hi=$ac_mid
12581else
12582 echo "$as_me: failed program was:" >&5
12583sed 's/^/| /' conftest.$ac_ext >&5
12584
Theodore Ts'oe1052142006-10-21 21:46:47 -040012585 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012587
12588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012589done
12590case $ac_lo in
12591?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012592'') if test "$ac_cv_type_short" = yes; then
12593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012594See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012595echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012597 { (exit 77); exit 77; }; }
12598 else
12599 ac_cv_sizeof_short=0
12600 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012601esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012602else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012603 cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h. */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h. */
12609$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012610 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012611static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12612static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012613#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012614#include <stdlib.h>
12615int
12616main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012617{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012618
12619 FILE *f = fopen ("conftest.val", "w");
12620 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012621 return 1;
12622 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012623 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012624 long int i = longval ();
12625 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12626 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012627 fprintf (f, "%ld\n", i);
12628 }
12629 else
12630 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012631 unsigned long int i = ulongval ();
12632 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12633 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012634 fprintf (f, "%lu\n", i);
12635 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637
12638 ;
12639 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012640}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012641_ACEOF
12642rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012643if { (ac_try="$ac_link"
12644case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12647esac
12648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656esac
12657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012663else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012664 echo "$as_me: program exited with status $ac_status" >&5
12665echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012669if test "$ac_cv_type_short" = yes; then
12670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012671See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012672echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012673See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012674 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012675 else
12676 ac_cv_sizeof_short=0
12677 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012679rm -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 -050012680fi
12681rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012682fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012683{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12684echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012685
12686
12687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012688cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012689#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012690_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012691
12692
Theodore Ts'oe1052142006-10-21 21:46:47 -040012693{ echo "$as_me:$LINENO: checking for int" >&5
12694echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012695if test "${ac_cv_type_int+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697else
12698 cat >conftest.$ac_ext <<_ACEOF
12699/* confdefs.h. */
12700_ACEOF
12701cat confdefs.h >>conftest.$ac_ext
12702cat >>conftest.$ac_ext <<_ACEOF
12703/* end confdefs.h. */
12704$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012705typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012706int
12707main ()
12708{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012709if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012710 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012711if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012712 return 0;
12713 ;
12714 return 0;
12715}
12716_ACEOF
12717rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012718if { (ac_try="$ac_compile"
12719case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12722esac
12723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012730 (exit $ac_status); } && {
12731 test -z "$ac_c_werror_flag" ||
12732 test ! -s conftest.err
12733 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012734 ac_cv_type_int=yes
12735else
12736 echo "$as_me: failed program was:" >&5
12737sed 's/^/| /' conftest.$ac_ext >&5
12738
Theodore Ts'oe1052142006-10-21 21:46:47 -040012739 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012740fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012741
Theodore Ts'oe1052142006-10-21 21:46:47 -040012742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743fi
12744{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12745echo "${ECHO_T}$ac_cv_type_int" >&6; }
12746
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012747# The cast to long int works around a bug in the HP C Compiler
12748# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12749# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12750# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012751{ echo "$as_me:$LINENO: checking size of int" >&5
12752echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012753if test "${ac_cv_sizeof_int+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012756 if test "$cross_compiling" = yes; then
12757 # Depending upon the size, compute the lo and hi bounds.
12758cat >conftest.$ac_ext <<_ACEOF
12759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012765 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012766int
12767main ()
12768{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012769static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770test_array [0] = 0
12771
12772 ;
12773 return 0;
12774}
12775_ACEOF
12776rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012777if { (ac_try="$ac_compile"
12778case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781esac
12782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012793 ac_lo=0 ac_mid=0
12794 while :; do
12795 cat >conftest.$ac_ext <<_ACEOF
12796/* confdefs.h. */
12797_ACEOF
12798cat confdefs.h >>conftest.$ac_ext
12799cat >>conftest.$ac_ext <<_ACEOF
12800/* end confdefs.h. */
12801$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012802 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012803int
12804main ()
12805{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012806static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012807test_array [0] = 0
12808
12809 ;
12810 return 0;
12811}
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'ob0cacab2004-11-30 19:00:19 -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
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012830 ac_hi=$ac_mid; break
12831else
12832 echo "$as_me: failed program was:" >&5
12833sed 's/^/| /' conftest.$ac_ext >&5
12834
Theodore Ts'oe1052142006-10-21 21:46:47 -040012835 ac_lo=`expr $ac_mid + 1`
12836 if test $ac_lo -le $ac_mid; then
12837 ac_lo= ac_hi=
12838 break
12839 fi
12840 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012841fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012842
12843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012844 done
12845else
12846 echo "$as_me: failed program was:" >&5
12847sed 's/^/| /' conftest.$ac_ext >&5
12848
Theodore Ts'oe1052142006-10-21 21:46:47 -040012849 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850/* confdefs.h. */
12851_ACEOF
12852cat confdefs.h >>conftest.$ac_ext
12853cat >>conftest.$ac_ext <<_ACEOF
12854/* end confdefs.h. */
12855$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012856 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012857int
12858main ()
12859{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012860static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012861test_array [0] = 0
12862
12863 ;
12864 return 0;
12865}
12866_ACEOF
12867rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012868if { (ac_try="$ac_compile"
12869case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012880 (exit $ac_status); } && {
12881 test -z "$ac_c_werror_flag" ||
12882 test ! -s conftest.err
12883 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012884 ac_hi=-1 ac_mid=-1
12885 while :; do
12886 cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h. */
12892$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012893 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012894int
12895main ()
12896{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012897static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012898test_array [0] = 0
12899
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012905if { (ac_try="$ac_compile"
12906case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012917 (exit $ac_status); } && {
12918 test -z "$ac_c_werror_flag" ||
12919 test ! -s conftest.err
12920 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012921 ac_lo=$ac_mid; break
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
Theodore Ts'oe1052142006-10-21 21:46:47 -040012926 ac_hi=`expr '(' $ac_mid ')' - 1`
12927 if test $ac_mid -le $ac_hi; then
12928 ac_lo= ac_hi=
12929 break
12930 fi
12931 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012933
12934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012935 done
12936else
12937 echo "$as_me: failed program was:" >&5
12938sed 's/^/| /' conftest.$ac_ext >&5
12939
Theodore Ts'oe1052142006-10-21 21:46:47 -040012940 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012941fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012942
12943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012944fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012945
12946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012947# Binary search between lo and hi bounds.
12948while test "x$ac_lo" != "x$ac_hi"; do
12949 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12950 cat >conftest.$ac_ext <<_ACEOF
12951/* confdefs.h. */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h. */
12956$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012957 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012958int
12959main ()
12960{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012961static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012962test_array [0] = 0
12963
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012969if { (ac_try="$ac_compile"
12970case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973esac
12974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012985 ac_hi=$ac_mid
12986else
12987 echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
Theodore Ts'oe1052142006-10-21 21:46:47 -040012990 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012991fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012992
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012994done
12995case $ac_lo in
12996?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012997'') if test "$ac_cv_type_int" = yes; then
12998 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012999See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013000echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013001See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013002 { (exit 77); exit 77; }; }
13003 else
13004 ac_cv_sizeof_int=0
13005 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013006esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013007else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008 cat >conftest.$ac_ext <<_ACEOF
13009/* confdefs.h. */
13010_ACEOF
13011cat confdefs.h >>conftest.$ac_ext
13012cat >>conftest.$ac_ext <<_ACEOF
13013/* end confdefs.h. */
13014$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013015 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013016static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13017static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013018#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013019#include <stdlib.h>
13020int
13021main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013022{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013023
13024 FILE *f = fopen ("conftest.val", "w");
13025 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013026 return 1;
13027 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013028 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013029 long int i = longval ();
13030 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13031 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013032 fprintf (f, "%ld\n", i);
13033 }
13034 else
13035 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013036 unsigned long int i = ulongval ();
13037 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13038 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013039 fprintf (f, "%lu\n", i);
13040 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013041 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013042
13043 ;
13044 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013045}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013046_ACEOF
13047rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013048if { (ac_try="$ac_link"
13049case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13052esac
13053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013058 { (case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061esac
13062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013069 echo "$as_me: program exited with status $ac_status" >&5
13070echo "$as_me: failed program was:" >&5
13071sed 's/^/| /' conftest.$ac_ext >&5
13072
13073( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013074if test "$ac_cv_type_int" = yes; then
13075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013076See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013077echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013078See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013079 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013080 else
13081 ac_cv_sizeof_int=0
13082 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013083fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013084rm -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 -050013085fi
13086rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013088{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13089echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013090
13091
13092
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013093cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013094#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013095_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013096
13097
Theodore Ts'oe1052142006-10-21 21:46:47 -040013098{ echo "$as_me:$LINENO: checking for long" >&5
13099echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013100if test "${ac_cv_type_long+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13102else
13103 cat >conftest.$ac_ext <<_ACEOF
13104/* confdefs.h. */
13105_ACEOF
13106cat confdefs.h >>conftest.$ac_ext
13107cat >>conftest.$ac_ext <<_ACEOF
13108/* end confdefs.h. */
13109$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013110typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013111int
13112main ()
13113{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013114if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013115 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013116if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013117 return 0;
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013123if { (ac_try="$ac_compile"
13124case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013139 ac_cv_type_long=yes
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
Theodore Ts'oe1052142006-10-21 21:46:47 -040013144 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013145fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013146
Theodore Ts'oe1052142006-10-21 21:46:47 -040013147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148fi
13149{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13150echo "${ECHO_T}$ac_cv_type_long" >&6; }
13151
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013152# The cast to long int works around a bug in the HP C Compiler
13153# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13154# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13155# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013156{ echo "$as_me:$LINENO: checking size of long" >&5
13157echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013158if test "${ac_cv_sizeof_long+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013161 if test "$cross_compiling" = yes; then
13162 # Depending upon the size, compute the lo and hi bounds.
13163cat >conftest.$ac_ext <<_ACEOF
13164/* confdefs.h. */
13165_ACEOF
13166cat confdefs.h >>conftest.$ac_ext
13167cat >>conftest.$ac_ext <<_ACEOF
13168/* end confdefs.h. */
13169$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013170 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013171int
13172main ()
13173{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013174static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175test_array [0] = 0
13176
13177 ;
13178 return 0;
13179}
13180_ACEOF
13181rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013182if { (ac_try="$ac_compile"
13183case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186esac
13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013198 ac_lo=0 ac_mid=0
13199 while :; do
13200 cat >conftest.$ac_ext <<_ACEOF
13201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
13206$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013207 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013208int
13209main ()
13210{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013211static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013212test_array [0] = 0
13213
13214 ;
13215 return 0;
13216}
13217_ACEOF
13218rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013219if { (ac_try="$ac_compile"
13220case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223esac
13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013231 (exit $ac_status); } && {
13232 test -z "$ac_c_werror_flag" ||
13233 test ! -s conftest.err
13234 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013235 ac_hi=$ac_mid; break
13236else
13237 echo "$as_me: failed program was:" >&5
13238sed 's/^/| /' conftest.$ac_ext >&5
13239
Theodore Ts'oe1052142006-10-21 21:46:47 -040013240 ac_lo=`expr $ac_mid + 1`
13241 if test $ac_lo -le $ac_mid; then
13242 ac_lo= ac_hi=
13243 break
13244 fi
13245 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013246fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013247
13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013249 done
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
Theodore Ts'oe1052142006-10-21 21:46:47 -040013254 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */
13260$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013261 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013262int
13263main ()
13264{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013265static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013266test_array [0] = 0
13267
13268 ;
13269 return 0;
13270}
13271_ACEOF
13272rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013273if { (ac_try="$ac_compile"
13274case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277esac
13278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013289 ac_hi=-1 ac_mid=-1
13290 while :; do
13291 cat >conftest.$ac_ext <<_ACEOF
13292/* confdefs.h. */
13293_ACEOF
13294cat confdefs.h >>conftest.$ac_ext
13295cat >>conftest.$ac_ext <<_ACEOF
13296/* end confdefs.h. */
13297$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013298 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013299int
13300main ()
13301{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013302static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013303test_array [0] = 0
13304
13305 ;
13306 return 0;
13307}
13308_ACEOF
13309rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013310if { (ac_try="$ac_compile"
13311case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314esac
13315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013322 (exit $ac_status); } && {
13323 test -z "$ac_c_werror_flag" ||
13324 test ! -s conftest.err
13325 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013326 ac_lo=$ac_mid; break
13327else
13328 echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
13330
Theodore Ts'oe1052142006-10-21 21:46:47 -040013331 ac_hi=`expr '(' $ac_mid ')' - 1`
13332 if test $ac_mid -le $ac_hi; then
13333 ac_lo= ac_hi=
13334 break
13335 fi
13336 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013337fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013338
13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013340 done
13341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
Theodore Ts'oe1052142006-10-21 21:46:47 -040013345 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013346fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013347
13348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013350
13351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013352# Binary search between lo and hi bounds.
13353while test "x$ac_lo" != "x$ac_hi"; do
13354 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13355 cat >conftest.$ac_ext <<_ACEOF
13356/* confdefs.h. */
13357_ACEOF
13358cat confdefs.h >>conftest.$ac_ext
13359cat >>conftest.$ac_ext <<_ACEOF
13360/* end confdefs.h. */
13361$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013362 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013363int
13364main ()
13365{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013366static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013367test_array [0] = 0
13368
13369 ;
13370 return 0;
13371}
13372_ACEOF
13373rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013374if { (ac_try="$ac_compile"
13375case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378esac
13379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013386 (exit $ac_status); } && {
13387 test -z "$ac_c_werror_flag" ||
13388 test ! -s conftest.err
13389 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013390 ac_hi=$ac_mid
13391else
13392 echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
Theodore Ts'oe1052142006-10-21 21:46:47 -040013395 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013396fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013397
13398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013399done
13400case $ac_lo in
13401?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013402'') if test "$ac_cv_type_long" = yes; then
13403 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013404See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013405echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013406See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013407 { (exit 77); exit 77; }; }
13408 else
13409 ac_cv_sizeof_long=0
13410 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013411esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013412else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013413 cat >conftest.$ac_ext <<_ACEOF
13414/* confdefs.h. */
13415_ACEOF
13416cat confdefs.h >>conftest.$ac_ext
13417cat >>conftest.$ac_ext <<_ACEOF
13418/* end confdefs.h. */
13419$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013420 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013421static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13422static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013423#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013424#include <stdlib.h>
13425int
13426main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013427{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013428
13429 FILE *f = fopen ("conftest.val", "w");
13430 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013431 return 1;
13432 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013433 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013434 long int i = longval ();
13435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13436 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013437 fprintf (f, "%ld\n", i);
13438 }
13439 else
13440 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013441 unsigned long int i = ulongval ();
13442 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13443 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013444 fprintf (f, "%lu\n", i);
13445 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013446 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013447
13448 ;
13449 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013450}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013451_ACEOF
13452rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013453if { (ac_try="$ac_link"
13454case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457esac
13458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013463 { (case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466esac
13467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013473else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013474 echo "$as_me: program exited with status $ac_status" >&5
13475echo "$as_me: failed program was:" >&5
13476sed 's/^/| /' conftest.$ac_ext >&5
13477
13478( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013479if test "$ac_cv_type_long" = yes; then
13480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013481See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013482echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013483See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013485 else
13486 ac_cv_sizeof_long=0
13487 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013489rm -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 -050013490fi
13491rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013492fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013493{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13494echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013495
13496
13497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013498cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013499#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013500_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013501
13502
Theodore Ts'oe1052142006-10-21 21:46:47 -040013503{ echo "$as_me:$LINENO: checking for long long" >&5
13504echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013505if test "${ac_cv_type_long_long+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507else
13508 cat >conftest.$ac_ext <<_ACEOF
13509/* confdefs.h. */
13510_ACEOF
13511cat confdefs.h >>conftest.$ac_ext
13512cat >>conftest.$ac_ext <<_ACEOF
13513/* end confdefs.h. */
13514$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013515typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013516int
13517main ()
13518{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013519if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013520 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013521if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013522 return 0;
13523 ;
13524 return 0;
13525}
13526_ACEOF
13527rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013528if { (ac_try="$ac_compile"
13529case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532esac
13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013540 (exit $ac_status); } && {
13541 test -z "$ac_c_werror_flag" ||
13542 test ! -s conftest.err
13543 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013544 ac_cv_type_long_long=yes
13545else
13546 echo "$as_me: failed program was:" >&5
13547sed 's/^/| /' conftest.$ac_ext >&5
13548
Theodore Ts'oe1052142006-10-21 21:46:47 -040013549 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013550fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013551
Theodore Ts'oe1052142006-10-21 21:46:47 -040013552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553fi
13554{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13555echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13556
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013557# The cast to long int works around a bug in the HP C Compiler
13558# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13559# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13560# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013561{ echo "$as_me:$LINENO: checking size of long long" >&5
13562echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013563if test "${ac_cv_sizeof_long_long+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013566 if test "$cross_compiling" = yes; then
13567 # Depending upon the size, compute the lo and hi bounds.
13568cat >conftest.$ac_ext <<_ACEOF
13569/* confdefs.h. */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h. */
13574$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013575 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013576int
13577main ()
13578{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013579static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580test_array [0] = 0
13581
13582 ;
13583 return 0;
13584}
13585_ACEOF
13586rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013587if { (ac_try="$ac_compile"
13588case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591esac
13592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013599 (exit $ac_status); } && {
13600 test -z "$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013603 ac_lo=0 ac_mid=0
13604 while :; do
13605 cat >conftest.$ac_ext <<_ACEOF
13606/* confdefs.h. */
13607_ACEOF
13608cat confdefs.h >>conftest.$ac_ext
13609cat >>conftest.$ac_ext <<_ACEOF
13610/* end confdefs.h. */
13611$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013612 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013613int
13614main ()
13615{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013616static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013617test_array [0] = 0
13618
13619 ;
13620 return 0;
13621}
13622_ACEOF
13623rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013624if { (ac_try="$ac_compile"
13625case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628esac
13629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013640 ac_hi=$ac_mid; break
13641else
13642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
Theodore Ts'oe1052142006-10-21 21:46:47 -040013645 ac_lo=`expr $ac_mid + 1`
13646 if test $ac_lo -le $ac_mid; then
13647 ac_lo= ac_hi=
13648 break
13649 fi
13650 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013652
13653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013654 done
13655else
13656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
Theodore Ts'oe1052142006-10-21 21:46:47 -040013659 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660/* confdefs.h. */
13661_ACEOF
13662cat confdefs.h >>conftest.$ac_ext
13663cat >>conftest.$ac_ext <<_ACEOF
13664/* end confdefs.h. */
13665$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013666 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013667int
13668main ()
13669{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013670static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013671test_array [0] = 0
13672
13673 ;
13674 return 0;
13675}
13676_ACEOF
13677rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013678if { (ac_try="$ac_compile"
13679case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682esac
13683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013690 (exit $ac_status); } && {
13691 test -z "$ac_c_werror_flag" ||
13692 test ! -s conftest.err
13693 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013694 ac_hi=-1 ac_mid=-1
13695 while :; do
13696 cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
13702$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013703 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013704int
13705main ()
13706{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013707static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013708test_array [0] = 0
13709
13710 ;
13711 return 0;
13712}
13713_ACEOF
13714rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013715if { (ac_try="$ac_compile"
13716case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719esac
13720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013727 (exit $ac_status); } && {
13728 test -z "$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13730 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013731 ac_lo=$ac_mid; break
13732else
13733 echo "$as_me: failed program was:" >&5
13734sed 's/^/| /' conftest.$ac_ext >&5
13735
Theodore Ts'oe1052142006-10-21 21:46:47 -040013736 ac_hi=`expr '(' $ac_mid ')' - 1`
13737 if test $ac_mid -le $ac_hi; then
13738 ac_lo= ac_hi=
13739 break
13740 fi
13741 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013743
13744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013745 done
13746else
13747 echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
13749
Theodore Ts'oe1052142006-10-21 21:46:47 -040013750 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013751fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013752
13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013754fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013755
13756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013757# Binary search between lo and hi bounds.
13758while test "x$ac_lo" != "x$ac_hi"; do
13759 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13760 cat >conftest.$ac_ext <<_ACEOF
13761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h. */
13766$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013767 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013768int
13769main ()
13770{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013771static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013772test_array [0] = 0
13773
13774 ;
13775 return 0;
13776}
13777_ACEOF
13778rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013779if { (ac_try="$ac_compile"
13780case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013795 ac_hi=$ac_mid
13796else
13797 echo "$as_me: failed program was:" >&5
13798sed 's/^/| /' conftest.$ac_ext >&5
13799
Theodore Ts'oe1052142006-10-21 21:46:47 -040013800 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013801fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013802
13803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013804done
13805case $ac_lo in
13806?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013807'') if test "$ac_cv_type_long_long" = yes; then
13808 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013809See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013810echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013811See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013812 { (exit 77); exit 77; }; }
13813 else
13814 ac_cv_sizeof_long_long=0
13815 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013816esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013817else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013818 cat >conftest.$ac_ext <<_ACEOF
13819/* confdefs.h. */
13820_ACEOF
13821cat confdefs.h >>conftest.$ac_ext
13822cat >>conftest.$ac_ext <<_ACEOF
13823/* end confdefs.h. */
13824$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013825 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013826static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13827static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013828#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013829#include <stdlib.h>
13830int
13831main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013832{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013833
13834 FILE *f = fopen ("conftest.val", "w");
13835 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013836 return 1;
13837 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013838 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013839 long int i = longval ();
13840 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13841 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013842 fprintf (f, "%ld\n", i);
13843 }
13844 else
13845 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013846 unsigned long int i = ulongval ();
13847 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13848 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013849 fprintf (f, "%lu\n", i);
13850 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013851 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013852
13853 ;
13854 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013855}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013856_ACEOF
13857rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013858if { (ac_try="$ac_link"
13859case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13862esac
13863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013868 { (case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13871esac
13872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013878else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013879 echo "$as_me: program exited with status $ac_status" >&5
13880echo "$as_me: failed program was:" >&5
13881sed 's/^/| /' conftest.$ac_ext >&5
13882
13883( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013884if test "$ac_cv_type_long_long" = yes; then
13885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013886See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013887echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013888See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013889 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013890 else
13891 ac_cv_sizeof_long_long=0
13892 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013893fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013894rm -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 -050013895fi
13896rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013897fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013898{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13899echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013900
13901
13902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013903cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013904#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013905_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013906
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013907
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013908SIZEOF_SHORT=$ac_cv_sizeof_short
13909SIZEOF_INT=$ac_cv_sizeof_int
13910SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013911SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13912
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013913
13914
13915
Theodore Ts'oe1052142006-10-21 21:46:47 -040013916{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13917echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013918if test "${ac_cv_c_bigendian+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013920else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013921 # See if sys/param.h defines the BYTE_ORDER macro.
13922cat >conftest.$ac_ext <<_ACEOF
13923/* confdefs.h. */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
13927/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013928#include <sys/types.h>
13929#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013930
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931int
13932main ()
13933{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013934#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13935 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013936 bogus endian macros
13937#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013938
13939 ;
13940 return 0;
13941}
13942_ACEOF
13943rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013944if { (ac_try="$ac_compile"
13945case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13948esac
13949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951 ac_status=$?
13952 grep -v '^ *+' conftest.er1 >conftest.err
13953 rm -f conftest.er1
13954 cat conftest.err >&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013956 (exit $ac_status); } && {
13957 test -z "$ac_c_werror_flag" ||
13958 test ! -s conftest.err
13959 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013960 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013961cat >conftest.$ac_ext <<_ACEOF
13962/* confdefs.h. */
13963_ACEOF
13964cat confdefs.h >>conftest.$ac_ext
13965cat >>conftest.$ac_ext <<_ACEOF
13966/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013967#include <sys/types.h>
13968#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013969
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013970int
13971main ()
13972{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013973#if BYTE_ORDER != BIG_ENDIAN
13974 not big endian
13975#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013982if { (ac_try="$ac_compile"
13983case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986esac
13987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013994 (exit $ac_status); } && {
13995 test -z "$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13997 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013998 ac_cv_c_bigendian=yes
13999else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014000 echo "$as_me: failed program was:" >&5
14001sed 's/^/| /' conftest.$ac_ext >&5
14002
Theodore Ts'oe1052142006-10-21 21:46:47 -040014003 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014005
14006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014007else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014008 echo "$as_me: failed program was:" >&5
14009sed 's/^/| /' conftest.$ac_ext >&5
14010
Theodore Ts'oe1052142006-10-21 21:46:47 -040014011 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014012if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014013 # try to guess the endianness by grepping values into an object file
14014 ac_cv_c_bigendian=unknown
14015 cat >conftest.$ac_ext <<_ACEOF
14016/* confdefs.h. */
14017_ACEOF
14018cat confdefs.h >>conftest.$ac_ext
14019cat >>conftest.$ac_ext <<_ACEOF
14020/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014021short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14022short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014023void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014024short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14025short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014026void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14027int
14028main ()
14029{
14030 _ascii (); _ebcdic ();
14031 ;
14032 return 0;
14033}
14034_ACEOF
14035rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014036if { (ac_try="$ac_compile"
14037case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014052 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14053 ac_cv_c_bigendian=yes
14054fi
14055if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14056 if test "$ac_cv_c_bigendian" = unknown; then
14057 ac_cv_c_bigendian=no
14058 else
14059 # finding both strings is unlikely to happen, but who knows?
14060 ac_cv_c_bigendian=unknown
14061 fi
14062fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014063else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014064 echo "$as_me: failed program was:" >&5
14065sed 's/^/| /' conftest.$ac_ext >&5
14066
Theodore Ts'oe1052142006-10-21 21:46:47 -040014067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014069
14070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014071else
14072 cat >conftest.$ac_ext <<_ACEOF
14073/* confdefs.h. */
14074_ACEOF
14075cat confdefs.h >>conftest.$ac_ext
14076cat >>conftest.$ac_ext <<_ACEOF
14077/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014078$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014079int
14080main ()
14081{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014082
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014083 /* Are we little or big endian? From Harbison&Steele. */
14084 union
14085 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014086 long int l;
14087 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014088 } u;
14089 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014090 return u.c[sizeof (long int) - 1] == 1;
14091
14092 ;
14093 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014094}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014095_ACEOF
14096rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014097if { (ac_try="$ac_link"
14098case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014116 ac_cv_c_bigendian=no
14117else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014118 echo "$as_me: program exited with status $ac_status" >&5
14119echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014122( exit $ac_status )
14123ac_cv_c_bigendian=yes
14124fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014125rm -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 -040014126fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014127
14128
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014129fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014130
14131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014132fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014133{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14134echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014135case $ac_cv_c_bigendian in
14136 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014138cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014139#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014140_ACEOF
14141 ;;
14142 no)
14143 ;;
14144 *)
14145 { { echo "$as_me:$LINENO: error: unknown endianness
14146presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14147echo "$as_me: error: unknown endianness
14148presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14149 { (exit 1); exit 1; }; } ;;
14150esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014151
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014152BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014153ASM_TYPES_HEADER=./asm_types.h
14154
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014156for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014157do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014163 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014165ac_res=`eval echo '${'$as_ac_Header'}'`
14166 { echo "$as_me:$LINENO: result: $ac_res" >&5
14167echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014168else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014169 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014172cat >conftest.$ac_ext <<_ACEOF
14173/* confdefs.h. */
14174_ACEOF
14175cat confdefs.h >>conftest.$ac_ext
14176cat >>conftest.$ac_ext <<_ACEOF
14177/* end confdefs.h. */
14178$ac_includes_default
14179#include <$ac_header>
14180_ACEOF
14181rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014182if { (ac_try="$ac_compile"
14183case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14186esac
14187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014194 (exit $ac_status); } && {
14195 test -z "$ac_c_werror_flag" ||
14196 test ! -s conftest.err
14197 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014198 ac_header_compiler=yes
14199else
14200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
Theodore Ts'oe1052142006-10-21 21:46:47 -040014203 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014204fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014205
14206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14208echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014209
14210# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014211{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014213cat >conftest.$ac_ext <<_ACEOF
14214/* confdefs.h. */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h. */
14219#include <$ac_header>
14220_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014221if { (ac_try="$ac_cpp conftest.$ac_ext"
14222case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225esac
14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014233 (exit $ac_status); } >/dev/null && {
14234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14235 test ! -s conftest.err
14236 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014237 ac_header_preproc=yes
14238else
14239 echo "$as_me: failed program was:" >&5
14240sed 's/^/| /' conftest.$ac_ext >&5
14241
14242 ac_header_preproc=no
14243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014244
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014245rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14247echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014248
14249# So? What about this header?
14250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14251 yes:no: )
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14256 ac_header_preproc=yes
14257 ;;
14258 no:yes:* )
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272 ;;
14273esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014274{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279 eval "$as_ac_Header=\$ac_header_preproc"
14280fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014281ac_res=`eval echo '${'$as_ac_Header'}'`
14282 { echo "$as_me:$LINENO: result: $ac_res" >&5
14283echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014284
14285fi
14286if test `eval echo '${'$as_ac_Header'}'` = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14289_ACEOF
14290
14291fi
14292
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014293done
14294
Theodore Ts'oe1052142006-10-21 21:46:47 -040014295{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14296echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014297if test "${ac_cv_type_intptr_t+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014300 cat >conftest.$ac_ext <<_ACEOF
14301/* confdefs.h. */
14302_ACEOF
14303cat confdefs.h >>conftest.$ac_ext
14304cat >>conftest.$ac_ext <<_ACEOF
14305/* end confdefs.h. */
14306$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014307typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014308int
14309main ()
14310{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014311if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014312 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014313if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014314 return 0;
14315 ;
14316 return 0;
14317}
14318_ACEOF
14319rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014320if { (ac_try="$ac_compile"
14321case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14324esac
14325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014327 ac_status=$?
14328 grep -v '^ *+' conftest.er1 >conftest.err
14329 rm -f conftest.er1
14330 cat conftest.err >&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014332 (exit $ac_status); } && {
14333 test -z "$ac_c_werror_flag" ||
14334 test ! -s conftest.err
14335 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014336 ac_cv_type_intptr_t=yes
14337else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014338 echo "$as_me: failed program was:" >&5
14339sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014340
Theodore Ts'oe1052142006-10-21 21:46:47 -040014341 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014342fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014343
14344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014346{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14347echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014348if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014349
14350cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014351#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014352_ACEOF
14353
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014354
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014355fi
14356
Theodore Ts'oe1052142006-10-21 21:46:47 -040014357{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14358echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014359if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14361else
14362 cat >conftest.$ac_ext <<_ACEOF
14363/* confdefs.h. */
14364_ACEOF
14365cat confdefs.h >>conftest.$ac_ext
14366cat >>conftest.$ac_ext <<_ACEOF
14367/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014368#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014369int
14370main ()
14371{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014372struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014373 ;
14374 return 0;
14375}
14376_ACEOF
14377rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014378if { (ac_try="$ac_compile"
14379case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382esac
14383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014390 (exit $ac_status); } && {
14391 test -z "$ac_c_werror_flag" ||
14392 test ! -s conftest.err
14393 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014394 e2fsprogs_cv_struct_st_flags=yes
14395else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014396 echo "$as_me: failed program was:" >&5
14397sed 's/^/| /' conftest.$ac_ext >&5
14398
Theodore Ts'oe1052142006-10-21 21:46:47 -040014399 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014400fi
14401
Theodore Ts'oe1052142006-10-21 21:46:47 -040014402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403fi
14404
14405{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14406echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014407if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014408 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14409echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014412else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413 cat >conftest.$ac_ext <<_ACEOF
14414/* confdefs.h. */
14415_ACEOF
14416cat confdefs.h >>conftest.$ac_ext
14417cat >>conftest.$ac_ext <<_ACEOF
14418/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014419#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014420int
14421main ()
14422{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014423struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014424 ;
14425 return 0;
14426}
14427_ACEOF
14428rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014429if { (ac_try="$ac_compile"
14430case "(($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_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014436 ac_status=$?
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014441 (exit $ac_status); } && {
14442 test -z "$ac_c_werror_flag" ||
14443 test ! -s conftest.err
14444 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014445 e2fsprogs_cv_struct_st_flags_immut=yes
14446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
Theodore Ts'oe1052142006-10-21 21:46:47 -040014450 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014451fi
14452
Theodore Ts'oe1052142006-10-21 21:46:47 -040014453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454fi
14455
14456 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14457echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014458 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014459 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014460#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014461_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014462
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014463 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014465{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14466echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014467if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014469else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014470 cat >conftest.$ac_ext <<_ACEOF
14471/* confdefs.h. */
14472_ACEOF
14473cat confdefs.h >>conftest.$ac_ext
14474cat >>conftest.$ac_ext <<_ACEOF
14475/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014476#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014477 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014479int
14480main ()
14481{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014482static struct sockaddr ac_aggr;
14483if (ac_aggr.sa_len)
14484return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014485 ;
14486 return 0;
14487}
14488_ACEOF
14489rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014490if { (ac_try="$ac_compile"
14491case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494esac
14495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014506 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014507else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014508 echo "$as_me: failed program was:" >&5
14509sed 's/^/| /' conftest.$ac_ext >&5
14510
Theodore Ts'oe1052142006-10-21 21:46:47 -040014511 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h. */
14517#include <sys/types.h>
14518 #include <sys/socket.h>
14519
14520int
14521main ()
14522{
14523static struct sockaddr ac_aggr;
14524if (sizeof ac_aggr.sa_len)
14525return 0;
14526 ;
14527 return 0;
14528}
14529_ACEOF
14530rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014531if { (ac_try="$ac_compile"
14532case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535esac
14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014543 (exit $ac_status); } && {
14544 test -z "$ac_c_werror_flag" ||
14545 test ! -s conftest.err
14546 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014547 ac_cv_member_struct_sockaddr_sa_len=yes
14548else
14549 echo "$as_me: failed program was:" >&5
14550sed 's/^/| /' conftest.$ac_ext >&5
14551
Theodore Ts'oe1052142006-10-21 21:46:47 -040014552 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014554
14555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014557
14558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014559fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14561echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014562if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014563
14564cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014565#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014566_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014567
14568fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014588
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014589
14590
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014591
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014592
Theodore Ts'o106ad962007-04-04 21:26:37 -040014593
14594
14595
Theodore Ts'o740837d2007-12-16 17:21:38 -050014596
14597
14598for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014599do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014601{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014604 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014605else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014606 cat >conftest.$ac_ext <<_ACEOF
14607/* confdefs.h. */
14608_ACEOF
14609cat confdefs.h >>conftest.$ac_ext
14610cat >>conftest.$ac_ext <<_ACEOF
14611/* end confdefs.h. */
14612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14614#define $ac_func innocuous_$ac_func
14615
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014616/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014617 which can conflict with char $ac_func (); below.
14618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14619 <limits.h> exists even on freestanding compilers. */
14620
14621#ifdef __STDC__
14622# include <limits.h>
14623#else
14624# include <assert.h>
14625#endif
14626
14627#undef $ac_func
14628
Theodore Ts'oe1052142006-10-21 21:46:47 -040014629/* Override any GCC internal prototype to avoid an error.
14630 Use char because int might match the return type of a GCC
14631 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014632#ifdef __cplusplus
14633extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014635char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014636/* The GNU C library defines this for functions which it implements
14637 to always fail with ENOSYS. Some functions are actually named
14638 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014639#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014640choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014641#endif
14642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014643int
14644main ()
14645{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014646return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014647 ;
14648 return 0;
14649}
14650_ACEOF
14651rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014652if { (ac_try="$ac_link"
14653case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656esac
14657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014659 ac_status=$?
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014664 (exit $ac_status); } && {
14665 test -z "$ac_c_werror_flag" ||
14666 test ! -s conftest.err
14667 } && test -s conftest$ac_exeext &&
14668 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014669 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014670else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014671 echo "$as_me: failed program was:" >&5
14672sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014673
Theodore Ts'oe1052142006-10-21 21:46:47 -040014674 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014675fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014676
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014678 conftest$ac_exeext conftest.$ac_ext
14679fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014680ac_res=`eval echo '${'$as_ac_var'}'`
14681 { echo "$as_me:$LINENO: result: $ac_res" >&5
14682echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014683if test `eval echo '${'$as_ac_var'}'` = yes; then
14684 cat >>confdefs.h <<_ACEOF
14685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14686_ACEOF
14687
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014688fi
14689done
14690
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014691SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014692{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14693echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014694if test "${ac_cv_lib_socket_socket+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014696else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014697 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014698LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014699cat >conftest.$ac_ext <<_ACEOF
14700/* confdefs.h. */
14701_ACEOF
14702cat confdefs.h >>conftest.$ac_ext
14703cat >>conftest.$ac_ext <<_ACEOF
14704/* end confdefs.h. */
14705
Theodore Ts'oe1052142006-10-21 21:46:47 -040014706/* Override any GCC internal prototype to avoid an error.
14707 Use char because int might match the return type of a GCC
14708 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014709#ifdef __cplusplus
14710extern "C"
14711#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014712char socket ();
14713int
14714main ()
14715{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014716return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014722if { (ac_try="$ac_link"
14723case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14726esac
14727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014729 ac_status=$?
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014734 (exit $ac_status); } && {
14735 test -z "$ac_c_werror_flag" ||
14736 test ! -s conftest.err
14737 } && test -s conftest$ac_exeext &&
14738 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014739 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014740else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014741 echo "$as_me: failed program was:" >&5
14742sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014743
Theodore Ts'oe1052142006-10-21 21:46:47 -040014744 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014745fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014746
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014748 conftest$ac_exeext conftest.$ac_ext
14749LIBS=$ac_check_lib_save_LIBS
14750fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014751{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14752echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014753if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014754 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014755fi
14756
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014757
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014758DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014759{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14760echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014761if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014763else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014764 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014765LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014766cat >conftest.$ac_ext <<_ACEOF
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772
Theodore Ts'oe1052142006-10-21 21:46:47 -040014773/* Override any GCC internal prototype to avoid an error.
14774 Use char because int might match the return type of a GCC
14775 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014776#ifdef __cplusplus
14777extern "C"
14778#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014779char dlopen ();
14780int
14781main ()
14782{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014783return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014784 ;
14785 return 0;
14786}
14787_ACEOF
14788rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014789if { (ac_try="$ac_link"
14790case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793esac
14794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest$ac_exeext &&
14805 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014806 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014807else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014808 echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014810
Theodore Ts'oe1052142006-10-21 21:46:47 -040014811 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014812fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014813
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014815 conftest$ac_exeext conftest.$ac_ext
14816LIBS=$ac_check_lib_save_LIBS
14817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014818{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14819echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014820if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014821 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014822cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014823#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014824_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014825
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014826fi
14827
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014828
Theodore Ts'oe1052142006-10-21 21:46:47 -040014829{ echo "$as_me:$LINENO: checking for optreset" >&5
14830echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014831if test "${ac_cv_have_optreset+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014833else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014834 cat >conftest.$ac_ext <<_ACEOF
14835/* confdefs.h. */
14836_ACEOF
14837cat confdefs.h >>conftest.$ac_ext
14838cat >>conftest.$ac_ext <<_ACEOF
14839/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014840#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014841
14842_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014844 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014845 ac_cv_have_optreset=yes
14846else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014847 ac_cv_have_optreset=no
14848fi
14849rm -f conftest*
14850
14851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014852{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14853echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014854if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014855 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014856#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014857_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014858
14859fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014860{ echo "$as_me:$LINENO: checking for unified diff option" >&5
14861echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014862if diff -u $0 $0 >& /dev/null ; then
14863 UNI_DIFF_OPTS=-u
14864else
14865 UNI_DIFF_OPTS=-c
14866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014867{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14868echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014869
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014870case "$host_os" in
14871linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014872 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014873#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014874_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014875
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014876 ;;
14877esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014878LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014879CYGWIN_CMT="#"
14880UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014881case "$host_os" in
14882linux*)
14883 LINUX_CMT=
14884 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014885cygwin)
14886 CYGWIN_CMT=
14887 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014888 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014889esac
14890
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014891
14892
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014893case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014894linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014895 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14896 root_prefix="";
14897 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014898 fi
14899 ;;
14900esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014901case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014902linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014903 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014904 prefix="/usr";
14905 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040014906 if test "$mandir" = '${prefix}/man' ; then
14907 echo "...and mandir defaults to /usr/share/man"
14908 mandir=/usr/share/man
14909 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014910 fi
14911;;
14912esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014913if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000014914 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014915 root_prefix="$ac_default_prefix"
14916 else
14917 root_prefix="$prefix"
14918 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014919 root_bindir=$bindir
14920 root_sbindir=$sbindir
14921 root_libdir=$libdir
14922 root_sysconfdir=$sysconfdir
14923else
14924 root_bindir='${root_prefix}/bin'
14925 root_sbindir='${root_prefix}/sbin'
14926 root_libdir='${root_prefix}/lib'
14927 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014928fi
14929
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014930
14931
14932
14933
Theodore Ts'oe1052142006-10-21 21:46:47 -040014934{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14935echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014936if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000014938else
14939 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014940cat >conftest.$ac_ext <<_ACEOF
14941/* confdefs.h. */
14942_ACEOF
14943cat confdefs.h >>conftest.$ac_ext
14944cat >>conftest.$ac_ext <<_ACEOF
14945/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000014946#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014947int
14948main ()
14949{
Theodore Ts'oae851481997-04-29 18:13:24 +000014950fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951 ;
14952 return 0;
14953}
14954_ACEOF
14955rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014956if { (ac_try="$ac_link"
14957case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14960esac
14961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014963 ac_status=$?
14964 grep -v '^ *+' conftest.er1 >conftest.err
14965 rm -f conftest.er1
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014968 (exit $ac_status); } && {
14969 test -z "$ac_c_werror_flag" ||
14970 test ! -s conftest.err
14971 } && test -s conftest$ac_exeext &&
14972 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000014973 ac_cv_e2fsprogs_use_static=yes
14974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
Theodore Ts'oe1052142006-10-21 21:46:47 -040014978 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000014979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014980
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014982 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000014983LDFLAGS=$SAVE_LDFLAGS
14984fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014985
Theodore Ts'odefde781999-01-04 07:39:19 +000014986case "$host_os" in
14987solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014988 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000014989;;
14990esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014991{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14992echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000014993LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000014994if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014995 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000014996fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014997
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014998case "$host_os" in
14999darwin*)
15000 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015001 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015002#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015003_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015004
15005 ;;
15006esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015007SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15008ET_DIR=`cd ${srcdir}/lib/et; pwd`
15009
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015010
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015011if test "$cross_compiling" = yes ; then
15012 DO_TEST_SUITE=
15013else
15014 DO_TEST_SUITE=check
15015fi
15016
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015017INTL_FLAGS=
15018if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15019 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15020fi
15021
Theodore Ts'odd947da2005-11-09 18:37:07 -040015022if test $cross_compiling = no; then
15023 BUILD_CFLAGS="$CFLAGS"
15024 BUILD_LDFLAGS="$LDFLAGS"
15025else
15026 BUILD_CFLAGS=
15027 BUILD_LDFLAGS=
15028fi
15029
15030
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015031test -d lib || mkdir lib
15032test -d include || mkdir include
15033test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015034test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015035for i in MCONFIG Makefile e2fsprogs.spec \
15036 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015037 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15038 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015039 lib/uuid/Makefile lib/uuid/uuid_types.h \
15040 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015041 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15042 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015043 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015044 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15045 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15046 if test -d `dirname ${srcdir}/$i` ; then
15047 outlist="$outlist $i"
15048 fi
15049done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015050ac_config_files="$ac_config_files $outlist"
15051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015052cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015053# This file is a shell script that caches the results of configure
15054# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015055# scripts and configure runs, see configure's option --config-cache.
15056# It is not useful on other systems. If it contains results you don't
15057# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015058#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015059# config.status only pays attention to the cache file if you give it
15060# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015061#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015062# `ac_cv_env_foo' variables (set or unset) will be overridden when
15063# loading this file, other *unset* `ac_cv_foo' will be assigned the
15064# following values.
15065
15066_ACEOF
15067
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015068# The following way of writing the cache mishandles newlines in values,
15069# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015070# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015071# Ultrix sh set writes to stderr and can't be redirected directly,
15072# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015073(
15074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15075 eval ac_val=\$$ac_var
15076 case $ac_val in #(
15077 *${as_nl}*)
15078 case $ac_var in #(
15079 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15080echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15081 esac
15082 case $ac_var in #(
15083 _ | IFS | as_nl) ;; #(
15084 *) $as_unset $ac_var ;;
15085 esac ;;
15086 esac
15087 done
15088
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015089 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015090 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15091 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015092 # `set' does not quote correctly, so add quotes (double-quote
15093 # substitution turns \\\\ into \\, and sed turns \\ into \).
15094 sed -n \
15095 "s/'/'\\\\''/g;
15096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015097 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015098 *)
15099 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015101 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015102 esac |
15103 sort
15104) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015105 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015106 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015107 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015108 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15110 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015111 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15112 :end' >>confcache
15113if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15114 if test -w "$cache_file"; then
15115 test "x$cache_file" != "x/dev/null" &&
15116 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15117echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015118 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015119 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015120 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15121echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015122 fi
15123fi
15124rm -f confcache
15125
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015126test "x$prefix" = xNONE && prefix=$ac_default_prefix
15127# Let make expand exec_prefix.
15128test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15129
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015130# Transform confdefs.h into DEFS.
15131# Protect against shell expansion while executing Makefile rules.
15132# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015133#
15134# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015135# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015136# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015137ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015138t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015139:clear
15140s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015141t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015142s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015143t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015144b any
15145:quote
15146s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15147s/\[/\\&/g
15148s/\]/\\&/g
15149s/\$/$$/g
15150H
15151:any
15152${
15153 g
15154 s/^\n//
15155 s/\n/ /g
15156 p
15157}
15158'
15159DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015160
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015161
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015162ac_libobjs=
15163ac_ltlibobjs=
15164for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15165 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015166 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15167 ac_i=`echo "$ac_i" | sed "$ac_script"`
15168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15169 # will be set to the directory where LIBOBJS objects are built.
15170 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15171 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015172done
15173LIBOBJS=$ac_libobjs
15174
15175LTLIBOBJS=$ac_ltlibobjs
15176
15177
15178
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015179: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015180ac_clean_files_save=$ac_clean_files
15181ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15182{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15183echo "$as_me: creating $CONFIG_STATUS" >&6;}
15184cat >$CONFIG_STATUS <<_ACEOF
15185#! $SHELL
15186# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015187# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015188# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015189# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015190
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015191debug=false
15192ac_cs_recheck=false
15193ac_cs_silent=false
15194SHELL=\${CONFIG_SHELL-$SHELL}
15195_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015196
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015197cat >>$CONFIG_STATUS <<\_ACEOF
15198## --------------------- ##
15199## M4sh Initialization. ##
15200## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015201
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015202# Be more Bourne compatible
15203DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015204if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15205 emulate sh
15206 NULLCMD=:
15207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15208 # is contrary to our usage. Disable this feature.
15209 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015210 setopt NO_GLOB_SUBST
15211else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015212 case `(set -o) 2>/dev/null` in
15213 *posix*) set -o posix ;;
15214esac
15215
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015216fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015217
15218
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015219
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015220
Theodore Ts'oe1052142006-10-21 21:46:47 -040015221# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015222# Avoid depending upon Character Ranges.
15223as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15225as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15226as_cr_digits='0123456789'
15227as_cr_alnum=$as_cr_Letters$as_cr_digits
15228
15229# The user is always right.
15230if test "${PATH_SEPARATOR+set}" != set; then
15231 echo "#! /bin/sh" >conf$$.sh
15232 echo "exit 0" >>conf$$.sh
15233 chmod +x conf$$.sh
15234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15235 PATH_SEPARATOR=';'
15236 else
15237 PATH_SEPARATOR=:
15238 fi
15239 rm -f conf$$.sh
15240fi
15241
Theodore Ts'oe1052142006-10-21 21:46:47 -040015242# Support unset when possible.
15243if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15244 as_unset=unset
15245else
15246 as_unset=false
15247fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015248
Theodore Ts'oe1052142006-10-21 21:46:47 -040015249
15250# IFS
15251# We need space, tab and new line, in precisely that order. Quoting is
15252# there to prevent editors from complaining about space-tab.
15253# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15254# splitting by setting IFS to empty value.)
15255as_nl='
15256'
15257IFS=" "" $as_nl"
15258
15259# Find who we are. Look in the path if we contain no directory separator.
15260case $0 in
15261 *[\\/]* ) as_myself=$0 ;;
15262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015263for as_dir in $PATH
15264do
15265 IFS=$as_save_IFS
15266 test -z "$as_dir" && as_dir=.
15267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15268done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015269IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015270
Theodore Ts'oe1052142006-10-21 21:46:47 -040015271 ;;
15272esac
15273# We did not find ourselves, most probably we were run as `sh COMMAND'
15274# in which case we are not to be found in the path.
15275if test "x$as_myself" = x; then
15276 as_myself=$0
15277fi
15278if test ! -f "$as_myself"; then
15279 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15280 { (exit 1); exit 1; }
15281fi
15282
15283# Work around bugs in pre-3.0 UWIN ksh.
15284for as_var in ENV MAIL MAILPATH
15285do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15286done
15287PS1='$ '
15288PS2='> '
15289PS4='+ '
15290
15291# NLS nuisances.
15292for as_var in \
15293 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15294 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15295 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015296do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015297 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15298 eval $as_var=C; export $as_var
15299 else
15300 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15301 fi
15302done
15303
15304# Required to use basename.
15305if expr a : '\(a\)' >/dev/null 2>&1 &&
15306 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15307 as_expr=expr
15308else
15309 as_expr=false
15310fi
15311
15312if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15313 as_basename=basename
15314else
15315 as_basename=false
15316fi
15317
15318
15319# Name of the executable.
15320as_me=`$as_basename -- "$0" ||
15321$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15322 X"$0" : 'X\(//\)$' \| \
15323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15324echo X/"$0" |
15325 sed '/^.*\/\([^/][^/]*\)\/*$/{
15326 s//\1/
15327 q
15328 }
15329 /^X\/\(\/\/\)$/{
15330 s//\1/
15331 q
15332 }
15333 /^X\/\(\/\).*/{
15334 s//\1/
15335 q
15336 }
15337 s/.*/./; q'`
15338
15339# CDPATH.
15340$as_unset CDPATH
15341
15342
15343
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015344 as_lineno_1=$LINENO
15345 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015346 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015347 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015348
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015349 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15350 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015351 # line-number line after each line using $LINENO; the second 'sed'
15352 # does the real work. The second script uses 'N' to pair each
15353 # line-number line with the line containing $LINENO, and appends
15354 # trailing '-' during substitution so that $LINENO is not a special
15355 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015356 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015357 # scripts with optimization help from Paolo Bonzini. Blame Lee
15358 # E. McMahon (1931-1989) for sed's syntax. :-)
15359 sed -n '
15360 p
15361 /[$]LINENO/=
15362 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015363 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015364 s/[$]LINENO.*/&-/
15365 t lineno
15366 b
15367 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015368 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015369 :loop
15370 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015371 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015372 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015373 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015374 chmod +x "$as_me.lineno" ||
15375 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015376 { (exit 1); exit 1; }; }
15377
15378 # Don't try to exec as it changes $[0], causing all sort of problems
15379 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015380 # original and so on. Autoconf is especially sensitive to this).
15381 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015382 # Exit status is that of the last command.
15383 exit
15384}
15385
15386
Theodore Ts'oe1052142006-10-21 21:46:47 -040015387if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15388 as_dirname=dirname
15389else
15390 as_dirname=false
15391fi
15392
15393ECHO_C= ECHO_N= ECHO_T=
15394case `echo -n x` in
15395-n*)
15396 case `echo 'x\c'` in
15397 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15398 *) ECHO_C='\c';;
15399 esac;;
15400*)
15401 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015402esac
15403
Theodore Ts'oe1052142006-10-21 21:46:47 -040015404if expr a : '\(a\)' >/dev/null 2>&1 &&
15405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015406 as_expr=expr
15407else
15408 as_expr=false
15409fi
15410
15411rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015412if test -d conf$$.dir; then
15413 rm -f conf$$.dir/conf$$.file
15414else
15415 rm -f conf$$.dir
15416 mkdir conf$$.dir
15417fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015418echo >conf$$.file
15419if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015420 as_ln_s='ln -s'
15421 # ... but there are two gotchas:
15422 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15423 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15424 # In both cases, we have to default to `cp -p'.
15425 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015426 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427elif ln conf$$.file conf$$ 2>/dev/null; then
15428 as_ln_s=ln
15429else
15430 as_ln_s='cp -p'
15431fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015432rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15433rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015434
15435if mkdir -p . 2>/dev/null; then
15436 as_mkdir_p=:
15437else
15438 test -d ./-p && rmdir ./-p
15439 as_mkdir_p=false
15440fi
15441
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015442if test -x / >/dev/null 2>&1; then
15443 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015444else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015445 if ls -dL / >/dev/null 2>&1; then
15446 as_ls_L_option=L
15447 else
15448 as_ls_L_option=
15449 fi
15450 as_test_x='
15451 eval sh -c '\''
15452 if test -d "$1"; then
15453 test -d "$1/.";
15454 else
15455 case $1 in
15456 -*)set "./$1";;
15457 esac;
15458 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15459 ???[sx]*):;;*)false;;esac;fi
15460 '\'' sh
15461 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015462fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015463as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015464
15465# Sed expression to map a string onto a valid CPP name.
15466as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15467
15468# Sed expression to map a string onto a valid variable name.
15469as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15470
15471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015472exec 6>&1
15473
Theodore Ts'oe1052142006-10-21 21:46:47 -040015474# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015475# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015476# values after options handling.
15477ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015478This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015479generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015480
15481 CONFIG_FILES = $CONFIG_FILES
15482 CONFIG_HEADERS = $CONFIG_HEADERS
15483 CONFIG_LINKS = $CONFIG_LINKS
15484 CONFIG_COMMANDS = $CONFIG_COMMANDS
15485 $ $0 $@
15486
Theodore Ts'oe1052142006-10-21 21:46:47 -040015487on `(hostname || uname -n) 2>/dev/null | sed 1q`
15488"
15489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015490_ACEOF
15491
Theodore Ts'oe1052142006-10-21 21:46:47 -040015492cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015493# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015494config_files="$ac_config_files"
15495config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015496
Theodore Ts'oe1052142006-10-21 21:46:47 -040015497_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015498
15499cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015500ac_cs_usage="\
15501\`$as_me' instantiates files from templates according to the
15502current configuration.
15503
15504Usage: $0 [OPTIONS] [FILE]...
15505
15506 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015507 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015508 -q, --quiet do not print progress messages
15509 -d, --debug don't remove temporary files
15510 --recheck update $as_me by reconfiguring in the same conditions
15511 --file=FILE[:TEMPLATE]
15512 instantiate the configuration file FILE
15513
15514Configuration files:
15515$config_files
15516
15517Configuration commands:
15518$config_commands
15519
15520Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015521
Theodore Ts'oe1052142006-10-21 21:46:47 -040015522_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015523cat >>$CONFIG_STATUS <<_ACEOF
15524ac_cs_version="\\
15525config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015526configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015527 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015528
Theodore Ts'oe1052142006-10-21 21:46:47 -040015529Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015530This config.status script is free software; the Free Software Foundation
15531gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015532
15533ac_pwd='$ac_pwd'
15534srcdir='$srcdir'
15535INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015536_ACEOF
15537
15538cat >>$CONFIG_STATUS <<\_ACEOF
15539# If no file are specified by the user, then we need to provide default
15540# value. By we need to know if files were specified by the user.
15541ac_need_defaults=:
15542while test $# != 0
15543do
15544 case $1 in
15545 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15547 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015548 ac_shift=:
15549 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015550 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015551 ac_option=$1
15552 ac_optarg=$2
15553 ac_shift=shift
15554 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015555 esac
15556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015557 case $ac_option in
15558 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15560 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15562 echo "$ac_cs_version"; exit ;;
15563 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015564 debug=: ;;
15565 --file | --fil | --fi | --f )
15566 $ac_shift
15567 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15568 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015569 --he | --h | --help | --hel | -h )
15570 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15572 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15573 ac_cs_silent=: ;;
15574
15575 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015576 -*) { echo "$as_me: error: unrecognized option: $1
15577Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015578 { (exit 1); exit 1; }; } ;;
15579
Theodore Ts'oe1052142006-10-21 21:46:47 -040015580 *) ac_config_targets="$ac_config_targets $1"
15581 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015582
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015583 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015584 shift
15585done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015587ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015589if $ac_cs_silent; then
15590 exec 6>/dev/null
15591 ac_configure_extra_args="$ac_configure_extra_args --silent"
15592fi
15593
15594_ACEOF
15595cat >>$CONFIG_STATUS <<_ACEOF
15596if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015597 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15598 CONFIG_SHELL=$SHELL
15599 export CONFIG_SHELL
15600 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015601fi
15602
15603_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015604cat >>$CONFIG_STATUS <<\_ACEOF
15605exec 5>>config.log
15606{
15607 echo
15608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15609## Running $as_me. ##
15610_ASBOX
15611 echo "$ac_log"
15612} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015613
Theodore Ts'oe1052142006-10-21 21:46:47 -040015614_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015615cat >>$CONFIG_STATUS <<_ACEOF
15616#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015617# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015618#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015619# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015620 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015621 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015622 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015623 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15624 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015625
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015627_ACEOF
15628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015629cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015630
15631# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015632for ac_config_target in $ac_config_targets
15633do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015634 case $ac_config_target in
15635 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15636 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015638 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15639echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15640 { (exit 1); exit 1; }; };;
15641 esac
15642done
15643
Theodore Ts'oe1052142006-10-21 21:46:47 -040015644
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015645# If the user did not use the arguments to specify the items to instantiate,
15646# then the envvar interface is used. Set only those that are not.
15647# We use the long form for the default assignment because of an extremely
15648# bizarre bug on SunOS 4.1.3.
15649if $ac_need_defaults; then
15650 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15652fi
15653
15654# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015655# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015656# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015657# Hook for its removal unless debugging.
15658# Note that there is a small window in which the directory will not be cleaned:
15659# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015660$debug ||
15661{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015662 tmp=
15663 trap 'exit_status=$?
15664 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15665' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015666 trap '{ (exit 1); exit 1; }' 1 2 13 15
15667}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015668# Create a (secure) tmp directory for tmp files.
15669
15670{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015672 test -n "$tmp" && test -d "$tmp"
15673} ||
15674{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015675 tmp=./conf$$-$RANDOM
15676 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015677} ||
15678{
15679 echo "$me: cannot create a temporary directory in ." >&2
15680 { (exit 1); exit 1; }
15681}
15682
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015683#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015684# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015685#
15686
15687# No need to generate the scripts if there are no CONFIG_FILES.
15688# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015689if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015690
15691_ACEOF
15692
Theodore Ts'oe1052142006-10-21 21:46:47 -040015693# Create sed commands to just substitute file output variables.
15694
15695# Remaining file output variables are in a fragment that also has non-file
15696# output varibles.
15697
15698
15699
15700ac_delim='%!_!# '
15701for ac_last_try in false false false false false :; do
15702 cat >conf$$subs.sed <<_ACEOF
15703SHELL!$SHELL$ac_delim
15704PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15705PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15706PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15707PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15708PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15709PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15710exec_prefix!$exec_prefix$ac_delim
15711prefix!$prefix$ac_delim
15712program_transform_name!$program_transform_name$ac_delim
15713bindir!$bindir$ac_delim
15714sbindir!$sbindir$ac_delim
15715libexecdir!$libexecdir$ac_delim
15716datarootdir!$datarootdir$ac_delim
15717datadir!$datadir$ac_delim
15718sysconfdir!$sysconfdir$ac_delim
15719sharedstatedir!$sharedstatedir$ac_delim
15720localstatedir!$localstatedir$ac_delim
15721includedir!$includedir$ac_delim
15722oldincludedir!$oldincludedir$ac_delim
15723docdir!$docdir$ac_delim
15724infodir!$infodir$ac_delim
15725htmldir!$htmldir$ac_delim
15726dvidir!$dvidir$ac_delim
15727pdfdir!$pdfdir$ac_delim
15728psdir!$psdir$ac_delim
15729libdir!$libdir$ac_delim
15730localedir!$localedir$ac_delim
15731mandir!$mandir$ac_delim
15732DEFS!$DEFS$ac_delim
15733ECHO_C!$ECHO_C$ac_delim
15734ECHO_N!$ECHO_N$ac_delim
15735ECHO_T!$ECHO_T$ac_delim
15736LIBS!$LIBS$ac_delim
15737build_alias!$build_alias$ac_delim
15738host_alias!$host_alias$ac_delim
15739target_alias!$target_alias$ac_delim
15740E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15741E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15742E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15743E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050015744E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015745build!$build$ac_delim
15746build_cpu!$build_cpu$ac_delim
15747build_vendor!$build_vendor$ac_delim
15748build_os!$build_os$ac_delim
15749host!$host$ac_delim
15750host_cpu!$host_cpu$ac_delim
15751host_vendor!$host_vendor$ac_delim
15752host_os!$host_os$ac_delim
15753CC!$CC$ac_delim
15754CFLAGS!$CFLAGS$ac_delim
15755LDFLAGS!$LDFLAGS$ac_delim
15756CPPFLAGS!$CPPFLAGS$ac_delim
15757ac_ct_CC!$ac_ct_CC$ac_delim
15758EXEEXT!$EXEEXT$ac_delim
15759OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015760CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015761LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015762GREP!$GREP$ac_delim
15763EGREP!$EGREP$ac_delim
15764LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15765MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15766HTREE_CMT!$HTREE_CMT$ac_delim
15767ELF_CMT!$ELF_CMT$ac_delim
15768BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15769PROFILE_CMT!$PROFILE_CMT$ac_delim
15770CHECKER_CMT!$CHECKER_CMT$ac_delim
15771LIB_EXT!$LIB_EXT$ac_delim
15772STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15773PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15774SWAPFS_CMT!$SWAPFS_CMT$ac_delim
15775DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15776IMAGER_CMT!$IMAGER_CMT$ac_delim
15777RESIZER_CMT!$RESIZER_CMT$ac_delim
15778E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015779_ACEOF
15780
15781 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
15782 break
15783 elif $ac_last_try; then
15784 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15785echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15786 { (exit 1); exit 1; }; }
15787 else
15788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015789 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015790done
15791
15792ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15793if test -n "$ac_eof"; then
15794 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15795 ac_eof=`expr $ac_eof + 1`
15796fi
15797
15798cat >>$CONFIG_STATUS <<_ACEOF
15799cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15801/^[ ]*@MCONFIG@[ ]*$/{
15802r $MCONFIG
15803d
15804}
15805/^[ ]*@MAKEFILE_ELF@[ ]*$/{
15806r $MAKEFILE_ELF
15807d
15808}
15809/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15810r $MAKEFILE_BSDLIB
15811d
15812}
15813/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15814r $MAKEFILE_PROFILE
15815d
15816}
15817/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15818r $MAKEFILE_CHECKER
15819d
15820}
15821/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15822r $MAKEFILE_LIBRARY
15823d
15824}
15825/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15826r $ASM_TYPES_HEADER
15827d
15828}
15829_ACEOF
15830sed '
15831s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15832s/^/s,@/; s/!/@,|#_!!_#|/
15833:n
15834t n
15835s/'"$ac_delim"'$/,g/; t
15836s/$/\\/; p
15837N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15838' >>$CONFIG_STATUS <conf$$subs.sed
15839rm -f conf$$subs.sed
15840cat >>$CONFIG_STATUS <<_ACEOF
15841CEOF$ac_eof
15842_ACEOF
15843
15844
15845ac_delim='%!_!# '
15846for ac_last_try in false false false false false :; do
15847 cat >conf$$subs.sed <<_ACEOF
Andreas Dilger927566a2006-11-12 19:41:25 -050015848FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015849FSCK_MAN!$FSCK_MAN$ac_delim
15850E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15851E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15852DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
15853DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
15854DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
15855STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
15856GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15857PACKAGE!$PACKAGE$ac_delim
15858VERSION!$VERSION$ac_delim
15859SET_MAKE!$SET_MAKE$ac_delim
15860INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15861INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15862INSTALL_DATA!$INSTALL_DATA$ac_delim
15863MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15864USE_NLS!$USE_NLS$ac_delim
15865MSGFMT!$MSGFMT$ac_delim
15866GMSGFMT!$GMSGFMT$ac_delim
15867XGETTEXT!$XGETTEXT$ac_delim
15868MSGMERGE!$MSGMERGE$ac_delim
15869RANLIB!$RANLIB$ac_delim
15870ALLOCA!$ALLOCA$ac_delim
15871GLIBC21!$GLIBC21$ac_delim
15872HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15873HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15874HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15875HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15876LIBICONV!$LIBICONV$ac_delim
15877LTLIBICONV!$LTLIBICONV$ac_delim
15878INTLBISON!$INTLBISON$ac_delim
15879BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
15880USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
15881CATOBJEXT!$CATOBJEXT$ac_delim
15882DATADIRNAME!$DATADIRNAME$ac_delim
15883INSTOBJEXT!$INSTOBJEXT$ac_delim
15884GENCAT!$GENCAT$ac_delim
15885INTLOBJS!$INTLOBJS$ac_delim
15886INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
15887INTLLIBS!$INTLLIBS$ac_delim
15888LIBINTL!$LIBINTL$ac_delim
15889LTLIBINTL!$LTLIBINTL$ac_delim
15890POSUB!$POSUB$ac_delim
15891BINARY_TYPE!$BINARY_TYPE$ac_delim
15892LN!$LN$ac_delim
15893LN_S!$LN_S$ac_delim
15894MV!$MV$ac_delim
15895CP!$CP$ac_delim
15896RM!$RM$ac_delim
15897CHMOD!$CHMOD$ac_delim
15898AWK!$AWK$ac_delim
15899SED!$SED$ac_delim
15900PERL!$PERL$ac_delim
15901LDCONFIG!$LDCONFIG$ac_delim
15902AR!$AR$ac_delim
15903STRIP!$STRIP$ac_delim
15904BUILD_CC!$BUILD_CC$ac_delim
15905SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
15906SIZEOF_INT!$SIZEOF_INT$ac_delim
15907SIZEOF_LONG!$SIZEOF_LONG$ac_delim
15908SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
15909SOCKET_LIB!$SOCKET_LIB$ac_delim
15910DLOPEN_LIB!$DLOPEN_LIB$ac_delim
15911UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
15912LINUX_CMT!$LINUX_CMT$ac_delim
15913CYGWIN_CMT!$CYGWIN_CMT$ac_delim
15914UNIX_CMT!$UNIX_CMT$ac_delim
15915root_prefix!$root_prefix$ac_delim
15916root_bindir!$root_bindir$ac_delim
15917root_sbindir!$root_sbindir$ac_delim
15918root_libdir!$root_libdir$ac_delim
15919root_sysconfdir!$root_sysconfdir$ac_delim
15920LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
15921SS_DIR!$SS_DIR$ac_delim
15922ET_DIR!$ET_DIR$ac_delim
15923DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
15924INTL_FLAGS!$INTL_FLAGS$ac_delim
15925BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15926BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15927LIBOBJS!$LIBOBJS$ac_delim
15928LTLIBOBJS!$LTLIBOBJS$ac_delim
15929_ACEOF
15930
Andreas Dilger927566a2006-11-12 19:41:25 -050015931 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015932 break
15933 elif $ac_last_try; then
15934 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15935echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15936 { (exit 1); exit 1; }; }
15937 else
15938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15939 fi
15940done
15941
15942ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15943if test -n "$ac_eof"; then
15944 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15945 ac_eof=`expr $ac_eof + 1`
15946fi
15947
15948cat >>$CONFIG_STATUS <<_ACEOF
15949cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15950/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15951_ACEOF
15952sed '
15953s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15954s/^/s,@/; s/!/@,|#_!!_#|/
15955:n
15956t n
15957s/'"$ac_delim"'$/,g/; t
15958s/$/\\/; p
15959N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15960' >>$CONFIG_STATUS <conf$$subs.sed
15961rm -f conf$$subs.sed
15962cat >>$CONFIG_STATUS <<_ACEOF
15963:end
15964s/|#_!!_#|//g
15965CEOF$ac_eof
15966_ACEOF
15967
15968
15969# VPATH may cause trouble with some makes, so we remove $(srcdir),
15970# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15971# trailing colons and then remove the whole line if VPATH becomes empty
15972# (actually we leave an empty line to preserve line numbers).
15973if test "x$srcdir" = x.; then
15974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15975s/:*\$(srcdir):*/:/
15976s/:*\${srcdir}:*/:/
15977s/:*@srcdir@:*/:/
15978s/^\([^=]*=[ ]*\):*/\1/
15979s/:*$//
15980s/^[^=]*=[ ]*$//
15981}'
15982fi
15983
15984cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015985fi # test -n "$CONFIG_FILES"
15986
Theodore Ts'oe1052142006-10-21 21:46:47 -040015987
15988for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
15989do
15990 case $ac_tag in
15991 :[FHLC]) ac_mode=$ac_tag; continue;;
15992 esac
15993 case $ac_mode$ac_tag in
15994 :[FHL]*:*);;
15995 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15996echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15997 { (exit 1); exit 1; }; };;
15998 :[FH]-) ac_tag=-:-;;
15999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16000 esac
16001 ac_save_IFS=$IFS
16002 IFS=:
16003 set x $ac_tag
16004 IFS=$ac_save_IFS
16005 shift
16006 ac_file=$1
16007 shift
16008
16009 case $ac_mode in
16010 :L) ac_source=$1;;
16011 :[FH])
16012 ac_file_inputs=
16013 for ac_f
16014 do
16015 case $ac_f in
16016 -) ac_f="$tmp/stdin";;
16017 *) # Look for the file first in the build tree, then in the source tree
16018 # (if the path is not absolute). The absolute path cannot be DOS-style,
16019 # because $ac_f cannot contain `:'.
16020 test -f "$ac_f" ||
16021 case $ac_f in
16022 [\\/$]*) false;;
16023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16024 esac ||
16025 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16026echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16027 { (exit 1); exit 1; }; };;
16028 esac
16029 ac_file_inputs="$ac_file_inputs $ac_f"
16030 done
16031
16032 # Let's still pretend it is `configure' which instantiates (i.e., don't
16033 # use $as_me), people would be surprised to read:
16034 # /* config.h. Generated by config.status. */
16035 configure_input="Generated from "`IFS=:
16036 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16037 if test x"$ac_file" != x-; then
16038 configure_input="$ac_file. $configure_input"
16039 { echo "$as_me:$LINENO: creating $ac_file" >&5
16040echo "$as_me: creating $ac_file" >&6;}
16041 fi
16042
16043 case $ac_tag in
16044 *:-:* | *:-) cat >"$tmp/stdin";;
16045 esac
16046 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016047 esac
16048
Theodore Ts'oe1052142006-10-21 21:46:47 -040016049 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016050$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16051 X"$ac_file" : 'X\(//\)[^/]' \| \
16052 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016054echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\/\)[^/].*/{
16060 s//\1/
16061 q
16062 }
16063 /^X\(\/\/\)$/{
16064 s//\1/
16065 q
16066 }
16067 /^X\(\/\).*/{
16068 s//\1/
16069 q
16070 }
16071 s/.*/./; q'`
16072 { as_dir="$ac_dir"
16073 case $as_dir in #(
16074 -*) as_dir=./$as_dir;;
16075 esac
16076 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016077 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016078 while :; do
16079 case $as_dir in #(
16080 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16081 *) as_qdir=$as_dir;;
16082 esac
16083 as_dirs="'$as_qdir' $as_dirs"
16084 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016085$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16086 X"$as_dir" : 'X\(//\)[^/]' \| \
16087 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016089echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16091 s//\1/
16092 q
16093 }
16094 /^X\(\/\/\)[^/].*/{
16095 s//\1/
16096 q
16097 }
16098 /^X\(\/\/\)$/{
16099 s//\1/
16100 q
16101 }
16102 /^X\(\/\).*/{
16103 s//\1/
16104 q
16105 }
16106 s/.*/./; q'`
16107 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016108 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016109 test -z "$as_dirs" || eval "mkdir $as_dirs"
16110 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16111echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016112 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016113 ac_builddir=.
16114
Theodore Ts'oe1052142006-10-21 21:46:47 -040016115case "$ac_dir" in
16116.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16117*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016119 # A ".." for each directory in $ac_dir_suffix.
16120 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16121 case $ac_top_builddir_sub in
16122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16124 esac ;;
16125esac
16126ac_abs_top_builddir=$ac_pwd
16127ac_abs_builddir=$ac_pwd$ac_dir_suffix
16128# for backward compatibility:
16129ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016130
16131case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016132 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016133 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016134 ac_top_srcdir=$ac_top_builddir_sub
16135 ac_abs_top_srcdir=$ac_pwd ;;
16136 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016137 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016138 ac_top_srcdir=$srcdir
16139 ac_abs_top_srcdir=$srcdir ;;
16140 *) # Relative name.
16141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16142 ac_top_srcdir=$ac_top_build_prefix$srcdir
16143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016144esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016145ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016147
Theodore Ts'oe1052142006-10-21 21:46:47 -040016148 case $ac_mode in
16149 :F)
16150 #
16151 # CONFIG_FILE
16152 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016153
16154 case $INSTALL in
16155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016156 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016157 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016158_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016159
16160cat >>$CONFIG_STATUS <<\_ACEOF
16161# If the template does not know about datarootdir, expand it.
16162# FIXME: This hack should be removed a few years after 2.60.
16163ac_datarootdir_hack=; ac_datarootdir_seen=
16164
16165case `sed -n '/datarootdir/ {
16166 p
16167 q
16168}
16169/@datadir@/p
16170/@docdir@/p
16171/@infodir@/p
16172/@localedir@/p
16173/@mandir@/p
16174' $ac_file_inputs` in
16175*datarootdir*) ac_datarootdir_seen=yes;;
16176*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16177 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16178echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16179_ACEOF
16180cat >>$CONFIG_STATUS <<_ACEOF
16181 ac_datarootdir_hack='
16182 s&@datadir@&$datadir&g
16183 s&@docdir@&$docdir&g
16184 s&@infodir@&$infodir&g
16185 s&@localedir@&$localedir&g
16186 s&@mandir@&$mandir&g
16187 s&\\\${datarootdir}&$datarootdir&g' ;;
16188esac
16189_ACEOF
16190
16191# Neutralize VPATH when `$srcdir' = `.'.
16192# Shell code in configure.ac might set extrasub.
16193# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016194cat >>$CONFIG_STATUS <<_ACEOF
16195 sed "$ac_vpsub
16196$extrasub
16197_ACEOF
16198cat >>$CONFIG_STATUS <<\_ACEOF
16199:t
16200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016201s&@configure_input@&$configure_input&;t t
16202s&@top_builddir@&$ac_top_builddir_sub&;t t
16203s&@srcdir@&$ac_srcdir&;t t
16204s&@abs_srcdir@&$ac_abs_srcdir&;t t
16205s&@top_srcdir@&$ac_top_srcdir&;t t
16206s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16207s&@builddir@&$ac_builddir&;t t
16208s&@abs_builddir@&$ac_abs_builddir&;t t
16209s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16210s&@INSTALL@&$ac_INSTALL&;t t
16211$ac_datarootdir_hack
16212" $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 -050016213
Theodore Ts'oe1052142006-10-21 21:46:47 -040016214test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16217 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16218which seems to be undefined. Please make sure it is defined." >&5
16219echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16220which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016221
Theodore Ts'oe1052142006-10-21 21:46:47 -040016222 rm -f "$tmp/stdin"
16223 case $ac_file in
16224 -) cat "$tmp/out"; rm -f "$tmp/out";;
16225 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16226 esac
16227 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016228
16229
Theodore Ts'oe1052142006-10-21 21:46:47 -040016230 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16231echo "$as_me: executing $ac_file commands" >&6;}
16232 ;;
16233 esac
16234
16235
16236 case $ac_file$ac_mode in
16237 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016238 for ac_file in $CONFIG_FILES; do
16239 # Support "outfile[:infile[:infile...]]"
16240 case "$ac_file" in
16241 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016242 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016243 # PO directories have a Makefile.in generated from Makefile.in.in.
16244 case "$ac_file" in */Makefile.in)
16245 # Adjust a relative srcdir.
16246 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16247 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16248 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16249 # In autoconf-2.13 it is called $ac_given_srcdir.
16250 # In autoconf-2.50 it is called $srcdir.
16251 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16252 case "$ac_given_srcdir" in
16253 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16254 /*) top_srcdir="$ac_given_srcdir" ;;
16255 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16256 esac
16257 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16258 rm -f "$ac_dir/POTFILES"
16259 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16260 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 -050016261 POMAKEFILEDEPS="POTFILES.in"
16262 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016263 # on $ac_dir but don't depend on user-specified configuration
16264 # parameters.
16265 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16266 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016267 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016268 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16269 fi
16270 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16271 # Hide the ALL_LINGUAS assigment from automake.
16272 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016273 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16274 else
16275 # The set of available languages was given in configure.in.
16276 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016277 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016278 # Compute POFILES
16279 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16280 # Compute UPDATEPOFILES
16281 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16282 # Compute DUMMYPOFILES
16283 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16284 # Compute GMOFILES
16285 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016286 case "$ac_given_srcdir" in
16287 .) srcdirpre= ;;
16288 *) srcdirpre='$(srcdir)/' ;;
16289 esac
16290 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016291 UPDATEPOFILES=
16292 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016293 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016294 for lang in $ALL_LINGUAS; do
16295 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016296 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16297 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016298 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016299 done
16300 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16301 # environment variable.
16302 INST_LINGUAS=
16303 if test -n "$ALL_LINGUAS"; then
16304 for presentlang in $ALL_LINGUAS; do
16305 useit=no
16306 if test "%UNSET%" != "$LINGUAS"; then
16307 desiredlanguages="$LINGUAS"
16308 else
16309 desiredlanguages="$ALL_LINGUAS"
16310 fi
16311 for desiredlang in $desiredlanguages; do
16312 # Use the presentlang catalog if desiredlang is
16313 # a. equal to presentlang, or
16314 # b. a variant of presentlang (because in this case,
16315 # presentlang can be used as a fallback for messages
16316 # which are not translated in the desiredlang catalog).
16317 case "$desiredlang" in
16318 "$presentlang"*) useit=yes;;
16319 esac
16320 done
16321 if test $useit = yes; then
16322 INST_LINGUAS="$INST_LINGUAS $presentlang"
16323 fi
16324 done
16325 fi
16326 CATALOGS=
16327 if test -n "$INST_LINGUAS"; then
16328 for lang in $INST_LINGUAS; do
16329 CATALOGS="$CATALOGS $lang.gmo"
16330 done
16331 fi
16332 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016333 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 -040016334 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16335 if test -f "$f"; then
16336 case "$f" in
16337 *.orig | *.bak | *~) ;;
16338 *) cat "$f" >> "$ac_dir/Makefile" ;;
16339 esac
16340 fi
16341 done
16342 fi
16343 ;;
16344 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016345 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016346
Theodore Ts'oe1052142006-10-21 21:46:47 -040016347 esac
16348done # for ac_tag
16349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016350
16351{ (exit 0); exit 0; }
16352_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016353chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016354ac_clean_files=$ac_clean_files_save
16355
16356
16357# configure is writing to config.log, and then calls config.status.
16358# config.status does its own redirection, appending to config.log.
16359# Unfortunately, on DOS this fails, as config.log is still kept open
16360# by configure, so config.status won't be able to write to it; its
16361# output is simply discarded. So we exec the FD to /dev/null,
16362# effectively closing config.log, so it can be properly (re)opened and
16363# appended to by config.status. When coming back to configure, we
16364# need to make the FD available again.
16365if test "$no_create" != yes; then
16366 ac_cs_success=:
16367 ac_config_status_args=
16368 test "$silent" = yes &&
16369 ac_config_status_args="$ac_config_status_args --quiet"
16370 exec 5>/dev/null
16371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16372 exec 5>>config.log
16373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16374 # would make configure fail if this is the last instruction.
16375 $ac_cs_success || { (exit 1); exit 1; }
16376fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016377
Theodore Ts'oee683a12005-02-05 15:53:56 -050016378if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16379