blob: 5c8448a8cf7faa5e663bc941f624c2efc4577d17 [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
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011465
Theodore Ts'o106ad962007-04-04 21:26:37 -040011466
11467
11468for 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 -050011469do
11470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011477ac_res=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480else
11481 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011482{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
11490$ac_includes_default
11491#include <$ac_header>
11492_ACEOF
11493rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011494if { (ac_try="$ac_compile"
11495case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011506 (exit $ac_status); } && {
11507 test -z "$ac_c_werror_flag" ||
11508 test ! -s conftest.err
11509 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011510 ac_header_compiler=yes
11511else
11512 echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
Theodore Ts'oe1052142006-10-21 21:46:47 -040011515 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011517
11518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11520echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011521
11522# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011523{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011525cat >conftest.$ac_ext <<_ACEOF
11526/* confdefs.h. */
11527_ACEOF
11528cat confdefs.h >>conftest.$ac_ext
11529cat >>conftest.$ac_ext <<_ACEOF
11530/* end confdefs.h. */
11531#include <$ac_header>
11532_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011533if { (ac_try="$ac_cpp conftest.$ac_ext"
11534case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537esac
11538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011545 (exit $ac_status); } >/dev/null && {
11546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11548 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011549 ac_header_preproc=yes
11550else
11551 echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 ac_header_preproc=no
11555fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011557rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011558{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11559echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011560
11561# So? What about this header?
11562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11563 yes:no: )
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11568 ac_header_preproc=yes
11569 ;;
11570 no:yes:* )
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011584 ;;
11585esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011586{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590else
11591 eval "$as_ac_Header=\$ac_header_preproc"
11592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011593ac_res=`eval echo '${'$as_ac_Header'}'`
11594 { echo "$as_me:$LINENO: result: $ac_res" >&5
11595echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596
11597fi
11598if test `eval echo '${'$as_ac_Header'}'` = yes; then
11599 cat >>confdefs.h <<_ACEOF
11600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11601_ACEOF
11602
11603fi
11604
11605done
11606
11607
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011608
11609for ac_header in sys/disk.h sys/mount.h
11610do
11611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011612{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616else
11617 cat >conftest.$ac_ext <<_ACEOF
11618/* confdefs.h. */
11619_ACEOF
11620cat confdefs.h >>conftest.$ac_ext
11621cat >>conftest.$ac_ext <<_ACEOF
11622/* end confdefs.h. */
11623
11624#if HAVE_SYS_QUEUE_H
11625#include <sys/queue.h>
11626#endif
11627
11628
11629#include <$ac_header>
11630_ACEOF
11631rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011632if { (ac_try="$ac_compile"
11633case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636esac
11637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011648 eval "$as_ac_Header=yes"
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
Theodore Ts'oe1052142006-10-21 21:46:47 -040011653 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011654fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011655
11656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011658ac_res=`eval echo '${'$as_ac_Header'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011661if test `eval echo '${'$as_ac_Header'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11664_ACEOF
11665
11666fi
11667
11668done
11669
11670
11671for ac_header in net/if.h
11672do
11673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011674{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
11685
11686#if HAVE_SYS_TYPES_H
11687#include <sys/types.h>
11688#endif
11689#if HAVE_SYS_SOCKET
11690#include <sys/socket.h>
11691#endif
11692
11693
11694#include <$ac_header>
11695_ACEOF
11696rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011697if { (ac_try="$ac_compile"
11698case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701esac
11702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011713 eval "$as_ac_Header=yes"
11714else
11715 echo "$as_me: failed program was:" >&5
11716sed 's/^/| /' conftest.$ac_ext >&5
11717
Theodore Ts'oe1052142006-10-21 21:46:47 -040011718 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011720
11721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011722fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011723ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011726if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727 cat >>confdefs.h <<_ACEOF
11728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729_ACEOF
11730
11731fi
11732
11733done
11734
11735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736for ac_func in vprintf
11737do
11738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743else
11744 cat >conftest.$ac_ext <<_ACEOF
11745/* confdefs.h. */
11746_ACEOF
11747cat confdefs.h >>conftest.$ac_ext
11748cat >>conftest.$ac_ext <<_ACEOF
11749/* end confdefs.h. */
11750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752#define $ac_func innocuous_$ac_func
11753
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011754/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11758
11759#ifdef __STDC__
11760# include <limits.h>
11761#else
11762# include <assert.h>
11763#endif
11764
11765#undef $ac_func
11766
Theodore Ts'oe1052142006-10-21 21:46:47 -040011767/* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011770#ifdef __cplusplus
11771extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011772#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011773char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011774/* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011777#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011778choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011779#endif
11780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011781int
11782main ()
11783{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011784return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011785 ;
11786 return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790if { (ac_try="$ac_link"
11791case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794esac
11795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest$ac_exeext &&
11806 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011807 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011808else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011809 echo "$as_me: failed program was:" >&5
11810sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011811
Theodore Ts'oe1052142006-10-21 21:46:47 -040011812 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011813fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011814
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011816 conftest$ac_exeext conftest.$ac_ext
11817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011818ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result: $ac_res" >&5
11820echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011821if test `eval echo '${'$as_ac_var'}'` = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011825
Theodore Ts'oe1052142006-10-21 21:46:47 -040011826{ echo "$as_me:$LINENO: checking for _doprnt" >&5
11827echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828if test "${ac_cv_func__doprnt+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011830else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11839#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011840
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011841/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011842 which can conflict with char _doprnt (); below.
11843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844 <limits.h> exists even on freestanding compilers. */
11845
11846#ifdef __STDC__
11847# include <limits.h>
11848#else
11849# include <assert.h>
11850#endif
11851
11852#undef _doprnt
11853
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854/* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857#ifdef __cplusplus
11858extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011859#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011860char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011861/* The GNU C library defines this for functions which it implements
11862 to always fail with ENOSYS. Some functions are actually named
11863 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011864#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011865choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011866#endif
11867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868int
11869main ()
11870{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011871return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872 ;
11873 return 0;
11874}
11875_ACEOF
11876rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011877if { (ac_try="$ac_link"
11878case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11881esac
11882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011884 ac_status=$?
11885 grep -v '^ *+' conftest.er1 >conftest.err
11886 rm -f conftest.er1
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011889 (exit $ac_status); } && {
11890 test -z "$ac_c_werror_flag" ||
11891 test ! -s conftest.err
11892 } && test -s conftest$ac_exeext &&
11893 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011894 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011895else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896 echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011898
Theodore Ts'oe1052142006-10-21 21:46:47 -040011899 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011903 conftest$ac_exeext conftest.$ac_ext
11904fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11906echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011907if test $ac_cv_func__doprnt = yes; then
11908
11909cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011910#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011911_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011912
11913fi
11914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011915fi
11916done
11917
11918
Theodore Ts'oe1052142006-10-21 21:46:47 -040011919{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11920echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011921if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011922 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011923else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924 cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011930#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932int
11933main ()
11934{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011935static struct dirent ac_aggr;
11936if (ac_aggr.d_reclen)
11937return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011943if { (ac_try="$ac_compile"
11944case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011959 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011961 echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
Theodore Ts'oe1052142006-10-21 21:46:47 -040011964 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970#include <dirent.h>
11971
11972int
11973main ()
11974{
11975static struct dirent ac_aggr;
11976if (sizeof ac_aggr.d_reclen)
11977return 0;
11978 ;
11979 return 0;
11980}
11981_ACEOF
11982rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011983if { (ac_try="$ac_compile"
11984case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011999 ac_cv_member_struct_dirent_d_reclen=yes
12000else
12001 echo "$as_me: failed program was:" >&5
12002sed 's/^/| /' conftest.$ac_ext >&5
12003
Theodore Ts'oe1052142006-10-21 21:46:47 -040012004 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012005fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012006
12007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012009
12010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012012{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12013echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012014if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12015 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012016#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012017_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012018
12019fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012020
Theodore Ts'oe1052142006-10-21 21:46:47 -040012021{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12022echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012023if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012024 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012025else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012026 cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012032#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012033
Theodore Ts'oe1052142006-10-21 21:46:47 -040012034typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012035int
12036main ()
12037{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012038if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012039 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012040if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012041 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042 ;
12043 return 0;
12044}
12045_ACEOF
12046rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012047if { (ac_try="$ac_compile"
12048case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051esac
12052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012063 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012064else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012065 echo "$as_me: failed program was:" >&5
12066sed 's/^/| /' conftest.$ac_ext >&5
12067
Theodore Ts'oe1052142006-10-21 21:46:47 -040012068 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012070
12071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012072fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012073{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12074echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012075if test $ac_cv_type_ssize_t = yes; then
12076 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012077#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012079
12080fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012081
Theodore Ts'oe1052142006-10-21 21:46:47 -040012082{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12083echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012084if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012086else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012087 cat >conftest.$ac_ext <<_ACEOF
12088/* confdefs.h. */
12089_ACEOF
12090cat confdefs.h >>conftest.$ac_ext
12091cat >>conftest.$ac_ext <<_ACEOF
12092/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012093#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012095int
12096main ()
12097{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012098#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012099 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012100#endif
12101
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102 ;
12103 return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012107if { (ac_try="$ac_compile"
12108case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12111esac
12112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012123 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012124else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012125 echo "$as_me: failed program was:" >&5
12126sed 's/^/| /' conftest.$ac_ext >&5
12127
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012129fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012130
12131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012132fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012133{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12134echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012135if test $ac_cv_have_decl_llseek = yes; then
12136 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012137#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012138_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012139
12140fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012141
Theodore Ts'oe1052142006-10-21 21:46:47 -040012142{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12143echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012144if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012146else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012147 cat >conftest.$ac_ext <<_ACEOF
12148/* confdefs.h. */
12149_ACEOF
12150cat confdefs.h >>conftest.$ac_ext
12151cat >>conftest.$ac_ext <<_ACEOF
12152/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012153#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012154 #define _LARGEFILE64_SOURCE
12155 #include <unistd.h>
12156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157int
12158main ()
12159{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012160#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012161 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012162#endif
12163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164 ;
12165 return 0;
12166}
12167_ACEOF
12168rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012169if { (ac_try="$ac_compile"
12170case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173esac
12174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012185 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012187 echo "$as_me: failed program was:" >&5
12188sed 's/^/| /' conftest.$ac_ext >&5
12189
Theodore Ts'oe1052142006-10-21 21:46:47 -040012190 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012191fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012192
12193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012194fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012195{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12196echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012197if test $ac_cv_have_decl_lseek64 = yes; then
12198 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012199#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012201
12202fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012203
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012204if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012206 ac_cv_sizeof_short=2
12207 ac_cv_sizeof_int=4
12208 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012209 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012210 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12211echo "$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 +000012212fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012213{ echo "$as_me:$LINENO: checking for short" >&5
12214echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215if test "${ac_cv_type_short+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217else
12218 cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
12223/* end confdefs.h. */
12224$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012225typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012226int
12227main ()
12228{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012229if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012230 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012231if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232 return 0;
12233 ;
12234 return 0;
12235}
12236_ACEOF
12237rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012238if { (ac_try="$ac_compile"
12239case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242esac
12243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012254 ac_cv_type_short=yes
12255else
12256 echo "$as_me: failed program was:" >&5
12257sed 's/^/| /' conftest.$ac_ext >&5
12258
Theodore Ts'oe1052142006-10-21 21:46:47 -040012259 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012260fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012261
Theodore Ts'oe1052142006-10-21 21:46:47 -040012262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263fi
12264{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12265echo "${ECHO_T}$ac_cv_type_short" >&6; }
12266
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012267# The cast to long int works around a bug in the HP C Compiler
12268# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12269# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12270# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012271{ echo "$as_me:$LINENO: checking size of short" >&5
12272echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012273if test "${ac_cv_sizeof_short+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276 if test "$cross_compiling" = yes; then
12277 # Depending upon the size, compute the lo and hi bounds.
12278cat >conftest.$ac_ext <<_ACEOF
12279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
12284$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012285 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012286int
12287main ()
12288{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012289static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290test_array [0] = 0
12291
12292 ;
12293 return 0;
12294}
12295_ACEOF
12296rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012297if { (ac_try="$ac_compile"
12298case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 ac_lo=0 ac_mid=0
12314 while :; do
12315 cat >conftest.$ac_ext <<_ACEOF
12316/* confdefs.h. */
12317_ACEOF
12318cat confdefs.h >>conftest.$ac_ext
12319cat >>conftest.$ac_ext <<_ACEOF
12320/* end confdefs.h. */
12321$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012322 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012323int
12324main ()
12325{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012326static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012327test_array [0] = 0
12328
12329 ;
12330 return 0;
12331}
12332_ACEOF
12333rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012334if { (ac_try="$ac_compile"
12335case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012350 ac_hi=$ac_mid; break
12351else
12352 echo "$as_me: failed program was:" >&5
12353sed 's/^/| /' conftest.$ac_ext >&5
12354
Theodore Ts'oe1052142006-10-21 21:46:47 -040012355 ac_lo=`expr $ac_mid + 1`
12356 if test $ac_lo -le $ac_mid; then
12357 ac_lo= ac_hi=
12358 break
12359 fi
12360 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012361fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012362
12363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364 done
12365else
12366 echo "$as_me: failed program was:" >&5
12367sed 's/^/| /' conftest.$ac_ext >&5
12368
Theodore Ts'oe1052142006-10-21 21:46:47 -040012369 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012376 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012377int
12378main ()
12379{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012380static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012381test_array [0] = 0
12382
12383 ;
12384 return 0;
12385}
12386_ACEOF
12387rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012388if { (ac_try="$ac_compile"
12389case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392esac
12393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012404 ac_hi=-1 ac_mid=-1
12405 while :; do
12406 cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012413 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012414int
12415main ()
12416{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012417static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012418test_array [0] = 0
12419
12420 ;
12421 return 0;
12422}
12423_ACEOF
12424rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012425if { (ac_try="$ac_compile"
12426case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429esac
12430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012441 ac_lo=$ac_mid; break
12442else
12443 echo "$as_me: failed program was:" >&5
12444sed 's/^/| /' conftest.$ac_ext >&5
12445
Theodore Ts'oe1052142006-10-21 21:46:47 -040012446 ac_hi=`expr '(' $ac_mid ')' - 1`
12447 if test $ac_mid -le $ac_hi; then
12448 ac_lo= ac_hi=
12449 break
12450 fi
12451 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012452fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012453
12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012455 done
12456else
12457 echo "$as_me: failed program was:" >&5
12458sed 's/^/| /' conftest.$ac_ext >&5
12459
Theodore Ts'oe1052142006-10-21 21:46:47 -040012460 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012461fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012462
12463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012465
12466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012467# Binary search between lo and hi bounds.
12468while test "x$ac_lo" != "x$ac_hi"; do
12469 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12470 cat >conftest.$ac_ext <<_ACEOF
12471/* confdefs.h. */
12472_ACEOF
12473cat confdefs.h >>conftest.$ac_ext
12474cat >>conftest.$ac_ext <<_ACEOF
12475/* end confdefs.h. */
12476$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012477 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012478int
12479main ()
12480{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012481static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012482test_array [0] = 0
12483
12484 ;
12485 return 0;
12486}
12487_ACEOF
12488rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489if { (ac_try="$ac_compile"
12490case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
12504 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505 ac_hi=$ac_mid
12506else
12507 echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
Theodore Ts'oe1052142006-10-21 21:46:47 -040012510 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012512
12513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514done
12515case $ac_lo in
12516?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012517'') if test "$ac_cv_type_short" = yes; then
12518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012520echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012522 { (exit 77); exit 77; }; }
12523 else
12524 ac_cv_sizeof_short=0
12525 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012526esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012527else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012528 cat >conftest.$ac_ext <<_ACEOF
12529/* confdefs.h. */
12530_ACEOF
12531cat confdefs.h >>conftest.$ac_ext
12532cat >>conftest.$ac_ext <<_ACEOF
12533/* end confdefs.h. */
12534$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012535 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012536static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12537static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012538#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539#include <stdlib.h>
12540int
12541main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012542{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012543
12544 FILE *f = fopen ("conftest.val", "w");
12545 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012546 return 1;
12547 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012548 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012549 long int i = longval ();
12550 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12551 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552 fprintf (f, "%ld\n", i);
12553 }
12554 else
12555 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012556 unsigned long int i = ulongval ();
12557 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12558 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012559 fprintf (f, "%lu\n", i);
12560 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012561 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012562
12563 ;
12564 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012565}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012566_ACEOF
12567rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012568if { (ac_try="$ac_link"
12569case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12572esac
12573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012588else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012589 echo "$as_me: program exited with status $ac_status" >&5
12590echo "$as_me: failed program was:" >&5
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
12593( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012594if test "$ac_cv_type_short" = yes; then
12595 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012597echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012599 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012600 else
12601 ac_cv_sizeof_short=0
12602 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012603fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012604rm -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 -050012605fi
12606rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12609echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012610
12611
12612
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012613cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012614#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012616
12617
Theodore Ts'oe1052142006-10-21 21:46:47 -040012618{ echo "$as_me:$LINENO: checking for int" >&5
12619echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620if test "${ac_cv_type_int+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622else
12623 cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h. */
12629$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012630typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012631int
12632main ()
12633{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012634if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637 return 0;
12638 ;
12639 return 0;
12640}
12641_ACEOF
12642rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012643if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012659 ac_cv_type_int=yes
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012665fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012666
Theodore Ts'oe1052142006-10-21 21:46:47 -040012667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668fi
12669{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12670echo "${ECHO_T}$ac_cv_type_int" >&6; }
12671
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012672# The cast to long int works around a bug in the HP C Compiler
12673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12675# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012676{ echo "$as_me:$LINENO: checking size of int" >&5
12677echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678if test "${ac_cv_sizeof_int+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012681 if test "$cross_compiling" = yes; then
12682 # Depending upon the size, compute the lo and hi bounds.
12683cat >conftest.$ac_ext <<_ACEOF
12684/* confdefs.h. */
12685_ACEOF
12686cat confdefs.h >>conftest.$ac_ext
12687cat >>conftest.$ac_ext <<_ACEOF
12688/* end confdefs.h. */
12689$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012690 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012691int
12692main ()
12693{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012694static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012695test_array [0] = 0
12696
12697 ;
12698 return 0;
12699}
12700_ACEOF
12701rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012702if { (ac_try="$ac_compile"
12703case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706esac
12707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012718 ac_lo=0 ac_mid=0
12719 while :; do
12720 cat >conftest.$ac_ext <<_ACEOF
12721/* confdefs.h. */
12722_ACEOF
12723cat confdefs.h >>conftest.$ac_ext
12724cat >>conftest.$ac_ext <<_ACEOF
12725/* end confdefs.h. */
12726$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012727 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012728int
12729main ()
12730{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012731static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012732test_array [0] = 0
12733
12734 ;
12735 return 0;
12736}
12737_ACEOF
12738rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012739if { (ac_try="$ac_compile"
12740case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012751 (exit $ac_status); } && {
12752 test -z "$ac_c_werror_flag" ||
12753 test ! -s conftest.err
12754 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012755 ac_hi=$ac_mid; break
12756else
12757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
Theodore Ts'oe1052142006-10-21 21:46:47 -040012760 ac_lo=`expr $ac_mid + 1`
12761 if test $ac_lo -le $ac_mid; then
12762 ac_lo= ac_hi=
12763 break
12764 fi
12765 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012766fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012767
12768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012769 done
12770else
12771 echo "$as_me: failed program was:" >&5
12772sed 's/^/| /' conftest.$ac_ext >&5
12773
Theodore Ts'oe1052142006-10-21 21:46:47 -040012774 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012775/* confdefs.h. */
12776_ACEOF
12777cat confdefs.h >>conftest.$ac_ext
12778cat >>conftest.$ac_ext <<_ACEOF
12779/* end confdefs.h. */
12780$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012781 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012782int
12783main ()
12784{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012785static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012786test_array [0] = 0
12787
12788 ;
12789 return 0;
12790}
12791_ACEOF
12792rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012793if { (ac_try="$ac_compile"
12794case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012809 ac_hi=-1 ac_mid=-1
12810 while :; do
12811 cat >conftest.$ac_ext <<_ACEOF
12812/* confdefs.h. */
12813_ACEOF
12814cat confdefs.h >>conftest.$ac_ext
12815cat >>conftest.$ac_ext <<_ACEOF
12816/* end confdefs.h. */
12817$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012818 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012819int
12820main ()
12821{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012822static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012823test_array [0] = 0
12824
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012830if { (ac_try="$ac_compile"
12831case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12834esac
12835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846 ac_lo=$ac_mid; break
12847else
12848 echo "$as_me: failed program was:" >&5
12849sed 's/^/| /' conftest.$ac_ext >&5
12850
Theodore Ts'oe1052142006-10-21 21:46:47 -040012851 ac_hi=`expr '(' $ac_mid ')' - 1`
12852 if test $ac_mid -le $ac_hi; then
12853 ac_lo= ac_hi=
12854 break
12855 fi
12856 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012857fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858
12859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012860 done
12861else
12862 echo "$as_me: failed program was:" >&5
12863sed 's/^/| /' conftest.$ac_ext >&5
12864
Theodore Ts'oe1052142006-10-21 21:46:47 -040012865 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012867
12868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012869fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012870
12871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012872# Binary search between lo and hi bounds.
12873while test "x$ac_lo" != "x$ac_hi"; do
12874 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12875 cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012882 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012883int
12884main ()
12885{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012886static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012887test_array [0] = 0
12888
12889 ;
12890 return 0;
12891}
12892_ACEOF
12893rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012894if { (ac_try="$ac_compile"
12895case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012910 ac_hi=$ac_mid
12911else
12912 echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
12914
Theodore Ts'oe1052142006-10-21 21:46:47 -040012915 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012917
12918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012919done
12920case $ac_lo in
12921?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012922'') if test "$ac_cv_type_int" = yes; then
12923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012924See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012925echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012926See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012927 { (exit 77); exit 77; }; }
12928 else
12929 ac_cv_sizeof_int=0
12930 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012931esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012932else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012933 cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
12938/* end confdefs.h. */
12939$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012940 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012941static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12942static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012943#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012944#include <stdlib.h>
12945int
12946main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012947{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012948
12949 FILE *f = fopen ("conftest.val", "w");
12950 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012951 return 1;
12952 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012954 long int i = longval ();
12955 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12956 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012957 fprintf (f, "%ld\n", i);
12958 }
12959 else
12960 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012961 unsigned long int i = ulongval ();
12962 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12963 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012964 fprintf (f, "%lu\n", i);
12965 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012966 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012967
12968 ;
12969 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012970}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971_ACEOF
12972rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012973if { (ac_try="$ac_link"
12974case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012983 { (case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986esac
12987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012993else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012994 echo "$as_me: program exited with status $ac_status" >&5
12995echo "$as_me: failed program was:" >&5
12996sed 's/^/| /' conftest.$ac_ext >&5
12997
12998( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012999if test "$ac_cv_type_int" = yes; then
13000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013001See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013002echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013003See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013004 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013005 else
13006 ac_cv_sizeof_int=0
13007 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013009rm -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 -050013010fi
13011rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013012fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013013{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13014echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013015
13016
13017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013018cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013019#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013020_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013021
13022
Theodore Ts'oe1052142006-10-21 21:46:47 -040013023{ echo "$as_me:$LINENO: checking for long" >&5
13024echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013025if test "${ac_cv_type_long+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027else
13028 cat >conftest.$ac_ext <<_ACEOF
13029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
13034$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013035typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013036int
13037main ()
13038{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013039if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013041if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013042 return 0;
13043 ;
13044 return 0;
13045}
13046_ACEOF
13047rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013048if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013055 ac_status=$?
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013060 (exit $ac_status); } && {
13061 test -z "$ac_c_werror_flag" ||
13062 test ! -s conftest.err
13063 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013064 ac_cv_type_long=yes
13065else
13066 echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
13068
Theodore Ts'oe1052142006-10-21 21:46:47 -040013069 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013070fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013071
Theodore Ts'oe1052142006-10-21 21:46:47 -040013072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073fi
13074{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13075echo "${ECHO_T}$ac_cv_type_long" >&6; }
13076
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013077# The cast to long int works around a bug in the HP C Compiler
13078# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13079# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13080# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013081{ echo "$as_me:$LINENO: checking size of long" >&5
13082echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013083if test "${ac_cv_sizeof_long+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013086 if test "$cross_compiling" = yes; then
13087 # Depending upon the size, compute the lo and hi bounds.
13088cat >conftest.$ac_ext <<_ACEOF
13089/* confdefs.h. */
13090_ACEOF
13091cat confdefs.h >>conftest.$ac_ext
13092cat >>conftest.$ac_ext <<_ACEOF
13093/* end confdefs.h. */
13094$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013095 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013096int
13097main ()
13098{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013099static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013100test_array [0] = 0
13101
13102 ;
13103 return 0;
13104}
13105_ACEOF
13106rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013107if { (ac_try="$ac_compile"
13108case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111esac
13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013123 ac_lo=0 ac_mid=0
13124 while :; do
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013132 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013133int
13134main ()
13135{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013136static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013137test_array [0] = 0
13138
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013144if { (ac_try="$ac_compile"
13145case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013160 ac_hi=$ac_mid; break
13161else
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
Theodore Ts'oe1052142006-10-21 21:46:47 -040013165 ac_lo=`expr $ac_mid + 1`
13166 if test $ac_lo -le $ac_mid; then
13167 ac_lo= ac_hi=
13168 break
13169 fi
13170 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013171fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013172
13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013174 done
13175else
13176 echo "$as_me: failed program was:" >&5
13177sed 's/^/| /' conftest.$ac_ext >&5
13178
Theodore Ts'oe1052142006-10-21 21:46:47 -040013179 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013186 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013187int
13188main ()
13189{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013190static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013191test_array [0] = 0
13192
13193 ;
13194 return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013198if { (ac_try="$ac_compile"
13199case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013210 (exit $ac_status); } && {
13211 test -z "$ac_c_werror_flag" ||
13212 test ! -s conftest.err
13213 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013214 ac_hi=-1 ac_mid=-1
13215 while :; do
13216 cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
13221/* end confdefs.h. */
13222$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013223 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013224int
13225main ()
13226{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013227static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013228test_array [0] = 0
13229
13230 ;
13231 return 0;
13232}
13233_ACEOF
13234rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013235if { (ac_try="$ac_compile"
13236case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013251 ac_lo=$ac_mid; break
13252else
13253 echo "$as_me: failed program was:" >&5
13254sed 's/^/| /' conftest.$ac_ext >&5
13255
Theodore Ts'oe1052142006-10-21 21:46:47 -040013256 ac_hi=`expr '(' $ac_mid ')' - 1`
13257 if test $ac_mid -le $ac_hi; then
13258 ac_lo= ac_hi=
13259 break
13260 fi
13261 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013263
13264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013265 done
13266else
13267 echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
Theodore Ts'oe1052142006-10-21 21:46:47 -040013270 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013271fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013272
13273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013274fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013275
13276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013277# Binary search between lo and hi bounds.
13278while test "x$ac_lo" != "x$ac_hi"; do
13279 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13280 cat >conftest.$ac_ext <<_ACEOF
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
13286$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013287 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013288int
13289main ()
13290{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013291static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013292test_array [0] = 0
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013299if { (ac_try="$ac_compile"
13300case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013315 ac_hi=$ac_mid
13316else
13317 echo "$as_me: failed program was:" >&5
13318sed 's/^/| /' conftest.$ac_ext >&5
13319
Theodore Ts'oe1052142006-10-21 21:46:47 -040013320 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013321fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013322
13323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013324done
13325case $ac_lo in
13326?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013327'') if test "$ac_cv_type_long" = yes; then
13328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013329See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013330echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013331See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013332 { (exit 77); exit 77; }; }
13333 else
13334 ac_cv_sizeof_long=0
13335 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013336esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013337else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013338 cat >conftest.$ac_ext <<_ACEOF
13339/* confdefs.h. */
13340_ACEOF
13341cat confdefs.h >>conftest.$ac_ext
13342cat >>conftest.$ac_ext <<_ACEOF
13343/* end confdefs.h. */
13344$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013345 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013346static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13347static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013348#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013349#include <stdlib.h>
13350int
13351main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013352{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013353
13354 FILE *f = fopen ("conftest.val", "w");
13355 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013356 return 1;
13357 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013358 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013359 long int i = longval ();
13360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13361 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013362 fprintf (f, "%ld\n", i);
13363 }
13364 else
13365 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013366 unsigned long int i = ulongval ();
13367 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13368 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013369 fprintf (f, "%lu\n", i);
13370 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013371 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013372
13373 ;
13374 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013375}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013376_ACEOF
13377rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013378if { (ac_try="$ac_link"
13379case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013398else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013399 echo "$as_me: program exited with status $ac_status" >&5
13400echo "$as_me: failed program was:" >&5
13401sed 's/^/| /' conftest.$ac_ext >&5
13402
13403( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013404if test "$ac_cv_type_long" = yes; then
13405 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013406See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013407echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013408See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013409 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013410 else
13411 ac_cv_sizeof_long=0
13412 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013413fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013414rm -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 -050013415fi
13416rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013418{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13419echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013420
13421
13422
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013423cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013424#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013425_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013426
13427
Theodore Ts'oe1052142006-10-21 21:46:47 -040013428{ echo "$as_me:$LINENO: checking for long long" >&5
13429echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013430if test "${ac_cv_type_long_long+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432else
13433 cat >conftest.$ac_ext <<_ACEOF
13434/* confdefs.h. */
13435_ACEOF
13436cat confdefs.h >>conftest.$ac_ext
13437cat >>conftest.$ac_ext <<_ACEOF
13438/* end confdefs.h. */
13439$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013440typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013441int
13442main ()
13443{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013444if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013445 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013446if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013447 return 0;
13448 ;
13449 return 0;
13450}
13451_ACEOF
13452rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013453if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013465 (exit $ac_status); } && {
13466 test -z "$ac_c_werror_flag" ||
13467 test ! -s conftest.err
13468 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013469 ac_cv_type_long_long=yes
13470else
13471 echo "$as_me: failed program was:" >&5
13472sed 's/^/| /' conftest.$ac_ext >&5
13473
Theodore Ts'oe1052142006-10-21 21:46:47 -040013474 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013475fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013476
Theodore Ts'oe1052142006-10-21 21:46:47 -040013477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478fi
13479{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13480echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13481
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013482# The cast to long int works around a bug in the HP C Compiler
13483# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13484# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13485# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013486{ echo "$as_me:$LINENO: checking size of long long" >&5
13487echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013488if test "${ac_cv_sizeof_long_long+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013491 if test "$cross_compiling" = yes; then
13492 # Depending upon the size, compute the lo and hi bounds.
13493cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
13498/* end confdefs.h. */
13499$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013500 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013501int
13502main ()
13503{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013504static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013505test_array [0] = 0
13506
13507 ;
13508 return 0;
13509}
13510_ACEOF
13511rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013512if { (ac_try="$ac_compile"
13513case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516esac
13517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013524 (exit $ac_status); } && {
13525 test -z "$ac_c_werror_flag" ||
13526 test ! -s conftest.err
13527 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013528 ac_lo=0 ac_mid=0
13529 while :; do
13530 cat >conftest.$ac_ext <<_ACEOF
13531/* confdefs.h. */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
13535/* end confdefs.h. */
13536$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013537 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013538int
13539main ()
13540{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013541static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013542test_array [0] = 0
13543
13544 ;
13545 return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013549if { (ac_try="$ac_compile"
13550case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13553esac
13554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013561 (exit $ac_status); } && {
13562 test -z "$ac_c_werror_flag" ||
13563 test ! -s conftest.err
13564 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013565 ac_hi=$ac_mid; break
13566else
13567 echo "$as_me: failed program was:" >&5
13568sed 's/^/| /' conftest.$ac_ext >&5
13569
Theodore Ts'oe1052142006-10-21 21:46:47 -040013570 ac_lo=`expr $ac_mid + 1`
13571 if test $ac_lo -le $ac_mid; then
13572 ac_lo= ac_hi=
13573 break
13574 fi
13575 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013576fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013577
13578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013579 done
13580else
13581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
13583
Theodore Ts'oe1052142006-10-21 21:46:47 -040013584 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h. */
13590$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013591 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013592int
13593main ()
13594{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013595static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013596test_array [0] = 0
13597
13598 ;
13599 return 0;
13600}
13601_ACEOF
13602rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013603if { (ac_try="$ac_compile"
13604case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013615 (exit $ac_status); } && {
13616 test -z "$ac_c_werror_flag" ||
13617 test ! -s conftest.err
13618 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013619 ac_hi=-1 ac_mid=-1
13620 while :; do
13621 cat >conftest.$ac_ext <<_ACEOF
13622/* confdefs.h. */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
13626/* end confdefs.h. */
13627$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013628 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013629int
13630main ()
13631{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013632static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013633test_array [0] = 0
13634
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013640if { (ac_try="$ac_compile"
13641case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13644esac
13645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013656 ac_lo=$ac_mid; break
13657else
13658 echo "$as_me: failed program was:" >&5
13659sed 's/^/| /' conftest.$ac_ext >&5
13660
Theodore Ts'oe1052142006-10-21 21:46:47 -040013661 ac_hi=`expr '(' $ac_mid ')' - 1`
13662 if test $ac_mid -le $ac_hi; then
13663 ac_lo= ac_hi=
13664 break
13665 fi
13666 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013668
13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013670 done
13671else
13672 echo "$as_me: failed program was:" >&5
13673sed 's/^/| /' conftest.$ac_ext >&5
13674
Theodore Ts'oe1052142006-10-21 21:46:47 -040013675 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013676fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013677
13678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013679fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013680
13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013682# Binary search between lo and hi bounds.
13683while test "x$ac_lo" != "x$ac_hi"; do
13684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13685 cat >conftest.$ac_ext <<_ACEOF
13686/* confdefs.h. */
13687_ACEOF
13688cat confdefs.h >>conftest.$ac_ext
13689cat >>conftest.$ac_ext <<_ACEOF
13690/* end confdefs.h. */
13691$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013692 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013693int
13694main ()
13695{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013696static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013697test_array [0] = 0
13698
13699 ;
13700 return 0;
13701}
13702_ACEOF
13703rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013704if { (ac_try="$ac_compile"
13705case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013716 (exit $ac_status); } && {
13717 test -z "$ac_c_werror_flag" ||
13718 test ! -s conftest.err
13719 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013720 ac_hi=$ac_mid
13721else
13722 echo "$as_me: failed program was:" >&5
13723sed 's/^/| /' conftest.$ac_ext >&5
13724
Theodore Ts'oe1052142006-10-21 21:46:47 -040013725 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013727
13728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013729done
13730case $ac_lo in
13731?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013732'') if test "$ac_cv_type_long_long" = yes; then
13733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013734See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013735echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013736See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013737 { (exit 77); exit 77; }; }
13738 else
13739 ac_cv_sizeof_long_long=0
13740 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013741esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013742else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013743 cat >conftest.$ac_ext <<_ACEOF
13744/* confdefs.h. */
13745_ACEOF
13746cat confdefs.h >>conftest.$ac_ext
13747cat >>conftest.$ac_ext <<_ACEOF
13748/* end confdefs.h. */
13749$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013750 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013751static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13752static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013753#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013754#include <stdlib.h>
13755int
13756main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013757{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013758
13759 FILE *f = fopen ("conftest.val", "w");
13760 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013761 return 1;
13762 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013763 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013764 long int i = longval ();
13765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13766 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013767 fprintf (f, "%ld\n", i);
13768 }
13769 else
13770 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013771 unsigned long int i = ulongval ();
13772 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13773 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013774 fprintf (f, "%lu\n", i);
13775 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013776 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013777
13778 ;
13779 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013780}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013781_ACEOF
13782rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013783if { (ac_try="$ac_link"
13784case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787esac
13788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013793 { (case "(($ac_try" in
13794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795 *) ac_try_echo=$ac_try;;
13796esac
13797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013803else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013804 echo "$as_me: program exited with status $ac_status" >&5
13805echo "$as_me: failed program was:" >&5
13806sed 's/^/| /' conftest.$ac_ext >&5
13807
13808( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013809if test "$ac_cv_type_long_long" = yes; then
13810 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013811See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013812echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013814 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013815 else
13816 ac_cv_sizeof_long_long=0
13817 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013818fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013819rm -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 -050013820fi
13821rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013823{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13824echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013825
13826
13827
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013828cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013829#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013830_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013831
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013832
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013833SIZEOF_SHORT=$ac_cv_sizeof_short
13834SIZEOF_INT=$ac_cv_sizeof_int
13835SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013836SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13837
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013838
13839
13840
Theodore Ts'oe1052142006-10-21 21:46:47 -040013841{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13842echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013843if test "${ac_cv_c_bigendian+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013845else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013846 # See if sys/param.h defines the BYTE_ORDER macro.
13847cat >conftest.$ac_ext <<_ACEOF
13848/* confdefs.h. */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
13852/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013853#include <sys/types.h>
13854#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013855
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013856int
13857main ()
13858{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013859#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13860 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013861 bogus endian macros
13862#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013863
13864 ;
13865 return 0;
13866}
13867_ACEOF
13868rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013869if { (ac_try="$ac_compile"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013885 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013886cat >conftest.$ac_ext <<_ACEOF
13887/* confdefs.h. */
13888_ACEOF
13889cat confdefs.h >>conftest.$ac_ext
13890cat >>conftest.$ac_ext <<_ACEOF
13891/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013892#include <sys/types.h>
13893#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013895int
13896main ()
13897{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013898#if BYTE_ORDER != BIG_ENDIAN
13899 not big endian
13900#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013901
13902 ;
13903 return 0;
13904}
13905_ACEOF
13906rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013907if { (ac_try="$ac_compile"
13908case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13911esac
13912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013914 ac_status=$?
13915 grep -v '^ *+' conftest.er1 >conftest.err
13916 rm -f conftest.er1
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013919 (exit $ac_status); } && {
13920 test -z "$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013923 ac_cv_c_bigendian=yes
13924else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013925 echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
Theodore Ts'oe1052142006-10-21 21:46:47 -040013928 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013929fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013930
13931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013932else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013933 echo "$as_me: failed program was:" >&5
13934sed 's/^/| /' conftest.$ac_ext >&5
13935
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013937if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013938 # try to guess the endianness by grepping values into an object file
13939 ac_cv_c_bigendian=unknown
13940 cat >conftest.$ac_ext <<_ACEOF
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013946short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13947short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013948void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013949short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13950short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13952int
13953main ()
13954{
13955 _ascii (); _ebcdic ();
13956 ;
13957 return 0;
13958}
13959_ACEOF
13960rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013961if { (ac_try="$ac_compile"
13962case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13965esac
13966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968 ac_status=$?
13969 grep -v '^ *+' conftest.er1 >conftest.err
13970 rm -f conftest.er1
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013973 (exit $ac_status); } && {
13974 test -z "$ac_c_werror_flag" ||
13975 test ! -s conftest.err
13976 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013977 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13978 ac_cv_c_bigendian=yes
13979fi
13980if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13981 if test "$ac_cv_c_bigendian" = unknown; then
13982 ac_cv_c_bigendian=no
13983 else
13984 # finding both strings is unlikely to happen, but who knows?
13985 ac_cv_c_bigendian=unknown
13986 fi
13987fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013988else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013989 echo "$as_me: failed program was:" >&5
13990sed 's/^/| /' conftest.$ac_ext >&5
13991
Theodore Ts'oe1052142006-10-21 21:46:47 -040013992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013993fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013994
13995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013996else
13997 cat >conftest.$ac_ext <<_ACEOF
13998/* confdefs.h. */
13999_ACEOF
14000cat confdefs.h >>conftest.$ac_ext
14001cat >>conftest.$ac_ext <<_ACEOF
14002/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014003$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004int
14005main ()
14006{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014007
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014008 /* Are we little or big endian? From Harbison&Steele. */
14009 union
14010 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014011 long int l;
14012 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014013 } u;
14014 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015 return u.c[sizeof (long int) - 1] == 1;
14016
14017 ;
14018 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014019}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020_ACEOF
14021rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014022if { (ac_try="$ac_link"
14023case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026esac
14027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035esac
14036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014041 ac_cv_c_bigendian=no
14042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014043 echo "$as_me: program exited with status $ac_status" >&5
14044echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014047( exit $ac_status )
14048ac_cv_c_bigendian=yes
14049fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014050rm -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 -040014051fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014052
14053
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014054fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014055
14056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014057fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014058{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14059echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014060case $ac_cv_c_bigendian in
14061 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014062
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014063cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014064#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014065_ACEOF
14066 ;;
14067 no)
14068 ;;
14069 *)
14070 { { echo "$as_me:$LINENO: error: unknown endianness
14071presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14072echo "$as_me: error: unknown endianness
14073presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14074 { (exit 1); exit 1; }; } ;;
14075esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014076
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014077BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014078ASM_TYPES_HEADER=./asm_types.h
14079
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014081for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014082do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014088 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014089fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014090ac_res=`eval echo '${'$as_ac_Header'}'`
14091 { echo "$as_me:$LINENO: result: $ac_res" >&5
14092echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014094 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014095{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014097cat >conftest.$ac_ext <<_ACEOF
14098/* confdefs.h. */
14099_ACEOF
14100cat confdefs.h >>conftest.$ac_ext
14101cat >>conftest.$ac_ext <<_ACEOF
14102/* end confdefs.h. */
14103$ac_includes_default
14104#include <$ac_header>
14105_ACEOF
14106rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014107if { (ac_try="$ac_compile"
14108case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014119 (exit $ac_status); } && {
14120 test -z "$ac_c_werror_flag" ||
14121 test ! -s conftest.err
14122 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014123 ac_header_compiler=yes
14124else
14125 echo "$as_me: failed program was:" >&5
14126sed 's/^/| /' conftest.$ac_ext >&5
14127
Theodore Ts'oe1052142006-10-21 21:46:47 -040014128 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014129fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014130
14131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14133echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014134
14135# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014136{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014138cat >conftest.$ac_ext <<_ACEOF
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h. */
14144#include <$ac_header>
14145_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014146if { (ac_try="$ac_cpp conftest.$ac_ext"
14147case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14150esac
14151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014153 ac_status=$?
14154 grep -v '^ *+' conftest.er1 >conftest.err
14155 rm -f conftest.er1
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014158 (exit $ac_status); } >/dev/null && {
14159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14160 test ! -s conftest.err
14161 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014162 ac_header_preproc=yes
14163else
14164 echo "$as_me: failed program was:" >&5
14165sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 ac_header_preproc=no
14168fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014169
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014170rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014171{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014173
14174# So? What about this header?
14175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14176 yes:no: )
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14181 ac_header_preproc=yes
14182 ;;
14183 no:yes:* )
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014196
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014197 ;;
14198esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203else
14204 eval "$as_ac_Header=\$ac_header_preproc"
14205fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014206ac_res=`eval echo '${'$as_ac_Header'}'`
14207 { echo "$as_me:$LINENO: result: $ac_res" >&5
14208echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014209
14210fi
14211if test `eval echo '${'$as_ac_Header'}'` = yes; then
14212 cat >>confdefs.h <<_ACEOF
14213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14214_ACEOF
14215
14216fi
14217
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014218done
14219
Theodore Ts'oe1052142006-10-21 21:46:47 -040014220{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14221echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014222if test "${ac_cv_type_intptr_t+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014224else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014225 cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h. */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h. */
14231$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014232typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014233int
14234main ()
14235{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014236if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014237 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014238if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014239 return 0;
14240 ;
14241 return 0;
14242}
14243_ACEOF
14244rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014245if { (ac_try="$ac_compile"
14246case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249esac
14250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014261 ac_cv_type_intptr_t=yes
14262else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014263 echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014265
Theodore Ts'oe1052142006-10-21 21:46:47 -040014266 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014267fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014268
14269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014270fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14272echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014273if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014274
14275cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014276#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014277_ACEOF
14278
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014280fi
14281
Theodore Ts'oe1052142006-10-21 21:46:47 -040014282{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14283echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014284if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014293#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014294int
14295main ()
14296{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014297struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014298 ;
14299 return 0;
14300}
14301_ACEOF
14302rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014303if { (ac_try="$ac_compile"
14304case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307esac
14308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014315 (exit $ac_status); } && {
14316 test -z "$ac_c_werror_flag" ||
14317 test ! -s conftest.err
14318 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014319 e2fsprogs_cv_struct_st_flags=yes
14320else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321 echo "$as_me: failed program was:" >&5
14322sed 's/^/| /' conftest.$ac_ext >&5
14323
Theodore Ts'oe1052142006-10-21 21:46:47 -040014324 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014325fi
14326
Theodore Ts'oe1052142006-10-21 21:46:47 -040014327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328fi
14329
14330{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14331echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014332if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014333 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14334echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014337else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014338 cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014344#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014345int
14346main ()
14347{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014348struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014349 ;
14350 return 0;
14351}
14352_ACEOF
14353rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014354if { (ac_try="$ac_compile"
14355case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358esac
14359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014366 (exit $ac_status); } && {
14367 test -z "$ac_c_werror_flag" ||
14368 test ! -s conftest.err
14369 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014370 e2fsprogs_cv_struct_st_flags_immut=yes
14371else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014372 echo "$as_me: failed program was:" >&5
14373sed 's/^/| /' conftest.$ac_ext >&5
14374
Theodore Ts'oe1052142006-10-21 21:46:47 -040014375 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014376fi
14377
Theodore Ts'oe1052142006-10-21 21:46:47 -040014378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379fi
14380
14381 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14382echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014383 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014384 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014385#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014387
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014388 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014390{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14391echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014392if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014393 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014394else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014395 cat >conftest.$ac_ext <<_ACEOF
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
14400/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014401#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014402 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404int
14405main ()
14406{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014407static struct sockaddr ac_aggr;
14408if (ac_aggr.sa_len)
14409return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410 ;
14411 return 0;
14412}
14413_ACEOF
14414rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014415if { (ac_try="$ac_compile"
14416case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14419esac
14420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014431 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014432else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014433 echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
14435
Theodore Ts'oe1052142006-10-21 21:46:47 -040014436 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014437/* confdefs.h. */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h. */
14442#include <sys/types.h>
14443 #include <sys/socket.h>
14444
14445int
14446main ()
14447{
14448static struct sockaddr ac_aggr;
14449if (sizeof ac_aggr.sa_len)
14450return 0;
14451 ;
14452 return 0;
14453}
14454_ACEOF
14455rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014456if { (ac_try="$ac_compile"
14457case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460esac
14461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014472 ac_cv_member_struct_sockaddr_sa_len=yes
14473else
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
Theodore Ts'oe1052142006-10-21 21:46:47 -040014477 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014478fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014479
14480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014481fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014482
14483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014484fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014485{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14486echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014487if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014488
14489cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014490#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014491_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014492
14493fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014513
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014514
14515
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014516
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014517
Theodore Ts'o106ad962007-04-04 21:26:37 -040014518
14519
14520
14521for 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014522do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014524{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14526if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014527 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014529 cat >conftest.$ac_ext <<_ACEOF
14530/* confdefs.h. */
14531_ACEOF
14532cat confdefs.h >>conftest.$ac_ext
14533cat >>conftest.$ac_ext <<_ACEOF
14534/* end confdefs.h. */
14535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14537#define $ac_func innocuous_$ac_func
14538
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014539/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014540 which can conflict with char $ac_func (); below.
14541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542 <limits.h> exists even on freestanding compilers. */
14543
14544#ifdef __STDC__
14545# include <limits.h>
14546#else
14547# include <assert.h>
14548#endif
14549
14550#undef $ac_func
14551
Theodore Ts'oe1052142006-10-21 21:46:47 -040014552/* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014555#ifdef __cplusplus
14556extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014557#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014558char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014559/* The GNU C library defines this for functions which it implements
14560 to always fail with ENOSYS. Some functions are actually named
14561 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014562#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014563choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014564#endif
14565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014566int
14567main ()
14568{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014569return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014570 ;
14571 return 0;
14572}
14573_ACEOF
14574rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014575if { (ac_try="$ac_link"
14576case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14579esac
14580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014582 ac_status=$?
14583 grep -v '^ *+' conftest.er1 >conftest.err
14584 rm -f conftest.er1
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014587 (exit $ac_status); } && {
14588 test -z "$ac_c_werror_flag" ||
14589 test ! -s conftest.err
14590 } && test -s conftest$ac_exeext &&
14591 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014592 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014593else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014594 echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014596
Theodore Ts'oe1052142006-10-21 21:46:47 -040014597 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014598fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014599
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014601 conftest$ac_exeext conftest.$ac_ext
14602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014603ac_res=`eval echo '${'$as_ac_var'}'`
14604 { echo "$as_me:$LINENO: result: $ac_res" >&5
14605echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014606if test `eval echo '${'$as_ac_var'}'` = yes; then
14607 cat >>confdefs.h <<_ACEOF
14608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14609_ACEOF
14610
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014611fi
14612done
14613
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014614SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014615{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14616echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014617if test "${ac_cv_lib_socket_socket+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014619else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014620 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014621LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014622cat >conftest.$ac_ext <<_ACEOF
14623/* confdefs.h. */
14624_ACEOF
14625cat confdefs.h >>conftest.$ac_ext
14626cat >>conftest.$ac_ext <<_ACEOF
14627/* end confdefs.h. */
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"
14634#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014635char socket ();
14636int
14637main ()
14638{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014639return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014640 ;
14641 return 0;
14642}
14643_ACEOF
14644rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014645if { (ac_try="$ac_link"
14646case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014657 (exit $ac_status); } && {
14658 test -z "$ac_c_werror_flag" ||
14659 test ! -s conftest.err
14660 } && test -s conftest$ac_exeext &&
14661 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014662 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014663else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014664 echo "$as_me: failed program was:" >&5
14665sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014666
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014668fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014669
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014671 conftest$ac_exeext conftest.$ac_ext
14672LIBS=$ac_check_lib_save_LIBS
14673fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014674{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14675echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014676if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014677 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014678fi
14679
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014680
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014681DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014682{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14683echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014684if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014687 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014688LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014689cat >conftest.$ac_ext <<_ACEOF
14690/* confdefs.h. */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h. */
14695
Theodore Ts'oe1052142006-10-21 21:46:47 -040014696/* Override any GCC internal prototype to avoid an error.
14697 Use char because int might match the return type of a GCC
14698 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014699#ifdef __cplusplus
14700extern "C"
14701#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014702char dlopen ();
14703int
14704main ()
14705{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014706return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014707 ;
14708 return 0;
14709}
14710_ACEOF
14711rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014712if { (ac_try="$ac_link"
14713case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716esac
14717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014724 (exit $ac_status); } && {
14725 test -z "$ac_c_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest$ac_exeext &&
14728 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014729 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014731 echo "$as_me: failed program was:" >&5
14732sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014733
Theodore Ts'oe1052142006-10-21 21:46:47 -040014734 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014736
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014738 conftest$ac_exeext conftest.$ac_ext
14739LIBS=$ac_check_lib_save_LIBS
14740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014741{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14742echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014743if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014744 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014745cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014746#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014747_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014748
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014749fi
14750
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014751
Theodore Ts'oe1052142006-10-21 21:46:47 -040014752{ echo "$as_me:$LINENO: checking for optreset" >&5
14753echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014754if test "${ac_cv_have_optreset+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014756else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014757 cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h. */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014763#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014764
14765_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014767 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014768 ac_cv_have_optreset=yes
14769else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014770 ac_cv_have_optreset=no
14771fi
14772rm -f conftest*
14773
14774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014775{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14776echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014777if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014778 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014779#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014780_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014781
14782fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014783{ echo "$as_me:$LINENO: checking for unified diff option" >&5
14784echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014785if diff -u $0 $0 >& /dev/null ; then
14786 UNI_DIFF_OPTS=-u
14787else
14788 UNI_DIFF_OPTS=-c
14789fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014790{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14791echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014792
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014793case "$host_os" in
14794linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014795 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014796#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014798
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014799 ;;
14800esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014801LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014802CYGWIN_CMT="#"
14803UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014804case "$host_os" in
14805linux*)
14806 LINUX_CMT=
14807 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014808cygwin)
14809 CYGWIN_CMT=
14810 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014811 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014812esac
14813
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014814
14815
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014816case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014817linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014818 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14819 root_prefix="";
14820 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014821 fi
14822 ;;
14823esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014824case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014825linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014826 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014827 prefix="/usr";
14828 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040014829 if test "$mandir" = '${prefix}/man' ; then
14830 echo "...and mandir defaults to /usr/share/man"
14831 mandir=/usr/share/man
14832 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014833 fi
14834;;
14835esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014836if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000014837 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014838 root_prefix="$ac_default_prefix"
14839 else
14840 root_prefix="$prefix"
14841 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014842 root_bindir=$bindir
14843 root_sbindir=$sbindir
14844 root_libdir=$libdir
14845 root_sysconfdir=$sysconfdir
14846else
14847 root_bindir='${root_prefix}/bin'
14848 root_sbindir='${root_prefix}/sbin'
14849 root_libdir='${root_prefix}/lib'
14850 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014851fi
14852
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014853
14854
14855
14856
Theodore Ts'oe1052142006-10-21 21:46:47 -040014857{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14858echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014859if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000014861else
14862 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014863cat >conftest.$ac_ext <<_ACEOF
14864/* confdefs.h. */
14865_ACEOF
14866cat confdefs.h >>conftest.$ac_ext
14867cat >>conftest.$ac_ext <<_ACEOF
14868/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000014869#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014870int
14871main ()
14872{
Theodore Ts'oae851481997-04-29 18:13:24 +000014873fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014874 ;
14875 return 0;
14876}
14877_ACEOF
14878rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014879if { (ac_try="$ac_link"
14880case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest$ac_exeext &&
14895 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000014896 ac_cv_e2fsprogs_use_static=yes
14897else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014898 echo "$as_me: failed program was:" >&5
14899sed 's/^/| /' conftest.$ac_ext >&5
14900
Theodore Ts'oe1052142006-10-21 21:46:47 -040014901 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000014902fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014903
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014905 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000014906LDFLAGS=$SAVE_LDFLAGS
14907fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014908
Theodore Ts'odefde781999-01-04 07:39:19 +000014909case "$host_os" in
14910solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014911 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000014912;;
14913esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014914{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14915echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000014916LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000014917if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014918 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000014919fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014920
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014921case "$host_os" in
14922darwin*)
14923 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014924 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014925#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014926_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014927
14928 ;;
14929esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014930SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14931ET_DIR=`cd ${srcdir}/lib/et; pwd`
14932
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014933
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014934if test "$cross_compiling" = yes ; then
14935 DO_TEST_SUITE=
14936else
14937 DO_TEST_SUITE=check
14938fi
14939
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040014940INTL_FLAGS=
14941if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14942 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14943fi
14944
Theodore Ts'odd947da2005-11-09 18:37:07 -040014945if test $cross_compiling = no; then
14946 BUILD_CFLAGS="$CFLAGS"
14947 BUILD_LDFLAGS="$LDFLAGS"
14948else
14949 BUILD_CFLAGS=
14950 BUILD_LDFLAGS=
14951fi
14952
14953
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014954test -d lib || mkdir lib
14955test -d include || mkdir include
14956test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000014957test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050014958for i in MCONFIG Makefile e2fsprogs.spec \
14959 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014960 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14961 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014962 lib/uuid/Makefile lib/uuid/uuid_types.h \
14963 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050014964 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14965 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050014966 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014967 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14968 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14969 if test -d `dirname ${srcdir}/$i` ; then
14970 outlist="$outlist $i"
14971 fi
14972done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014973ac_config_files="$ac_config_files $outlist"
14974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014975cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014976# This file is a shell script that caches the results of configure
14977# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014978# scripts and configure runs, see configure's option --config-cache.
14979# It is not useful on other systems. If it contains results you don't
14980# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014981#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014982# config.status only pays attention to the cache file if you give it
14983# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014984#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014985# `ac_cv_env_foo' variables (set or unset) will be overridden when
14986# loading this file, other *unset* `ac_cv_foo' will be assigned the
14987# following values.
14988
14989_ACEOF
14990
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014991# The following way of writing the cache mishandles newlines in values,
14992# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014993# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014994# Ultrix sh set writes to stderr and can't be redirected directly,
14995# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014996(
14997 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14998 eval ac_val=\$$ac_var
14999 case $ac_val in #(
15000 *${as_nl}*)
15001 case $ac_var in #(
15002 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15003echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15004 esac
15005 case $ac_var in #(
15006 _ | IFS | as_nl) ;; #(
15007 *) $as_unset $ac_var ;;
15008 esac ;;
15009 esac
15010 done
15011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015012 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015013 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15014 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015015 # `set' does not quote correctly, so add quotes (double-quote
15016 # substitution turns \\\\ into \\, and sed turns \\ into \).
15017 sed -n \
15018 "s/'/'\\\\''/g;
15019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015020 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021 *)
15022 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015024 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015025 esac |
15026 sort
15027) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015028 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015029 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015030 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015031 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15033 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15035 :end' >>confcache
15036if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15037 if test -w "$cache_file"; then
15038 test "x$cache_file" != "x/dev/null" &&
15039 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15040echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015041 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015042 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015043 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15044echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015045 fi
15046fi
15047rm -f confcache
15048
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015049test "x$prefix" = xNONE && prefix=$ac_default_prefix
15050# Let make expand exec_prefix.
15051test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15052
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015053# Transform confdefs.h into DEFS.
15054# Protect against shell expansion while executing Makefile rules.
15055# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015056#
15057# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015058# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015059# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015060ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015062:clear
15063s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015064t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015065s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015066t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015067b any
15068:quote
15069s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15070s/\[/\\&/g
15071s/\]/\\&/g
15072s/\$/$$/g
15073H
15074:any
15075${
15076 g
15077 s/^\n//
15078 s/\n/ /g
15079 p
15080}
15081'
15082DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015083
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015085ac_libobjs=
15086ac_ltlibobjs=
15087for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15088 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15090 ac_i=`echo "$ac_i" | sed "$ac_script"`
15091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15092 # will be set to the directory where LIBOBJS objects are built.
15093 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15094 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015095done
15096LIBOBJS=$ac_libobjs
15097
15098LTLIBOBJS=$ac_ltlibobjs
15099
15100
15101
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015102: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015103ac_clean_files_save=$ac_clean_files
15104ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15105{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15106echo "$as_me: creating $CONFIG_STATUS" >&6;}
15107cat >$CONFIG_STATUS <<_ACEOF
15108#! $SHELL
15109# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015110# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015111# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015112# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015114debug=false
15115ac_cs_recheck=false
15116ac_cs_silent=false
15117SHELL=\${CONFIG_SHELL-$SHELL}
15118_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015120cat >>$CONFIG_STATUS <<\_ACEOF
15121## --------------------- ##
15122## M4sh Initialization. ##
15123## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015124
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015125# Be more Bourne compatible
15126DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015127if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15128 emulate sh
15129 NULLCMD=:
15130 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15131 # is contrary to our usage. Disable this feature.
15132 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015133 setopt NO_GLOB_SUBST
15134else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015135 case `(set -o) 2>/dev/null` in
15136 *posix*) set -o posix ;;
15137esac
15138
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015139fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015140
15141
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015142
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015143
Theodore Ts'oe1052142006-10-21 21:46:47 -040015144# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015145# Avoid depending upon Character Ranges.
15146as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15147as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15148as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15149as_cr_digits='0123456789'
15150as_cr_alnum=$as_cr_Letters$as_cr_digits
15151
15152# The user is always right.
15153if test "${PATH_SEPARATOR+set}" != set; then
15154 echo "#! /bin/sh" >conf$$.sh
15155 echo "exit 0" >>conf$$.sh
15156 chmod +x conf$$.sh
15157 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15158 PATH_SEPARATOR=';'
15159 else
15160 PATH_SEPARATOR=:
15161 fi
15162 rm -f conf$$.sh
15163fi
15164
Theodore Ts'oe1052142006-10-21 21:46:47 -040015165# Support unset when possible.
15166if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15167 as_unset=unset
15168else
15169 as_unset=false
15170fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015171
Theodore Ts'oe1052142006-10-21 21:46:47 -040015172
15173# IFS
15174# We need space, tab and new line, in precisely that order. Quoting is
15175# there to prevent editors from complaining about space-tab.
15176# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15177# splitting by setting IFS to empty value.)
15178as_nl='
15179'
15180IFS=" "" $as_nl"
15181
15182# Find who we are. Look in the path if we contain no directory separator.
15183case $0 in
15184 *[\\/]* ) as_myself=$0 ;;
15185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015186for as_dir in $PATH
15187do
15188 IFS=$as_save_IFS
15189 test -z "$as_dir" && as_dir=.
15190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15191done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015192IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015193
Theodore Ts'oe1052142006-10-21 21:46:47 -040015194 ;;
15195esac
15196# We did not find ourselves, most probably we were run as `sh COMMAND'
15197# in which case we are not to be found in the path.
15198if test "x$as_myself" = x; then
15199 as_myself=$0
15200fi
15201if test ! -f "$as_myself"; then
15202 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15203 { (exit 1); exit 1; }
15204fi
15205
15206# Work around bugs in pre-3.0 UWIN ksh.
15207for as_var in ENV MAIL MAILPATH
15208do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15209done
15210PS1='$ '
15211PS2='> '
15212PS4='+ '
15213
15214# NLS nuisances.
15215for as_var in \
15216 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15217 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15218 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015219do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015220 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15221 eval $as_var=C; export $as_var
15222 else
15223 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15224 fi
15225done
15226
15227# Required to use basename.
15228if expr a : '\(a\)' >/dev/null 2>&1 &&
15229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15230 as_expr=expr
15231else
15232 as_expr=false
15233fi
15234
15235if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15236 as_basename=basename
15237else
15238 as_basename=false
15239fi
15240
15241
15242# Name of the executable.
15243as_me=`$as_basename -- "$0" ||
15244$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15245 X"$0" : 'X\(//\)$' \| \
15246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15247echo X/"$0" |
15248 sed '/^.*\/\([^/][^/]*\)\/*$/{
15249 s//\1/
15250 q
15251 }
15252 /^X\/\(\/\/\)$/{
15253 s//\1/
15254 q
15255 }
15256 /^X\/\(\/\).*/{
15257 s//\1/
15258 q
15259 }
15260 s/.*/./; q'`
15261
15262# CDPATH.
15263$as_unset CDPATH
15264
15265
15266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015267 as_lineno_1=$LINENO
15268 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015269 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015270 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15273 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015274 # line-number line after each line using $LINENO; the second 'sed'
15275 # does the real work. The second script uses 'N' to pair each
15276 # line-number line with the line containing $LINENO, and appends
15277 # trailing '-' during substitution so that $LINENO is not a special
15278 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015279 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015280 # scripts with optimization help from Paolo Bonzini. Blame Lee
15281 # E. McMahon (1931-1989) for sed's syntax. :-)
15282 sed -n '
15283 p
15284 /[$]LINENO/=
15285 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015286 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015287 s/[$]LINENO.*/&-/
15288 t lineno
15289 b
15290 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015291 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015292 :loop
15293 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015294 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015295 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015296 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015297 chmod +x "$as_me.lineno" ||
15298 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015299 { (exit 1); exit 1; }; }
15300
15301 # Don't try to exec as it changes $[0], causing all sort of problems
15302 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015303 # original and so on. Autoconf is especially sensitive to this).
15304 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015305 # Exit status is that of the last command.
15306 exit
15307}
15308
15309
Theodore Ts'oe1052142006-10-21 21:46:47 -040015310if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15311 as_dirname=dirname
15312else
15313 as_dirname=false
15314fi
15315
15316ECHO_C= ECHO_N= ECHO_T=
15317case `echo -n x` in
15318-n*)
15319 case `echo 'x\c'` in
15320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15321 *) ECHO_C='\c';;
15322 esac;;
15323*)
15324 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015325esac
15326
Theodore Ts'oe1052142006-10-21 21:46:47 -040015327if expr a : '\(a\)' >/dev/null 2>&1 &&
15328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015329 as_expr=expr
15330else
15331 as_expr=false
15332fi
15333
15334rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015335if test -d conf$$.dir; then
15336 rm -f conf$$.dir/conf$$.file
15337else
15338 rm -f conf$$.dir
15339 mkdir conf$$.dir
15340fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015341echo >conf$$.file
15342if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015343 as_ln_s='ln -s'
15344 # ... but there are two gotchas:
15345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15347 # In both cases, we have to default to `cp -p'.
15348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015349 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015350elif ln conf$$.file conf$$ 2>/dev/null; then
15351 as_ln_s=ln
15352else
15353 as_ln_s='cp -p'
15354fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015355rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15356rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015357
15358if mkdir -p . 2>/dev/null; then
15359 as_mkdir_p=:
15360else
15361 test -d ./-p && rmdir ./-p
15362 as_mkdir_p=false
15363fi
15364
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015365if test -x / >/dev/null 2>&1; then
15366 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015367else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015368 if ls -dL / >/dev/null 2>&1; then
15369 as_ls_L_option=L
15370 else
15371 as_ls_L_option=
15372 fi
15373 as_test_x='
15374 eval sh -c '\''
15375 if test -d "$1"; then
15376 test -d "$1/.";
15377 else
15378 case $1 in
15379 -*)set "./$1";;
15380 esac;
15381 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15382 ???[sx]*):;;*)false;;esac;fi
15383 '\'' sh
15384 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015385fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015386as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015387
15388# Sed expression to map a string onto a valid CPP name.
15389as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15390
15391# Sed expression to map a string onto a valid variable name.
15392as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15393
15394
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015395exec 6>&1
15396
Theodore Ts'oe1052142006-10-21 21:46:47 -040015397# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015398# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015399# values after options handling.
15400ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015401This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015402generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015403
15404 CONFIG_FILES = $CONFIG_FILES
15405 CONFIG_HEADERS = $CONFIG_HEADERS
15406 CONFIG_LINKS = $CONFIG_LINKS
15407 CONFIG_COMMANDS = $CONFIG_COMMANDS
15408 $ $0 $@
15409
Theodore Ts'oe1052142006-10-21 21:46:47 -040015410on `(hostname || uname -n) 2>/dev/null | sed 1q`
15411"
15412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015413_ACEOF
15414
Theodore Ts'oe1052142006-10-21 21:46:47 -040015415cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015416# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015417config_files="$ac_config_files"
15418config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015419
Theodore Ts'oe1052142006-10-21 21:46:47 -040015420_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015421
15422cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015423ac_cs_usage="\
15424\`$as_me' instantiates files from templates according to the
15425current configuration.
15426
15427Usage: $0 [OPTIONS] [FILE]...
15428
15429 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015430 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015431 -q, --quiet do not print progress messages
15432 -d, --debug don't remove temporary files
15433 --recheck update $as_me by reconfiguring in the same conditions
15434 --file=FILE[:TEMPLATE]
15435 instantiate the configuration file FILE
15436
15437Configuration files:
15438$config_files
15439
15440Configuration commands:
15441$config_commands
15442
15443Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015444
Theodore Ts'oe1052142006-10-21 21:46:47 -040015445_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015446cat >>$CONFIG_STATUS <<_ACEOF
15447ac_cs_version="\\
15448config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015449configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015450 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015451
Theodore Ts'oe1052142006-10-21 21:46:47 -040015452Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015453This config.status script is free software; the Free Software Foundation
15454gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015455
15456ac_pwd='$ac_pwd'
15457srcdir='$srcdir'
15458INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015459_ACEOF
15460
15461cat >>$CONFIG_STATUS <<\_ACEOF
15462# If no file are specified by the user, then we need to provide default
15463# value. By we need to know if files were specified by the user.
15464ac_need_defaults=:
15465while test $# != 0
15466do
15467 case $1 in
15468 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015469 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15470 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015471 ac_shift=:
15472 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015473 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015474 ac_option=$1
15475 ac_optarg=$2
15476 ac_shift=shift
15477 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015478 esac
15479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015480 case $ac_option in
15481 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15483 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015484 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15485 echo "$ac_cs_version"; exit ;;
15486 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015487 debug=: ;;
15488 --file | --fil | --fi | --f )
15489 $ac_shift
15490 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15491 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015492 --he | --h | --help | --hel | -h )
15493 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15495 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15496 ac_cs_silent=: ;;
15497
15498 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015499 -*) { echo "$as_me: error: unrecognized option: $1
15500Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015501 { (exit 1); exit 1; }; } ;;
15502
Theodore Ts'oe1052142006-10-21 21:46:47 -040015503 *) ac_config_targets="$ac_config_targets $1"
15504 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015505
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015506 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015507 shift
15508done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015510ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015512if $ac_cs_silent; then
15513 exec 6>/dev/null
15514 ac_configure_extra_args="$ac_configure_extra_args --silent"
15515fi
15516
15517_ACEOF
15518cat >>$CONFIG_STATUS <<_ACEOF
15519if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015520 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15521 CONFIG_SHELL=$SHELL
15522 export CONFIG_SHELL
15523 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015524fi
15525
15526_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015527cat >>$CONFIG_STATUS <<\_ACEOF
15528exec 5>>config.log
15529{
15530 echo
15531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15532## Running $as_me. ##
15533_ASBOX
15534 echo "$ac_log"
15535} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015536
Theodore Ts'oe1052142006-10-21 21:46:47 -040015537_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015538cat >>$CONFIG_STATUS <<_ACEOF
15539#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015540# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015541#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015542# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015543 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015544 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015545 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015546 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15547 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015548
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015550_ACEOF
15551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015552cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015553
15554# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015555for ac_config_target in $ac_config_targets
15556do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015557 case $ac_config_target in
15558 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15559 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015561 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15562echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15563 { (exit 1); exit 1; }; };;
15564 esac
15565done
15566
Theodore Ts'oe1052142006-10-21 21:46:47 -040015567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015568# If the user did not use the arguments to specify the items to instantiate,
15569# then the envvar interface is used. Set only those that are not.
15570# We use the long form for the default assignment because of an extremely
15571# bizarre bug on SunOS 4.1.3.
15572if $ac_need_defaults; then
15573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15575fi
15576
15577# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015578# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015579# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015580# Hook for its removal unless debugging.
15581# Note that there is a small window in which the directory will not be cleaned:
15582# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015583$debug ||
15584{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015585 tmp=
15586 trap 'exit_status=$?
15587 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15588' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015589 trap '{ (exit 1); exit 1; }' 1 2 13 15
15590}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015591# Create a (secure) tmp directory for tmp files.
15592
15593{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015594 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015595 test -n "$tmp" && test -d "$tmp"
15596} ||
15597{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015598 tmp=./conf$$-$RANDOM
15599 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015600} ||
15601{
15602 echo "$me: cannot create a temporary directory in ." >&2
15603 { (exit 1); exit 1; }
15604}
15605
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015606#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015607# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015608#
15609
15610# No need to generate the scripts if there are no CONFIG_FILES.
15611# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015612if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015613
15614_ACEOF
15615
Theodore Ts'oe1052142006-10-21 21:46:47 -040015616# Create sed commands to just substitute file output variables.
15617
15618# Remaining file output variables are in a fragment that also has non-file
15619# output varibles.
15620
15621
15622
15623ac_delim='%!_!# '
15624for ac_last_try in false false false false false :; do
15625 cat >conf$$subs.sed <<_ACEOF
15626SHELL!$SHELL$ac_delim
15627PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15628PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15629PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15630PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15631PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15632PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15633exec_prefix!$exec_prefix$ac_delim
15634prefix!$prefix$ac_delim
15635program_transform_name!$program_transform_name$ac_delim
15636bindir!$bindir$ac_delim
15637sbindir!$sbindir$ac_delim
15638libexecdir!$libexecdir$ac_delim
15639datarootdir!$datarootdir$ac_delim
15640datadir!$datadir$ac_delim
15641sysconfdir!$sysconfdir$ac_delim
15642sharedstatedir!$sharedstatedir$ac_delim
15643localstatedir!$localstatedir$ac_delim
15644includedir!$includedir$ac_delim
15645oldincludedir!$oldincludedir$ac_delim
15646docdir!$docdir$ac_delim
15647infodir!$infodir$ac_delim
15648htmldir!$htmldir$ac_delim
15649dvidir!$dvidir$ac_delim
15650pdfdir!$pdfdir$ac_delim
15651psdir!$psdir$ac_delim
15652libdir!$libdir$ac_delim
15653localedir!$localedir$ac_delim
15654mandir!$mandir$ac_delim
15655DEFS!$DEFS$ac_delim
15656ECHO_C!$ECHO_C$ac_delim
15657ECHO_N!$ECHO_N$ac_delim
15658ECHO_T!$ECHO_T$ac_delim
15659LIBS!$LIBS$ac_delim
15660build_alias!$build_alias$ac_delim
15661host_alias!$host_alias$ac_delim
15662target_alias!$target_alias$ac_delim
15663E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15664E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15665E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15666E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050015667E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015668build!$build$ac_delim
15669build_cpu!$build_cpu$ac_delim
15670build_vendor!$build_vendor$ac_delim
15671build_os!$build_os$ac_delim
15672host!$host$ac_delim
15673host_cpu!$host_cpu$ac_delim
15674host_vendor!$host_vendor$ac_delim
15675host_os!$host_os$ac_delim
15676CC!$CC$ac_delim
15677CFLAGS!$CFLAGS$ac_delim
15678LDFLAGS!$LDFLAGS$ac_delim
15679CPPFLAGS!$CPPFLAGS$ac_delim
15680ac_ct_CC!$ac_ct_CC$ac_delim
15681EXEEXT!$EXEEXT$ac_delim
15682OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015683CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015684LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015685GREP!$GREP$ac_delim
15686EGREP!$EGREP$ac_delim
15687LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15688MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15689HTREE_CMT!$HTREE_CMT$ac_delim
15690ELF_CMT!$ELF_CMT$ac_delim
15691BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15692PROFILE_CMT!$PROFILE_CMT$ac_delim
15693CHECKER_CMT!$CHECKER_CMT$ac_delim
15694LIB_EXT!$LIB_EXT$ac_delim
15695STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15696PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15697SWAPFS_CMT!$SWAPFS_CMT$ac_delim
15698DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15699IMAGER_CMT!$IMAGER_CMT$ac_delim
15700RESIZER_CMT!$RESIZER_CMT$ac_delim
15701E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015702_ACEOF
15703
15704 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
15705 break
15706 elif $ac_last_try; then
15707 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15708echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15709 { (exit 1); exit 1; }; }
15710 else
15711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015712 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015713done
15714
15715ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15716if test -n "$ac_eof"; then
15717 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15718 ac_eof=`expr $ac_eof + 1`
15719fi
15720
15721cat >>$CONFIG_STATUS <<_ACEOF
15722cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15723/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15724/^[ ]*@MCONFIG@[ ]*$/{
15725r $MCONFIG
15726d
15727}
15728/^[ ]*@MAKEFILE_ELF@[ ]*$/{
15729r $MAKEFILE_ELF
15730d
15731}
15732/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15733r $MAKEFILE_BSDLIB
15734d
15735}
15736/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15737r $MAKEFILE_PROFILE
15738d
15739}
15740/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15741r $MAKEFILE_CHECKER
15742d
15743}
15744/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15745r $MAKEFILE_LIBRARY
15746d
15747}
15748/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15749r $ASM_TYPES_HEADER
15750d
15751}
15752_ACEOF
15753sed '
15754s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15755s/^/s,@/; s/!/@,|#_!!_#|/
15756:n
15757t n
15758s/'"$ac_delim"'$/,g/; t
15759s/$/\\/; p
15760N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15761' >>$CONFIG_STATUS <conf$$subs.sed
15762rm -f conf$$subs.sed
15763cat >>$CONFIG_STATUS <<_ACEOF
15764CEOF$ac_eof
15765_ACEOF
15766
15767
15768ac_delim='%!_!# '
15769for ac_last_try in false false false false false :; do
15770 cat >conf$$subs.sed <<_ACEOF
Andreas Dilger927566a2006-11-12 19:41:25 -050015771FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015772FSCK_MAN!$FSCK_MAN$ac_delim
15773E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15774E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15775DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
15776DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
15777DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
15778STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
15779GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15780PACKAGE!$PACKAGE$ac_delim
15781VERSION!$VERSION$ac_delim
15782SET_MAKE!$SET_MAKE$ac_delim
15783INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15784INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15785INSTALL_DATA!$INSTALL_DATA$ac_delim
15786MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15787USE_NLS!$USE_NLS$ac_delim
15788MSGFMT!$MSGFMT$ac_delim
15789GMSGFMT!$GMSGFMT$ac_delim
15790XGETTEXT!$XGETTEXT$ac_delim
15791MSGMERGE!$MSGMERGE$ac_delim
15792RANLIB!$RANLIB$ac_delim
15793ALLOCA!$ALLOCA$ac_delim
15794GLIBC21!$GLIBC21$ac_delim
15795HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15796HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15797HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15798HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15799LIBICONV!$LIBICONV$ac_delim
15800LTLIBICONV!$LTLIBICONV$ac_delim
15801INTLBISON!$INTLBISON$ac_delim
15802BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
15803USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
15804CATOBJEXT!$CATOBJEXT$ac_delim
15805DATADIRNAME!$DATADIRNAME$ac_delim
15806INSTOBJEXT!$INSTOBJEXT$ac_delim
15807GENCAT!$GENCAT$ac_delim
15808INTLOBJS!$INTLOBJS$ac_delim
15809INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
15810INTLLIBS!$INTLLIBS$ac_delim
15811LIBINTL!$LIBINTL$ac_delim
15812LTLIBINTL!$LTLIBINTL$ac_delim
15813POSUB!$POSUB$ac_delim
15814BINARY_TYPE!$BINARY_TYPE$ac_delim
15815LN!$LN$ac_delim
15816LN_S!$LN_S$ac_delim
15817MV!$MV$ac_delim
15818CP!$CP$ac_delim
15819RM!$RM$ac_delim
15820CHMOD!$CHMOD$ac_delim
15821AWK!$AWK$ac_delim
15822SED!$SED$ac_delim
15823PERL!$PERL$ac_delim
15824LDCONFIG!$LDCONFIG$ac_delim
15825AR!$AR$ac_delim
15826STRIP!$STRIP$ac_delim
15827BUILD_CC!$BUILD_CC$ac_delim
15828SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
15829SIZEOF_INT!$SIZEOF_INT$ac_delim
15830SIZEOF_LONG!$SIZEOF_LONG$ac_delim
15831SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
15832SOCKET_LIB!$SOCKET_LIB$ac_delim
15833DLOPEN_LIB!$DLOPEN_LIB$ac_delim
15834UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
15835LINUX_CMT!$LINUX_CMT$ac_delim
15836CYGWIN_CMT!$CYGWIN_CMT$ac_delim
15837UNIX_CMT!$UNIX_CMT$ac_delim
15838root_prefix!$root_prefix$ac_delim
15839root_bindir!$root_bindir$ac_delim
15840root_sbindir!$root_sbindir$ac_delim
15841root_libdir!$root_libdir$ac_delim
15842root_sysconfdir!$root_sysconfdir$ac_delim
15843LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
15844SS_DIR!$SS_DIR$ac_delim
15845ET_DIR!$ET_DIR$ac_delim
15846DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
15847INTL_FLAGS!$INTL_FLAGS$ac_delim
15848BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15849BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15850LIBOBJS!$LIBOBJS$ac_delim
15851LTLIBOBJS!$LTLIBOBJS$ac_delim
15852_ACEOF
15853
Andreas Dilger927566a2006-11-12 19:41:25 -050015854 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 -040015855 break
15856 elif $ac_last_try; then
15857 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15858echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15859 { (exit 1); exit 1; }; }
15860 else
15861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15862 fi
15863done
15864
15865ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15866if test -n "$ac_eof"; then
15867 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15868 ac_eof=`expr $ac_eof + 1`
15869fi
15870
15871cat >>$CONFIG_STATUS <<_ACEOF
15872cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15873/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15874_ACEOF
15875sed '
15876s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15877s/^/s,@/; s/!/@,|#_!!_#|/
15878:n
15879t n
15880s/'"$ac_delim"'$/,g/; t
15881s/$/\\/; p
15882N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15883' >>$CONFIG_STATUS <conf$$subs.sed
15884rm -f conf$$subs.sed
15885cat >>$CONFIG_STATUS <<_ACEOF
15886:end
15887s/|#_!!_#|//g
15888CEOF$ac_eof
15889_ACEOF
15890
15891
15892# VPATH may cause trouble with some makes, so we remove $(srcdir),
15893# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15894# trailing colons and then remove the whole line if VPATH becomes empty
15895# (actually we leave an empty line to preserve line numbers).
15896if test "x$srcdir" = x.; then
15897 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15898s/:*\$(srcdir):*/:/
15899s/:*\${srcdir}:*/:/
15900s/:*@srcdir@:*/:/
15901s/^\([^=]*=[ ]*\):*/\1/
15902s/:*$//
15903s/^[^=]*=[ ]*$//
15904}'
15905fi
15906
15907cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015908fi # test -n "$CONFIG_FILES"
15909
Theodore Ts'oe1052142006-10-21 21:46:47 -040015910
15911for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
15912do
15913 case $ac_tag in
15914 :[FHLC]) ac_mode=$ac_tag; continue;;
15915 esac
15916 case $ac_mode$ac_tag in
15917 :[FHL]*:*);;
15918 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15919echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15920 { (exit 1); exit 1; }; };;
15921 :[FH]-) ac_tag=-:-;;
15922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15923 esac
15924 ac_save_IFS=$IFS
15925 IFS=:
15926 set x $ac_tag
15927 IFS=$ac_save_IFS
15928 shift
15929 ac_file=$1
15930 shift
15931
15932 case $ac_mode in
15933 :L) ac_source=$1;;
15934 :[FH])
15935 ac_file_inputs=
15936 for ac_f
15937 do
15938 case $ac_f in
15939 -) ac_f="$tmp/stdin";;
15940 *) # Look for the file first in the build tree, then in the source tree
15941 # (if the path is not absolute). The absolute path cannot be DOS-style,
15942 # because $ac_f cannot contain `:'.
15943 test -f "$ac_f" ||
15944 case $ac_f in
15945 [\\/$]*) false;;
15946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15947 esac ||
15948 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15949echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15950 { (exit 1); exit 1; }; };;
15951 esac
15952 ac_file_inputs="$ac_file_inputs $ac_f"
15953 done
15954
15955 # Let's still pretend it is `configure' which instantiates (i.e., don't
15956 # use $as_me), people would be surprised to read:
15957 # /* config.h. Generated by config.status. */
15958 configure_input="Generated from "`IFS=:
15959 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15960 if test x"$ac_file" != x-; then
15961 configure_input="$ac_file. $configure_input"
15962 { echo "$as_me:$LINENO: creating $ac_file" >&5
15963echo "$as_me: creating $ac_file" >&6;}
15964 fi
15965
15966 case $ac_tag in
15967 *:-:* | *:-) cat >"$tmp/stdin";;
15968 esac
15969 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015970 esac
15971
Theodore Ts'oe1052142006-10-21 21:46:47 -040015972 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15974 X"$ac_file" : 'X\(//\)[^/]' \| \
15975 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040015976 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015977echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15979 s//\1/
15980 q
15981 }
15982 /^X\(\/\/\)[^/].*/{
15983 s//\1/
15984 q
15985 }
15986 /^X\(\/\/\)$/{
15987 s//\1/
15988 q
15989 }
15990 /^X\(\/\).*/{
15991 s//\1/
15992 q
15993 }
15994 s/.*/./; q'`
15995 { as_dir="$ac_dir"
15996 case $as_dir in #(
15997 -*) as_dir=./$as_dir;;
15998 esac
15999 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016000 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016001 while :; do
16002 case $as_dir in #(
16003 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16004 *) as_qdir=$as_dir;;
16005 esac
16006 as_dirs="'$as_qdir' $as_dirs"
16007 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016008$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16009 X"$as_dir" : 'X\(//\)[^/]' \| \
16010 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016012echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16014 s//\1/
16015 q
16016 }
16017 /^X\(\/\/\)[^/].*/{
16018 s//\1/
16019 q
16020 }
16021 /^X\(\/\/\)$/{
16022 s//\1/
16023 q
16024 }
16025 /^X\(\/\).*/{
16026 s//\1/
16027 q
16028 }
16029 s/.*/./; q'`
16030 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016031 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016032 test -z "$as_dirs" || eval "mkdir $as_dirs"
16033 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16034echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016035 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016036 ac_builddir=.
16037
Theodore Ts'oe1052142006-10-21 21:46:47 -040016038case "$ac_dir" in
16039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16040*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016042 # A ".." for each directory in $ac_dir_suffix.
16043 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16044 case $ac_top_builddir_sub in
16045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16047 esac ;;
16048esac
16049ac_abs_top_builddir=$ac_pwd
16050ac_abs_builddir=$ac_pwd$ac_dir_suffix
16051# for backward compatibility:
16052ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016053
16054case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016055 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016056 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016057 ac_top_srcdir=$ac_top_builddir_sub
16058 ac_abs_top_srcdir=$ac_pwd ;;
16059 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016060 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016061 ac_top_srcdir=$srcdir
16062 ac_abs_top_srcdir=$srcdir ;;
16063 *) # Relative name.
16064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16065 ac_top_srcdir=$ac_top_build_prefix$srcdir
16066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016067esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016070
Theodore Ts'oe1052142006-10-21 21:46:47 -040016071 case $ac_mode in
16072 :F)
16073 #
16074 # CONFIG_FILE
16075 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016076
16077 case $INSTALL in
16078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016080 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016081_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016082
16083cat >>$CONFIG_STATUS <<\_ACEOF
16084# If the template does not know about datarootdir, expand it.
16085# FIXME: This hack should be removed a few years after 2.60.
16086ac_datarootdir_hack=; ac_datarootdir_seen=
16087
16088case `sed -n '/datarootdir/ {
16089 p
16090 q
16091}
16092/@datadir@/p
16093/@docdir@/p
16094/@infodir@/p
16095/@localedir@/p
16096/@mandir@/p
16097' $ac_file_inputs` in
16098*datarootdir*) ac_datarootdir_seen=yes;;
16099*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16100 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16101echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16102_ACEOF
16103cat >>$CONFIG_STATUS <<_ACEOF
16104 ac_datarootdir_hack='
16105 s&@datadir@&$datadir&g
16106 s&@docdir@&$docdir&g
16107 s&@infodir@&$infodir&g
16108 s&@localedir@&$localedir&g
16109 s&@mandir@&$mandir&g
16110 s&\\\${datarootdir}&$datarootdir&g' ;;
16111esac
16112_ACEOF
16113
16114# Neutralize VPATH when `$srcdir' = `.'.
16115# Shell code in configure.ac might set extrasub.
16116# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016117cat >>$CONFIG_STATUS <<_ACEOF
16118 sed "$ac_vpsub
16119$extrasub
16120_ACEOF
16121cat >>$CONFIG_STATUS <<\_ACEOF
16122:t
16123/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016124s&@configure_input@&$configure_input&;t t
16125s&@top_builddir@&$ac_top_builddir_sub&;t t
16126s&@srcdir@&$ac_srcdir&;t t
16127s&@abs_srcdir@&$ac_abs_srcdir&;t t
16128s&@top_srcdir@&$ac_top_srcdir&;t t
16129s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16130s&@builddir@&$ac_builddir&;t t
16131s&@abs_builddir@&$ac_abs_builddir&;t t
16132s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16133s&@INSTALL@&$ac_INSTALL&;t t
16134$ac_datarootdir_hack
16135" $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 -050016136
Theodore Ts'oe1052142006-10-21 21:46:47 -040016137test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16138 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16140 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16141which seems to be undefined. Please make sure it is defined." >&5
16142echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16143which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016144
Theodore Ts'oe1052142006-10-21 21:46:47 -040016145 rm -f "$tmp/stdin"
16146 case $ac_file in
16147 -) cat "$tmp/out"; rm -f "$tmp/out";;
16148 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16149 esac
16150 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016151
16152
Theodore Ts'oe1052142006-10-21 21:46:47 -040016153 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16154echo "$as_me: executing $ac_file commands" >&6;}
16155 ;;
16156 esac
16157
16158
16159 case $ac_file$ac_mode in
16160 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016161 for ac_file in $CONFIG_FILES; do
16162 # Support "outfile[:infile[:infile...]]"
16163 case "$ac_file" in
16164 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016165 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016166 # PO directories have a Makefile.in generated from Makefile.in.in.
16167 case "$ac_file" in */Makefile.in)
16168 # Adjust a relative srcdir.
16169 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16170 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16171 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16172 # In autoconf-2.13 it is called $ac_given_srcdir.
16173 # In autoconf-2.50 it is called $srcdir.
16174 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16175 case "$ac_given_srcdir" in
16176 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16177 /*) top_srcdir="$ac_given_srcdir" ;;
16178 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16179 esac
16180 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16181 rm -f "$ac_dir/POTFILES"
16182 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16183 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 -050016184 POMAKEFILEDEPS="POTFILES.in"
16185 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016186 # on $ac_dir but don't depend on user-specified configuration
16187 # parameters.
16188 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16189 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016190 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016191 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16192 fi
16193 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16194 # Hide the ALL_LINGUAS assigment from automake.
16195 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016196 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16197 else
16198 # The set of available languages was given in configure.in.
16199 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016200 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016201 # Compute POFILES
16202 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16203 # Compute UPDATEPOFILES
16204 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16205 # Compute DUMMYPOFILES
16206 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16207 # Compute GMOFILES
16208 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016209 case "$ac_given_srcdir" in
16210 .) srcdirpre= ;;
16211 *) srcdirpre='$(srcdir)/' ;;
16212 esac
16213 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016214 UPDATEPOFILES=
16215 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016216 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016217 for lang in $ALL_LINGUAS; do
16218 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016219 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16220 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016221 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016222 done
16223 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16224 # environment variable.
16225 INST_LINGUAS=
16226 if test -n "$ALL_LINGUAS"; then
16227 for presentlang in $ALL_LINGUAS; do
16228 useit=no
16229 if test "%UNSET%" != "$LINGUAS"; then
16230 desiredlanguages="$LINGUAS"
16231 else
16232 desiredlanguages="$ALL_LINGUAS"
16233 fi
16234 for desiredlang in $desiredlanguages; do
16235 # Use the presentlang catalog if desiredlang is
16236 # a. equal to presentlang, or
16237 # b. a variant of presentlang (because in this case,
16238 # presentlang can be used as a fallback for messages
16239 # which are not translated in the desiredlang catalog).
16240 case "$desiredlang" in
16241 "$presentlang"*) useit=yes;;
16242 esac
16243 done
16244 if test $useit = yes; then
16245 INST_LINGUAS="$INST_LINGUAS $presentlang"
16246 fi
16247 done
16248 fi
16249 CATALOGS=
16250 if test -n "$INST_LINGUAS"; then
16251 for lang in $INST_LINGUAS; do
16252 CATALOGS="$CATALOGS $lang.gmo"
16253 done
16254 fi
16255 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016256 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 -040016257 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16258 if test -f "$f"; then
16259 case "$f" in
16260 *.orig | *.bak | *~) ;;
16261 *) cat "$f" >> "$ac_dir/Makefile" ;;
16262 esac
16263 fi
16264 done
16265 fi
16266 ;;
16267 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016268 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016269
Theodore Ts'oe1052142006-10-21 21:46:47 -040016270 esac
16271done # for ac_tag
16272
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016273
16274{ (exit 0); exit 0; }
16275_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016276chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016277ac_clean_files=$ac_clean_files_save
16278
16279
16280# configure is writing to config.log, and then calls config.status.
16281# config.status does its own redirection, appending to config.log.
16282# Unfortunately, on DOS this fails, as config.log is still kept open
16283# by configure, so config.status won't be able to write to it; its
16284# output is simply discarded. So we exec the FD to /dev/null,
16285# effectively closing config.log, so it can be properly (re)opened and
16286# appended to by config.status. When coming back to configure, we
16287# need to make the FD available again.
16288if test "$no_create" != yes; then
16289 ac_cs_success=:
16290 ac_config_status_args=
16291 test "$silent" = yes &&
16292 ac_config_status_args="$ac_config_status_args --quiet"
16293 exec 5>/dev/null
16294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16295 exec 5>>config.log
16296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16297 # would make configure fail if this is the last instruction.
16298 $ac_cs_success || { (exit 1); exit 1; }
16299fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016300
Theodore Ts'oee683a12005-02-05 15:53:56 -050016301if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16302