blob: 50a23ff440d75d7f24d71b8da0d750507283a32a [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'o32493942007-12-31 10:45:01 -05001379 --disable-tls disable use of thread local support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001380 --disable-nls do not use Native Language Support
1381 --disable-rpath do not hardcode runtime library paths
1382
1383Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001386 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001387 --with-cc=COMPILER select compiler to use
1388 --with-linker=LINKER select linker to use
1389 --with-ccopts=CCOPTS select compiler command line options
1390 --with-ldopts=LDOPTS select linker command line options
1391 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1392 --with-gnu-ld assume the C compiler uses GNU ld default=no
1393 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1394 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1395 --with-included-gettext use the GNU gettext library included here
1396 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1397 --without-libintl-prefix don't search for libintl in includedir and libdir
1398
1399Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001404 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001407 CPP C preprocessor
1408
1409Use these variables to override the choices made by `configure' or to help
1410it to find libraries and programs with nonstandard names/locations.
1411
1412_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001413ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001414fi
1415
1416if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001419 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001420 ac_builddir=.
1421
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422case "$ac_dir" in
1423.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001425 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 esac ;;
1432esac
1433ac_abs_top_builddir=$ac_pwd
1434ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435# for backward compatibility:
1436ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437
1438case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001439 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001440 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001441 ac_top_srcdir=$ac_top_builddir_sub
1442 ac_abs_top_srcdir=$ac_pwd ;;
1443 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001445 ac_top_srcdir=$srcdir
1446 ac_abs_top_srcdir=$srcdir ;;
1447 *) # Relative name.
1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001451esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001452ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001453
Theodore Ts'oe1052142006-10-21 21:46:47 -04001454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001462 else
1463 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001464 fi || ac_status=$?
1465 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466 done
1467fi
1468
Theodore Ts'oe1052142006-10-21 21:46:47 -04001469test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470if $ac_init_version; then
1471 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001472configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001473generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474
Theodore Ts'oe1052142006-10-21 21:46:47 -04001475Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14762002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001477This configure script is free software; the Free Software Foundation
1478gives unlimited permission to copy, distribute and modify it.
1479_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001480 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001482cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483This file contains any messages produced by compilers while
1484running configure, to aid debugging if configure makes a mistake.
1485
1486It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001487generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488
1489 $ $0 $@
1490
1491_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001492exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001493{
1494cat <<_ASUNAME
1495## --------- ##
1496## Platform. ##
1497## --------- ##
1498
1499hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1500uname -m = `(uname -m) 2>/dev/null || echo unknown`
1501uname -r = `(uname -r) 2>/dev/null || echo unknown`
1502uname -s = `(uname -s) 2>/dev/null || echo unknown`
1503uname -v = `(uname -v) 2>/dev/null || echo unknown`
1504
1505/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1506/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1507
1508/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1509/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1510/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001511/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001512/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1513/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1514/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1515
1516_ASUNAME
1517
1518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519for as_dir in $PATH
1520do
1521 IFS=$as_save_IFS
1522 test -z "$as_dir" && as_dir=.
1523 echo "PATH: $as_dir"
1524done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001525IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001526
1527} >&5
1528
1529cat >&5 <<_ACEOF
1530
1531
1532## ----------- ##
1533## Core tests. ##
1534## ----------- ##
1535
1536_ACEOF
1537
1538
1539# Keep a trace of the command line.
1540# Strip out --no-create and --no-recursion so they do not pile up.
1541# Strip out --silent because we don't want to record it for future runs.
1542# Also quote any args containing shell meta-characters.
1543# Make two passes to allow for proper duplicate-argument suppression.
1544ac_configure_args=
1545ac_configure_args0=
1546ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547ac_must_keep_next=false
1548for ac_pass in 1 2
1549do
1550 for ac_arg
1551 do
1552 case $ac_arg in
1553 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1555 | -silent | --silent | --silen | --sile | --sil)
1556 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001557 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1559 esac
1560 case $ac_pass in
1561 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1562 2)
1563 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1564 if test $ac_must_keep_next = true; then
1565 ac_must_keep_next=false # Got value, back to normal.
1566 else
1567 case $ac_arg in
1568 *=* | --config-cache | -C | -disable-* | --disable-* \
1569 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1570 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1571 | -with-* | --with-* | -without-* | --without-* | --x)
1572 case "$ac_configure_args0 " in
1573 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1574 esac
1575 ;;
1576 -* ) ac_must_keep_next=true ;;
1577 esac
1578 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001579 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001580 ;;
1581 esac
1582 done
1583done
1584$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1585$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1586
1587# When interrupted or exit'd, cleanup temporary files, and complete
1588# config.log. We remove comments because anyway the quotes in there
1589# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001590# WARNING: Use '\'' to represent an apostrophe within the trap.
1591# 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 -05001592trap 'exit_status=$?
1593 # Save into config.log some information that might help in debugging.
1594 {
1595 echo
1596
1597 cat <<\_ASBOX
1598## ---------------- ##
1599## Cache variables. ##
1600## ---------------- ##
1601_ASBOX
1602 echo
1603 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604(
1605 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1606 eval ac_val=\$$ac_var
1607 case $ac_val in #(
1608 *${as_nl}*)
1609 case $ac_var in #(
1610 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1611echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1612 esac
1613 case $ac_var in #(
1614 _ | IFS | as_nl) ;; #(
1615 *) $as_unset $ac_var ;;
1616 esac ;;
1617 esac
1618 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001619 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001620 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1621 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001622 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623 "s/'\''/'\''\\\\'\'''\''/g;
1624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1625 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001628 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001629 esac |
1630 sort
1631)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 echo
1633
1634 cat <<\_ASBOX
1635## ----------------- ##
1636## Output variables. ##
1637## ----------------- ##
1638_ASBOX
1639 echo
1640 for ac_var in $ac_subst_vars
1641 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001642 eval ac_val=\$$ac_var
1643 case $ac_val in
1644 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 esac
1646 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001647 done | sort
1648 echo
1649
1650 if test -n "$ac_subst_files"; then
1651 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001652## ------------------- ##
1653## File substitutions. ##
1654## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001655_ASBOX
1656 echo
1657 for ac_var in $ac_subst_files
1658 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001659 eval ac_val=\$$ac_var
1660 case $ac_val in
1661 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1662 esac
1663 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001664 done | sort
1665 echo
1666 fi
1667
1668 if test -s confdefs.h; then
1669 cat <<\_ASBOX
1670## ----------- ##
1671## confdefs.h. ##
1672## ----------- ##
1673_ASBOX
1674 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001675 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001676 echo
1677 fi
1678 test "$ac_signal" != 0 &&
1679 echo "$as_me: caught signal $ac_signal"
1680 echo "$as_me: exit $exit_status"
1681 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001682 rm -f core *.core core.conftest.* &&
1683 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001684 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001685' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001686for ac_signal in 1 2 13 15; do
1687 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1688done
1689ac_signal=0
1690
1691# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001692rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001693
1694# Predefined preprocessor variables.
1695
1696cat >>confdefs.h <<_ACEOF
1697#define PACKAGE_NAME "$PACKAGE_NAME"
1698_ACEOF
1699
1700
1701cat >>confdefs.h <<_ACEOF
1702#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1703_ACEOF
1704
1705
1706cat >>confdefs.h <<_ACEOF
1707#define PACKAGE_VERSION "$PACKAGE_VERSION"
1708_ACEOF
1709
1710
1711cat >>confdefs.h <<_ACEOF
1712#define PACKAGE_STRING "$PACKAGE_STRING"
1713_ACEOF
1714
1715
1716cat >>confdefs.h <<_ACEOF
1717#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1718_ACEOF
1719
1720
1721# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001722# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001723if test -n "$CONFIG_SITE"; then
1724 set x "$CONFIG_SITE"
1725elif test "x$prefix" != xNONE; then
1726 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1727else
1728 set x "$ac_default_prefix/share/config.site" \
1729 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001731shift
1732for ac_site_file
1733do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001734 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001735 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1736echo "$as_me: loading site script $ac_site_file" >&6;}
1737 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001738 . "$ac_site_file"
1739 fi
1740done
1741
1742if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001743 # Some versions of bash will fail to source /dev/null (special
1744 # files actually), so we avoid doing that.
1745 if test -f "$cache_file"; then
1746 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1747echo "$as_me: loading cache $cache_file" >&6;}
1748 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001749 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1750 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001751 esac
1752 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001753else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001754 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1755echo "$as_me: creating cache $cache_file" >&6;}
1756 >$cache_file
1757fi
1758
1759# Check that the precious variables saved in the cache have kept the same
1760# value.
1761ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001762for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001763 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1764 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001765 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1766 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001767 case $ac_old_set,$ac_new_set in
1768 set,)
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1770echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,set)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1774echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,);;
1777 *)
1778 if test "x$ac_old_val" != "x$ac_new_val"; then
1779 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1780echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1781 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1782echo "$as_me: former value: $ac_old_val" >&2;}
1783 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1784echo "$as_me: current value: $ac_new_val" >&2;}
1785 ac_cache_corrupted=:
1786 fi;;
1787 esac
1788 # Pass precious variables to config.status.
1789 if test "$ac_new_set" = set; then
1790 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001791 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001792 *) ac_arg=$ac_var=$ac_new_val ;;
1793 esac
1794 case " $ac_configure_args " in
1795 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1796 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1797 esac
1798 fi
1799done
1800if $ac_cache_corrupted; then
1801 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1802echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1803 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1804echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1805 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001806fi
1807
Theodore Ts'oe1052142006-10-21 21:46:47 -04001808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001824ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001825ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001830
1831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001832ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001833for ac_dir in config "$srcdir"/config; do
1834 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001835 ac_aux_dir=$ac_dir
1836 ac_install_sh="$ac_aux_dir/install-sh -c"
1837 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001838 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001839 ac_aux_dir=$ac_dir
1840 ac_install_sh="$ac_aux_dir/install.sh -c"
1841 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001842 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001843 ac_aux_dir=$ac_dir
1844 ac_install_sh="$ac_aux_dir/shtool install -c"
1845 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001846 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001847done
1848if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001849 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1850echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001851 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001852fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001853
1854# These three variables are undocumented and unsupported,
1855# and are intended to be withdrawn in a future Autoconf release.
1856# They can cause serious problems if a builder's source tree is in a directory
1857# whose full name contains unusual characters.
1858ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1859ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1860ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1861
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001862
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001863MCONFIG=./MCONFIG
1864
Theodore Ts'o74becf31997-04-26 14:37:06 +00001865BINARY_TYPE=bin
1866E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1867 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1868DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1869 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001870E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001871MONTH=`echo $DATE | awk -F- '{print $2}'`
1872YEAR=`echo $DATE | awk -F- '{print $3}'`
1873
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001874if expr $YEAR ">" 1900 > /dev/null ; then
1875 E2FSPROGS_YEAR=$YEAR
1876elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001877 E2FSPROGS_YEAR=19$YEAR
1878else
1879 E2FSPROGS_YEAR=20$YEAR
1880fi
1881
1882case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001883Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1884Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1885Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1886Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1887May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1888Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1889Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1890Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1891Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1892Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1893Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1894Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001895*) echo "Unknown month $MONTH??" ;;
1896esac
1897
Andreas Dilger927566a2006-11-12 19:41:25 -05001898base_ver=`echo $E2FSPROGS_VERSION | \
1899 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1900pre_vers=`echo $base_ver 0.01 - p | dc`
1901
1902date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1903
1904case $E2FSPROGS_VERSION in
1905*-WIP|pre-*)
1906 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1907 ;;
1908*)
1909 E2FSPROGS_PKGVER="$base_ver"
1910 ;;
1911esac
1912
1913unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001914echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1915echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1916
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001917
1918
1919
Andreas Dilger927566a2006-11-12 19:41:25 -05001920
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001921# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001922$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1923 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1924echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001925 { (exit 1); exit 1; }; }
1926
Theodore Ts'oe1052142006-10-21 21:46:47 -04001927{ echo "$as_me:$LINENO: checking build system type" >&5
1928echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001929if test "${ac_cv_build+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001932 ac_build_alias=$build_alias
1933test "x$ac_build_alias" = x &&
1934 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1935test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001936 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1937echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1938 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001939ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1940 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1941echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001942 { (exit 1); exit 1; }; }
1943
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001944fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001945{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1946echo "${ECHO_T}$ac_cv_build" >&6; }
1947case $ac_cv_build in
1948*-*-*) ;;
1949*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1950echo "$as_me: error: invalid value of canonical build" >&2;}
1951 { (exit 1); exit 1; }; };;
1952esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001953build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001954ac_save_IFS=$IFS; IFS='-'
1955set x $ac_cv_build
1956shift
1957build_cpu=$1
1958build_vendor=$2
1959shift; shift
1960# Remember, the first character of IFS is used to create $*,
1961# except with old shells:
1962build_os=$*
1963IFS=$ac_save_IFS
1964case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001965
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001966
Theodore Ts'oe1052142006-10-21 21:46:47 -04001967{ echo "$as_me:$LINENO: checking host system type" >&5
1968echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001969if test "${ac_cv_host+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001972 if test "x$host_alias" = x; then
1973 ac_cv_host=$ac_cv_build
1974else
1975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1976 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1977echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001978 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001979fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001980
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001981fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001982{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1983echo "${ECHO_T}$ac_cv_host" >&6; }
1984case $ac_cv_host in
1985*-*-*) ;;
1986*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1987echo "$as_me: error: invalid value of canonical host" >&2;}
1988 { (exit 1); exit 1; }; };;
1989esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001990host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001991ac_save_IFS=$IFS; IFS='-'
1992set x $ac_cv_host
1993shift
1994host_cpu=$1
1995host_vendor=$2
1996shift; shift
1997# Remember, the first character of IFS is used to create $*,
1998# except with old shells:
1999host_os=$*
2000IFS=$ac_save_IFS
2001case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002002
2003
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002004
Theodore Ts'oe1052142006-10-21 21:46:47 -04002005# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002006if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002007 withval=$with_diet_libc; CC="diet cc -nostdinc"
2008{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2009echo "${ECHO_T}CC=$CC" >&6; }
2010fi
2011
2012# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002013if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002014 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2015echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002016CC=$withval
2017else
2018 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002019{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2020echo "${ECHO_T}CC defaults to $CC" >&6; }
2021fi
2022export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002034if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002036else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002046 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 -05002047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2050 fi
2051done
2052done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002053IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002054
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002055fi
2056fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002057CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002058if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002059 { echo "$as_me:$LINENO: result: $CC" >&5
2060echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002061else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002062 { echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002064fi
2065
Theodore Ts'oe1052142006-10-21 21:46:47 -04002066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002067fi
2068if test -z "$ac_cv_prog_CC"; then
2069 ac_ct_CC=$CC
2070 # Extract the first word of "gcc", so it can be a program name with args.
2071set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077 if test -n "$ac_ct_CC"; then
2078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079else
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002086 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 -05002087 ac_cv_prog_ac_ct_CC="gcc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2090 fi
2091done
2092done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002093IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002094
2095fi
2096fi
2097ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002099 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002101else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002102 { echo "$as_me:$LINENO: result: no" >&5
2103echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002104fi
2105
Theodore Ts'oe1052142006-10-21 21:46:47 -04002106 if test "x$ac_ct_CC" = x; then
2107 CC=""
2108 else
2109 case $cross_compiling:$ac_tool_warned in
2110yes:)
2111{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2112whose name does not start with the host triplet. If you think this
2113configuration is useful to you, please write to autoconf@gnu.org." >&5
2114echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2115whose name does not start with the host triplet. If you think this
2116configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2117ac_tool_warned=yes ;;
2118esac
2119 CC=$ac_ct_CC
2120 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002121else
2122 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002123fi
2124
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002125if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002126 if test -n "$ac_tool_prefix"; then
2127 # 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 -05002128set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002131if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002133else
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002143 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 -05002144 ac_cv_prog_CC="${ac_tool_prefix}cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2147 fi
2148done
2149done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002150IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002151
2152fi
2153fi
2154CC=$ac_cv_prog_CC
2155if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002156 { echo "$as_me:$LINENO: result: $CC" >&5
2157echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002158else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002159 { echo "$as_me:$LINENO: result: no" >&5
2160echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002161fi
2162
Theodore Ts'oe1052142006-10-21 21:46:47 -04002163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002164 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002165fi
2166if test -z "$CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002171if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002177 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002184 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 -05002185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2186 ac_prog_rejected=yes
2187 continue
2188 fi
2189 ac_cv_prog_CC="cc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2192 fi
2193done
2194done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002195IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002196
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002197if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2200 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002201 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2205 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002207 fi
2208fi
2209fi
2210fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002211CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002212if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002213 { echo "$as_me:$LINENO: result: $CC" >&5
2214echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002215else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002216 { echo "$as_me:$LINENO: result: no" >&5
2217echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002218fi
2219
Theodore Ts'oe1052142006-10-21 21:46:47 -04002220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002221fi
2222if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002224 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002225 do
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002230if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002232else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002242 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 -05002243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2246 fi
2247done
2248done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002249IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002250
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002251fi
2252fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002253CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002254if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002255 { echo "$as_me:$LINENO: result: $CC" >&5
2256echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002257else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002258 { echo "$as_me:$LINENO: result: no" >&5
2259echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002260fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002261
Theodore Ts'oe1052142006-10-21 21:46:47 -04002262
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002263 test -n "$CC" && break
2264 done
2265fi
2266if test -z "$CC"; then
2267 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002268 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002269do
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279else
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002286 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 -05002287 ac_cv_prog_ac_ct_CC="$ac_prog"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002290 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002291done
2292done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002293IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002294
2295fi
2296fi
2297ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002301else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002302 { echo "$as_me:$LINENO: result: no" >&5
2303echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002304fi
2305
Theodore Ts'oe1052142006-10-21 21:46:47 -04002306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002307 test -n "$ac_ct_CC" && break
2308done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002309
Theodore Ts'oe1052142006-10-21 21:46:47 -04002310 if test "x$ac_ct_CC" = x; then
2311 CC=""
2312 else
2313 case $cross_compiling:$ac_tool_warned in
2314yes:)
2315{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2316whose name does not start with the host triplet. If you think this
2317configuration is useful to you, please write to autoconf@gnu.org." >&5
2318echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2319whose name does not start with the host triplet. If you think this
2320configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2321ac_tool_warned=yes ;;
2322esac
2323 CC=$ac_ct_CC
2324 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002325fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002327fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002328
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002330test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: no acceptable C compiler found in \$PATH
2333See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2335
2336# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002337echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002338ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002339{ (ac_try="$ac_compiler --version >&5"
2340case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343esac
2344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002349{ (ac_try="$ac_compiler -v >&5"
2350case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353esac
2354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002359{ (ac_try="$ac_compiler -V >&5"
2360case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363esac
2364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369
2370cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
2376
2377int
2378main ()
2379{
2380
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385ac_clean_files_save=$ac_clean_files
2386ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387# Try to create an executable without -o first, disregard a.out.
2388# It will help us diagnose broken compilers, and finding out an intuition
2389# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002390{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2391echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002392ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002393#
2394# List of possible output files, starting from the most likely.
2395# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2396# only as a last resort. b.out is created by i960 compilers.
2397ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2398#
2399# The IRIX 6 linker writes into existing files which may not be
2400# executable, retaining their permissions. Remove them first so a
2401# subsequent execution test works.
2402ac_rmfiles=
2403for ac_file in $ac_files
2404do
2405 case $ac_file in
2406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2407 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2408 esac
2409done
2410rm -f $ac_rmfiles
2411
2412if { (ac_try="$ac_link_default"
2413case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416esac
2417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2423# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2424# in a Makefile. We should not override ac_cv_exeext if it was cached,
2425# so that the user can short-circuit this test for compilers unknown to
2426# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002427for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002428do
2429 test -f "$ac_file" || continue
2430 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432 ;;
2433 [ab].out )
2434 # We found the default executable, but exeext='' is most
2435 # certainly right.
2436 break;;
2437 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2439 then :; else
2440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 fi
2442 # We set ac_cv_exeext here because the later test for it is not
2443 # safe: cross compilers may not add the suffix if given an `-o'
2444 # argument, so we may need to know it at that point already.
2445 # Even if this section looks crufty: it has the advantage of
2446 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447 break;;
2448 * )
2449 break;;
2450 esac
2451done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452test "$ac_cv_exeext" = no && ac_cv_exeext=
2453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002454else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002455 ac_file=''
2456fi
2457
2458{ echo "$as_me:$LINENO: result: $ac_file" >&5
2459echo "${ECHO_T}$ac_file" >&6; }
2460if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002461 echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2465See \`config.log' for more details." >&5
2466echo "$as_me: error: C compiler cannot create executables
2467See \`config.log' for more details." >&2;}
2468 { (exit 77); exit 77; }; }
2469fi
2470
2471ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002472
Theodore Ts'oe1052142006-10-21 21:46:47 -04002473# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2476echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2478# If not cross compiling, check that we can run a simple program.
2479if test "$cross_compiling" != yes; then
2480 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002491 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 if test "$cross_compiling" = maybe; then
2493 cross_compiling=yes
2494 else
2495 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2496If you meant to cross compile, use \`--host'.
2497See \`config.log' for more details." >&5
2498echo "$as_me: error: cannot run C compiled programs.
2499If you meant to cross compile, use \`--host'.
2500See \`config.log' for more details." >&2;}
2501 { (exit 1); exit 1; }; }
2502 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002503 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505{ echo "$as_me:$LINENO: result: yes" >&5
2506echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002508rm -f a.out a.exe conftest$ac_cv_exeext b.out
2509ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2513echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2514{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2515echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002516
Theodore Ts'oe1052142006-10-21 21:46:47 -04002517{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2518echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2519if { (ac_try="$ac_link"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2530# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2531# work properly (i.e., refer to `conftest.exe'), while it won't with
2532# `rm'.
2533for ac_file in conftest.exe conftest conftest.*; do
2534 test -f "$ac_file" || continue
2535 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538 break;;
2539 * ) break;;
2540 esac
2541done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544See \`config.log' for more details." >&5
2545echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546See \`config.log' for more details." >&2;}
2547 { (exit 1); exit 1; }; }
2548fi
2549
2550rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002551{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553
2554rm -f conftest.$ac_ext
2555EXEEXT=$ac_cv_exeext
2556ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002557{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002559if test "${ac_cv_objext+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562 cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568
2569int
2570main ()
2571{
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002578if { (ac_try="$ac_compile"
2579case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002588 for ac_file in conftest.o conftest.obj conftest.*; do
2589 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2593 break;;
2594 esac
2595done
2596else
2597 echo "$as_me: failed program was:" >&5
2598sed 's/^/| /' conftest.$ac_ext >&5
2599
2600{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2601See \`config.log' for more details." >&5
2602echo "$as_me: error: cannot compute suffix of object files: cannot compile
2603See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }
2605fi
2606
2607rm -f conftest.$ac_cv_objext conftest.$ac_ext
2608fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002609{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2610echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002611OBJEXT=$ac_cv_objext
2612ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002613{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2614echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002615if test "${ac_cv_c_compiler_gnu+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h. */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h. */
2624
2625int
2626main ()
2627{
2628#ifndef __GNUC__
2629 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002630#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002632 ;
2633 return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002637if { (ac_try="$ac_compile"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002649 (exit $ac_status); } && {
2650 test -z "$ac_c_werror_flag" ||
2651 test ! -s conftest.err
2652 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002653 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002654else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655 echo "$as_me: failed program was:" >&5
2656sed 's/^/| /' conftest.$ac_ext >&5
2657
Theodore Ts'oe1052142006-10-21 21:46:47 -04002658 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002659fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002660
2661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002662ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002665{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2666echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667GCC=`test $ac_compiler_gnu = yes && echo yes`
2668ac_test_CFLAGS=${CFLAGS+set}
2669ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002670{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2671echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672if test "${ac_cv_prog_cc_g+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002674else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002675 ac_save_c_werror_flag=$ac_c_werror_flag
2676 ac_c_werror_flag=yes
2677 ac_cv_prog_cc_g=no
2678 CFLAGS="-g"
2679 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002680/* confdefs.h. */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h. */
2685
2686int
2687main ()
2688{
2689
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002695if { (ac_try="$ac_compile"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002707 (exit $ac_status); } && {
2708 test -z "$ac_c_werror_flag" ||
2709 test ! -s conftest.err
2710 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002711 ac_cv_prog_cc_g=yes
2712else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002713 echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002715
Theodore Ts'oe1052142006-10-21 21:46:47 -04002716 CFLAGS=""
2717 cat >conftest.$ac_ext <<_ACEOF
2718/* confdefs.h. */
2719_ACEOF
2720cat confdefs.h >>conftest.$ac_ext
2721cat >>conftest.$ac_ext <<_ACEOF
2722/* end confdefs.h. */
2723
2724int
2725main ()
2726{
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732rm -f conftest.$ac_objext
2733if { (ac_try="$ac_compile"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002749 :
2750else
2751 echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 ac_c_werror_flag=$ac_save_c_werror_flag
2755 CFLAGS="-g"
2756 cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h. */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h. */
2762
2763int
2764main ()
2765{
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext
2772if { (ac_try="$ac_compile"
2773case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002788 ac_cv_prog_cc_g=yes
2789else
2790 echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002795
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002798
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800fi
2801
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_c_werror_flag=$ac_save_c_werror_flag
2804fi
2805{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2806echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002807if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002808 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002809elif test $ac_cv_prog_cc_g = yes; then
2810 if test "$GCC" = yes; then
2811 CFLAGS="-g -O2"
2812 else
2813 CFLAGS="-g"
2814 fi
2815else
2816 if test "$GCC" = yes; then
2817 CFLAGS="-O2"
2818 else
2819 CFLAGS=
2820 fi
2821fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002822{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2823echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2824if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828ac_save_CC=$CC
2829cat >conftest.$ac_ext <<_ACEOF
2830/* confdefs.h. */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h. */
2835#include <stdarg.h>
2836#include <stdio.h>
2837#include <sys/types.h>
2838#include <sys/stat.h>
2839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2840struct buf { int x; };
2841FILE * (*rcsopen) (struct buf *, struct stat *, int);
2842static char *e (p, i)
2843 char **p;
2844 int i;
2845{
2846 return p[i];
2847}
2848static char *f (char * (*g) (char **, int), char **p, ...)
2849{
2850 char *s;
2851 va_list v;
2852 va_start (v,p);
2853 s = g (p, va_arg (v,int));
2854 va_end (v);
2855 return s;
2856}
2857
2858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2859 function prototypes and stuff, but not '\xHH' hex character constants.
2860 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002861 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2863 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2866
Theodore Ts'oe1052142006-10-21 21:46:47 -04002867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2868 inside strings and character constants. */
2869#define FOO(x) 'x'
2870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002872int test (int i, double x);
2873struct s1 {int (*f) (int a);};
2874struct s2 {int (*f) (double a);};
2875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2876int argc;
2877char **argv;
2878int
2879main ()
2880{
2881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2882 ;
2883 return 0;
2884}
2885_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888do
2889 CC="$ac_save_CC $ac_arg"
2890 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002891if { (ac_try="$ac_compile"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002903 (exit $ac_status); } && {
2904 test -z "$ac_c_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002907 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908else
2909 echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
Theodore Ts'oe1052142006-10-21 21:46:47 -04002912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002914
2915rm -f core conftest.err conftest.$ac_objext
2916 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002918rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919CC=$ac_save_CC
2920
2921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002922# AC_CACHE_VAL
2923case "x$ac_cv_prog_cc_c89" in
2924 x)
2925 { echo "$as_me:$LINENO: result: none needed" >&5
2926echo "${ECHO_T}none needed" >&6; } ;;
2927 xno)
2928 { echo "$as_me:$LINENO: result: unsupported" >&5
2929echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002930 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002931 CC="$CC $ac_cv_prog_cc_c89"
2932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2933echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934esac
2935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937ac_ext=c
2938ac_cpp='$CPP $CPPFLAGS'
2939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943ac_ext=c
2944ac_cpp='$CPP $CPPFLAGS'
2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002948{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002950# On Suns, sometimes $CPP names a directory.
2951if test -n "$CPP" && test -d "$CPP"; then
2952 CPP=
2953fi
2954if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955 if test "${ac_cv_prog_CPP+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2960 do
2961 ac_preproc_ok=false
2962for ac_c_preproc_warn_flag in '' yes
2963do
2964 # Use a header file that comes with gcc, so configuring glibc
2965 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002968 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h. */
2976#ifdef __STDC__
2977# include <limits.h>
2978#else
2979# include <assert.h>
2980#endif
2981 Syntax error
2982_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002983if { (ac_try="$ac_cpp conftest.$ac_ext"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002995 (exit $ac_status); } >/dev/null && {
2996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002999 :
3000else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001 echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003003
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003004 # Broken: fails on valid input.
3005continue
3006fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008rm -f conftest.err conftest.$ac_ext
3009
Theodore Ts'oe1052142006-10-21 21:46:47 -04003010 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011 # can be detected and how.
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018#include <ac_nonexistent.h>
3019_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020if { (ac_try="$ac_cpp conftest.$ac_ext"
3021case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003032 (exit $ac_status); } >/dev/null && {
3033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3035 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036 # Broken: success on invalid input.
3037continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039 echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042 # Passes both tests.
3043ac_preproc_ok=:
3044break
3045fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003047rm -f conftest.err conftest.$ac_ext
3048
3049done
3050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051rm -f conftest.err conftest.$ac_ext
3052if $ac_preproc_ok; then
3053 break
3054fi
3055
3056 done
3057 ac_cv_prog_CPP=$CPP
3058
3059fi
3060 CPP=$ac_cv_prog_CPP
3061else
3062 ac_cv_prog_CPP=$CPP
3063fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003064{ echo "$as_me:$LINENO: result: $CPP" >&5
3065echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066ac_preproc_ok=false
3067for ac_c_preproc_warn_flag in '' yes
3068do
3069 # Use a header file that comes with gcc, so configuring glibc
3070 # with a fresh cross-compiler works.
3071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072 # <limits.h> exists even on freestanding compilers.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp. "Syntax error" is here to catch this case.
3075 cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h. */
3081#ifdef __STDC__
3082# include <limits.h>
3083#else
3084# include <assert.h>
3085#endif
3086 Syntax error
3087_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003088if { (ac_try="$ac_cpp conftest.$ac_ext"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003100 (exit $ac_status); } >/dev/null && {
3101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003104 :
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 # Broken: fails on valid input.
3110continue
3111fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003112
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113rm -f conftest.err conftest.$ac_ext
3114
Theodore Ts'oe1052142006-10-21 21:46:47 -04003115 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116 # can be detected and how.
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123#include <ac_nonexistent.h>
3124_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003125if { (ac_try="$ac_cpp conftest.$ac_ext"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003137 (exit $ac_status); } >/dev/null && {
3138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003141 # Broken: success on invalid input.
3142continue
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 # Passes both tests.
3148ac_preproc_ok=:
3149break
3150fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152rm -f conftest.err conftest.$ac_ext
3153
3154done
3155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156rm -f conftest.err conftest.$ac_ext
3157if $ac_preproc_ok; then
3158 :
3159else
3160 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3161See \`config.log' for more details." >&5
3162echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3163See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3165fi
3166
3167ac_ext=c
3168ac_cpp='$CPP $CPPFLAGS'
3169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172
3173
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003174# Check whether --with-linker was given.
3175if test "${with_linker+set}" = set; then
3176 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3177echo "${ECHO_T}LD=$withval" >&6; }
3178LD=$withval
3179else
3180 if test -z "$LD" ; then LD=$CC; fi
3181{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3182echo "${ECHO_T}LD defaults to $LD" >&6; }
3183fi
3184export LD
3185
3186
3187# Check whether --with-ccopts was given.
3188if test "${with_ccopts+set}" = set; then
3189 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3190echo "${ECHO_T}CCOPTS is $withval" >&6; }
3191CFLAGS=$withval
3192fi
3193
3194
Theodore Ts'oe1052142006-10-21 21:46:47 -04003195{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3196echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3197if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200 # Extract the first word of "grep ggrep" to use in msg output
3201if test -z "$GREP"; then
3202set dummy grep ggrep; ac_prog_name=$2
3203if test "${ac_cv_path_GREP+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206 ac_path_GREP_found=false
3207# Loop through the user's path and test for each of PROGNAME-LIST
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3210do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_prog in grep ggrep; do
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003216 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003217 # Check for GNU ac_path_GREP and select it if it is found.
3218 # Check for GNU $ac_path_GREP
3219case `"$ac_path_GREP" --version 2>&1` in
3220*GNU*)
3221 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3222*)
3223 ac_count=0
3224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3225 while :
3226 do
3227 cat "conftest.in" "conftest.in" >"conftest.tmp"
3228 mv "conftest.tmp" "conftest.in"
3229 cp "conftest.in" "conftest.nl"
3230 echo 'GREP' >> "conftest.nl"
3231 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3233 ac_count=`expr $ac_count + 1`
3234 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3235 # Best one so far, save it but keep looking for a better one
3236 ac_cv_path_GREP="$ac_path_GREP"
3237 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003238 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003239 # 10*(2^10) chars as input seems more than enough
3240 test $ac_count -gt 10 && break
3241 done
3242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3243esac
3244
3245
3246 $ac_path_GREP_found && break 3
3247 done
3248done
3249
3250done
3251IFS=$as_save_IFS
3252
3253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003254fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003255
3256GREP="$ac_cv_path_GREP"
3257if test -z "$GREP"; then
3258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3259echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3260 { (exit 1); exit 1; }; }
3261fi
3262
3263else
3264 ac_cv_path_GREP=$GREP
3265fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003266
3267
Theodore Ts'oe1052142006-10-21 21:46:47 -04003268fi
3269{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3270echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3271 GREP="$ac_cv_path_GREP"
3272
3273
3274{ echo "$as_me:$LINENO: checking for egrep" >&5
3275echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3276if test "${ac_cv_path_EGREP+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3280 then ac_cv_path_EGREP="$GREP -E"
3281 else
3282 # Extract the first word of "egrep" to use in msg output
3283if test -z "$EGREP"; then
3284set dummy egrep; ac_prog_name=$2
3285if test "${ac_cv_path_EGREP+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287else
3288 ac_path_EGREP_found=false
3289# Loop through the user's path and test for each of PROGNAME-LIST
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_prog in egrep; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003299 # Check for GNU ac_path_EGREP and select it if it is found.
3300 # Check for GNU $ac_path_EGREP
3301case `"$ac_path_EGREP" --version 2>&1` in
3302*GNU*)
3303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3304*)
3305 ac_count=0
3306 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3307 while :
3308 do
3309 cat "conftest.in" "conftest.in" >"conftest.tmp"
3310 mv "conftest.tmp" "conftest.in"
3311 cp "conftest.in" "conftest.nl"
3312 echo 'EGREP' >> "conftest.nl"
3313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3315 ac_count=`expr $ac_count + 1`
3316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3317 # Best one so far, save it but keep looking for a better one
3318 ac_cv_path_EGREP="$ac_path_EGREP"
3319 ac_path_EGREP_max=$ac_count
3320 fi
3321 # 10*(2^10) chars as input seems more than enough
3322 test $ac_count -gt 10 && break
3323 done
3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3325esac
3326
3327
3328 $ac_path_EGREP_found && break 3
3329 done
3330done
3331
3332done
3333IFS=$as_save_IFS
3334
3335
3336fi
3337
3338EGREP="$ac_cv_path_EGREP"
3339if test -z "$EGREP"; then
3340 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3341echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3342 { (exit 1); exit 1; }; }
3343fi
3344
3345else
3346 ac_cv_path_EGREP=$EGREP
3347fi
3348
3349
3350 fi
3351fi
3352{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3353echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3354 EGREP="$ac_cv_path_EGREP"
3355
3356
3357{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3358echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003359if test "${ac_cv_header_stdc+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368#include <stdlib.h>
3369#include <stdarg.h>
3370#include <string.h>
3371#include <float.h>
3372
3373int
3374main ()
3375{
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003382if { (ac_try="$ac_compile"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003394 (exit $ac_status); } && {
3395 test -z "$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003398 ac_cv_header_stdc=yes
3399else
3400 echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
Theodore Ts'oe1052142006-10-21 21:46:47 -04003403 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003405
3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003407
3408if test $ac_cv_header_stdc = yes; then
3409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3410 cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h. */
3416#include <string.h>
3417
3418_ACEOF
3419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 $EGREP "memchr" >/dev/null 2>&1; then
3421 :
3422else
3423 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003424fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003425rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003426
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003427fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003428
3429if test $ac_cv_header_stdc = yes; then
3430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#include <stdlib.h>
3438
3439_ACEOF
3440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3441 $EGREP "free" >/dev/null 2>&1; then
3442 :
3443else
3444 ac_cv_header_stdc=no
3445fi
3446rm -f conftest*
3447
3448fi
3449
3450if test $ac_cv_header_stdc = yes; then
3451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3452 if test "$cross_compiling" = yes; then
3453 :
3454else
3455 cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
3461#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003462#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463#if ((' ' & 0x0FF) == 0x020)
3464# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3465# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3466#else
3467# define ISLOWER(c) \
3468 (('a' <= (c) && (c) <= 'i') \
3469 || ('j' <= (c) && (c) <= 'r') \
3470 || ('s' <= (c) && (c) <= 'z'))
3471# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3472#endif
3473
3474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3475int
3476main ()
3477{
3478 int i;
3479 for (i = 0; i < 256; i++)
3480 if (XOR (islower (i), ISLOWER (i))
3481 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003482 return 2;
3483 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003484}
3485_ACEOF
3486rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003487if { (ac_try="$ac_link"
3488case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491esac
3492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003497 { (case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 :
3507else
3508 echo "$as_me: program exited with status $ac_status" >&5
3509echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512( exit $ac_status )
3513ac_cv_header_stdc=no
3514fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3516fi
3517
3518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003519fi
3520fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003521{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3522echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523if test $ac_cv_header_stdc = yes; then
3524
3525cat >>confdefs.h <<\_ACEOF
3526#define STDC_HEADERS 1
3527_ACEOF
3528
3529fi
3530
3531# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3542 inttypes.h stdint.h unistd.h
3543do
3544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003545{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556$ac_includes_default
3557
3558#include <$ac_header>
3559_ACEOF
3560rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561if { (ac_try="$ac_compile"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003573 (exit $ac_status); } && {
3574 test -z "$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003577 eval "$as_ac_Header=yes"
3578else
3579 echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
Theodore Ts'oe1052142006-10-21 21:46:47 -04003582 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003584
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587ac_res=`eval echo '${'$as_ac_Header'}'`
3588 { echo "$as_me:$LINENO: result: $ac_res" >&5
3589echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003590if test `eval echo '${'$as_ac_Header'}'` = yes; then
3591 cat >>confdefs.h <<_ACEOF
3592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3593_ACEOF
3594
3595fi
3596
3597done
3598
3599
3600if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003601 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3602echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003603if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003606{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3607echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608else
3609 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003610{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3611echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003612cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618$ac_includes_default
3619#include <linux/fs.h>
3620_ACEOF
3621rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003622if { (ac_try="$ac_compile"
3623case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626esac
3627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003638 ac_header_compiler=yes
3639else
3640 echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
Theodore Ts'oe1052142006-10-21 21:46:47 -04003643 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003644fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003645
3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3648echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003649
3650# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3652echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003653cat >conftest.$ac_ext <<_ACEOF
3654/* confdefs.h. */
3655_ACEOF
3656cat confdefs.h >>conftest.$ac_ext
3657cat >>conftest.$ac_ext <<_ACEOF
3658/* end confdefs.h. */
3659#include <linux/fs.h>
3660_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003661if { (ac_try="$ac_cpp conftest.$ac_ext"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003673 (exit $ac_status); } >/dev/null && {
3674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003677 ac_header_preproc=yes
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 ac_header_preproc=no
3683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003684
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003685rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3687echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003688
3689# So? What about this header?
3690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3691 yes:no: )
3692 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3693echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3694 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3695echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3696 ac_header_preproc=yes
3697 ;;
3698 no:yes:* )
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3700echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3702echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3704echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3706echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3708echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3710echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003712 ;;
3713esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003714{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3715echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003716if test "${ac_cv_header_linux_fs_h+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719 ac_cv_header_linux_fs_h=$ac_header_preproc
3720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003721{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3722echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003723
3724fi
3725if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003726 linux_headers=yes
3727else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003728 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003729fi
3730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003731
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003732if test "$linux_headers" != yes; then
3733 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003734fi
3735
Theodore Ts'oe1052142006-10-21 21:46:47 -04003736{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3737echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003738if test "$GCC" = yes
3739then
3740 case "$host_cpu" in
3741 alpha) addcflags="-mieee" ;;
3742 esac
3743fi
3744if test "x$addcflags" != x
3745then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003746 { echo "$as_me:$LINENO: result: $addcflags" >&5
3747echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003748 CFLAGS="$addcflags $CFLAGS"
3749else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003750 { echo "$as_me:$LINENO: result: (none)" >&5
3751echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003752fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003753LIB_EXT=.a
3754STATIC_LIB_EXT=.a
3755PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003756
Theodore Ts'oe1052142006-10-21 21:46:47 -04003757# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003758if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003759 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3760echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003761LDFLAGS=$withval
3762else
3763 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003764fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003765
Theodore Ts'oe1052142006-10-21 21:46:47 -04003766
3767# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003768if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003770else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003771 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003772fi
3773# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003774if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003775 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003776then
3777 MAINTAINER_CMT=#
3778 echo "Disabling maintainer mode"
3779else
3780 MAINTAINER_CMT=
3781 echo "Enabling maintainer mode"
3782fi
3783
3784else
3785 MAINTAINER_CMT=#
3786echo "Disabling maintainer mode by default"
3787
Theodore Ts'oe1052142006-10-21 21:46:47 -04003788fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003789
Theodore Ts'oe1052142006-10-21 21:46:47 -04003790
3791# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003792if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003793 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003794then
3795 echo "Disabling compression support"
3796else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003797 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003798#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003799_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003800
3801 echo "Enabling compression support"
3802 echo "WARNING: Compression support is experimental"
3803fi
3804
3805else
3806 echo "Disabling compression support by default"
3807
Theodore Ts'oe1052142006-10-21 21:46:47 -04003808fi
3809
3810# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003811if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003812 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003813then
3814 HTREE_CMT=#
3815 echo "Disabling htree directory support"
3816else
3817 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003818 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003819#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003820_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003821
3822 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003823fi
3824
3825else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003826 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003827cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003828#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003829_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003830
3831echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003832
Theodore Ts'oe1052142006-10-21 21:46:47 -04003833fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003834
Theodore Ts'oe1052142006-10-21 21:46:47 -04003835
3836# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003837if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003838 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003839then
3840 ELF_CMT=#
3841 MAKEFILE_ELF=/dev/null
3842 echo "Disabling ELF shared libraries"
3843else
3844 ELF_CMT=
3845 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003846 case "$host_os" in
3847 solaris2.*)
3848 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3849 ;;
3850 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003851 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003852 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003853 echo "Enabling ELF shared libraries"
3854fi
3855
3856else
3857 MAKEFILE_ELF=/dev/null
3858ELF_CMT=#
3859echo "Disabling ELF shared libraries by default"
3860
Theodore Ts'oe1052142006-10-21 21:46:47 -04003861fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003862
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003863
Theodore Ts'oe1052142006-10-21 21:46:47 -04003864
3865# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003866if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003867 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003868then
3869 BSDLIB_CMT=#
3870 MAKEFILE_BSDLIB=/dev/null
3871 echo "Disabling BSD shared libraries"
3872else
3873 BSDLIB_CMT=
3874 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003875 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003876 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003877 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003878 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3879 LIB_EXT=.dylib
3880 ;;
3881 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003882 echo "Enabling BSD shared libraries"
3883fi
3884
3885else
3886 MAKEFILE_BSDLIB=/dev/null
3887BSDLIB_CMT=#
3888echo "Disabling BSD shared libraries by default"
3889
Theodore Ts'oe1052142006-10-21 21:46:47 -04003890fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003891
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003892
Theodore Ts'oe1052142006-10-21 21:46:47 -04003893
3894# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003895if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003896 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003897then
3898 PROFILE_CMT=#
3899 MAKEFILE_PROFILE=/dev/null
3900 echo "Disabling profiling libraries"
3901else
3902 PROFILE_CMT=
3903 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3904 PROFILED_LIB_EXT=_p.a
3905 echo "Building profiling libraries"
3906fi
3907
3908else
3909 PROFILE_CMT=#
3910MAKEFILE_PROFILE=/dev/null
3911echo "Disabling profiling libraries by default"
3912
Theodore Ts'oe1052142006-10-21 21:46:47 -04003913fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003914
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003915
Theodore Ts'oe1052142006-10-21 21:46:47 -04003916
3917# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003918if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003919 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003920then
3921 CHECKER_CMT=#
3922 MAKEFILE_CHECKER=/dev/null
3923 echo "Disabling checker libraries"
3924else
3925 CHECKER_CMT=
3926 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3927 echo "Building checker libraries"
3928fi
3929
3930else
3931 CHECKER_CMT=#
3932MAKEFILE_CHECKER=/dev/null
3933echo "Disabling checker libraries by default"
3934
Theodore Ts'oe1052142006-10-21 21:46:47 -04003935fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003936
3937
3938
3939
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003940
Theodore Ts'oe1052142006-10-21 21:46:47 -04003941
3942# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003943if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003944 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003945then
3946 echo "Disabling journal debugging"
3947else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003948 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003949#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003950_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003951
3952 echo "Enabling journal debugging"
3953fi
3954
3955else
3956 echo "Disabling journal debugging by default"
3957
Theodore Ts'oe1052142006-10-21 21:46:47 -04003958fi
3959
3960# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003961if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003962 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003963then
3964 echo "Disabling blkid debugging"
3965else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003966 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003967#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003968_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003969
3970 echo "Enabling blkid debugging"
3971fi
3972
3973else
3974 echo "Disabling blkid debugging by default"
3975
Theodore Ts'oe1052142006-10-21 21:46:47 -04003976fi
3977
3978# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003979if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003980 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003981then
3982 echo "Disabling testio debugging"
3983else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003984 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003985#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003986_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003987
3988 echo "Enabling testio debugging"
3989fi
3990
3991else
3992 echo "Disabling testio debugging by default"
3993
Theodore Ts'oe1052142006-10-21 21:46:47 -04003994fi
3995
3996# Check whether --enable-swapfs was given.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003997if test "${enable_swapfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003998 enableval=$enable_swapfs; if test "$enableval" = "no"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003999then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004000 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004001 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004002else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004003 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004004 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004005#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004006_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004007
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004008 echo "Enabling swapfs support"
4009fi
4010
4011else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004012 SWAPFS_CMT=
4013echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004014cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004015#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004016_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004017
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004018
Theodore Ts'oe1052142006-10-21 21:46:47 -04004019fi
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004020
Theodore Ts'oe1052142006-10-21 21:46:47 -04004021
4022# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004023if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004024 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004025then
4026 echo "Disabling debugfs support"
4027 DEBUGFS_CMT="#"
4028else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004029 DEBUGFS_CMT=
4030 echo "Enabling debugfs support"
4031fi
4032
4033else
4034 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004035DEBUGFS_CMT=
4036
Theodore Ts'oe1052142006-10-21 21:46:47 -04004037fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004038
Theodore Ts'oe1052142006-10-21 21:46:47 -04004039
4040# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004041if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004042 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004043then
4044 echo "Disabling e2image support"
4045 IMAGER_CMT="#"
4046else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004047 IMAGER_CMT=
4048 echo "Enabling e2image support"
4049fi
4050
4051else
4052 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004053IMAGER_CMT=
4054
Theodore Ts'oe1052142006-10-21 21:46:47 -04004055fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004056
Theodore Ts'oe1052142006-10-21 21:46:47 -04004057
4058# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004059if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004060 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004061then
4062 echo "Disabling e2resize support"
4063 RESIZER_CMT="#"
4064else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004065 RESIZER_CMT=
4066 echo "Enabling e2resize support"
4067fi
4068
4069else
4070 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004071RESIZER_CMT=
4072
Theodore Ts'oe1052142006-10-21 21:46:47 -04004073fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004074
Theodore Ts'oe1052142006-10-21 21:46:47 -04004075
4076# Check whether --enable-dynamic-e2fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004077if test "${enable_dynamic_e2fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004078 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004079then
4080 E2FSCK_TYPE=static
4081 echo "Building e2fsck statically"
4082else
4083 E2FSCK_TYPE=shared
4084 echo "Building e2fsck dynamically"
4085fi
4086
4087else
4088 E2FSCK_TYPE=static
4089echo "Building e2fsck statically by default"
4090
Theodore Ts'oe1052142006-10-21 21:46:47 -04004091fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004092
Theodore Ts'oe1052142006-10-21 21:46:47 -04004093
4094# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004095if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004096 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004097then
4098 FSCK_PROG='' FSCK_MAN=''
4099 echo "Not building fsck wrapper"
4100else
4101 FSCK_PROG=fsck FSCK_MAN=fsck.8
4102 echo "Building fsck wrapper"
4103fi
4104
4105else
4106 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004107 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004108 FSCK_PROG='' FSCK_MAN=''
4109 echo "Not building fsck wrapper by default"
4110 ;;
4111 *)
4112 FSCK_PROG=fsck FSCK_MAN=fsck.8
4113 echo "Building fsck wrapper by default"
4114esac
4115
Theodore Ts'oe1052142006-10-21 21:46:47 -04004116fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004117
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004118
Theodore Ts'oe1052142006-10-21 21:46:47 -04004119
4120# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004121if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004122 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004123then
4124 E2INITRD_PROG='' E2INITRD_MAN=''
4125 echo "Not building e2initrd helper"
4126else
4127 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4128 echo "Building e2initrd helper"
4129fi
4130
4131else
4132 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4133echo "Building e2initrd helper by default"
4134
Theodore Ts'oe1052142006-10-21 21:46:47 -04004135fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004136
4137
Theodore Ts'oe1052142006-10-21 21:46:47 -04004138
4139# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004140if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004141 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004142then
4143 echo "Disabling device-mapper support"
4144 DEVMAPPER_REQ=''
4145 DEVMAPPER_LIBS=''
4146 STATIC_DEVMAPPER_LIBS=''
4147else
4148 cat >>confdefs.h <<\_ACEOF
4149#define HAVE_DEVMAPPER 1
4150_ACEOF
4151
4152 echo "Enabling device-mapper support"
4153
4154 DEVMAPPER_REQ='libselinux libsepol'
4155 DEVMAPPER_PC_LIBS='-ldevmapper'
Theodore Ts'oe1052142006-10-21 21:46:47 -04004156 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4157 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
Karel Zak4db2f592006-03-08 14:17:28 -05004158
4159fi
4160
4161else
4162 echo "Disabling device-mapper support by default"
4163
Theodore Ts'oe1052142006-10-21 21:46:47 -04004164fi
4165
Karel Zak4db2f592006-03-08 14:17:28 -05004166
4167
4168
4169
Theodore Ts'o32493942007-12-31 10:45:01 -05004170# Check whether --enable-tls was given.
4171if test "${enable_tls+set}" = set; then
4172 enableval=$enable_tls; if test "$enableval" = "no"
4173then
4174 try_tls=""
4175 echo "Disabling thread local support"
4176else
4177 try_tls="yes"
4178 echo "Enabling thread local support"
4179fi
4180
4181else
4182 try_tls="yes"
4183echo "Try using thread local support by default"
4184
4185fi
4186
4187if test "$try_tls" = "yes"
4188then
4189
4190 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4191echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4192 if test "${ac_cv_tls+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195
4196 ax_tls_keywords="__thread __declspec(thread) none"
4197 for ax_tls_keyword in $ax_tls_keywords; do
4198 case $ax_tls_keyword in
4199 none) ac_cv_tls=none ; break ;;
4200 *)
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207#include <stdlib.h>
4208 static void
4209 foo(void) {
4210 static $ax_tls_keyword int bar;
4211 exit(1);
4212 }
4213int
4214main ()
4215{
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (ac_try="$ac_compile"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest.$ac_objext; then
4238 ac_cv_tls=$ax_tls_keyword ; break
4239else
4240 echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 ac_cv_tls=none
4244
4245fi
4246
4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 esac
4249 done
4250
4251fi
4252
4253
4254 if test "$ac_cv_tls" != "none"; then
4255
4256cat >>confdefs.h <<_ACEOF
4257#define TLS $ac_cv_tls
4258_ACEOF
4259
4260 fi
4261 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4262echo "${ECHO_T}$ac_cv_tls" >&6; }
4263
4264fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004265MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004267GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004268PACKAGE=e2fsprogs
4269VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004270VERSION=0.14.1
4271cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004272#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004273_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004276#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004278
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004279
4280
4281
4282
Theodore Ts'oe1052142006-10-21 21:46:47 -04004283{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4284echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4285set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4286if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004289 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004290SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004291all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004292 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004293_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004294# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004295case `${MAKE-make} -f conftest.make 2>/dev/null` in
4296 *@@@%%%=?*=@@@%%%*)
4297 eval ac_cv_prog_make_${ac_make}_set=yes;;
4298 *)
4299 eval ac_cv_prog_make_${ac_make}_set=no;;
4300esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004301rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004303if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4304 { echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004306 SET_MAKE=
4307else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004308 { echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004310 SET_MAKE="MAKE=${MAKE-make}"
4311fi
4312
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004313# Find a good install program. We prefer a C program (faster),
4314# so one script is as good as another. But avoid the broken or
4315# incompatible versions:
4316# SysV /etc/install, /usr/sbin/install
4317# SunOS /usr/etc/install
4318# IRIX /sbin/install
4319# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004320# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004321# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4322# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4323# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004325# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004326{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4327echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004328if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004329if test "${ac_cv_path_install+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004331else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 # Account for people who put trailing slashes in PATH elements.
4338case $as_dir/ in
4339 ./ | .// | /cC/* | \
4340 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4341 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4342 /usr/ucb/* ) ;;
4343 *)
4344 # OSF1 and SCO ODT 3.0 have their own names for install.
4345 # Don't use installbsd from OSF since it installs stuff as root
4346 # by default.
4347 for ac_prog in ginstall scoinst install; do
4348 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004349 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 -04004350 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004351 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004352 # AIX install. It has an incompatible calling convention.
4353 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004354 elif test $ac_prog = install &&
4355 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4356 # program-specific install script used by HP pwplus--don't use.
4357 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004358 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004359 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4360 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004361 fi
4362 fi
4363 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004364 done
4365 ;;
4366esac
4367done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004368IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004369
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004370
4371fi
4372 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004373 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004374 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004375 # As a last resort, use the slow shell script. Don't cache a
4376 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004377 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004378 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004379 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004380 fi
4381fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004382{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4383echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004384
4385# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4386# It thinks the first close brace ends the variable substitution.
4387test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004390
4391test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4392
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004393
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004394 MKINSTALLDIRS=
4395 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004396 case "$ac_aux_dir" in
4397 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4398 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4399 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004400 fi
4401 if test -z "$MKINSTALLDIRS"; then
4402 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4403 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004404
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004405
4406
Theodore Ts'oe1052142006-10-21 21:46:47 -04004407 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4408echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4409 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004410if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004411 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004412else
4413 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004414fi
4415
4416 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4417echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004418
4419
4420
4421
4422
4423
4424# Prepare PATH_SEPARATOR.
4425# The user is always right.
4426if test "${PATH_SEPARATOR+set}" != set; then
4427 echo "#! /bin/sh" >conf$$.sh
4428 echo "exit 0" >>conf$$.sh
4429 chmod +x conf$$.sh
4430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4431 PATH_SEPARATOR=';'
4432 else
4433 PATH_SEPARATOR=:
4434 fi
4435 rm -f conf$$.sh
4436fi
4437
4438# Find out how to test for executable files. Don't use a zero-byte file,
4439# as systems may use methods other than mode bits to determine executability.
4440cat >conf$$.file <<_ASEOF
4441#! /bin/sh
4442exit 0
4443_ASEOF
4444chmod +x conf$$.file
4445if test -x conf$$.file >/dev/null 2>&1; then
4446 ac_executable_p="test -x"
4447else
4448 ac_executable_p="test -f"
4449fi
4450rm -f conf$$.file
4451
4452# Extract the first word of "msgfmt", so it can be a program name with args.
4453set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004456if test "${ac_cv_path_MSGFMT+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 case "$MSGFMT" in
4460 [\\/]* | ?:[\\/]*)
4461 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4462 ;;
4463 *)
4464 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4465 for ac_dir in $PATH; do
4466 IFS="$ac_save_IFS"
4467 test -z "$ac_dir" && ac_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4470 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4471 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4472 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4473 break 2
4474 fi
4475 fi
4476 done
4477 done
4478 IFS="$ac_save_IFS"
4479 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4480 ;;
4481esac
4482fi
4483MSGFMT="$ac_cv_path_MSGFMT"
4484if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004485 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4486echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004487else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004488 { echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004490fi
4491
4492 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4493set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004496if test "${ac_cv_path_GMSGFMT+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499 case $GMSGFMT in
4500 [\\/]* | ?:[\\/]*)
4501 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4502 ;;
4503 *)
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004510 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 -05004511 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004517IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004518
4519 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4520 ;;
4521esac
4522fi
4523GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004524if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004525 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4526echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004527else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004528 { echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004530fi
4531
4532
4533
Theodore Ts'oe1052142006-10-21 21:46:47 -04004534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004535# Prepare PATH_SEPARATOR.
4536# The user is always right.
4537if test "${PATH_SEPARATOR+set}" != set; then
4538 echo "#! /bin/sh" >conf$$.sh
4539 echo "exit 0" >>conf$$.sh
4540 chmod +x conf$$.sh
4541 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4542 PATH_SEPARATOR=';'
4543 else
4544 PATH_SEPARATOR=:
4545 fi
4546 rm -f conf$$.sh
4547fi
4548
4549# Find out how to test for executable files. Don't use a zero-byte file,
4550# as systems may use methods other than mode bits to determine executability.
4551cat >conf$$.file <<_ASEOF
4552#! /bin/sh
4553exit 0
4554_ASEOF
4555chmod +x conf$$.file
4556if test -x conf$$.file >/dev/null 2>&1; then
4557 ac_executable_p="test -x"
4558else
4559 ac_executable_p="test -f"
4560fi
4561rm -f conf$$.file
4562
4563# Extract the first word of "xgettext", so it can be a program name with args.
4564set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004567if test "${ac_cv_path_XGETTEXT+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570 case "$XGETTEXT" in
4571 [\\/]* | ?:[\\/]*)
4572 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4573 ;;
4574 *)
4575 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4576 for ac_dir in $PATH; do
4577 IFS="$ac_save_IFS"
4578 test -z "$ac_dir" && ac_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4581 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4582 (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
4583 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4584 break 2
4585 fi
4586 fi
4587 done
4588 done
4589 IFS="$ac_save_IFS"
4590 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4591 ;;
4592esac
4593fi
4594XGETTEXT="$ac_cv_path_XGETTEXT"
4595if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004596 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4597echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004598else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004599 { echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004601fi
4602
4603 rm -f messages.po
4604
4605
4606# Prepare PATH_SEPARATOR.
4607# The user is always right.
4608if test "${PATH_SEPARATOR+set}" != set; then
4609 echo "#! /bin/sh" >conf$$.sh
4610 echo "exit 0" >>conf$$.sh
4611 chmod +x conf$$.sh
4612 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4613 PATH_SEPARATOR=';'
4614 else
4615 PATH_SEPARATOR=:
4616 fi
4617 rm -f conf$$.sh
4618fi
4619
4620# Find out how to test for executable files. Don't use a zero-byte file,
4621# as systems may use methods other than mode bits to determine executability.
4622cat >conf$$.file <<_ASEOF
4623#! /bin/sh
4624exit 0
4625_ASEOF
4626chmod +x conf$$.file
4627if test -x conf$$.file >/dev/null 2>&1; then
4628 ac_executable_p="test -x"
4629else
4630 ac_executable_p="test -f"
4631fi
4632rm -f conf$$.file
4633
4634# Extract the first word of "msgmerge", so it can be a program name with args.
4635set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004638if test "${ac_cv_path_MSGMERGE+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641 case "$MSGMERGE" in
4642 [\\/]* | ?:[\\/]*)
4643 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4644 ;;
4645 *)
4646 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4647 for ac_dir in $PATH; do
4648 IFS="$ac_save_IFS"
4649 test -z "$ac_dir" && ac_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4652 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4653 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4654 break 2
4655 fi
4656 fi
4657 done
4658 done
4659 IFS="$ac_save_IFS"
4660 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4661 ;;
4662esac
4663fi
4664MSGMERGE="$ac_cv_path_MSGMERGE"
4665if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004666 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4667echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004668else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004669 { echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004671fi
4672
4673
4674 if test "$GMSGFMT" != ":"; then
4675 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4676 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4677 : ;
4678 else
4679 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004680 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4681echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004682 GMSGFMT=":"
4683 fi
4684 fi
4685
4686 if test "$XGETTEXT" != ":"; then
4687 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4688 (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
4689 : ;
4690 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004691 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4692echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004693 XGETTEXT=":"
4694 fi
4695 rm -f messages.po
4696 fi
4697
Theodore Ts'oe1052142006-10-21 21:46:47 -04004698 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004699
4700
4701if test -n "$ac_tool_prefix"; then
4702 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4703set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004706if test "${ac_cv_prog_RANLIB+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004708else
4709 if test -n "$RANLIB"; then
4710 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4711else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004718 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 -05004719 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4722 fi
4723done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004724done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004725IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004726
4727fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004728fi
4729RANLIB=$ac_cv_prog_RANLIB
4730if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004731 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4732echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004733else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004734 { echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004736fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004737
Theodore Ts'oe1052142006-10-21 21:46:47 -04004738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004739fi
4740if test -z "$ac_cv_prog_RANLIB"; then
4741 ac_ct_RANLIB=$RANLIB
4742 # Extract the first word of "ranlib", so it can be a program name with args.
4743set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004746if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749 if test -n "$ac_ct_RANLIB"; then
4750 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004758 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 -05004759 ac_cv_prog_ac_ct_RANLIB="ranlib"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763done
4764done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004765IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004767fi
4768fi
4769ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4770if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004771 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4772echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004773else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004774 { echo "$as_me:$LINENO: result: no" >&5
4775echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004776fi
4777
Theodore Ts'oe1052142006-10-21 21:46:47 -04004778 if test "x$ac_ct_RANLIB" = x; then
4779 RANLIB=":"
4780 else
4781 case $cross_compiling:$ac_tool_warned in
4782yes:)
4783{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4784whose name does not start with the host triplet. If you think this
4785configuration is useful to you, please write to autoconf@gnu.org." >&5
4786echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4787whose name does not start with the host triplet. If you think this
4788configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4789ac_tool_warned=yes ;;
4790esac
4791 RANLIB=$ac_ct_RANLIB
4792 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004793else
4794 RANLIB="$ac_cv_prog_RANLIB"
4795fi
4796
4797
Theodore Ts'oe1052142006-10-21 21:46:47 -04004798 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4799echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004800if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803 ac_check_lib_save_LIBS=$LIBS
4804LIBS="-lcposix $LIBS"
4805cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h. */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h. */
4811
Theodore Ts'oe1052142006-10-21 21:46:47 -04004812/* Override any GCC internal prototype to avoid an error.
4813 Use char because int might match the return type of a GCC
4814 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004815#ifdef __cplusplus
4816extern "C"
4817#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004818char strerror ();
4819int
4820main ()
4821{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004822return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004823 ;
4824 return 0;
4825}
4826_ACEOF
4827rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004828if { (ac_try="$ac_link"
4829case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832esac
4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004840 (exit $ac_status); } && {
4841 test -z "$ac_c_werror_flag" ||
4842 test ! -s conftest.err
4843 } && test -s conftest$ac_exeext &&
4844 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004845 ac_cv_lib_cposix_strerror=yes
4846else
4847 echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
Theodore Ts'oe1052142006-10-21 21:46:47 -04004850 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004852
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004854 conftest$ac_exeext conftest.$ac_ext
4855LIBS=$ac_check_lib_save_LIBS
4856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004857{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4858echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004859if test $ac_cv_lib_cposix_strerror = yes; then
4860 LIBS="$LIBS -lcposix"
4861fi
4862
4863
4864
Theodore Ts'oe1052142006-10-21 21:46:47 -04004865{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4866echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004867if test "${ac_cv_c_const+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869else
4870 cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876
4877int
4878main ()
4879{
4880/* FIXME: Include the comments suggested by Paul. */
4881#ifndef __cplusplus
4882 /* Ultrix mips cc rejects this. */
4883 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004884 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004885 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004886 char const *const *pcpcc;
4887 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004888 /* NEC SVR4.0.2 mips cc rejects this. */
4889 struct point {int x, y;};
4890 static struct point const zero = {0,0};
4891 /* AIX XL C 1.02.0.0 rejects this.
4892 It does not let you subtract one const X* pointer from another in
4893 an arm of an if-expression whose if-part is not a constant
4894 expression */
4895 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004896 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004897 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004898 ++pcpcc;
4899 ppc = (char**) pcpcc;
4900 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004901 { /* SCO 3.2v4 cc rejects this. */
4902 char *t;
4903 char const *s = 0 ? (char *) 0 : (char const *) 0;
4904
4905 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004906 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004907 }
4908 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4909 int x[] = {25, 17};
4910 const int *foo = &x[0];
4911 ++foo;
4912 }
4913 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4914 typedef const int *iptr;
4915 iptr p = 0;
4916 ++p;
4917 }
4918 { /* AIX XL C 1.02.0.0 rejects this saying
4919 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4920 struct s { int j; const int *ap[3]; };
4921 struct s *b; b->j = 5;
4922 }
4923 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4924 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004925 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004926 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004927 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004928#endif
4929
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004935if { (ac_try="$ac_compile"
4936case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939esac
4940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004951 ac_cv_c_const=yes
4952else
4953 echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
Theodore Ts'oe1052142006-10-21 21:46:47 -04004956 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004957fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004958
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004960fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004961{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4962echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004963if test $ac_cv_c_const = no; then
4964
4965cat >>confdefs.h <<\_ACEOF
4966#define const
4967_ACEOF
4968
4969fi
4970
4971
Theodore Ts'oe1052142006-10-21 21:46:47 -04004972 { echo "$as_me:$LINENO: checking for signed" >&5
4973echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004974if test "${bh_cv_c_signed+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977 cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h. */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h. */
4983
4984int
4985main ()
4986{
4987signed char x;
4988 ;
4989 return 0;
4990}
4991_ACEOF
4992rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004993if { (ac_try="$ac_compile"
4994case "(($ac_try" in
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4997esac
4998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005009 bh_cv_c_signed=yes
5010else
5011 echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
Theodore Ts'oe1052142006-10-21 21:46:47 -04005014 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005015fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005016
5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005018fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005019{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5020echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005021 if test $bh_cv_c_signed = no; then
5022
5023cat >>confdefs.h <<\_ACEOF
5024#define signed
5025_ACEOF
5026
5027 fi
5028
Theodore Ts'oe1052142006-10-21 21:46:47 -04005029{ echo "$as_me:$LINENO: checking for inline" >&5
5030echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005031if test "${ac_cv_c_inline+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033else
5034 ac_cv_c_inline=no
5035for ac_kw in inline __inline__ __inline; do
5036 cat >conftest.$ac_ext <<_ACEOF
5037/* confdefs.h. */
5038_ACEOF
5039cat confdefs.h >>conftest.$ac_ext
5040cat >>conftest.$ac_ext <<_ACEOF
5041/* end confdefs.h. */
5042#ifndef __cplusplus
5043typedef int foo_t;
5044static $ac_kw foo_t static_foo () {return 0; }
5045$ac_kw foo_t foo () {return 0; }
5046#endif
5047
5048_ACEOF
5049rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005050if { (ac_try="$ac_compile"
5051case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005066 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005067else
5068 echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
Theodore Ts'oe1052142006-10-21 21:46:47 -04005071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005072fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005073
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005076done
5077
5078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005079{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5080echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005081
5082
5083case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005084 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005085 *)
5086 case $ac_cv_c_inline in
5087 no) ac_val=;;
5088 *) ac_val=$ac_cv_c_inline;;
5089 esac
5090 cat >>confdefs.h <<_ACEOF
5091#ifndef __cplusplus
5092#define inline $ac_val
5093#endif
5094_ACEOF
5095 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005096esac
5097
Theodore Ts'oe1052142006-10-21 21:46:47 -04005098{ echo "$as_me:$LINENO: checking for off_t" >&5
5099echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005100if test "${ac_cv_type_off_t+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005103 cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
5109$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005110typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005111int
5112main ()
5113{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005114if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005115 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005116if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005117 return 0;
5118 ;
5119 return 0;
5120}
5121_ACEOF
5122rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005123if { (ac_try="$ac_compile"
5124case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127esac
5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005135 (exit $ac_status); } && {
5136 test -z "$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5138 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005139 ac_cv_type_off_t=yes
5140else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005141 echo "$as_me: failed program was:" >&5
5142sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005143
Theodore Ts'oe1052142006-10-21 21:46:47 -04005144 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005145fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005146
5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005148fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005149{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5150echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005151if test $ac_cv_type_off_t = yes; then
5152 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005153else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005154
5155cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005156#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005157_ACEOF
5158
5159fi
5160
Theodore Ts'oe1052142006-10-21 21:46:47 -04005161{ echo "$as_me:$LINENO: checking for size_t" >&5
5162echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005163if test "${ac_cv_type_size_t+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 cat >conftest.$ac_ext <<_ACEOF
5167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h. */
5172$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005173typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005174int
5175main ()
5176{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005177if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005178 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005179if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005180 return 0;
5181 ;
5182 return 0;
5183}
5184_ACEOF
5185rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005186if { (ac_try="$ac_compile"
5187case "(($ac_try" in
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5190esac
5191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005198 (exit $ac_status); } && {
5199 test -z "$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005202 ac_cv_type_size_t=yes
5203else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005204 echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
Theodore Ts'oe1052142006-10-21 21:46:47 -04005207 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005208fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005209
5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005212{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5213echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005214if test $ac_cv_type_size_t = yes; then
5215 :
5216else
5217
5218cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005219#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005220_ACEOF
5221
5222fi
5223
5224
Theodore Ts'oe1052142006-10-21 21:46:47 -04005225 { echo "$as_me:$LINENO: checking for long long" >&5
5226echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005227if test "${ac_cv_type_long_long+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 cat >conftest.$ac_ext <<_ACEOF
5231/* confdefs.h. */
5232_ACEOF
5233cat confdefs.h >>conftest.$ac_ext
5234cat >>conftest.$ac_ext <<_ACEOF
5235/* end confdefs.h. */
5236long long ll = 1LL; int i = 63;
5237int
5238main ()
5239{
5240long long llmax = (long long) -1;
5241 return ll << i | ll >> i | llmax / ll | llmax % ll;
5242 ;
5243 return 0;
5244}
5245_ACEOF
5246rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005247if { (ac_try="$ac_link"
5248case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251esac
5252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005259 (exit $ac_status); } && {
5260 test -z "$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5262 } && test -s conftest$ac_exeext &&
5263 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005264 ac_cv_type_long_long=yes
5265else
5266 echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
Theodore Ts'oe1052142006-10-21 21:46:47 -04005269 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005270fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005271
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005273 conftest$ac_exeext conftest.$ac_ext
5274fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005275{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5276echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005277 if test $ac_cv_type_long_long = yes; then
5278
5279cat >>confdefs.h <<\_ACEOF
5280#define HAVE_LONG_LONG 1
5281_ACEOF
5282
5283 fi
5284
5285
Theodore Ts'oe1052142006-10-21 21:46:47 -04005286 { echo "$as_me:$LINENO: checking for long double" >&5
5287echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005288if test "${gt_cv_c_long_double+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291 if test "$GCC" = yes; then
5292 gt_cv_c_long_double=yes
5293 else
5294 cat >conftest.$ac_ext <<_ACEOF
5295/* confdefs.h. */
5296_ACEOF
5297cat confdefs.h >>conftest.$ac_ext
5298cat >>conftest.$ac_ext <<_ACEOF
5299/* end confdefs.h. */
5300
5301 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5302 long double foo = 0.0;
5303 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5304 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5305
5306int
5307main ()
5308{
5309
5310 ;
5311 return 0;
5312}
5313_ACEOF
5314rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005315if { (ac_try="$ac_compile"
5316case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5319esac
5320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005322 ac_status=$?
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005327 (exit $ac_status); } && {
5328 test -z "$ac_c_werror_flag" ||
5329 test ! -s conftest.err
5330 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005331 gt_cv_c_long_double=yes
5332else
5333 echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
Theodore Ts'oe1052142006-10-21 21:46:47 -04005336 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005337fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005338
5339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005340 fi
5341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005342{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5343echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005344 if test $gt_cv_c_long_double = yes; then
5345
5346cat >>confdefs.h <<\_ACEOF
5347#define HAVE_LONG_DOUBLE 1
5348_ACEOF
5349
5350 fi
5351
5352
Theodore Ts'oe1052142006-10-21 21:46:47 -04005353 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5354echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005355if test "${gt_cv_c_wchar_t+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358 cat >conftest.$ac_ext <<_ACEOF
5359/* confdefs.h. */
5360_ACEOF
5361cat confdefs.h >>conftest.$ac_ext
5362cat >>conftest.$ac_ext <<_ACEOF
5363/* end confdefs.h. */
5364#include <stddef.h>
5365 wchar_t foo = (wchar_t)'\0';
5366int
5367main ()
5368{
5369
5370 ;
5371 return 0;
5372}
5373_ACEOF
5374rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005375if { (ac_try="$ac_compile"
5376case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379esac
5380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005391 gt_cv_c_wchar_t=yes
5392else
5393 echo "$as_me: failed program was:" >&5
5394sed 's/^/| /' conftest.$ac_ext >&5
5395
Theodore Ts'oe1052142006-10-21 21:46:47 -04005396 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005397fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005398
5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005400fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5402echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005403 if test $gt_cv_c_wchar_t = yes; then
5404
5405cat >>confdefs.h <<\_ACEOF
5406#define HAVE_WCHAR_T 1
5407_ACEOF
5408
5409 fi
5410
5411
Theodore Ts'oe1052142006-10-21 21:46:47 -04005412 { echo "$as_me:$LINENO: checking for wint_t" >&5
5413echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005414if test "${gt_cv_c_wint_t+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416else
5417 cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423#include <wchar.h>
5424 wint_t foo = (wchar_t)'\0';
5425int
5426main ()
5427{
5428
5429 ;
5430 return 0;
5431}
5432_ACEOF
5433rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005434if { (ac_try="$ac_compile"
5435case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438esac
5439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005446 (exit $ac_status); } && {
5447 test -z "$ac_c_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005450 gt_cv_c_wint_t=yes
5451else
5452 echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
Theodore Ts'oe1052142006-10-21 21:46:47 -04005455 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005456fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005457
5458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005459fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005460{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5461echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005462 if test $gt_cv_c_wint_t = yes; then
5463
5464cat >>confdefs.h <<\_ACEOF
5465#define HAVE_WINT_T 1
5466_ACEOF
5467
5468 fi
5469
5470
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5472echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005473if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475else
5476 cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h. */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h. */
5482#include <sys/types.h>
5483#include <inttypes.h>
5484int
5485main ()
5486{
5487uintmax_t i = (uintmax_t) -1;
5488 ;
5489 return 0;
5490}
5491_ACEOF
5492rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005493if { (ac_try="$ac_compile"
5494case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005500 ac_status=$?
5501 grep -v '^ *+' conftest.er1 >conftest.err
5502 rm -f conftest.er1
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005505 (exit $ac_status); } && {
5506 test -z "$ac_c_werror_flag" ||
5507 test ! -s conftest.err
5508 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005509 jm_ac_cv_header_inttypes_h=yes
5510else
5511 echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
Theodore Ts'oe1052142006-10-21 21:46:47 -04005514 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005515fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005516
5517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005518fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005519{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5520echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005521 if test $jm_ac_cv_header_inttypes_h = yes; then
5522
5523cat >>confdefs.h <<_ACEOF
5524#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5525_ACEOF
5526
5527 fi
5528
5529
Theodore Ts'oe1052142006-10-21 21:46:47 -04005530 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5531echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005532if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535 cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
5541#include <sys/types.h>
5542#include <stdint.h>
5543int
5544main ()
5545{
5546uintmax_t i = (uintmax_t) -1;
5547 ;
5548 return 0;
5549}
5550_ACEOF
5551rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005552if { (ac_try="$ac_compile"
5553case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5556esac
5557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005564 (exit $ac_status); } && {
5565 test -z "$ac_c_werror_flag" ||
5566 test ! -s conftest.err
5567 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005568 jm_ac_cv_header_stdint_h=yes
5569else
5570 echo "$as_me: failed program was:" >&5
5571sed 's/^/| /' conftest.$ac_ext >&5
5572
Theodore Ts'oe1052142006-10-21 21:46:47 -04005573 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005575
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005578{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5579echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005580 if test $jm_ac_cv_header_stdint_h = yes; then
5581
5582cat >>confdefs.h <<_ACEOF
5583#define HAVE_STDINT_H_WITH_UINTMAX 1
5584_ACEOF
5585
5586 fi
5587
5588
5589
5590
Theodore Ts'oe1052142006-10-21 21:46:47 -04005591 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5592echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593if test "${gt_cv_c_intmax_t+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596 cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h. */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */
5602
5603#include <stddef.h>
5604#include <stdlib.h>
5605#if HAVE_STDINT_H_WITH_UINTMAX
5606#include <stdint.h>
5607#endif
5608#if HAVE_INTTYPES_H_WITH_UINTMAX
5609#include <inttypes.h>
5610#endif
5611
5612int
5613main ()
5614{
5615intmax_t x = -1;
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005621if { (ac_try="$ac_compile"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005633 (exit $ac_status); } && {
5634 test -z "$ac_c_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005637 gt_cv_c_intmax_t=yes
5638else
5639 echo "$as_me: failed program was:" >&5
5640sed 's/^/| /' conftest.$ac_ext >&5
5641
Theodore Ts'oe1052142006-10-21 21:46:47 -04005642 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005643fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005644
5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005647{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5648echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005649 if test $gt_cv_c_intmax_t = yes; then
5650
5651cat >>confdefs.h <<\_ACEOF
5652#define HAVE_INTMAX_T 1
5653_ACEOF
5654
5655 fi
5656
5657
5658
Theodore Ts'oe1052142006-10-21 21:46:47 -04005659 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5660echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005661if test "${gt_cv_func_printf_posix+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664
5665 if test "$cross_compiling" = yes; then
5666
5667 cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h. */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h. */
5673
5674#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5675 notposix
5676#endif
5677
5678_ACEOF
5679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "notposix" >/dev/null 2>&1; then
5681 gt_cv_func_printf_posix="guessing no"
5682else
5683 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005684fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005685rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005686
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005687
5688else
5689 cat >conftest.$ac_ext <<_ACEOF
5690/* confdefs.h. */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h. */
5695
5696#include <stdio.h>
5697#include <string.h>
5698/* The string "%2$d %1$d", with dollar characters protected from the shell's
5699 dollar expansion (possibly an autoconf bug). */
5700static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5701static char buf[100];
5702int main ()
5703{
5704 sprintf (buf, format, 33, 55);
5705 return (strcmp (buf, "55 33") != 0);
5706}
5707_ACEOF
5708rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005709if { (ac_try="$ac_link"
5710case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005719 { (case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 gt_cv_func_printf_posix=yes
5729else
5730 echo "$as_me: program exited with status $ac_status" >&5
5731echo "$as_me: failed program was:" >&5
5732sed 's/^/| /' conftest.$ac_ext >&5
5733
5734( exit $ac_status )
5735gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005736fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005737rm -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 -05005738fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005739
Theodore Ts'oe1052142006-10-21 21:46:47 -04005740
5741
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005743{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5744echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745 case $gt_cv_func_printf_posix in
5746 *yes)
5747
5748cat >>confdefs.h <<\_ACEOF
5749#define HAVE_POSIX_PRINTF 1
5750_ACEOF
5751
5752 ;;
5753 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005754
5755# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5756# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5758echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005759if test "${ac_cv_working_alloca_h+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005761else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005762 cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h. */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005768#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005769int
5770main ()
5771{
5772char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005773 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005774 ;
5775 return 0;
5776}
5777_ACEOF
5778rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005779if { (ac_try="$ac_link"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005791 (exit $ac_status); } && {
5792 test -z "$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 } && test -s conftest$ac_exeext &&
5795 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005796 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005797else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005798 echo "$as_me: failed program was:" >&5
5799sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005800
Theodore Ts'oe1052142006-10-21 21:46:47 -04005801 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005803
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005805 conftest$ac_exeext conftest.$ac_ext
5806fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005807{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5808echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005809if test $ac_cv_working_alloca_h = yes; then
5810
5811cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005812#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005813_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005814
5815fi
5816
Theodore Ts'oe1052142006-10-21 21:46:47 -04005817{ echo "$as_me:$LINENO: checking for alloca" >&5
5818echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005819if test "${ac_cv_func_alloca_works+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005821else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005822 cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h. */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005828#ifdef __GNUC__
5829# define alloca __builtin_alloca
5830#else
5831# ifdef _MSC_VER
5832# include <malloc.h>
5833# define alloca _alloca
5834# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005835# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005836# include <alloca.h>
5837# else
5838# ifdef _AIX
5839 #pragma alloca
5840# else
5841# ifndef alloca /* predefined by HP cc +Olibcalls */
5842char *alloca ();
5843# endif
5844# endif
5845# endif
5846# endif
5847#endif
5848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005849int
5850main ()
5851{
5852char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04005853 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005854 ;
5855 return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005859if { (ac_try="$ac_link"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest$ac_exeext &&
5875 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005876 ac_cv_func_alloca_works=yes
5877else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005878 echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005880
Theodore Ts'oe1052142006-10-21 21:46:47 -04005881 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005882fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005883
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005885 conftest$ac_exeext conftest.$ac_ext
5886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005887{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5888echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005889
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005890if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005891
5892cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005893#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005894_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005895
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005896else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005897 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5898# that cause trouble. Some versions do not even contain alloca or
5899# contain a buggy version. If you still want to use their alloca,
5900# use ar to extract alloca.o from them instead of compiling alloca.c.
5901
Theodore Ts'oe1052142006-10-21 21:46:47 -04005902ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005903
5904cat >>confdefs.h <<\_ACEOF
5905#define C_ALLOCA 1
5906_ACEOF
5907
5908
Theodore Ts'oe1052142006-10-21 21:46:47 -04005909{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5910echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005911if test "${ac_cv_os_cray+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005920#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005921webecray
5922#else
5923wenotbecray
5924#endif
5925
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005926_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005928 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005929 ac_cv_os_cray=yes
5930else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005931 ac_cv_os_cray=no
5932fi
5933rm -f conftest*
5934
5935fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005936{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5937echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005938if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005939 for ac_func in _getb67 GETB67 getb67; do
5940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04005941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005944 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005945else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005946 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h. */
5952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5954#define $ac_func innocuous_$ac_func
5955
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005956/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005957 which can conflict with char $ac_func (); below.
5958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5959 <limits.h> exists even on freestanding compilers. */
5960
5961#ifdef __STDC__
5962# include <limits.h>
5963#else
5964# include <assert.h>
5965#endif
5966
5967#undef $ac_func
5968
Theodore Ts'oe1052142006-10-21 21:46:47 -04005969/* Override any GCC internal prototype to avoid an error.
5970 Use char because int might match the return type of a GCC
5971 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005972#ifdef __cplusplus
5973extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005974#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005975char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005976/* The GNU C library defines this for functions which it implements
5977 to always fail with ENOSYS. Some functions are actually named
5978 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005979#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005980choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005981#endif
5982
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005983int
5984main ()
5985{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005986return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005987 ;
5988 return 0;
5989}
5990_ACEOF
5991rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005992if { (ac_try="$ac_link"
5993case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996esac
5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest$ac_exeext &&
6008 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006009 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006013
Theodore Ts'oe1052142006-10-21 21:46:47 -04006014 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006015fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006016
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018 conftest$ac_exeext conftest.$ac_ext
6019fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006020ac_res=`eval echo '${'$as_ac_var'}'`
6021 { echo "$as_me:$LINENO: result: $ac_res" >&5
6022echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006023if test `eval echo '${'$as_ac_var'}'` = yes; then
6024
6025cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006026#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006030fi
6031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006032 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006033fi
6034
Theodore Ts'oe1052142006-10-21 21:46:47 -04006035{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6036echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006037if test "${ac_cv_c_stack_direction+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006039else
6040 if test "$cross_compiling" = yes; then
6041 ac_cv_c_stack_direction=0
6042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006049$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006051find_stack_direction ()
6052{
6053 static char *addr = 0;
6054 auto char dummy;
6055 if (addr == 0)
6056 {
6057 addr = &dummy;
6058 return find_stack_direction ();
6059 }
6060 else
6061 return (&dummy > addr) ? 1 : -1;
6062}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063
6064int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006065main ()
6066{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006067 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006068}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006069_ACEOF
6070rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006071if { (ac_try="$ac_link"
6072case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006081 { (case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006090 ac_cv_c_stack_direction=1
6091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092 echo "$as_me: program exited with status $ac_status" >&5
6093echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006096( exit $ac_status )
6097ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006098fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006099rm -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 -05006100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006101
6102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006103fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006104{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6105echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006108#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109_ACEOF
6110
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006111
6112fi
6113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114
6115
6116for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006117do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006123 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006124fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006125ac_res=`eval echo '${'$as_ac_Header'}'`
6126 { echo "$as_me:$LINENO: result: $ac_res" >&5
6127echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006128else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006130{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h. */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h. */
6138$ac_includes_default
6139#include <$ac_header>
6140_ACEOF
6141rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006142if { (ac_try="$ac_compile"
6143case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006154 (exit $ac_status); } && {
6155 test -z "$ac_c_werror_flag" ||
6156 test ! -s conftest.err
6157 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006158 ac_header_compiler=yes
6159else
6160 echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
Theodore Ts'oe1052142006-10-21 21:46:47 -04006163 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006165
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6168echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169
6170# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006173cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h. */
6179#include <$ac_header>
6180_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006181if { (ac_try="$ac_cpp conftest.$ac_ext"
6182case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
6186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006193 (exit $ac_status); } >/dev/null && {
6194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6195 test ! -s conftest.err
6196 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006197 ac_header_preproc=yes
6198else
6199 echo "$as_me: failed program was:" >&5
6200sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 ac_header_preproc=no
6203fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006204
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006205rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6207echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006208
6209# So? What about this header?
6210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6211 yes:no: )
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6216 ac_header_preproc=yes
6217 ;;
6218 no:yes:* )
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006232 ;;
6233esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006234{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239 eval "$as_ac_Header=\$ac_header_preproc"
6240fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006241ac_res=`eval echo '${'$as_ac_Header'}'`
6242 { echo "$as_me:$LINENO: result: $ac_res" >&5
6243echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006244
6245fi
6246if test `eval echo '${'$as_ac_Header'}'` = yes; then
6247 cat >>confdefs.h <<_ACEOF
6248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249_ACEOF
6250
6251fi
6252
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006253done
6254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006255
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006256for ac_func in getpagesize
6257do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006262 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006264 cat >conftest.$ac_ext <<_ACEOF
6265/* confdefs.h. */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h. */
6270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6272#define $ac_func innocuous_$ac_func
6273
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006274/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275 which can conflict with char $ac_func (); below.
6276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277 <limits.h> exists even on freestanding compilers. */
6278
6279#ifdef __STDC__
6280# include <limits.h>
6281#else
6282# include <assert.h>
6283#endif
6284
6285#undef $ac_func
6286
Theodore Ts'oe1052142006-10-21 21:46:47 -04006287/* Override any GCC internal prototype to avoid an error.
6288 Use char because int might match the return type of a GCC
6289 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006290#ifdef __cplusplus
6291extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006292#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006294/* The GNU C library defines this for functions which it implements
6295 to always fail with ENOSYS. Some functions are actually named
6296 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006297#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006298choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006299#endif
6300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006301int
6302main ()
6303{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006304return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006305 ;
6306 return 0;
6307}
6308_ACEOF
6309rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006310if { (ac_try="$ac_link"
6311case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
6315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest$ac_exeext &&
6326 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006328else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006331
Theodore Ts'oe1052142006-10-21 21:46:47 -04006332 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006334
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006336 conftest$ac_exeext conftest.$ac_ext
6337fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006338ac_res=`eval echo '${'$as_ac_var'}'`
6339 { echo "$as_me:$LINENO: result: $ac_res" >&5
6340echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006341if test `eval echo '${'$as_ac_var'}'` = yes; then
6342 cat >>confdefs.h <<_ACEOF
6343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6344_ACEOF
6345
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006346fi
6347done
6348
Theodore Ts'oe1052142006-10-21 21:46:47 -04006349{ echo "$as_me:$LINENO: checking for working mmap" >&5
6350echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006351if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006353else
6354 if test "$cross_compiling" = yes; then
6355 ac_cv_func_mmap_fixed_mapped=no
6356else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357 cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h. */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h. */
6363$ac_includes_default
6364/* malloc might have been renamed as rpl_malloc. */
6365#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006366
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006367/* Thanks to Mike Haertel and Jim Avera for this test.
6368 Here is a matrix of mmap possibilities:
6369 mmap private not fixed
6370 mmap private fixed at somewhere currently unmapped
6371 mmap private fixed at somewhere already mapped
6372 mmap shared not fixed
6373 mmap shared fixed at somewhere currently unmapped
6374 mmap shared fixed at somewhere already mapped
6375 For private mappings, we should verify that changes cannot be read()
6376 back from the file, nor mmap's back from the file at a different
6377 address. (There have been systems where private was not correctly
6378 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006379 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006380 like early versions of FreeBSD and possibly contemporary NetBSD.)
6381 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006383
6384 Grep wants private fixed already mapped.
6385 The main things grep needs to know about mmap are:
6386 * does it exist and is it safe to write into the mmap'd area
6387 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006388
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006389#include <fcntl.h>
6390#include <sys/mman.h>
6391
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006392#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393char *malloc ();
6394#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006395
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006396/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006397#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006398/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006399# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006400# define HAVE_SYS_PARAM_H 1
6401# endif
6402
6403# ifdef _SC_PAGESIZE
6404# define getpagesize() sysconf(_SC_PAGESIZE)
6405# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006406# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006407# include <sys/param.h>
6408# ifdef EXEC_PAGESIZE
6409# define getpagesize() EXEC_PAGESIZE
6410# else /* no EXEC_PAGESIZE */
6411# ifdef NBPG
6412# define getpagesize() NBPG * CLSIZE
6413# ifndef CLSIZE
6414# define CLSIZE 1
6415# endif /* no CLSIZE */
6416# else /* no NBPG */
6417# ifdef NBPC
6418# define getpagesize() NBPC
6419# else /* no NBPC */
6420# ifdef PAGESIZE
6421# define getpagesize() PAGESIZE
6422# endif /* PAGESIZE */
6423# endif /* no NBPC */
6424# endif /* no NBPG */
6425# endif /* no EXEC_PAGESIZE */
6426# else /* no HAVE_SYS_PARAM_H */
6427# define getpagesize() 8192 /* punt totally */
6428# endif /* no HAVE_SYS_PARAM_H */
6429# endif /* no _SC_PAGESIZE */
6430
6431#endif /* no HAVE_GETPAGESIZE */
6432
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006433int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006434main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006435{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006436 char *data, *data2, *data3;
6437 int i, pagesize;
6438 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006439
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006440 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006442 /* First, make a file with some known garbage in it. */
6443 data = (char *) malloc (pagesize);
6444 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006445 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446 for (i = 0; i < pagesize; ++i)
6447 *(data + i) = rand ();
6448 umask (0);
6449 fd = creat ("conftest.mmap", 0600);
6450 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006451 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006452 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006453 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006456 /* Next, try to mmap the file at a fixed address which already has
6457 something else allocated at it. If we can, also make sure that
6458 we see the same garbage. */
6459 fd = open ("conftest.mmap", O_RDWR);
6460 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006461 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462 data2 = (char *) malloc (2 * pagesize);
6463 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006464 return 1;
6465 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6467 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006468 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006469 for (i = 0; i < pagesize; ++i)
6470 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006471 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006473 /* Finally, make sure that changes to the mapped area do not
6474 percolate back to the file as seen by read(). (This is a bug on
6475 some variants of i386 svr4.0.) */
6476 for (i = 0; i < pagesize; ++i)
6477 *(data2 + i) = *(data2 + i) + 1;
6478 data3 = (char *) malloc (pagesize);
6479 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006480 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006482 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483 for (i = 0; i < pagesize; ++i)
6484 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006485 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006487 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006488}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489_ACEOF
6490rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006491if { (ac_try="$ac_link"
6492case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495esac
6496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006501 { (case "(($ac_try" in
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6504esac
6505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006510 ac_cv_func_mmap_fixed_mapped=yes
6511else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512 echo "$as_me: program exited with status $ac_status" >&5
6513echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516( exit $ac_status )
6517ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006518fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006519rm -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 -05006520fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006521
6522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006523fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006524{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6525echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006526if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527
6528cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006529#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006531
6532fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006534
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006535
Theodore Ts'oe1052142006-10-21 21:46:47 -04006536 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6537echo $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 -05006538if test "${ac_cv_gnu_library_2_1+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006540else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541 cat >conftest.$ac_ext <<_ACEOF
6542/* confdefs.h. */
6543_ACEOF
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
6546/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006547
6548#include <features.h>
6549#ifdef __GNU_LIBRARY__
6550 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6551 Lucky GNU user
6552 #endif
6553#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006554
6555_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006557 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006558 ac_cv_gnu_library_2_1=yes
6559else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006560 ac_cv_gnu_library_2_1=no
6561fi
6562rm -f conftest*
6563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006564
6565
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006567{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6568echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006569
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006570 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006571
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006573
6574
Theodore Ts'oe1052142006-10-21 21:46:47 -04006575 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6576echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006579else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006581 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006582
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006583 # Guess based on the CPU.
6584 case "$host_cpu" in
6585 alpha* | i3456786 | m68k | s390*)
6586 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6587 *)
6588 gt_cv_int_divbyzero_sigfpe="guessing no";;
6589 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006590
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006591else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592 cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006598
6599#include <stdlib.h>
6600#include <signal.h>
6601
6602static void
6603#ifdef __cplusplus
6604sigfpe_handler (int sig)
6605#else
6606sigfpe_handler (sig) int sig;
6607#endif
6608{
6609 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6610 exit (sig != SIGFPE);
6611}
6612
6613int x = 1;
6614int y = 0;
6615int z;
6616int nan;
6617
6618int main ()
6619{
6620 signal (SIGFPE, sigfpe_handler);
6621/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6622#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6623 signal (SIGTRAP, sigfpe_handler);
6624#endif
6625/* Linux/SPARC yields signal SIGILL. */
6626#if defined (__sparc__) && defined (__linux__)
6627 signal (SIGILL, sigfpe_handler);
6628#endif
6629
6630 z = x / y;
6631 nan = y / y;
6632 exit (1);
6633}
6634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006635_ACEOF
6636rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006637if { (ac_try="$ac_link"
6638case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641esac
6642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006647 { (case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650esac
6651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006656 gt_cv_int_divbyzero_sigfpe=yes
6657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658 echo "$as_me: program exited with status $ac_status" >&5
6659echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662( exit $ac_status )
6663gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006665rm -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 -04006666fi
6667
Theodore Ts'oe1052142006-10-21 21:46:47 -04006668
6669
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006670fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006671{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6672echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006673 case "$gt_cv_int_divbyzero_sigfpe" in
6674 *yes) value=1;;
6675 *) value=0;;
6676 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677
6678cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006679#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006681
6682
6683
Theodore Ts'oe1052142006-10-21 21:46:47 -04006684 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6685echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 cat >conftest.$ac_ext <<_ACEOF
6690/* confdefs.h. */
6691_ACEOF
6692cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h. */
6695unsigned long long ull = 1ULL; int i = 63;
6696int
6697main ()
6698{
6699unsigned long long ullmax = (unsigned long long) -1;
6700 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6701 ;
6702 return 0;
6703}
6704_ACEOF
6705rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006706if { (ac_try="$ac_link"
6707case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
6711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest$ac_exeext &&
6722 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723 ac_cv_type_unsigned_long_long=yes
6724else
6725 echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
Theodore Ts'oe1052142006-10-21 21:46:47 -04006728 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006730
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732 conftest$ac_exeext conftest.$ac_ext
6733fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006734{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6735echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736 if test $ac_cv_type_unsigned_long_long = yes; then
6737
6738cat >>confdefs.h <<\_ACEOF
6739#define HAVE_UNSIGNED_LONG_LONG 1
6740_ACEOF
6741
6742 fi
6743
6744
6745
6746
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006747 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 -05006748
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006749 test $ac_cv_type_unsigned_long_long = yes \
6750 && ac_type='unsigned long long' \
6751 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006752
6753cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006754#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755_ACEOF
6756
6757 else
6758
6759cat >>confdefs.h <<\_ACEOF
6760#define HAVE_UINTMAX_T 1
6761_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006762
6763 fi
6764
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006765
Theodore Ts'oe1052142006-10-21 21:46:47 -04006766 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6767echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006768if test "${gt_cv_header_inttypes_h+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006770else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006771
6772 cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006778#include <sys/types.h>
6779#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006780int
6781main ()
6782{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784 ;
6785 return 0;
6786}
6787_ACEOF
6788rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006789if { (ac_try="$ac_compile"
6790case "(($ac_try" in
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6793esac
6794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006801 (exit $ac_status); } && {
6802 test -z "$ac_c_werror_flag" ||
6803 test ! -s conftest.err
6804 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006805 gt_cv_header_inttypes_h=yes
6806else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807 echo "$as_me: failed program was:" >&5
6808sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006809
Theodore Ts'oe1052142006-10-21 21:46:47 -04006810 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006812
6813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814
6815fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006816{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6817echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006818 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819
6820cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006821#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006822_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006823
6824 fi
6825
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006828 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04006829 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6830echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006833else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834
6835 cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006841#include <inttypes.h>
6842#ifdef PRId32
6843char *p = PRId32;
6844#endif
6845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846int
6847main ()
6848{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006849
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850 ;
6851 return 0;
6852}
6853_ACEOF
6854rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006855if { (ac_try="$ac_compile"
6856case "(($ac_try" in
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6859esac
6860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006871 gt_cv_inttypes_pri_broken=no
6872else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006873 echo "$as_me: failed program was:" >&5
6874sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006875
Theodore Ts'oe1052142006-10-21 21:46:47 -04006876 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006878
6879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880
6881fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006882{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6883echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006884 fi
6885 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006886
6887cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006888#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006889_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006890
6891 fi
6892
6893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006895for ac_header in stdint.h
6896do
6897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006904ac_res=`eval echo '${'$as_ac_Header'}'`
6905 { echo "$as_me:$LINENO: result: $ac_res" >&5
6906echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006907else
6908 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006909{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911cat >conftest.$ac_ext <<_ACEOF
6912/* confdefs.h. */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
6916/* end confdefs.h. */
6917$ac_includes_default
6918#include <$ac_header>
6919_ACEOF
6920rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006921if { (ac_try="$ac_compile"
6922case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925esac
6926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006933 (exit $ac_status); } && {
6934 test -z "$ac_c_werror_flag" ||
6935 test ! -s conftest.err
6936 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937 ac_header_compiler=yes
6938else
6939 echo "$as_me: failed program was:" >&5
6940sed 's/^/| /' conftest.$ac_ext >&5
6941
Theodore Ts'oe1052142006-10-21 21:46:47 -04006942 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006944
6945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6947echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948
6949# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952cat >conftest.$ac_ext <<_ACEOF
6953/* confdefs.h. */
6954_ACEOF
6955cat confdefs.h >>conftest.$ac_ext
6956cat >>conftest.$ac_ext <<_ACEOF
6957/* end confdefs.h. */
6958#include <$ac_header>
6959_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006960if { (ac_try="$ac_cpp conftest.$ac_ext"
6961case "(($ac_try" in
6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963 *) ac_try_echo=$ac_try;;
6964esac
6965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967 ac_status=$?
6968 grep -v '^ *+' conftest.er1 >conftest.err
6969 rm -f conftest.er1
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006972 (exit $ac_status); } >/dev/null && {
6973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6974 test ! -s conftest.err
6975 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976 ac_header_preproc=yes
6977else
6978 echo "$as_me: failed program was:" >&5
6979sed 's/^/| /' conftest.$ac_ext >&5
6980
6981 ac_header_preproc=no
6982fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006983
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6986echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006987
6988# So? What about this header?
6989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6990 yes:no: )
6991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6995 ac_header_preproc=yes
6996 ;;
6997 no:yes:* )
6998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7001echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7005echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011 ;;
7012esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 eval "$as_ac_Header=\$ac_header_preproc"
7019fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007020ac_res=`eval echo '${'$as_ac_Header'}'`
7021 { echo "$as_me:$LINENO: result: $ac_res" >&5
7022echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023
7024fi
7025if test `eval echo '${'$as_ac_Header'}'` = yes; then
7026 cat >>confdefs.h <<_ACEOF
7027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7028_ACEOF
7029
7030fi
7031
7032done
7033
Theodore Ts'oe1052142006-10-21 21:46:47 -04007034 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7035echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007036 result=
7037 cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h. */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
7043
7044#include <limits.h>
7045#if HAVE_STDINT_H
7046#include <stdint.h>
7047#endif
7048#ifdef SIZE_MAX
7049Found it
7050#endif
7051
7052_ACEOF
7053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7054 $EGREP "Found it" >/dev/null 2>&1; then
7055 result=yes
7056fi
7057rm -f conftest*
7058
7059 if test -z "$result"; then
7060 if test "$cross_compiling" = yes; then
7061 # Depending upon the size, compute the lo and hi bounds.
7062cat >conftest.$ac_ext <<_ACEOF
7063/* confdefs.h. */
7064_ACEOF
7065cat confdefs.h >>conftest.$ac_ext
7066cat >>conftest.$ac_ext <<_ACEOF
7067/* end confdefs.h. */
7068#include <stddef.h>
7069int
7070main ()
7071{
7072static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7073test_array [0] = 0
7074
7075 ;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007080if { (ac_try="$ac_compile"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007092 (exit $ac_status); } && {
7093 test -z "$ac_c_werror_flag" ||
7094 test ! -s conftest.err
7095 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007096 ac_lo=0 ac_mid=0
7097 while :; do
7098 cat >conftest.$ac_ext <<_ACEOF
7099/* confdefs.h. */
7100_ACEOF
7101cat confdefs.h >>conftest.$ac_ext
7102cat >>conftest.$ac_ext <<_ACEOF
7103/* end confdefs.h. */
7104#include <stddef.h>
7105int
7106main ()
7107{
7108static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7109test_array [0] = 0
7110
7111 ;
7112 return 0;
7113}
7114_ACEOF
7115rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007116if { (ac_try="$ac_compile"
7117case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120esac
7121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132 ac_hi=$ac_mid; break
7133else
7134 echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
Theodore Ts'oe1052142006-10-21 21:46:47 -04007137 ac_lo=`expr $ac_mid + 1`
7138 if test $ac_lo -le $ac_mid; then
7139 ac_lo= ac_hi=
7140 break
7141 fi
7142 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007144
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007146 done
7147else
7148 echo "$as_me: failed program was:" >&5
7149sed 's/^/| /' conftest.$ac_ext >&5
7150
Theodore Ts'oe1052142006-10-21 21:46:47 -04007151 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152/* confdefs.h. */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h. */
7157#include <stddef.h>
7158int
7159main ()
7160{
7161static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7162test_array [0] = 0
7163
7164 ;
7165 return 0;
7166}
7167_ACEOF
7168rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007169if { (ac_try="$ac_compile"
7170case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173esac
7174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007181 (exit $ac_status); } && {
7182 test -z "$ac_c_werror_flag" ||
7183 test ! -s conftest.err
7184 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007185 ac_hi=-1 ac_mid=-1
7186 while :; do
7187 cat >conftest.$ac_ext <<_ACEOF
7188/* confdefs.h. */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h. */
7193#include <stddef.h>
7194int
7195main ()
7196{
7197static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7198test_array [0] = 0
7199
7200 ;
7201 return 0;
7202}
7203_ACEOF
7204rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007205if { (ac_try="$ac_compile"
7206case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7209esac
7210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221 ac_lo=$ac_mid; break
7222else
7223 echo "$as_me: failed program was:" >&5
7224sed 's/^/| /' conftest.$ac_ext >&5
7225
Theodore Ts'oe1052142006-10-21 21:46:47 -04007226 ac_hi=`expr '(' $ac_mid ')' - 1`
7227 if test $ac_mid -le $ac_hi; then
7228 ac_lo= ac_hi=
7229 break
7230 fi
7231 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007232fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007233
7234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235 done
7236else
7237 echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
Theodore Ts'oe1052142006-10-21 21:46:47 -04007240 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007242
7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007244fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007245
7246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007247# Binary search between lo and hi bounds.
7248while test "x$ac_lo" != "x$ac_hi"; do
7249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7250 cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h. */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h. */
7256#include <stddef.h>
7257int
7258main ()
7259{
7260static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7261test_array [0] = 0
7262
7263 ;
7264 return 0;
7265}
7266_ACEOF
7267rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007268if { (ac_try="$ac_compile"
7269case "(($ac_try" in
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7272esac
7273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007280 (exit $ac_status); } && {
7281 test -z "$ac_c_werror_flag" ||
7282 test ! -s conftest.err
7283 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284 ac_hi=$ac_mid
7285else
7286 echo "$as_me: failed program was:" >&5
7287sed 's/^/| /' conftest.$ac_ext >&5
7288
Theodore Ts'oe1052142006-10-21 21:46:47 -04007289 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007290fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007291
7292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007293done
7294case $ac_lo in
7295?*) res_hi=$ac_lo;;
7296'') result=? ;;
7297esac
7298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007299 cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h. */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
7304/* end confdefs.h. */
7305#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007306static long int longval () { return ~(size_t)0 / 10; }
7307static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007308#include <stdio.h>
7309#include <stdlib.h>
7310int
7311main ()
7312{
7313
7314 FILE *f = fopen ("conftest.val", "w");
7315 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007316 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007317 if ((~(size_t)0 / 10) < 0)
7318 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007319 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007320 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007321 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322 fprintf (f, "%ld\n", i);
7323 }
7324 else
7325 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007326 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007327 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007328 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007329 fprintf (f, "%lu\n", i);
7330 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007331 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007332
7333 ;
7334 return 0;
7335}
7336_ACEOF
7337rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007338if { (ac_try="$ac_link"
7339case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342esac
7343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007348 { (case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351esac
7352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 res_hi=`cat conftest.val`
7358else
7359 echo "$as_me: program exited with status $ac_status" >&5
7360echo "$as_me: failed program was:" >&5
7361sed 's/^/| /' conftest.$ac_ext >&5
7362
7363( exit $ac_status )
7364result=?
7365fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007366rm -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 -05007367fi
7368rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007370 if test "$cross_compiling" = yes; then
7371 # Depending upon the size, compute the lo and hi bounds.
7372cat >conftest.$ac_ext <<_ACEOF
7373/* confdefs.h. */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h. */
7378#include <stddef.h>
7379int
7380main ()
7381{
7382static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7383test_array [0] = 0
7384
7385 ;
7386 return 0;
7387}
7388_ACEOF
7389rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007390if { (ac_try="$ac_compile"
7391case "(($ac_try" in
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7394esac
7395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007402 (exit $ac_status); } && {
7403 test -z "$ac_c_werror_flag" ||
7404 test ! -s conftest.err
7405 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007406 ac_lo=0 ac_mid=0
7407 while :; do
7408 cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
7414#include <stddef.h>
7415int
7416main ()
7417{
7418static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7419test_array [0] = 0
7420
7421 ;
7422 return 0;
7423}
7424_ACEOF
7425rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007426if { (ac_try="$ac_compile"
7427case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430esac
7431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007433 ac_status=$?
7434 grep -v '^ *+' conftest.er1 >conftest.err
7435 rm -f conftest.er1
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007438 (exit $ac_status); } && {
7439 test -z "$ac_c_werror_flag" ||
7440 test ! -s conftest.err
7441 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007442 ac_hi=$ac_mid; break
7443else
7444 echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
Theodore Ts'oe1052142006-10-21 21:46:47 -04007447 ac_lo=`expr $ac_mid + 1`
7448 if test $ac_lo -le $ac_mid; then
7449 ac_lo= ac_hi=
7450 break
7451 fi
7452 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007454
7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007456 done
7457else
7458 echo "$as_me: failed program was:" >&5
7459sed 's/^/| /' conftest.$ac_ext >&5
7460
Theodore Ts'oe1052142006-10-21 21:46:47 -04007461 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007462/* confdefs.h. */
7463_ACEOF
7464cat confdefs.h >>conftest.$ac_ext
7465cat >>conftest.$ac_ext <<_ACEOF
7466/* end confdefs.h. */
7467#include <stddef.h>
7468int
7469main ()
7470{
7471static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7472test_array [0] = 0
7473
7474 ;
7475 return 0;
7476}
7477_ACEOF
7478rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007479if { (ac_try="$ac_compile"
7480case "(($ac_try" in
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7483esac
7484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007491 (exit $ac_status); } && {
7492 test -z "$ac_c_werror_flag" ||
7493 test ! -s conftest.err
7494 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495 ac_hi=-1 ac_mid=-1
7496 while :; do
7497 cat >conftest.$ac_ext <<_ACEOF
7498/* confdefs.h. */
7499_ACEOF
7500cat confdefs.h >>conftest.$ac_ext
7501cat >>conftest.$ac_ext <<_ACEOF
7502/* end confdefs.h. */
7503#include <stddef.h>
7504int
7505main ()
7506{
7507static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7508test_array [0] = 0
7509
7510 ;
7511 return 0;
7512}
7513_ACEOF
7514rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007515if { (ac_try="$ac_compile"
7516case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519esac
7520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007527 (exit $ac_status); } && {
7528 test -z "$ac_c_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531 ac_lo=$ac_mid; break
7532else
7533 echo "$as_me: failed program was:" >&5
7534sed 's/^/| /' conftest.$ac_ext >&5
7535
Theodore Ts'oe1052142006-10-21 21:46:47 -04007536 ac_hi=`expr '(' $ac_mid ')' - 1`
7537 if test $ac_mid -le $ac_hi; then
7538 ac_lo= ac_hi=
7539 break
7540 fi
7541 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007543
7544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545 done
7546else
7547 echo "$as_me: failed program was:" >&5
7548sed 's/^/| /' conftest.$ac_ext >&5
7549
Theodore Ts'oe1052142006-10-21 21:46:47 -04007550 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007552
7553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007554fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007555
7556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007557# Binary search between lo and hi bounds.
7558while test "x$ac_lo" != "x$ac_hi"; do
7559 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7560 cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h. */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
7565/* end confdefs.h. */
7566#include <stddef.h>
7567int
7568main ()
7569{
7570static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7571test_array [0] = 0
7572
7573 ;
7574 return 0;
7575}
7576_ACEOF
7577rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007578if { (ac_try="$ac_compile"
7579case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582esac
7583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007585 ac_status=$?
7586 grep -v '^ *+' conftest.er1 >conftest.err
7587 rm -f conftest.er1
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007590 (exit $ac_status); } && {
7591 test -z "$ac_c_werror_flag" ||
7592 test ! -s conftest.err
7593 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594 ac_hi=$ac_mid
7595else
7596 echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
Theodore Ts'oe1052142006-10-21 21:46:47 -04007599 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007601
7602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007603done
7604case $ac_lo in
7605?*) res_lo=$ac_lo;;
7606'') result=? ;;
7607esac
7608else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007609 cat >conftest.$ac_ext <<_ACEOF
7610/* confdefs.h. */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h. */
7615#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007616static long int longval () { return ~(size_t)0 % 10; }
7617static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007618#include <stdio.h>
7619#include <stdlib.h>
7620int
7621main ()
7622{
7623
7624 FILE *f = fopen ("conftest.val", "w");
7625 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007626 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627 if ((~(size_t)0 % 10) < 0)
7628 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007629 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007631 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007632 fprintf (f, "%ld\n", i);
7633 }
7634 else
7635 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007636 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007638 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639 fprintf (f, "%lu\n", i);
7640 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007641 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642
7643 ;
7644 return 0;
7645}
7646_ACEOF
7647rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007648if { (ac_try="$ac_link"
7649case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7652esac
7653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007658 { (case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661esac
7662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 res_lo=`cat conftest.val`
7668else
7669 echo "$as_me: program exited with status $ac_status" >&5
7670echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673( exit $ac_status )
7674result=?
7675fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007676rm -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 -05007677fi
7678rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007680 if test "$cross_compiling" = yes; then
7681 # Depending upon the size, compute the lo and hi bounds.
7682cat >conftest.$ac_ext <<_ACEOF
7683/* confdefs.h. */
7684_ACEOF
7685cat confdefs.h >>conftest.$ac_ext
7686cat >>conftest.$ac_ext <<_ACEOF
7687/* end confdefs.h. */
7688#include <stddef.h>
7689int
7690main ()
7691{
7692static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7693test_array [0] = 0
7694
7695 ;
7696 return 0;
7697}
7698_ACEOF
7699rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007700if { (ac_try="$ac_compile"
7701case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704esac
7705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007716 ac_lo=0 ac_mid=0
7717 while :; do
7718 cat >conftest.$ac_ext <<_ACEOF
7719/* confdefs.h. */
7720_ACEOF
7721cat confdefs.h >>conftest.$ac_ext
7722cat >>conftest.$ac_ext <<_ACEOF
7723/* end confdefs.h. */
7724#include <stddef.h>
7725int
7726main ()
7727{
7728static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7729test_array [0] = 0
7730
7731 ;
7732 return 0;
7733}
7734_ACEOF
7735rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007736if { (ac_try="$ac_compile"
7737case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740esac
7741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007752 ac_hi=$ac_mid; break
7753else
7754 echo "$as_me: failed program was:" >&5
7755sed 's/^/| /' conftest.$ac_ext >&5
7756
Theodore Ts'oe1052142006-10-21 21:46:47 -04007757 ac_lo=`expr $ac_mid + 1`
7758 if test $ac_lo -le $ac_mid; then
7759 ac_lo= ac_hi=
7760 break
7761 fi
7762 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007763fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007764
7765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007766 done
7767else
7768 echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
Theodore Ts'oe1052142006-10-21 21:46:47 -04007771 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007772/* confdefs.h. */
7773_ACEOF
7774cat confdefs.h >>conftest.$ac_ext
7775cat >>conftest.$ac_ext <<_ACEOF
7776/* end confdefs.h. */
7777#include <stddef.h>
7778int
7779main ()
7780{
7781static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7782test_array [0] = 0
7783
7784 ;
7785 return 0;
7786}
7787_ACEOF
7788rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007789if { (ac_try="$ac_compile"
7790case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7793esac
7794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007805 ac_hi=-1 ac_mid=-1
7806 while :; do
7807 cat >conftest.$ac_ext <<_ACEOF
7808/* confdefs.h. */
7809_ACEOF
7810cat confdefs.h >>conftest.$ac_ext
7811cat >>conftest.$ac_ext <<_ACEOF
7812/* end confdefs.h. */
7813#include <stddef.h>
7814int
7815main ()
7816{
7817static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7818test_array [0] = 0
7819
7820 ;
7821 return 0;
7822}
7823_ACEOF
7824rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007825if { (ac_try="$ac_compile"
7826case "(($ac_try" in
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7829esac
7830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007841 ac_lo=$ac_mid; break
7842else
7843 echo "$as_me: failed program was:" >&5
7844sed 's/^/| /' conftest.$ac_ext >&5
7845
Theodore Ts'oe1052142006-10-21 21:46:47 -04007846 ac_hi=`expr '(' $ac_mid ')' - 1`
7847 if test $ac_mid -le $ac_hi; then
7848 ac_lo= ac_hi=
7849 break
7850 fi
7851 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007852fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007853
7854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007855 done
7856else
7857 echo "$as_me: failed program was:" >&5
7858sed 's/^/| /' conftest.$ac_ext >&5
7859
Theodore Ts'oe1052142006-10-21 21:46:47 -04007860 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007862
7863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007864fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007865
7866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007867# Binary search between lo and hi bounds.
7868while test "x$ac_lo" != "x$ac_hi"; do
7869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7870 cat >conftest.$ac_ext <<_ACEOF
7871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
7876#include <stddef.h>
7877int
7878main ()
7879{
7880static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7881test_array [0] = 0
7882
7883 ;
7884 return 0;
7885}
7886_ACEOF
7887rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007888if { (ac_try="$ac_compile"
7889case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892esac
7893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007900 (exit $ac_status); } && {
7901 test -z "$ac_c_werror_flag" ||
7902 test ! -s conftest.err
7903 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007904 ac_hi=$ac_mid
7905else
7906 echo "$as_me: failed program was:" >&5
7907sed 's/^/| /' conftest.$ac_ext >&5
7908
Theodore Ts'oe1052142006-10-21 21:46:47 -04007909 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007911
7912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007913done
7914case $ac_lo in
7915?*) fits_in_uint=$ac_lo;;
7916'') result=? ;;
7917esac
7918else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007919 cat >conftest.$ac_ext <<_ACEOF
7920/* confdefs.h. */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h. */
7925#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007926static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7927static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007928#include <stdio.h>
7929#include <stdlib.h>
7930int
7931main ()
7932{
7933
7934 FILE *f = fopen ("conftest.val", "w");
7935 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007936 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007937 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7938 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007939 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007940 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007941 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007942 fprintf (f, "%ld\n", i);
7943 }
7944 else
7945 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007946 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007947 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007948 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007949 fprintf (f, "%lu\n", i);
7950 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007951 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007952
7953 ;
7954 return 0;
7955}
7956_ACEOF
7957rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007958if { (ac_try="$ac_link"
7959case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962esac
7963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007968 { (case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971esac
7972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 fits_in_uint=`cat conftest.val`
7978else
7979 echo "$as_me: program exited with status $ac_status" >&5
7980echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983( exit $ac_status )
7984result=?
7985fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007986rm -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 -05007987fi
7988rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007989
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007990 if test "$fits_in_uint" = 1; then
7991 cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
7997#include <stddef.h>
7998 extern size_t foo;
7999 extern unsigned long foo;
8000
8001int
8002main ()
8003{
8004
8005 ;
8006 return 0;
8007}
8008_ACEOF
8009rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008010if { (ac_try="$ac_compile"
8011case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014esac
8015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008026 fits_in_uint=0
8027else
8028 echo "$as_me: failed program was:" >&5
8029sed 's/^/| /' conftest.$ac_ext >&5
8030
Theodore Ts'oe1052142006-10-21 21:46:47 -04008031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008032fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008033
8034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008035 fi
8036 if test -z "$result"; then
8037 if test "$fits_in_uint" = 1; then
8038 result="$res_hi$res_lo"U
8039 else
8040 result="$res_hi$res_lo"UL
8041 fi
8042 else
8043 result='~(size_t)0'
8044 fi
8045 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008046 { echo "$as_me:$LINENO: result: $result" >&5
8047echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008048 if test "$result" != yes; then
8049
8050cat >>confdefs.h <<_ACEOF
8051#define SIZE_MAX $result
8052_ACEOF
8053
8054 fi
8055
8056
8057
8058
8059for ac_header in stdint.h
8060do
8061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008068ac_res=`eval echo '${'$as_ac_Header'}'`
8069 { echo "$as_me:$LINENO: result: $ac_res" >&5
8070echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008071else
8072 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008073{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008075cat >conftest.$ac_ext <<_ACEOF
8076/* confdefs.h. */
8077_ACEOF
8078cat confdefs.h >>conftest.$ac_ext
8079cat >>conftest.$ac_ext <<_ACEOF
8080/* end confdefs.h. */
8081$ac_includes_default
8082#include <$ac_header>
8083_ACEOF
8084rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008085if { (ac_try="$ac_compile"
8086case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008101 ac_header_compiler=yes
8102else
8103 echo "$as_me: failed program was:" >&5
8104sed 's/^/| /' conftest.$ac_ext >&5
8105
Theodore Ts'oe1052142006-10-21 21:46:47 -04008106 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008108
8109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8111echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008112
8113# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008114{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008116cat >conftest.$ac_ext <<_ACEOF
8117/* confdefs.h. */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h. */
8122#include <$ac_header>
8123_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008124if { (ac_try="$ac_cpp conftest.$ac_ext"
8125case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128esac
8129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008136 (exit $ac_status); } >/dev/null && {
8137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8138 test ! -s conftest.err
8139 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008140 ac_header_preproc=yes
8141else
8142 echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ac_header_preproc=no
8146fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008148rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008149{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8150echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151
8152# So? What about this header?
8153case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8154 yes:no: )
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8158echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8159 ac_header_preproc=yes
8160 ;;
8161 no:yes:* )
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8163echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8165echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8167echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8169echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8173echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008174
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008175 ;;
8176esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008177{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182 eval "$as_ac_Header=\$ac_header_preproc"
8183fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008184ac_res=`eval echo '${'$as_ac_Header'}'`
8185 { echo "$as_me:$LINENO: result: $ac_res" >&5
8186echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008187
8188fi
8189if test `eval echo '${'$as_ac_Header'}'` = yes; then
8190 cat >>confdefs.h <<_ACEOF
8191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8192_ACEOF
8193
8194fi
8195
8196done
8197
8198
8199
8200 if test "X$prefix" = "XNONE"; then
8201 acl_final_prefix="$ac_default_prefix"
8202 else
8203 acl_final_prefix="$prefix"
8204 fi
8205 if test "X$exec_prefix" = "XNONE"; then
8206 acl_final_exec_prefix='${prefix}'
8207 else
8208 acl_final_exec_prefix="$exec_prefix"
8209 fi
8210 acl_save_prefix="$prefix"
8211 prefix="$acl_final_prefix"
8212 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8213 prefix="$acl_save_prefix"
8214
8215
Theodore Ts'oe1052142006-10-21 21:46:47 -04008216# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008217if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008218 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008219else
8220 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008221fi
8222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008223# Prepare PATH_SEPARATOR.
8224# The user is always right.
8225if test "${PATH_SEPARATOR+set}" != set; then
8226 echo "#! /bin/sh" >conf$$.sh
8227 echo "exit 0" >>conf$$.sh
8228 chmod +x conf$$.sh
8229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8230 PATH_SEPARATOR=';'
8231 else
8232 PATH_SEPARATOR=:
8233 fi
8234 rm -f conf$$.sh
8235fi
8236ac_prog=ld
8237if test "$GCC" = yes; then
8238 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008239 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8240echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008241 case $host in
8242 *-*-mingw*)
8243 # gcc leaves a trailing carriage return which upsets mingw
8244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8245 *)
8246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8247 esac
8248 case $ac_prog in
8249 # Accept absolute paths.
8250 [\\/]* | [A-Za-z]:[\\/]*)
8251 re_direlt='/[^/][^/]*/\.\./'
8252 # Canonicalize the path of ld
8253 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8254 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8255 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8256 done
8257 test -z "$LD" && LD="$ac_prog"
8258 ;;
8259 "")
8260 # If it fails, then pretend we aren't using GCC.
8261 ac_prog=ld
8262 ;;
8263 *)
8264 # If it is relative, then search for the first ld in PATH.
8265 with_gnu_ld=unknown
8266 ;;
8267 esac
8268elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008269 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8270echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008271else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008272 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8273echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008274fi
8275if test "${acl_cv_path_LD+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277else
8278 if test -z "$LD"; then
8279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8280 for ac_dir in $PATH; do
8281 test -z "$ac_dir" && ac_dir=.
8282 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8283 acl_cv_path_LD="$ac_dir/$ac_prog"
8284 # Check to see if the program is GNU ld. I'd rather use --version,
8285 # but apparently some GNU ld's only accept -v.
8286 # Break only if it was the GNU/non-GNU ld that we prefer.
8287 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8288 *GNU* | *'with BFD'*)
8289 test "$with_gnu_ld" != no && break ;;
8290 *)
8291 test "$with_gnu_ld" != yes && break ;;
8292 esac
8293 fi
8294 done
8295 IFS="$ac_save_ifs"
8296else
8297 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8298fi
8299fi
8300
8301LD="$acl_cv_path_LD"
8302if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008303 { echo "$as_me:$LINENO: result: $LD" >&5
8304echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008306 { echo "$as_me:$LINENO: result: no" >&5
8307echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008308fi
8309test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8310echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8311 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008312{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8313echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008314if test "${acl_cv_prog_gnu_ld+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8318case `$LD -v 2>&1 </dev/null` in
8319*GNU* | *'with BFD'*)
8320 acl_cv_prog_gnu_ld=yes ;;
8321*)
8322 acl_cv_prog_gnu_ld=no ;;
8323esac
8324fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008325{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8326echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008327with_gnu_ld=$acl_cv_prog_gnu_ld
8328
8329
8330
Theodore Ts'oe1052142006-10-21 21:46:47 -04008331 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8332echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008333if test "${acl_cv_rpath+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336
8337 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8338 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8339 . ./conftest.sh
8340 rm -f ./conftest.sh
8341 acl_cv_rpath=done
8342
8343fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008344{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8345echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346 wl="$acl_cv_wl"
8347 libext="$acl_cv_libext"
8348 shlibext="$acl_cv_shlibext"
8349 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8350 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8351 hardcode_direct="$acl_cv_hardcode_direct"
8352 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008353 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008354if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008355 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008356else
8357 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008358fi
8359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008360
8361
8362
8363
8364
8365
8366
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008367 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008368
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008369 acl_save_prefix="$prefix"
8370 prefix="$acl_final_prefix"
8371 acl_save_exec_prefix="$exec_prefix"
8372 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008373
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008374 eval additional_includedir=\"$includedir\"
8375 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008376
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008377 exec_prefix="$acl_save_exec_prefix"
8378 prefix="$acl_save_prefix"
8379
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008380
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008382if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008383 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008384 if test "X$withval" = "Xno"; then
8385 use_additional=no
8386 else
8387 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008388
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008389 acl_save_prefix="$prefix"
8390 prefix="$acl_final_prefix"
8391 acl_save_exec_prefix="$exec_prefix"
8392 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008393
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008394 eval additional_includedir=\"$includedir\"
8395 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008396
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008397 exec_prefix="$acl_save_exec_prefix"
8398 prefix="$acl_save_prefix"
8399
8400 else
8401 additional_includedir="$withval/include"
8402 additional_libdir="$withval/lib"
8403 fi
8404 fi
8405
Theodore Ts'oe1052142006-10-21 21:46:47 -04008406fi
8407
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008408 LIBICONV=
8409 LTLIBICONV=
8410 INCICONV=
8411 rpathdirs=
8412 ltrpathdirs=
8413 names_already_handled=
8414 names_next_round='iconv '
8415 while test -n "$names_next_round"; do
8416 names_this_round="$names_next_round"
8417 names_next_round=
8418 for name in $names_this_round; do
8419 already_handled=
8420 for n in $names_already_handled; do
8421 if test "$n" = "$name"; then
8422 already_handled=yes
8423 break
8424 fi
8425 done
8426 if test -z "$already_handled"; then
8427 names_already_handled="$names_already_handled $name"
8428 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8429 eval value=\"\$HAVE_LIB$uppername\"
8430 if test -n "$value"; then
8431 if test "$value" = yes; then
8432 eval value=\"\$LIB$uppername\"
8433 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8434 eval value=\"\$LTLIB$uppername\"
8435 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8436 else
8437 :
8438 fi
8439 else
8440 found_dir=
8441 found_la=
8442 found_so=
8443 found_a=
8444 if test $use_additional = yes; then
8445 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8446 found_dir="$additional_libdir"
8447 found_so="$additional_libdir/lib$name.$shlibext"
8448 if test -f "$additional_libdir/lib$name.la"; then
8449 found_la="$additional_libdir/lib$name.la"
8450 fi
8451 else
8452 if test -f "$additional_libdir/lib$name.$libext"; then
8453 found_dir="$additional_libdir"
8454 found_a="$additional_libdir/lib$name.$libext"
8455 if test -f "$additional_libdir/lib$name.la"; then
8456 found_la="$additional_libdir/lib$name.la"
8457 fi
8458 fi
8459 fi
8460 fi
8461 if test "X$found_dir" = "X"; then
8462 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008463
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008464 acl_save_prefix="$prefix"
8465 prefix="$acl_final_prefix"
8466 acl_save_exec_prefix="$exec_prefix"
8467 exec_prefix="$acl_final_exec_prefix"
8468 eval x=\"$x\"
8469 exec_prefix="$acl_save_exec_prefix"
8470 prefix="$acl_save_prefix"
8471
8472 case "$x" in
8473 -L*)
8474 dir=`echo "X$x" | sed -e 's/^X-L//'`
8475 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8476 found_dir="$dir"
8477 found_so="$dir/lib$name.$shlibext"
8478 if test -f "$dir/lib$name.la"; then
8479 found_la="$dir/lib$name.la"
8480 fi
8481 else
8482 if test -f "$dir/lib$name.$libext"; then
8483 found_dir="$dir"
8484 found_a="$dir/lib$name.$libext"
8485 if test -f "$dir/lib$name.la"; then
8486 found_la="$dir/lib$name.la"
8487 fi
8488 fi
8489 fi
8490 ;;
8491 esac
8492 if test "X$found_dir" != "X"; then
8493 break
8494 fi
8495 done
8496 fi
8497 if test "X$found_dir" != "X"; then
8498 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8499 if test "X$found_so" != "X"; then
8500 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8502 else
8503 haveit=
8504 for x in $ltrpathdirs; do
8505 if test "X$x" = "X$found_dir"; then
8506 haveit=yes
8507 break
8508 fi
8509 done
8510 if test -z "$haveit"; then
8511 ltrpathdirs="$ltrpathdirs $found_dir"
8512 fi
8513 if test "$hardcode_direct" = yes; then
8514 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8515 else
8516 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8518 haveit=
8519 for x in $rpathdirs; do
8520 if test "X$x" = "X$found_dir"; then
8521 haveit=yes
8522 break
8523 fi
8524 done
8525 if test -z "$haveit"; then
8526 rpathdirs="$rpathdirs $found_dir"
8527 fi
8528 else
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$found_dir"; then
8541 haveit=yes
8542 break
8543 fi
8544 done
8545 if test -z "$haveit"; then
8546 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8547 fi
8548 if test "$hardcode_minus_L" != no; then
8549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8550 else
8551 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8552 fi
8553 fi
8554 fi
8555 fi
8556 else
8557 if test "X$found_a" != "X"; then
8558 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8559 else
8560 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8561 fi
8562 fi
8563 additional_includedir=
8564 case "$found_dir" in
8565 */lib | */lib/)
8566 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8567 additional_includedir="$basedir/include"
8568 ;;
8569 esac
8570 if test "X$additional_includedir" != "X"; then
8571 if test "X$additional_includedir" != "X/usr/include"; then
8572 haveit=
8573 if test "X$additional_includedir" = "X/usr/local/include"; then
8574 if test -n "$GCC"; then
8575 case $host_os in
8576 linux*) haveit=yes;;
8577 esac
8578 fi
8579 fi
8580 if test -z "$haveit"; then
8581 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008582
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008583 acl_save_prefix="$prefix"
8584 prefix="$acl_final_prefix"
8585 acl_save_exec_prefix="$exec_prefix"
8586 exec_prefix="$acl_final_exec_prefix"
8587 eval x=\"$x\"
8588 exec_prefix="$acl_save_exec_prefix"
8589 prefix="$acl_save_prefix"
8590
8591 if test "X$x" = "X-I$additional_includedir"; then
8592 haveit=yes
8593 break
8594 fi
8595 done
8596 if test -z "$haveit"; then
8597 if test -d "$additional_includedir"; then
8598 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8599 fi
8600 fi
8601 fi
8602 fi
8603 fi
8604 if test -n "$found_la"; then
8605 save_libdir="$libdir"
8606 case "$found_la" in
8607 */* | *\\*) . "$found_la" ;;
8608 *) . "./$found_la" ;;
8609 esac
8610 libdir="$save_libdir"
8611 for dep in $dependency_libs; do
8612 case "$dep" in
8613 -L*)
8614 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8615 if test "X$additional_libdir" != "X/usr/lib"; then
8616 haveit=
8617 if test "X$additional_libdir" = "X/usr/local/lib"; then
8618 if test -n "$GCC"; then
8619 case $host_os in
8620 linux*) haveit=yes;;
8621 esac
8622 fi
8623 fi
8624 if test -z "$haveit"; then
8625 haveit=
8626 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008627
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008628 acl_save_prefix="$prefix"
8629 prefix="$acl_final_prefix"
8630 acl_save_exec_prefix="$exec_prefix"
8631 exec_prefix="$acl_final_exec_prefix"
8632 eval x=\"$x\"
8633 exec_prefix="$acl_save_exec_prefix"
8634 prefix="$acl_save_prefix"
8635
8636 if test "X$x" = "X-L$additional_libdir"; then
8637 haveit=yes
8638 break
8639 fi
8640 done
8641 if test -z "$haveit"; then
8642 if test -d "$additional_libdir"; then
8643 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8644 fi
8645 fi
8646 haveit=
8647 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008648
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008649 acl_save_prefix="$prefix"
8650 prefix="$acl_final_prefix"
8651 acl_save_exec_prefix="$exec_prefix"
8652 exec_prefix="$acl_final_exec_prefix"
8653 eval x=\"$x\"
8654 exec_prefix="$acl_save_exec_prefix"
8655 prefix="$acl_save_prefix"
8656
8657 if test "X$x" = "X-L$additional_libdir"; then
8658 haveit=yes
8659 break
8660 fi
8661 done
8662 if test -z "$haveit"; then
8663 if test -d "$additional_libdir"; then
8664 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8665 fi
8666 fi
8667 fi
8668 fi
8669 ;;
8670 -R*)
8671 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8672 if test "$enable_rpath" != no; then
8673 haveit=
8674 for x in $rpathdirs; do
8675 if test "X$x" = "X$dir"; then
8676 haveit=yes
8677 break
8678 fi
8679 done
8680 if test -z "$haveit"; then
8681 rpathdirs="$rpathdirs $dir"
8682 fi
8683 haveit=
8684 for x in $ltrpathdirs; do
8685 if test "X$x" = "X$dir"; then
8686 haveit=yes
8687 break
8688 fi
8689 done
8690 if test -z "$haveit"; then
8691 ltrpathdirs="$ltrpathdirs $dir"
8692 fi
8693 fi
8694 ;;
8695 -l*)
8696 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8697 ;;
8698 *.la)
8699 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8700 ;;
8701 *)
8702 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8703 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8704 ;;
8705 esac
8706 done
8707 fi
8708 else
8709 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8710 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8711 fi
8712 fi
8713 fi
8714 done
8715 done
8716 if test "X$rpathdirs" != "X"; then
8717 if test -n "$hardcode_libdir_separator"; then
8718 alldirs=
8719 for found_dir in $rpathdirs; do
8720 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8721 done
8722 acl_save_libdir="$libdir"
8723 libdir="$alldirs"
8724 eval flag=\"$hardcode_libdir_flag_spec\"
8725 libdir="$acl_save_libdir"
8726 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8727 else
8728 for found_dir in $rpathdirs; do
8729 acl_save_libdir="$libdir"
8730 libdir="$found_dir"
8731 eval flag=\"$hardcode_libdir_flag_spec\"
8732 libdir="$acl_save_libdir"
8733 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8734 done
8735 fi
8736 fi
8737 if test "X$ltrpathdirs" != "X"; then
8738 for found_dir in $ltrpathdirs; do
8739 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8740 done
8741 fi
8742
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008743
8744
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008745
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008746
8747
8748
8749
Theodore Ts'oe1052142006-10-21 21:46:47 -04008750 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8751echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008752if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008754else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755 cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
8761$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008762typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008763int
8764main ()
8765{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008766if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008767 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008768if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008769 return 0;
8770 ;
8771 return 0;
8772}
8773_ACEOF
8774rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008775if { (ac_try="$ac_compile"
8776case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8779esac
8780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008791 ac_cv_type_ptrdiff_t=yes
8792else
8793 echo "$as_me: failed program was:" >&5
8794sed 's/^/| /' conftest.$ac_ext >&5
8795
Theodore Ts'oe1052142006-10-21 21:46:47 -04008796 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008798
8799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008801{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8802echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008803if test $ac_cv_type_ptrdiff_t = yes; then
8804 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008805else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008806
8807cat >>confdefs.h <<\_ACEOF
8808#define ptrdiff_t long
8809_ACEOF
8810
8811
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008812fi
8813
8814
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008815
8816
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008817
8818
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819
8820
8821
8822
8823
8824for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008825stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008826do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008832 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008833fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008834ac_res=`eval echo '${'$as_ac_Header'}'`
8835 { echo "$as_me:$LINENO: result: $ac_res" >&5
8836echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008837else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008838 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008839{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008841cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847$ac_includes_default
8848#include <$ac_header>
8849_ACEOF
8850rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008851if { (ac_try="$ac_compile"
8852case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8855esac
8856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008858 ac_status=$?
8859 grep -v '^ *+' conftest.er1 >conftest.err
8860 rm -f conftest.er1
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008863 (exit $ac_status); } && {
8864 test -z "$ac_c_werror_flag" ||
8865 test ! -s conftest.err
8866 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008867 ac_header_compiler=yes
8868else
8869 echo "$as_me: failed program was:" >&5
8870sed 's/^/| /' conftest.$ac_ext >&5
8871
Theodore Ts'oe1052142006-10-21 21:46:47 -04008872 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008873fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008874
8875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8877echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008878
8879# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008880{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008882cat >conftest.$ac_ext <<_ACEOF
8883/* confdefs.h. */
8884_ACEOF
8885cat confdefs.h >>conftest.$ac_ext
8886cat >>conftest.$ac_ext <<_ACEOF
8887/* end confdefs.h. */
8888#include <$ac_header>
8889_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008890if { (ac_try="$ac_cpp conftest.$ac_ext"
8891case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894esac
8895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008902 (exit $ac_status); } >/dev/null && {
8903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008906 ac_header_preproc=yes
8907else
8908 echo "$as_me: failed program was:" >&5
8909sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 ac_header_preproc=no
8912fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008913
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008914rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008915{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8916echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008917
8918# So? What about this header?
8919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8920 yes:no: )
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8925 ac_header_preproc=yes
8926 ;;
8927 no:yes:* )
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008941 ;;
8942esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008943{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008946 echo $ECHO_N "(cached) $ECHO_C" >&6
8947else
8948 eval "$as_ac_Header=\$ac_header_preproc"
8949fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008950ac_res=`eval echo '${'$as_ac_Header'}'`
8951 { echo "$as_me:$LINENO: result: $ac_res" >&5
8952echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008953
8954fi
8955if test `eval echo '${'$as_ac_Header'}'` = yes; then
8956 cat >>confdefs.h <<_ACEOF
8957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8958_ACEOF
8959
8960fi
8961
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008962done
8963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8988mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8989strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8990__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008991do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008993{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008996 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008998 cat >conftest.$ac_ext <<_ACEOF
8999/* confdefs.h. */
9000_ACEOF
9001cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF
9003/* end confdefs.h. */
9004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9006#define $ac_func innocuous_$ac_func
9007
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009008/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009009 which can conflict with char $ac_func (); below.
9010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9011 <limits.h> exists even on freestanding compilers. */
9012
9013#ifdef __STDC__
9014# include <limits.h>
9015#else
9016# include <assert.h>
9017#endif
9018
9019#undef $ac_func
9020
Theodore Ts'oe1052142006-10-21 21:46:47 -04009021/* Override any GCC internal prototype to avoid an error.
9022 Use char because int might match the return type of a GCC
9023 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009024#ifdef __cplusplus
9025extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009026#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009027char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009028/* The GNU C library defines this for functions which it implements
9029 to always fail with ENOSYS. Some functions are actually named
9030 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009031#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009032choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009033#endif
9034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009035int
9036main ()
9037{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009038return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009039 ;
9040 return 0;
9041}
9042_ACEOF
9043rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009044if { (ac_try="$ac_link"
9045case "(($ac_try" in
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9048esac
9049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009056 (exit $ac_status); } && {
9057 test -z "$ac_c_werror_flag" ||
9058 test ! -s conftest.err
9059 } && test -s conftest$ac_exeext &&
9060 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009061 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009063 echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009065
Theodore Ts'oe1052142006-10-21 21:46:47 -04009066 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009067fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009068
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009070 conftest$ac_exeext conftest.$ac_ext
9071fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009072ac_res=`eval echo '${'$as_ac_var'}'`
9073 { echo "$as_me:$LINENO: result: $ac_res" >&5
9074echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009075if test `eval echo '${'$as_ac_var'}'` = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9078_ACEOF
9079
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009080fi
9081done
9082
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009084
Theodore Ts'oe1052142006-10-21 21:46:47 -04009085 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9086echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009087if test "${ac_cv_have_decl__snprintf+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else
9090 cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h. */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
9095/* end confdefs.h. */
9096#include <stdio.h>
9097int
9098main ()
9099{
9100
9101#ifndef _snprintf
9102 char *p = (char *) _snprintf;
9103#endif
9104
9105 ;
9106 return 0;
9107}
9108_ACEOF
9109rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009110if { (ac_try="$ac_compile"
9111case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114esac
9115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009122 (exit $ac_status); } && {
9123 test -z "$ac_c_werror_flag" ||
9124 test ! -s conftest.err
9125 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009126 ac_cv_have_decl__snprintf=yes
9127else
9128 echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
Theodore Ts'oe1052142006-10-21 21:46:47 -04009131 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009132fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009133
9134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009136{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9137echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009138 if test $ac_cv_have_decl__snprintf = yes; then
9139 gt_value=1
9140 else
9141 gt_value=0
9142 fi
9143
9144cat >>confdefs.h <<_ACEOF
9145#define HAVE_DECL__SNPRINTF $gt_value
9146_ACEOF
9147
9148
9149
Theodore Ts'oe1052142006-10-21 21:46:47 -04009150 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9151echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009152if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155 cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161#include <stdio.h>
9162int
9163main ()
9164{
9165
9166#ifndef _snwprintf
9167 char *p = (char *) _snwprintf;
9168#endif
9169
9170 ;
9171 return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009175if { (ac_try="$ac_compile"
9176case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9179esac
9180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009187 (exit $ac_status); } && {
9188 test -z "$ac_c_werror_flag" ||
9189 test ! -s conftest.err
9190 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009191 ac_cv_have_decl__snwprintf=yes
9192else
9193 echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
Theodore Ts'oe1052142006-10-21 21:46:47 -04009196 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009197fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009198
9199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009200fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009201{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9202echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009203 if test $ac_cv_have_decl__snwprintf = yes; then
9204 gt_value=1
9205 else
9206 gt_value=0
9207 fi
9208
9209cat >>confdefs.h <<_ACEOF
9210#define HAVE_DECL__SNWPRINTF $gt_value
9211_ACEOF
9212
9213
9214
9215
Theodore Ts'oe1052142006-10-21 21:46:47 -04009216 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9217echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009218if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220else
9221 cat >conftest.$ac_ext <<_ACEOF
9222/* confdefs.h. */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h. */
9227#include <stdio.h>
9228int
9229main ()
9230{
9231
9232#ifndef feof_unlocked
9233 char *p = (char *) feof_unlocked;
9234#endif
9235
9236 ;
9237 return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009241if { (ac_try="$ac_compile"
9242case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
9246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009257 ac_cv_have_decl_feof_unlocked=yes
9258else
9259 echo "$as_me: failed program was:" >&5
9260sed 's/^/| /' conftest.$ac_ext >&5
9261
Theodore Ts'oe1052142006-10-21 21:46:47 -04009262 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009264
9265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009267{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9268echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009269 if test $ac_cv_have_decl_feof_unlocked = yes; then
9270 gt_value=1
9271 else
9272 gt_value=0
9273 fi
9274
9275cat >>confdefs.h <<_ACEOF
9276#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9277_ACEOF
9278
9279
9280
Theodore Ts'oe1052142006-10-21 21:46:47 -04009281 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9282echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286 cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h. */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h. */
9292#include <stdio.h>
9293int
9294main ()
9295{
9296
9297#ifndef fgets_unlocked
9298 char *p = (char *) fgets_unlocked;
9299#endif
9300
9301 ;
9302 return 0;
9303}
9304_ACEOF
9305rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009306if { (ac_try="$ac_compile"
9307case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310esac
9311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009322 ac_cv_have_decl_fgets_unlocked=yes
9323else
9324 echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
Theodore Ts'oe1052142006-10-21 21:46:47 -04009327 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009328fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009329
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009331fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009332{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9333echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009334 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9335 gt_value=1
9336 else
9337 gt_value=0
9338 fi
9339
9340cat >>confdefs.h <<_ACEOF
9341#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9342_ACEOF
9343
9344
9345
Theodore Ts'oe1052142006-10-21 21:46:47 -04009346 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9347echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009348if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350else
9351 cat >conftest.$ac_ext <<_ACEOF
9352/* confdefs.h. */
9353_ACEOF
9354cat confdefs.h >>conftest.$ac_ext
9355cat >>conftest.$ac_ext <<_ACEOF
9356/* end confdefs.h. */
9357#include <stdio.h>
9358int
9359main ()
9360{
9361
9362#ifndef getc_unlocked
9363 char *p = (char *) getc_unlocked;
9364#endif
9365
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009371if { (ac_try="$ac_compile"
9372case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387 ac_cv_have_decl_getc_unlocked=yes
9388else
9389 echo "$as_me: failed program was:" >&5
9390sed 's/^/| /' conftest.$ac_ext >&5
9391
Theodore Ts'oe1052142006-10-21 21:46:47 -04009392 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009393fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009394
9395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009396fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009397{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9398echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009399 if test $ac_cv_have_decl_getc_unlocked = yes; then
9400 gt_value=1
9401 else
9402 gt_value=0
9403 fi
9404
9405cat >>confdefs.h <<_ACEOF
9406#define HAVE_DECL_GETC_UNLOCKED $gt_value
9407_ACEOF
9408
9409
9410
9411 case $gt_cv_func_printf_posix in
9412 *yes) HAVE_POSIX_PRINTF=1 ;;
9413 *) HAVE_POSIX_PRINTF=0 ;;
9414 esac
9415
9416 if test "$ac_cv_func_asprintf" = yes; then
9417 HAVE_ASPRINTF=1
9418 else
9419 HAVE_ASPRINTF=0
9420 fi
9421
9422 if test "$ac_cv_func_snprintf" = yes; then
9423 HAVE_SNPRINTF=1
9424 else
9425 HAVE_SNPRINTF=0
9426 fi
9427
9428 if test "$ac_cv_func_wprintf" = yes; then
9429 HAVE_WPRINTF=1
9430 else
9431 HAVE_WPRINTF=0
9432 fi
9433
9434
9435
9436
9437
9438
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009439
9440 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009441
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009442 for element in $INCICONV; do
9443 haveit=
9444 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009445
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009446 acl_save_prefix="$prefix"
9447 prefix="$acl_final_prefix"
9448 acl_save_exec_prefix="$exec_prefix"
9449 exec_prefix="$acl_final_exec_prefix"
9450 eval x=\"$x\"
9451 exec_prefix="$acl_save_exec_prefix"
9452 prefix="$acl_save_prefix"
9453
9454 if test "X$x" = "X$element"; then
9455 haveit=yes
9456 break
9457 fi
9458 done
9459 if test -z "$haveit"; then
9460 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9461 fi
9462 done
9463
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009464
Theodore Ts'oe1052142006-10-21 21:46:47 -04009465 { echo "$as_me:$LINENO: checking for iconv" >&5
9466echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009467if test "${am_cv_func_iconv+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009469else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009471 am_cv_func_iconv="no, consider installing GNU libiconv"
9472 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009473 cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h. */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009479#include <stdlib.h>
9480#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009481int
9482main ()
9483{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009484iconv_t cd = iconv_open("","");
9485 iconv(cd,NULL,NULL,NULL,NULL);
9486 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009487 ;
9488 return 0;
9489}
9490_ACEOF
9491rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009492if { (ac_try="$ac_link"
9493case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496esac
9497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest$ac_exeext &&
9508 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009509 am_cv_func_iconv=yes
9510else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009511 echo "$as_me: failed program was:" >&5
9512sed 's/^/| /' conftest.$ac_ext >&5
9513
Theodore Ts'oe1052142006-10-21 21:46:47 -04009514
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009515fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009516
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009518 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009519 if test "$am_cv_func_iconv" != yes; then
9520 am_save_LIBS="$LIBS"
9521 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009522 cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009528#include <stdlib.h>
9529#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009530int
9531main ()
9532{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009533iconv_t cd = iconv_open("","");
9534 iconv(cd,NULL,NULL,NULL,NULL);
9535 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009536 ;
9537 return 0;
9538}
9539_ACEOF
9540rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009541if { (ac_try="$ac_link"
9542case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545esac
9546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext &&
9557 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009558 am_cv_lib_iconv=yes
9559 am_cv_func_iconv=yes
9560else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009561 echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
9563
Theodore Ts'oe1052142006-10-21 21:46:47 -04009564
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009565fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009566
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009568 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009569 LIBS="$am_save_LIBS"
9570 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009573{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9574echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009575 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009576
9577cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009578#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009579_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009580
9581 fi
9582 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009583 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9584echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9585 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9586echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009587 else
9588 CPPFLAGS="$am_save_CPPFLAGS"
9589 LIBICONV=
9590 LTLIBICONV=
9591 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592
9593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009594
9595 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009596 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9597echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009598 if test "${am_cv_proto_iconv+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009601
9602 cat >conftest.$ac_ext <<_ACEOF
9603/* confdefs.h. */
9604_ACEOF
9605cat confdefs.h >>conftest.$ac_ext
9606cat >>conftest.$ac_ext <<_ACEOF
9607/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009608
9609#include <stdlib.h>
9610#include <iconv.h>
9611extern
9612#ifdef __cplusplus
9613"C"
9614#endif
9615#if defined(__STDC__) || defined(__cplusplus)
9616size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9617#else
9618size_t iconv();
9619#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621int
9622main ()
9623{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009624
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009625 ;
9626 return 0;
9627}
9628_ACEOF
9629rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009630if { (ac_try="$ac_compile"
9631case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634esac
9635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009646 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009647else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009648 echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
Theodore Ts'oe1052142006-10-21 21:46:47 -04009651 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009652fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009653
9654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009655 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 +00009656fi
9657
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009658 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009659 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009660 }$am_cv_proto_iconv" >&5
9661echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009662 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009663
9664cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009665#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009667
9668 fi
9669
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009670
Theodore Ts'oe1052142006-10-21 21:46:47 -04009671 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9672echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009673if test "${am_cv_langinfo_codeset+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009675else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009676 cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h. */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009682#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009683int
9684main ()
9685{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009686char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009687 ;
9688 return 0;
9689}
9690_ACEOF
9691rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009692if { (ac_try="$ac_link"
9693case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696esac
9697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009704 (exit $ac_status); } && {
9705 test -z "$ac_c_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest$ac_exeext &&
9708 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009709 am_cv_langinfo_codeset=yes
9710else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009711 echo "$as_me: failed program was:" >&5
9712sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009713
Theodore Ts'oe1052142006-10-21 21:46:47 -04009714 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009716
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009718 conftest$ac_exeext conftest.$ac_ext
9719
9720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009721{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9722echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009723 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009724
9725cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009726#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009727_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009728
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009729 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009730
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009731 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009732
Theodore Ts'oe1052142006-10-21 21:46:47 -04009733 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9734echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009737else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009738 cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h. */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009744#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009745int
9746main ()
9747{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009748return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009749 ;
9750 return 0;
9751}
9752_ACEOF
9753rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009754if { (ac_try="$ac_link"
9755case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext &&
9770 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009771 am_cv_val_LC_MESSAGES=yes
9772else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773 echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009775
Theodore Ts'oe1052142006-10-21 21:46:47 -04009776 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009777fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009778
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009780 conftest$ac_exeext conftest.$ac_ext
9781fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009782{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9783echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009784 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009785
9786cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009787#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009788_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009789
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009790 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009791
9792 fi
9793
9794 for ac_prog in bison
9795do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009796 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009797set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800if test "${ac_cv_prog_INTLBISON+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009802else
9803 if test -n "$INTLBISON"; then
9804 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9805else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009812 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 -05009813 ac_cv_prog_INTLBISON="$ac_prog"
9814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9816 fi
9817done
9818done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009819IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009820
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009821fi
9822fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009823INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009824if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009825 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9826echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009827else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009828 { echo "$as_me:$LINENO: result: no" >&5
9829echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009830fi
9831
Theodore Ts'oe1052142006-10-21 21:46:47 -04009832
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009833 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009834done
9835
9836 if test -z "$INTLBISON"; then
9837 ac_verc_fail=yes
9838 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009839 { echo "$as_me:$LINENO: checking version of bison" >&5
9840echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009841 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9842 case $ac_prog_version in
9843 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9844 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9845 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9846 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9847 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009848 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9849echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009850 fi
9851 if test $ac_verc_fail = yes; then
9852 INTLBISON=:
9853 fi
9854
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009855
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009856
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009857
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009858
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009860
9861
9862
9863
9864
9865
9866
9867
9868
9869
Theodore Ts'oe1052142006-10-21 21:46:47 -04009870 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9871echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9872 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009873if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009874 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009875else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009876 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009877fi
9878
9879 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9880echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009881
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009883
9884
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009885 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009886 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009887
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009888 LIBINTL=
9889 LTLIBINTL=
9890 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009891
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009892 if test "$USE_NLS" = "yes"; then
9893 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009894
Theodore Ts'oe1052142006-10-21 21:46:47 -04009895 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9896echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009897
Theodore Ts'oe1052142006-10-21 21:46:47 -04009898# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009899if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009900 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009901else
9902 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009903fi
9904
9905 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9906echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009907
9908 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9909 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009911
9912
9913
9914
9915
Theodore Ts'oe1052142006-10-21 21:46:47 -04009916 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9917echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009918if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009920else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009921 cat >conftest.$ac_ext <<_ACEOF
9922/* confdefs.h. */
9923_ACEOF
9924cat confdefs.h >>conftest.$ac_ext
9925cat >>conftest.$ac_ext <<_ACEOF
9926/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009927#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009928extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009929extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009930int
9931main ()
9932{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009933bindtextdomain ("", "");
9934return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935 ;
9936 return 0;
9937}
9938_ACEOF
9939rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009940if { (ac_try="$ac_link"
9941case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944esac
9945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest$ac_exeext &&
9956 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009957 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009958else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009959 echo "$as_me: failed program was:" >&5
9960sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009961
Theodore Ts'oe1052142006-10-21 21:46:47 -04009962 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009963fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009964
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009966 conftest$ac_exeext conftest.$ac_ext
9967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009968{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9969echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009970
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009971 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972
9973
9974
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009975 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009977 acl_save_prefix="$prefix"
9978 prefix="$acl_final_prefix"
9979 acl_save_exec_prefix="$exec_prefix"
9980 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009981
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009982 eval additional_includedir=\"$includedir\"
9983 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009985 exec_prefix="$acl_save_exec_prefix"
9986 prefix="$acl_save_prefix"
9987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009988
Theodore Ts'oe1052142006-10-21 21:46:47 -04009989# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009990if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009991 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009992 if test "X$withval" = "Xno"; then
9993 use_additional=no
9994 else
9995 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009996
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009997 acl_save_prefix="$prefix"
9998 prefix="$acl_final_prefix"
9999 acl_save_exec_prefix="$exec_prefix"
10000 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010002 eval additional_includedir=\"$includedir\"
10003 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010005 exec_prefix="$acl_save_exec_prefix"
10006 prefix="$acl_save_prefix"
10007
10008 else
10009 additional_includedir="$withval/include"
10010 additional_libdir="$withval/lib"
10011 fi
10012 fi
10013
Theodore Ts'oe1052142006-10-21 21:46:47 -040010014fi
10015
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010016 LIBINTL=
10017 LTLIBINTL=
10018 INCINTL=
10019 rpathdirs=
10020 ltrpathdirs=
10021 names_already_handled=
10022 names_next_round='intl '
10023 while test -n "$names_next_round"; do
10024 names_this_round="$names_next_round"
10025 names_next_round=
10026 for name in $names_this_round; do
10027 already_handled=
10028 for n in $names_already_handled; do
10029 if test "$n" = "$name"; then
10030 already_handled=yes
10031 break
10032 fi
10033 done
10034 if test -z "$already_handled"; then
10035 names_already_handled="$names_already_handled $name"
10036 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10037 eval value=\"\$HAVE_LIB$uppername\"
10038 if test -n "$value"; then
10039 if test "$value" = yes; then
10040 eval value=\"\$LIB$uppername\"
10041 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10042 eval value=\"\$LTLIB$uppername\"
10043 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10044 else
10045 :
10046 fi
10047 else
10048 found_dir=
10049 found_la=
10050 found_so=
10051 found_a=
10052 if test $use_additional = yes; then
10053 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10054 found_dir="$additional_libdir"
10055 found_so="$additional_libdir/lib$name.$shlibext"
10056 if test -f "$additional_libdir/lib$name.la"; then
10057 found_la="$additional_libdir/lib$name.la"
10058 fi
10059 else
10060 if test -f "$additional_libdir/lib$name.$libext"; then
10061 found_dir="$additional_libdir"
10062 found_a="$additional_libdir/lib$name.$libext"
10063 if test -f "$additional_libdir/lib$name.la"; then
10064 found_la="$additional_libdir/lib$name.la"
10065 fi
10066 fi
10067 fi
10068 fi
10069 if test "X$found_dir" = "X"; then
10070 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010071
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010072 acl_save_prefix="$prefix"
10073 prefix="$acl_final_prefix"
10074 acl_save_exec_prefix="$exec_prefix"
10075 exec_prefix="$acl_final_exec_prefix"
10076 eval x=\"$x\"
10077 exec_prefix="$acl_save_exec_prefix"
10078 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010079
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010080 case "$x" in
10081 -L*)
10082 dir=`echo "X$x" | sed -e 's/^X-L//'`
10083 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10084 found_dir="$dir"
10085 found_so="$dir/lib$name.$shlibext"
10086 if test -f "$dir/lib$name.la"; then
10087 found_la="$dir/lib$name.la"
10088 fi
10089 else
10090 if test -f "$dir/lib$name.$libext"; then
10091 found_dir="$dir"
10092 found_a="$dir/lib$name.$libext"
10093 if test -f "$dir/lib$name.la"; then
10094 found_la="$dir/lib$name.la"
10095 fi
10096 fi
10097 fi
10098 ;;
10099 esac
10100 if test "X$found_dir" != "X"; then
10101 break
10102 fi
10103 done
10104 fi
10105 if test "X$found_dir" != "X"; then
10106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10107 if test "X$found_so" != "X"; then
10108 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10110 else
10111 haveit=
10112 for x in $ltrpathdirs; do
10113 if test "X$x" = "X$found_dir"; then
10114 haveit=yes
10115 break
10116 fi
10117 done
10118 if test -z "$haveit"; then
10119 ltrpathdirs="$ltrpathdirs $found_dir"
10120 fi
10121 if test "$hardcode_direct" = yes; then
10122 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10123 else
10124 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10125 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10126 haveit=
10127 for x in $rpathdirs; do
10128 if test "X$x" = "X$found_dir"; then
10129 haveit=yes
10130 break
10131 fi
10132 done
10133 if test -z "$haveit"; then
10134 rpathdirs="$rpathdirs $found_dir"
10135 fi
10136 else
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$found_dir"; then
10149 haveit=yes
10150 break
10151 fi
10152 done
10153 if test -z "$haveit"; then
10154 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10155 fi
10156 if test "$hardcode_minus_L" != no; then
10157 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10158 else
10159 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10160 fi
10161 fi
10162 fi
10163 fi
10164 else
10165 if test "X$found_a" != "X"; then
10166 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10167 else
10168 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10169 fi
10170 fi
10171 additional_includedir=
10172 case "$found_dir" in
10173 */lib | */lib/)
10174 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10175 additional_includedir="$basedir/include"
10176 ;;
10177 esac
10178 if test "X$additional_includedir" != "X"; then
10179 if test "X$additional_includedir" != "X/usr/include"; then
10180 haveit=
10181 if test "X$additional_includedir" = "X/usr/local/include"; then
10182 if test -n "$GCC"; then
10183 case $host_os in
10184 linux*) haveit=yes;;
10185 esac
10186 fi
10187 fi
10188 if test -z "$haveit"; then
10189 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010190
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010191 acl_save_prefix="$prefix"
10192 prefix="$acl_final_prefix"
10193 acl_save_exec_prefix="$exec_prefix"
10194 exec_prefix="$acl_final_exec_prefix"
10195 eval x=\"$x\"
10196 exec_prefix="$acl_save_exec_prefix"
10197 prefix="$acl_save_prefix"
10198
10199 if test "X$x" = "X-I$additional_includedir"; then
10200 haveit=yes
10201 break
10202 fi
10203 done
10204 if test -z "$haveit"; then
10205 if test -d "$additional_includedir"; then
10206 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10207 fi
10208 fi
10209 fi
10210 fi
10211 fi
10212 if test -n "$found_la"; then
10213 save_libdir="$libdir"
10214 case "$found_la" in
10215 */* | *\\*) . "$found_la" ;;
10216 *) . "./$found_la" ;;
10217 esac
10218 libdir="$save_libdir"
10219 for dep in $dependency_libs; do
10220 case "$dep" in
10221 -L*)
10222 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10223 if test "X$additional_libdir" != "X/usr/lib"; then
10224 haveit=
10225 if test "X$additional_libdir" = "X/usr/local/lib"; then
10226 if test -n "$GCC"; then
10227 case $host_os in
10228 linux*) haveit=yes;;
10229 esac
10230 fi
10231 fi
10232 if test -z "$haveit"; then
10233 haveit=
10234 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010235
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010236 acl_save_prefix="$prefix"
10237 prefix="$acl_final_prefix"
10238 acl_save_exec_prefix="$exec_prefix"
10239 exec_prefix="$acl_final_exec_prefix"
10240 eval x=\"$x\"
10241 exec_prefix="$acl_save_exec_prefix"
10242 prefix="$acl_save_prefix"
10243
10244 if test "X$x" = "X-L$additional_libdir"; then
10245 haveit=yes
10246 break
10247 fi
10248 done
10249 if test -z "$haveit"; then
10250 if test -d "$additional_libdir"; then
10251 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10252 fi
10253 fi
10254 haveit=
10255 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010256
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010257 acl_save_prefix="$prefix"
10258 prefix="$acl_final_prefix"
10259 acl_save_exec_prefix="$exec_prefix"
10260 exec_prefix="$acl_final_exec_prefix"
10261 eval x=\"$x\"
10262 exec_prefix="$acl_save_exec_prefix"
10263 prefix="$acl_save_prefix"
10264
10265 if test "X$x" = "X-L$additional_libdir"; then
10266 haveit=yes
10267 break
10268 fi
10269 done
10270 if test -z "$haveit"; then
10271 if test -d "$additional_libdir"; then
10272 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10273 fi
10274 fi
10275 fi
10276 fi
10277 ;;
10278 -R*)
10279 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10280 if test "$enable_rpath" != no; then
10281 haveit=
10282 for x in $rpathdirs; do
10283 if test "X$x" = "X$dir"; then
10284 haveit=yes
10285 break
10286 fi
10287 done
10288 if test -z "$haveit"; then
10289 rpathdirs="$rpathdirs $dir"
10290 fi
10291 haveit=
10292 for x in $ltrpathdirs; do
10293 if test "X$x" = "X$dir"; then
10294 haveit=yes
10295 break
10296 fi
10297 done
10298 if test -z "$haveit"; then
10299 ltrpathdirs="$ltrpathdirs $dir"
10300 fi
10301 fi
10302 ;;
10303 -l*)
10304 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10305 ;;
10306 *.la)
10307 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10308 ;;
10309 *)
10310 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10311 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10312 ;;
10313 esac
10314 done
10315 fi
10316 else
10317 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10318 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10319 fi
10320 fi
10321 fi
10322 done
10323 done
10324 if test "X$rpathdirs" != "X"; then
10325 if test -n "$hardcode_libdir_separator"; then
10326 alldirs=
10327 for found_dir in $rpathdirs; do
10328 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10329 done
10330 acl_save_libdir="$libdir"
10331 libdir="$alldirs"
10332 eval flag=\"$hardcode_libdir_flag_spec\"
10333 libdir="$acl_save_libdir"
10334 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10335 else
10336 for found_dir in $rpathdirs; do
10337 acl_save_libdir="$libdir"
10338 libdir="$found_dir"
10339 eval flag=\"$hardcode_libdir_flag_spec\"
10340 libdir="$acl_save_libdir"
10341 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10342 done
10343 fi
10344 fi
10345 if test "X$ltrpathdirs" != "X"; then
10346 for found_dir in $ltrpathdirs; do
10347 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10348 done
10349 fi
10350
Theodore Ts'oe1052142006-10-21 21:46:47 -040010351 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10352echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010353if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010355else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010356 gt_save_CPPFLAGS="$CPPFLAGS"
10357 CPPFLAGS="$CPPFLAGS $INCINTL"
10358 gt_save_LIBS="$LIBS"
10359 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010360 cat >conftest.$ac_ext <<_ACEOF
10361/* confdefs.h. */
10362_ACEOF
10363cat confdefs.h >>conftest.$ac_ext
10364cat >>conftest.$ac_ext <<_ACEOF
10365/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010366#include <libintl.h>
10367extern int _nl_msg_cat_cntr;
10368extern
10369#ifdef __cplusplus
10370"C"
10371#endif
10372const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010373int
10374main ()
10375{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010376bindtextdomain ("", "");
10377return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010378 ;
10379 return 0;
10380}
10381_ACEOF
10382rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010383if { (ac_try="$ac_link"
10384case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387esac
10388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010395 (exit $ac_status); } && {
10396 test -z "$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest$ac_exeext &&
10399 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010400 gt_cv_func_gnugettext1_libintl=yes
10401else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010402 echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
10404
Theodore Ts'oe1052142006-10-21 21:46:47 -040010405 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010406fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010407
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010409 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010410 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10411 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010412 cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h. */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010418#include <libintl.h>
10419extern int _nl_msg_cat_cntr;
10420extern
10421#ifdef __cplusplus
10422"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010423#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010424const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010425int
10426main ()
10427{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010428bindtextdomain ("", "");
10429return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010430 ;
10431 return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010435if { (ac_try="$ac_link"
10436case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010442 ac_status=$?
10443 grep -v '^ *+' conftest.er1 >conftest.err
10444 rm -f conftest.er1
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010447 (exit $ac_status); } && {
10448 test -z "$ac_c_werror_flag" ||
10449 test ! -s conftest.err
10450 } && test -s conftest$ac_exeext &&
10451 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010452 LIBINTL="$LIBINTL $LIBICONV"
10453 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10454 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010455
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010456else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010457 echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
Theodore Ts'oe1052142006-10-21 21:46:47 -040010460
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010461fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010462
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010464 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010465 fi
10466 CPPFLAGS="$gt_save_CPPFLAGS"
10467 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010468fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010469{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10470echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010471 fi
10472
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010473 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10474 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010475 && test "$PACKAGE" != gettext-runtime \
10476 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010477 gt_use_preinstalled_gnugettext=yes
10478 else
10479 LIBINTL=
10480 LTLIBINTL=
10481 INCINTL=
10482 fi
10483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010484
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010485 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10486 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010487 fi
10488 fi
10489
10490 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010491 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010492 USE_INCLUDED_LIBINTL=yes
10493 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10494 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10495 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010496 fi
10497
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010498 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10499 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10500 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010501 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010502
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010503
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010504 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10505 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010506
10507cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010508#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010510
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010511 else
10512 USE_NLS=no
10513 fi
10514 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010515
Theodore Ts'oe1052142006-10-21 21:46:47 -040010516 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10517echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10518 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10519echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010521 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10522echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010523 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10524 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10525 gt_source="external libintl"
10526 else
10527 gt_source="libc"
10528 fi
10529 else
10530 gt_source="included intl directory"
10531 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010532 { echo "$as_me:$LINENO: result: $gt_source" >&5
10533echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010534 fi
10535
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010536 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010537
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010538 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10539 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010540 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10541echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10542 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10543echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010544
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010545 for element in $INCINTL; do
10546 haveit=
10547 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010548
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010549 acl_save_prefix="$prefix"
10550 prefix="$acl_final_prefix"
10551 acl_save_exec_prefix="$exec_prefix"
10552 exec_prefix="$acl_final_exec_prefix"
10553 eval x=\"$x\"
10554 exec_prefix="$acl_save_exec_prefix"
10555 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010556
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010557 if test "X$x" = "X$element"; then
10558 haveit=yes
10559 break
10560 fi
10561 done
10562 if test -z "$haveit"; then
10563 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10564 fi
10565 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010566
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010567 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010568
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010570cat >>confdefs.h <<\_ACEOF
10571#define HAVE_GETTEXT 1
10572_ACEOF
10573
10574
10575cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010576#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010578
10579 fi
10580
10581 POSUB=po
10582 fi
10583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010584
10585 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010586 BUILD_INCLUDED_LIBINTL=yes
10587 fi
10588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010589
10590
10591
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010592
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010593 nls_cv_header_intl=
10594 nls_cv_header_libgt=
10595
10596 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010598
10599 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010600
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010601
10602 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010603
10604
10605 if test "$USE_INCLUDED_LIBINTL" = yes; then
10606 INTLOBJS="\$(GETTOBJS)"
10607 fi
10608
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010609
10610 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010611
10612
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010613
10614 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010615
10616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010617
10618
10619
10620
10621
Theodore Ts'oe1052142006-10-21 21:46:47 -040010622{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10623echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10624set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10625if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010627else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010628 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010629SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010630all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010631 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010633# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010634case `${MAKE-make} -f conftest.make 2>/dev/null` in
10635 *@@@%%%=?*=@@@%%%*)
10636 eval ac_cv_prog_make_${ac_make}_set=yes;;
10637 *)
10638 eval ac_cv_prog_make_${ac_make}_set=no;;
10639esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010641fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010642if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10643 { echo "$as_me:$LINENO: result: yes" >&5
10644echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010645 SET_MAKE=
10646else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010647 { echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010649 SET_MAKE="MAKE=${MAKE-make}"
10650fi
10651
10652# Extract the first word of "ln", so it can be a program name with args.
10653set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010656if test "${ac_cv_path_LN+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010658else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010659 case $LN in
10660 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010661 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10662 ;;
10663 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665for as_dir in $PATH
10666do
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010670 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 -050010671 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10674 fi
10675done
10676done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010677IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010678
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010679 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10680 ;;
10681esac
10682fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010683LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010684if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010685 { echo "$as_me:$LINENO: result: $LN" >&5
10686echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010687else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010688 { echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010690fi
10691
Theodore Ts'oe1052142006-10-21 21:46:47 -040010692
10693{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10694echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010695LN_S=$as_ln_s
10696if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010697 { echo "$as_me:$LINENO: result: yes" >&5
10698echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010699else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010700 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10701echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010702fi
10703
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010704# Extract the first word of "mv", so it can be a program name with args.
10705set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010708if test "${ac_cv_path_MV+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010710else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711 case $MV in
10712 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10714 ;;
10715 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010722 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 -050010723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010729IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010731 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10732 ;;
10733esac
10734fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010735MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010736if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010737 { echo "$as_me:$LINENO: result: $MV" >&5
10738echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010739else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010740 { echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010742fi
10743
Theodore Ts'oe1052142006-10-21 21:46:47 -040010744
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010745# Extract the first word of "cp", so it can be a program name with args.
10746set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010749if test "${ac_cv_path_CP+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010751else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752 case $CP in
10753 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010754 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10755 ;;
10756 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758for as_dir in $PATH
10759do
10760 IFS=$as_save_IFS
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010763 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 -050010764 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 break 2
10767 fi
10768done
10769done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010770IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010771
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010772 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10773 ;;
10774esac
10775fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010776CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010777if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010778 { echo "$as_me:$LINENO: result: $CP" >&5
10779echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010780else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010781 { echo "$as_me:$LINENO: result: no" >&5
10782echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010783fi
10784
Theodore Ts'oe1052142006-10-21 21:46:47 -040010785
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010786# Extract the first word of "rm", so it can be a program name with args.
10787set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010790if test "${ac_cv_path_RM+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010792else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010793 case $RM in
10794 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10796 ;;
10797 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010804 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 -050010805 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010811IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010812
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010813 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10814 ;;
10815esac
10816fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010817RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010818if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010819 { echo "$as_me:$LINENO: result: $RM" >&5
10820echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010821else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010822 { echo "$as_me:$LINENO: result: no" >&5
10823echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010824fi
10825
Theodore Ts'oe1052142006-10-21 21:46:47 -040010826
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010827# Extract the first word of "chmod", so it can be a program name with args.
10828set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010831if test "${ac_cv_path_CHMOD+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010833else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010834 case $CHMOD in
10835 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010836 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10837 ;;
10838 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010845 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 -050010846 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010852IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010853
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010854 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10855 ;;
10856esac
10857fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010858CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010859if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010860 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10861echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010862else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010863 { echo "$as_me:$LINENO: result: no" >&5
10864echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010865fi
10866
Theodore Ts'oe1052142006-10-21 21:46:47 -040010867
Theodore Ts'o32237012005-01-17 19:13:39 -050010868for ac_prog in gawk mawk nawk awk
10869do
10870 # Extract the first word of "$ac_prog", so it can be a program name with args.
10871set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050010874if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010875 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010876else
Theodore Ts'o32237012005-01-17 19:13:39 -050010877 if test -n "$AWK"; then
10878 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010886 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 -050010887 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891done
10892done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010893IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010894
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010895fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010896fi
10897AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010898if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010899 { echo "$as_me:$LINENO: result: $AWK" >&5
10900echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010901else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010902 { echo "$as_me:$LINENO: result: no" >&5
10903echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010904fi
10905
Theodore Ts'oe1052142006-10-21 21:46:47 -040010906
Theodore Ts'o32237012005-01-17 19:13:39 -050010907 test -n "$AWK" && break
10908done
10909
Theodore Ts'oe1052142006-10-21 21:46:47 -040010910{ echo "$as_me:$LINENO: checking for egrep" >&5
10911echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10912if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10916 then ac_cv_path_EGREP="$GREP -E"
10917 else
10918 # Extract the first word of "egrep" to use in msg output
10919if test -z "$EGREP"; then
10920set dummy egrep; ac_prog_name=$2
10921if test "${ac_cv_path_EGREP+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10923else
10924 ac_path_EGREP_found=false
10925# Loop through the user's path and test for each of PROGNAME-LIST
10926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10928do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_prog in egrep; do
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010934 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040010935 # Check for GNU ac_path_EGREP and select it if it is found.
10936 # Check for GNU $ac_path_EGREP
10937case `"$ac_path_EGREP" --version 2>&1` in
10938*GNU*)
10939 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10940*)
10941 ac_count=0
10942 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10943 while :
10944 do
10945 cat "conftest.in" "conftest.in" >"conftest.tmp"
10946 mv "conftest.tmp" "conftest.in"
10947 cp "conftest.in" "conftest.nl"
10948 echo 'EGREP' >> "conftest.nl"
10949 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10951 ac_count=`expr $ac_count + 1`
10952 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10953 # Best one so far, save it but keep looking for a better one
10954 ac_cv_path_EGREP="$ac_path_EGREP"
10955 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050010956 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010957 # 10*(2^10) chars as input seems more than enough
10958 test $ac_count -gt 10 && break
10959 done
10960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10961esac
10962
10963
10964 $ac_path_EGREP_found && break 3
10965 done
10966done
10967
10968done
10969IFS=$as_save_IFS
10970
10971
Theodore Ts'o32237012005-01-17 19:13:39 -050010972fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010973
10974EGREP="$ac_cv_path_EGREP"
10975if test -z "$EGREP"; then
10976 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10977echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10978 { (exit 1); exit 1; }; }
10979fi
10980
10981else
10982 ac_cv_path_EGREP=$EGREP
10983fi
10984
10985
10986 fi
10987fi
10988{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10989echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
10990 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050010991
10992
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010993# Extract the first word of "sed", so it can be a program name with args.
10994set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010997if test "${ac_cv_path_SED+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010999else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011000 case $SED in
11001 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011002 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11003 ;;
11004 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006for as_dir in $PATH
11007do
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011011 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 -050011012 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11015 fi
11016done
11017done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011018IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011019
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011020 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11021 ;;
11022esac
11023fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011024SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011025if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011026 { echo "$as_me:$LINENO: result: $SED" >&5
11027echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011028else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011029 { echo "$as_me:$LINENO: result: no" >&5
11030echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011031fi
11032
Theodore Ts'oe1052142006-10-21 21:46:47 -040011033
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011034# Extract the first word of "perl", so it can be a program name with args.
11035set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011038if test "${ac_cv_path_PERL+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011041 case $PERL in
11042 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011043 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11044 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011045 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047for as_dir in $PATH
11048do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011052 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 -050011053 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11056 fi
11057done
11058done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011059IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011060
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011061 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11062 ;;
11063esac
11064fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011065PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011066if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011067 { echo "$as_me:$LINENO: result: $PERL" >&5
11068echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011069else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011070 { echo "$as_me:$LINENO: result: no" >&5
11071echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011072fi
11073
Theodore Ts'oe1052142006-10-21 21:46:47 -040011074
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011075# Extract the first word of "ldconfig", so it can be a program name with args.
11076set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011079if test "${ac_cv_path_LDCONFIG+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011081else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011082 case $LDCONFIG in
11083 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011084 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11085 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011086 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088for as_dir in $PATH
11089do
11090 IFS=$as_save_IFS
11091 test -z "$as_dir" && as_dir=.
11092 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011093 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 -050011094 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 break 2
11097 fi
11098done
11099done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011101
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011102 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11103 ;;
11104esac
11105fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011106LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011107if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011108 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11109echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011110else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011111 { echo "$as_me:$LINENO: result: no" >&5
11112echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011113fi
11114
Theodore Ts'oe1052142006-10-21 21:46:47 -040011115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011116if test -n "$ac_tool_prefix"; then
11117 # 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 +000011118set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011123else
11124 if test -n "$AR"; then
11125 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 -050011144AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011145if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011146 { echo "$as_me:$LINENO: result: $AR" >&5
11147echo "${ECHO_T}$AR" >&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_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011156 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011157 # Extract the first word of "ar", so it can be a program name with args.
11158set dummy ar; 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_AR+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_AR"; then
11165 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
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_AR=$ac_cv_prog_ac_ct_AR
11185if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011186 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11187echo "${ECHO_T}$ac_ct_AR" >&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_AR" = x; then
11194 AR="ar"
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 AR=$ac_ct_AR
11207 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011208else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011209 AR="$ac_cv_prog_AR"
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}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011214set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011219else
11220 if test -n "$RANLIB"; then
11221 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 -050011240RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011241if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011242 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11243echo "${ECHO_T}$RANLIB" >&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_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011252 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011253 # Extract the first word of "ranlib", so it can be a program name with args.
11254set dummy ranlib; 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_RANLIB+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_RANLIB"; then
11261 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11281if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011282 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11283echo "${ECHO_T}$ac_ct_RANLIB" >&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_RANLIB" = x; then
11290 RANLIB=":"
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 RANLIB=$ac_ct_RANLIB
11303 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011304else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011305 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011306fi
11307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011308if test -n "$ac_tool_prefix"; then
11309 # 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 +000011310set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011313if test "${ac_cv_prog_STRIP+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011315else
11316 if test -n "$STRIP"; then
11317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11318else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320for as_dir in $PATH
11321do
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011325 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 -050011326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
11329 fi
11330done
11331done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011332IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011333
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011334fi
11335fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011336STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011337if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011338 { echo "$as_me:$LINENO: result: $STRIP" >&5
11339echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011340else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011341 { echo "$as_me:$LINENO: result: no" >&5
11342echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011343fi
11344
Theodore Ts'oe1052142006-10-21 21:46:47 -040011345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011346fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011347if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011349 # Extract the first word of "strip", so it can be a program name with args.
11350set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011353if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011355else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011356 if test -n "$ac_ct_STRIP"; then
11357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011358else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011365 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 -050011366 ac_cv_prog_ac_ct_STRIP="strip"
11367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11369 fi
11370done
11371done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011372IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011374fi
11375fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11377if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011378 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11379echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011380else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011381 { echo "$as_me:$LINENO: result: no" >&5
11382echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011383fi
11384
Theodore Ts'oe1052142006-10-21 21:46:47 -040011385 if test "x$ac_ct_STRIP" = x; then
11386 STRIP=":"
11387 else
11388 case $cross_compiling:$ac_tool_warned in
11389yes:)
11390{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11391whose name does not start with the host triplet. If you think this
11392configuration is useful to you, please write to autoconf@gnu.org." >&5
11393echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11394whose name does not start with the host triplet. If you think this
11395configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11396ac_tool_warned=yes ;;
11397esac
11398 STRIP=$ac_ct_STRIP
11399 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011400else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011401 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011402fi
11403
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011404# Find a good install program. We prefer a C program (faster),
11405# so one script is as good as another. But avoid the broken or
11406# incompatible versions:
11407# SysV /etc/install, /usr/sbin/install
11408# SunOS /usr/etc/install
11409# IRIX /sbin/install
11410# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011411# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011412# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011413# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11414# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011415# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011416# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011417{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11418echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011419if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011420if test "${ac_cv_path_install+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011422else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424for as_dir in $PATH
11425do
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 # Account for people who put trailing slashes in PATH elements.
11429case $as_dir/ in
11430 ./ | .// | /cC/* | \
11431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11432 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11433 /usr/ucb/* ) ;;
11434 *)
11435 # OSF1 and SCO ODT 3.0 have their own names for install.
11436 # Don't use installbsd from OSF since it installs stuff as root
11437 # by default.
11438 for ac_prog in ginstall scoinst install; do
11439 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011440 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 +000011441 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011443 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011444 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011445 elif test $ac_prog = install &&
11446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11447 # program-specific install script used by HP pwplus--don't use.
11448 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011449 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011450 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11451 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011452 fi
11453 fi
11454 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455 done
11456 ;;
11457esac
11458done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011459IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011460
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011461
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011462fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011463 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011464 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011465 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011466 # As a last resort, use the slow shell script. Don't cache a
11467 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011468 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011469 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011470 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011471 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011472fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011473{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11474echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011475
11476# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11477# It thinks the first close brace ends the variable substitution.
11478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011481
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11483
Theodore Ts'o6c133521999-07-03 20:37:03 +000011484# See if we need a separate native compiler.
11485if test $cross_compiling = no; then
11486 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011487
Theodore Ts'o6c133521999-07-03 20:37:03 +000011488else
11489 for ac_prog in gcc cc
11490do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011492set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011495if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011497else
11498 if test -n "$BUILD_CC"; then
11499 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11500else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011503do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011507 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 -050011508 ac_cv_prog_BUILD_CC="$ac_prog"
11509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 break 2
11511 fi
11512done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011513done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011514IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516fi
11517fi
11518BUILD_CC=$ac_cv_prog_BUILD_CC
11519if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011520 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11521echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011522else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011523 { echo "$as_me:$LINENO: result: no" >&5
11524echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011525fi
11526
Theodore Ts'oe1052142006-10-21 21:46:47 -040011527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011528 test -n "$BUILD_CC" && break
11529done
11530
11531fi
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011561
Theodore Ts'o106ad962007-04-04 21:26:37 -040011562
11563
11564for 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 -050011565do
11566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011573ac_res=`eval echo '${'$as_ac_Header'}'`
11574 { echo "$as_me:$LINENO: result: $ac_res" >&5
11575echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011576else
11577 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011578{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011580cat >conftest.$ac_ext <<_ACEOF
11581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
11586$ac_includes_default
11587#include <$ac_header>
11588_ACEOF
11589rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011590if { (ac_try="$ac_compile"
11591case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594esac
11595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011602 (exit $ac_status); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011606 ac_header_compiler=yes
11607else
11608 echo "$as_me: failed program was:" >&5
11609sed 's/^/| /' conftest.$ac_ext >&5
11610
Theodore Ts'oe1052142006-10-21 21:46:47 -040011611 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011613
11614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11616echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011617
11618# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011621cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
11627#include <$ac_header>
11628_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011629if { (ac_try="$ac_cpp conftest.$ac_ext"
11630case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11633esac
11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011636 ac_status=$?
11637 grep -v '^ *+' conftest.er1 >conftest.err
11638 rm -f conftest.er1
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011641 (exit $ac_status); } >/dev/null && {
11642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11643 test ! -s conftest.err
11644 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011645 ac_header_preproc=yes
11646else
11647 echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
11650 ac_header_preproc=no
11651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011652
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011653rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011654{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11655echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011656
11657# So? What about this header?
11658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11659 yes:no: )
11660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11664 ac_header_preproc=yes
11665 ;;
11666 no:yes:* )
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011680 ;;
11681esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011682{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 eval "$as_ac_Header=\$ac_header_preproc"
11688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011689ac_res=`eval echo '${'$as_ac_Header'}'`
11690 { echo "$as_me:$LINENO: result: $ac_res" >&5
11691echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692
11693fi
11694if test `eval echo '${'$as_ac_Header'}'` = yes; then
11695 cat >>confdefs.h <<_ACEOF
11696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11697_ACEOF
11698
11699fi
11700
11701done
11702
11703
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011704
11705for ac_header in sys/disk.h sys/mount.h
11706do
11707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712else
11713 cat >conftest.$ac_ext <<_ACEOF
11714/* confdefs.h. */
11715_ACEOF
11716cat confdefs.h >>conftest.$ac_ext
11717cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h. */
11719
11720#if HAVE_SYS_QUEUE_H
11721#include <sys/queue.h>
11722#endif
11723
11724
11725#include <$ac_header>
11726_ACEOF
11727rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011728if { (ac_try="$ac_compile"
11729case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732esac
11733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011744 eval "$as_ac_Header=yes"
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011750fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011751
11752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011753fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011754ac_res=`eval echo '${'$as_ac_Header'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011757if test `eval echo '${'$as_ac_Header'}'` = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11760_ACEOF
11761
11762fi
11763
11764done
11765
11766
11767for ac_header in net/if.h
11768do
11769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011770{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775 cat >conftest.$ac_ext <<_ACEOF
11776/* confdefs.h. */
11777_ACEOF
11778cat confdefs.h >>conftest.$ac_ext
11779cat >>conftest.$ac_ext <<_ACEOF
11780/* end confdefs.h. */
11781
11782#if HAVE_SYS_TYPES_H
11783#include <sys/types.h>
11784#endif
11785#if HAVE_SYS_SOCKET
11786#include <sys/socket.h>
11787#endif
11788
11789
11790#include <$ac_header>
11791_ACEOF
11792rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011793if { (ac_try="$ac_compile"
11794case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011805 (exit $ac_status); } && {
11806 test -z "$ac_c_werror_flag" ||
11807 test ! -s conftest.err
11808 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011809 eval "$as_ac_Header=yes"
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
Theodore Ts'oe1052142006-10-21 21:46:47 -040011814 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011815fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011816
11817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011818fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011819ac_res=`eval echo '${'$as_ac_Header'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011822if test `eval echo '${'$as_ac_Header'}'` = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11825_ACEOF
11826
11827fi
11828
11829done
11830
11831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011832for ac_func in vprintf
11833do
11834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011835{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 cat >conftest.$ac_ext <<_ACEOF
11841/* confdefs.h. */
11842_ACEOF
11843cat confdefs.h >>conftest.$ac_ext
11844cat >>conftest.$ac_ext <<_ACEOF
11845/* end confdefs.h. */
11846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11848#define $ac_func innocuous_$ac_func
11849
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011850/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011851 which can conflict with char $ac_func (); below.
11852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11853 <limits.h> exists even on freestanding compilers. */
11854
11855#ifdef __STDC__
11856# include <limits.h>
11857#else
11858# include <assert.h>
11859#endif
11860
11861#undef $ac_func
11862
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863/* Override any GCC internal prototype to avoid an error.
11864 Use char because int might match the return type of a GCC
11865 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011866#ifdef __cplusplus
11867extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011870/* The GNU C library defines this for functions which it implements
11871 to always fail with ENOSYS. Some functions are actually named
11872 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011873#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011874choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011875#endif
11876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011877int
11878main ()
11879{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011880return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011881 ;
11882 return 0;
11883}
11884_ACEOF
11885rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011886if { (ac_try="$ac_link"
11887case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11890esac
11891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011898 (exit $ac_status); } && {
11899 test -z "$ac_c_werror_flag" ||
11900 test ! -s conftest.err
11901 } && test -s conftest$ac_exeext &&
11902 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011903 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011904else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011907
Theodore Ts'oe1052142006-10-21 21:46:47 -040011908 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011909fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011910
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011912 conftest$ac_exeext conftest.$ac_ext
11913fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011914ac_res=`eval echo '${'$as_ac_var'}'`
11915 { echo "$as_me:$LINENO: result: $ac_res" >&5
11916echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011917if test `eval echo '${'$as_ac_var'}'` = yes; then
11918 cat >>confdefs.h <<_ACEOF
11919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11920_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011921
Theodore Ts'oe1052142006-10-21 21:46:47 -040011922{ echo "$as_me:$LINENO: checking for _doprnt" >&5
11923echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924if test "${ac_cv_func__doprnt+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011926else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011927 cat >conftest.$ac_ext <<_ACEOF
11928/* confdefs.h. */
11929_ACEOF
11930cat confdefs.h >>conftest.$ac_ext
11931cat >>conftest.$ac_ext <<_ACEOF
11932/* end confdefs.h. */
11933/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11935#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011936
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011937/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938 which can conflict with char _doprnt (); below.
11939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11940 <limits.h> exists even on freestanding compilers. */
11941
11942#ifdef __STDC__
11943# include <limits.h>
11944#else
11945# include <assert.h>
11946#endif
11947
11948#undef _doprnt
11949
Theodore Ts'oe1052142006-10-21 21:46:47 -040011950/* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011953#ifdef __cplusplus
11954extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011956char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011957/* The GNU C library defines this for functions which it implements
11958 to always fail with ENOSYS. Some functions are actually named
11959 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011960#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011961choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011962#endif
11963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011964int
11965main ()
11966{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011967return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011968 ;
11969 return 0;
11970}
11971_ACEOF
11972rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011973if { (ac_try="$ac_link"
11974case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977esac
11978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest$ac_exeext &&
11989 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011992 echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011994
Theodore Ts'oe1052142006-10-21 21:46:47 -040011995 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011997
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999 conftest$ac_exeext conftest.$ac_ext
12000fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012001{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12002echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012003if test $ac_cv_func__doprnt = yes; then
12004
12005cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012006#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012007_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012008
12009fi
12010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011fi
12012done
12013
12014
Theodore Ts'oe1052142006-10-21 21:46:47 -040012015{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12016echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012017if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012019else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020 cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012026#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012028int
12029main ()
12030{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012031static struct dirent ac_aggr;
12032if (ac_aggr.d_reclen)
12033return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012039if { (ac_try="$ac_compile"
12040case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012055 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012056else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
Theodore Ts'oe1052142006-10-21 21:46:47 -040012060 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012061/* confdefs.h. */
12062_ACEOF
12063cat confdefs.h >>conftest.$ac_ext
12064cat >>conftest.$ac_ext <<_ACEOF
12065/* end confdefs.h. */
12066#include <dirent.h>
12067
12068int
12069main ()
12070{
12071static struct dirent ac_aggr;
12072if (sizeof ac_aggr.d_reclen)
12073return 0;
12074 ;
12075 return 0;
12076}
12077_ACEOF
12078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012079if { (ac_try="$ac_compile"
12080case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083esac
12084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012091 (exit $ac_status); } && {
12092 test -z "$ac_c_werror_flag" ||
12093 test ! -s conftest.err
12094 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012095 ac_cv_member_struct_dirent_d_reclen=yes
12096else
12097 echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
Theodore Ts'oe1052142006-10-21 21:46:47 -040012100 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012102
12103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012105
12106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012108{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12109echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012110if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12111 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012112#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012113_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012114
12115fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012116
Theodore Ts'oe1052142006-10-21 21:46:47 -040012117{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12118echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012119if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012121else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012122 cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012128#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012129
Theodore Ts'oe1052142006-10-21 21:46:47 -040012130typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012131int
12132main ()
12133{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012134if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012135 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012136if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012137 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012138 ;
12139 return 0;
12140}
12141_ACEOF
12142rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012143if { (ac_try="$ac_compile"
12144case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12147esac
12148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012155 (exit $ac_status); } && {
12156 test -z "$ac_c_werror_flag" ||
12157 test ! -s conftest.err
12158 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012159 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012160else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161 echo "$as_me: failed program was:" >&5
12162sed 's/^/| /' conftest.$ac_ext >&5
12163
Theodore Ts'oe1052142006-10-21 21:46:47 -040012164 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166
12167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012168fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012169{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12170echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012171if test $ac_cv_type_ssize_t = yes; then
12172 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012173#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012175
12176fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012177
Theodore Ts'oe1052142006-10-21 21:46:47 -040012178{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12179echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012180if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012182else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012183 cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h. */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012189#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012190
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191int
12192main ()
12193{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012194#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012195 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012196#endif
12197
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198 ;
12199 return 0;
12200}
12201_ACEOF
12202rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012203if { (ac_try="$ac_compile"
12204case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207esac
12208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012215 (exit $ac_status); } && {
12216 test -z "$ac_c_werror_flag" ||
12217 test ! -s conftest.err
12218 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012219 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012220else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012221 echo "$as_me: failed program was:" >&5
12222sed 's/^/| /' conftest.$ac_ext >&5
12223
Theodore Ts'oe1052142006-10-21 21:46:47 -040012224 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012225fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012226
12227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012229{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12230echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012231if test $ac_cv_have_decl_llseek = yes; then
12232 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012233#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012234_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012235
12236fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012237
Theodore Ts'oe1052142006-10-21 21:46:47 -040012238{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12239echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012240if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012241 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012242else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243 cat >conftest.$ac_ext <<_ACEOF
12244/* confdefs.h. */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012249#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012250 #define _LARGEFILE64_SOURCE
12251 #include <unistd.h>
12252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012253int
12254main ()
12255{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012256#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012257 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012258#endif
12259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012260 ;
12261 return 0;
12262}
12263_ACEOF
12264rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012265if { (ac_try="$ac_compile"
12266case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269esac
12270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012281 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
Theodore Ts'oe1052142006-10-21 21:46:47 -040012286 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012287fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012288
12289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012290fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012291{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12292echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012293if test $ac_cv_have_decl_lseek64 = yes; then
12294 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012295#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012296_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012297
12298fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012299
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012300if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012302 ac_cv_sizeof_short=2
12303 ac_cv_sizeof_int=4
12304 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012305 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012306 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12307echo "$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 +000012308fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012309{ echo "$as_me:$LINENO: checking for short" >&5
12310echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012311if test "${ac_cv_type_short+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314 cat >conftest.$ac_ext <<_ACEOF
12315/* confdefs.h. */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */
12320$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012321typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012322int
12323main ()
12324{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012325if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012326 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012327if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012328 return 0;
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_cv_type_short=yes
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_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012356fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012357
Theodore Ts'oe1052142006-10-21 21:46:47 -040012358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359fi
12360{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12361echo "${ECHO_T}$ac_cv_type_short" >&6; }
12362
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012363# The cast to long int works around a bug in the HP C Compiler
12364# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12365# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12366# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012367{ echo "$as_me:$LINENO: checking size of short" >&5
12368echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012369if test "${ac_cv_sizeof_short+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12371else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012372 if test "$cross_compiling" = yes; then
12373 # Depending upon the size, compute the lo and hi bounds.
12374cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
12380$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012381 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012382int
12383main ()
12384{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012385static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012386test_array [0] = 0
12387
12388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012393if { (ac_try="$ac_compile"
12394case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012409 ac_lo=0 ac_mid=0
12410 while :; do
12411 cat >conftest.$ac_ext <<_ACEOF
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
12417$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012418 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012419int
12420main ()
12421{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012422static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012423test_array [0] = 0
12424
12425 ;
12426 return 0;
12427}
12428_ACEOF
12429rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012430if { (ac_try="$ac_compile"
12431case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434esac
12435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012442 (exit $ac_status); } && {
12443 test -z "$ac_c_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012446 ac_hi=$ac_mid; break
12447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
Theodore Ts'oe1052142006-10-21 21:46:47 -040012451 ac_lo=`expr $ac_mid + 1`
12452 if test $ac_lo -le $ac_mid; then
12453 ac_lo= ac_hi=
12454 break
12455 fi
12456 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012457fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012458
12459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460 done
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
Theodore Ts'oe1052142006-10-21 21:46:47 -040012465 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012472 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012473int
12474main ()
12475{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012476static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477test_array [0] = 0
12478
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012484if { (ac_try="$ac_compile"
12485case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12488esac
12489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012496 (exit $ac_status); } && {
12497 test -z "$ac_c_werror_flag" ||
12498 test ! -s conftest.err
12499 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012500 ac_hi=-1 ac_mid=-1
12501 while :; do
12502 cat >conftest.$ac_ext <<_ACEOF
12503/* confdefs.h. */
12504_ACEOF
12505cat confdefs.h >>conftest.$ac_ext
12506cat >>conftest.$ac_ext <<_ACEOF
12507/* end confdefs.h. */
12508$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012509 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012510int
12511main ()
12512{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012513static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514test_array [0] = 0
12515
12516 ;
12517 return 0;
12518}
12519_ACEOF
12520rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012521if { (ac_try="$ac_compile"
12522case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12525esac
12526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012533 (exit $ac_status); } && {
12534 test -z "$ac_c_werror_flag" ||
12535 test ! -s conftest.err
12536 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012537 ac_lo=$ac_mid; break
12538else
12539 echo "$as_me: failed program was:" >&5
12540sed 's/^/| /' conftest.$ac_ext >&5
12541
Theodore Ts'oe1052142006-10-21 21:46:47 -040012542 ac_hi=`expr '(' $ac_mid ')' - 1`
12543 if test $ac_mid -le $ac_hi; then
12544 ac_lo= ac_hi=
12545 break
12546 fi
12547 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012548fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012549
12550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012551 done
12552else
12553 echo "$as_me: failed program was:" >&5
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
Theodore Ts'oe1052142006-10-21 21:46:47 -040012556 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012558
12559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012560fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012561
12562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012563# Binary search between lo and hi bounds.
12564while test "x$ac_lo" != "x$ac_hi"; do
12565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12566 cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
12572$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012573 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012574int
12575main ()
12576{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012577static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012578test_array [0] = 0
12579
12580 ;
12581 return 0;
12582}
12583_ACEOF
12584rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012585if { (ac_try="$ac_compile"
12586case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589esac
12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012601 ac_hi=$ac_mid
12602else
12603 echo "$as_me: failed program was:" >&5
12604sed 's/^/| /' conftest.$ac_ext >&5
12605
Theodore Ts'oe1052142006-10-21 21:46:47 -040012606 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608
12609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012610done
12611case $ac_lo in
12612?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012613'') if test "$ac_cv_type_short" = yes; then
12614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012616echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012617See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012618 { (exit 77); exit 77; }; }
12619 else
12620 ac_cv_sizeof_short=0
12621 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012622esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012623else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012624 cat >conftest.$ac_ext <<_ACEOF
12625/* confdefs.h. */
12626_ACEOF
12627cat confdefs.h >>conftest.$ac_ext
12628cat >>conftest.$ac_ext <<_ACEOF
12629/* end confdefs.h. */
12630$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012631 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012632static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12633static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012634#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635#include <stdlib.h>
12636int
12637main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012638{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012639
12640 FILE *f = fopen ("conftest.val", "w");
12641 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012642 return 1;
12643 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012644 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012645 long int i = longval ();
12646 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12647 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012648 fprintf (f, "%ld\n", i);
12649 }
12650 else
12651 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012652 unsigned long int i = ulongval ();
12653 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12654 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012655 fprintf (f, "%lu\n", i);
12656 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012657 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012658
12659 ;
12660 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012661}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012662_ACEOF
12663rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664if { (ac_try="$ac_link"
12665case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668esac
12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012674 { (case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677esac
12678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012684else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012685 echo "$as_me: program exited with status $ac_status" >&5
12686echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012690if test "$ac_cv_type_short" = yes; then
12691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012692See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012693echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012694See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012695 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012696 else
12697 ac_cv_sizeof_short=0
12698 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012699fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012700rm -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 -050012701fi
12702rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012703fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012704{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12705echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012706
12707
12708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012709cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012710#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012711_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012712
12713
Theodore Ts'oe1052142006-10-21 21:46:47 -040012714{ echo "$as_me:$LINENO: checking for int" >&5
12715echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012716if test "${ac_cv_type_int+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718else
12719 cat >conftest.$ac_ext <<_ACEOF
12720/* confdefs.h. */
12721_ACEOF
12722cat confdefs.h >>conftest.$ac_ext
12723cat >>conftest.$ac_ext <<_ACEOF
12724/* end confdefs.h. */
12725$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012726typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012727int
12728main ()
12729{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012730if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012732if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012733 return 0;
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_cv_type_int=yes
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_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012761fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012762
Theodore Ts'oe1052142006-10-21 21:46:47 -040012763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764fi
12765{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12766echo "${ECHO_T}$ac_cv_type_int" >&6; }
12767
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012768# The cast to long int works around a bug in the HP C Compiler
12769# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12770# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12771# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012772{ echo "$as_me:$LINENO: checking size of int" >&5
12773echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774if test "${ac_cv_sizeof_int+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012777 if test "$cross_compiling" = yes; then
12778 # Depending upon the size, compute the lo and hi bounds.
12779cat >conftest.$ac_ext <<_ACEOF
12780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
12785$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012786 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012787int
12788main ()
12789{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012790static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012791test_array [0] = 0
12792
12793 ;
12794 return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012798if { (ac_try="$ac_compile"
12799case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012810 (exit $ac_status); } && {
12811 test -z "$ac_c_werror_flag" ||
12812 test ! -s conftest.err
12813 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012814 ac_lo=0 ac_mid=0
12815 while :; do
12816 cat >conftest.$ac_ext <<_ACEOF
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012823 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012824int
12825main ()
12826{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012827static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012828test_array [0] = 0
12829
12830 ;
12831 return 0;
12832}
12833_ACEOF
12834rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012835if { (ac_try="$ac_compile"
12836case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12839esac
12840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012847 (exit $ac_status); } && {
12848 test -z "$ac_c_werror_flag" ||
12849 test ! -s conftest.err
12850 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012851 ac_hi=$ac_mid; break
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
Theodore Ts'oe1052142006-10-21 21:46:47 -040012856 ac_lo=`expr $ac_mid + 1`
12857 if test $ac_lo -le $ac_mid; then
12858 ac_lo= ac_hi=
12859 break
12860 fi
12861 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012863
12864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012865 done
12866else
12867 echo "$as_me: failed program was:" >&5
12868sed 's/^/| /' conftest.$ac_ext >&5
12869
Theodore Ts'oe1052142006-10-21 21:46:47 -040012870 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012871/* confdefs.h. */
12872_ACEOF
12873cat confdefs.h >>conftest.$ac_ext
12874cat >>conftest.$ac_ext <<_ACEOF
12875/* end confdefs.h. */
12876$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012877 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012878int
12879main ()
12880{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012881static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012882test_array [0] = 0
12883
12884 ;
12885 return 0;
12886}
12887_ACEOF
12888rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012889if { (ac_try="$ac_compile"
12890case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893esac
12894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012901 (exit $ac_status); } && {
12902 test -z "$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12904 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012905 ac_hi=-1 ac_mid=-1
12906 while :; do
12907 cat >conftest.$ac_ext <<_ACEOF
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
12913$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012914 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915int
12916main ()
12917{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012918static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012919test_array [0] = 0
12920
12921 ;
12922 return 0;
12923}
12924_ACEOF
12925rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012926if { (ac_try="$ac_compile"
12927case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930esac
12931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012938 (exit $ac_status); } && {
12939 test -z "$ac_c_werror_flag" ||
12940 test ! -s conftest.err
12941 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012942 ac_lo=$ac_mid; break
12943else
12944 echo "$as_me: failed program was:" >&5
12945sed 's/^/| /' conftest.$ac_ext >&5
12946
Theodore Ts'oe1052142006-10-21 21:46:47 -040012947 ac_hi=`expr '(' $ac_mid ')' - 1`
12948 if test $ac_mid -le $ac_hi; then
12949 ac_lo= ac_hi=
12950 break
12951 fi
12952 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012954
12955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012956 done
12957else
12958 echo "$as_me: failed program was:" >&5
12959sed 's/^/| /' conftest.$ac_ext >&5
12960
Theodore Ts'oe1052142006-10-21 21:46:47 -040012961 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012962fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012963
12964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012965fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012966
12967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012968# Binary search between lo and hi bounds.
12969while test "x$ac_lo" != "x$ac_hi"; do
12970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12971 cat >conftest.$ac_ext <<_ACEOF
12972/* confdefs.h. */
12973_ACEOF
12974cat confdefs.h >>conftest.$ac_ext
12975cat >>conftest.$ac_ext <<_ACEOF
12976/* end confdefs.h. */
12977$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012978 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012979int
12980main ()
12981{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012982static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983test_array [0] = 0
12984
12985 ;
12986 return 0;
12987}
12988_ACEOF
12989rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012990if { (ac_try="$ac_compile"
12991case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994esac
12995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013006 ac_hi=$ac_mid
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
Theodore Ts'oe1052142006-10-21 21:46:47 -040013011 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013013
13014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013015done
13016case $ac_lo in
13017?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013018'') if test "$ac_cv_type_int" = yes; then
13019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013020See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013021echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013022See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013023 { (exit 77); exit 77; }; }
13024 else
13025 ac_cv_sizeof_int=0
13026 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013027esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013029 cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h. */
13035$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013036 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013037static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13038static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013039#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040#include <stdlib.h>
13041int
13042main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013043{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013044
13045 FILE *f = fopen ("conftest.val", "w");
13046 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013047 return 1;
13048 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013049 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013050 long int i = longval ();
13051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13052 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013053 fprintf (f, "%ld\n", i);
13054 }
13055 else
13056 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013057 unsigned long int i = ulongval ();
13058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13059 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013060 fprintf (f, "%lu\n", i);
13061 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013062 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013063
13064 ;
13065 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013066}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013067_ACEOF
13068rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013069if { (ac_try="$ac_link"
13070case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073esac
13074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013089else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013090 echo "$as_me: program exited with status $ac_status" >&5
13091echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013095if test "$ac_cv_type_int" = yes; then
13096 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013097See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013098echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013099See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013100 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013101 else
13102 ac_cv_sizeof_int=0
13103 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013105rm -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 -050013106fi
13107rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013108fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013109{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13110echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013111
13112
13113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013114cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013115#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013116_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013117
13118
Theodore Ts'oe1052142006-10-21 21:46:47 -040013119{ echo "$as_me:$LINENO: checking for long" >&5
13120echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013121if test "${ac_cv_type_long+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123else
13124 cat >conftest.$ac_ext <<_ACEOF
13125/* confdefs.h. */
13126_ACEOF
13127cat confdefs.h >>conftest.$ac_ext
13128cat >>conftest.$ac_ext <<_ACEOF
13129/* end confdefs.h. */
13130$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013131typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013132int
13133main ()
13134{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013135if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013136 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013137if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013138 return 0;
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_cv_type_long=yes
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_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013166fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013167
Theodore Ts'oe1052142006-10-21 21:46:47 -040013168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169fi
13170{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13171echo "${ECHO_T}$ac_cv_type_long" >&6; }
13172
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013173# The cast to long int works around a bug in the HP C Compiler
13174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13176# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013177{ echo "$as_me:$LINENO: checking size of long" >&5
13178echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013179if test "${ac_cv_sizeof_long+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013182 if test "$cross_compiling" = yes; then
13183 # Depending upon the size, compute the lo and hi bounds.
13184cat >conftest.$ac_ext <<_ACEOF
13185/* confdefs.h. */
13186_ACEOF
13187cat confdefs.h >>conftest.$ac_ext
13188cat >>conftest.$ac_ext <<_ACEOF
13189/* end confdefs.h. */
13190$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013191 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013192int
13193main ()
13194{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013195static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013196test_array [0] = 0
13197
13198 ;
13199 return 0;
13200}
13201_ACEOF
13202rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013203if { (ac_try="$ac_compile"
13204case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207esac
13208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013219 ac_lo=0 ac_mid=0
13220 while :; do
13221 cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
13227$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013228 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013229int
13230main ()
13231{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013232static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013233test_array [0] = 0
13234
13235 ;
13236 return 0;
13237}
13238_ACEOF
13239rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013240if { (ac_try="$ac_compile"
13241case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013252 (exit $ac_status); } && {
13253 test -z "$ac_c_werror_flag" ||
13254 test ! -s conftest.err
13255 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013256 ac_hi=$ac_mid; break
13257else
13258 echo "$as_me: failed program was:" >&5
13259sed 's/^/| /' conftest.$ac_ext >&5
13260
Theodore Ts'oe1052142006-10-21 21:46:47 -040013261 ac_lo=`expr $ac_mid + 1`
13262 if test $ac_lo -le $ac_mid; then
13263 ac_lo= ac_hi=
13264 break
13265 fi
13266 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013267fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013268
13269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013270 done
13271else
13272 echo "$as_me: failed program was:" >&5
13273sed 's/^/| /' conftest.$ac_ext >&5
13274
Theodore Ts'oe1052142006-10-21 21:46:47 -040013275 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013276/* confdefs.h. */
13277_ACEOF
13278cat confdefs.h >>conftest.$ac_ext
13279cat >>conftest.$ac_ext <<_ACEOF
13280/* end confdefs.h. */
13281$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013282 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013283int
13284main ()
13285{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013286static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013287test_array [0] = 0
13288
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013294if { (ac_try="$ac_compile"
13295case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298esac
13299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013306 (exit $ac_status); } && {
13307 test -z "$ac_c_werror_flag" ||
13308 test ! -s conftest.err
13309 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013310 ac_hi=-1 ac_mid=-1
13311 while :; do
13312 cat >conftest.$ac_ext <<_ACEOF
13313/* confdefs.h. */
13314_ACEOF
13315cat confdefs.h >>conftest.$ac_ext
13316cat >>conftest.$ac_ext <<_ACEOF
13317/* end confdefs.h. */
13318$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013319 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013320int
13321main ()
13322{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013323static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013324test_array [0] = 0
13325
13326 ;
13327 return 0;
13328}
13329_ACEOF
13330rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013331if { (ac_try="$ac_compile"
13332case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335esac
13336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013347 ac_lo=$ac_mid; break
13348else
13349 echo "$as_me: failed program was:" >&5
13350sed 's/^/| /' conftest.$ac_ext >&5
13351
Theodore Ts'oe1052142006-10-21 21:46:47 -040013352 ac_hi=`expr '(' $ac_mid ')' - 1`
13353 if test $ac_mid -le $ac_hi; then
13354 ac_lo= ac_hi=
13355 break
13356 fi
13357 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013358fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013359
13360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013361 done
13362else
13363 echo "$as_me: failed program was:" >&5
13364sed 's/^/| /' conftest.$ac_ext >&5
13365
Theodore Ts'oe1052142006-10-21 21:46:47 -040013366 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013368
13369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013370fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013371
13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013373# Binary search between lo and hi bounds.
13374while test "x$ac_lo" != "x$ac_hi"; do
13375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13376 cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h. */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
13381/* end confdefs.h. */
13382$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013383 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013384int
13385main ()
13386{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013387static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013388test_array [0] = 0
13389
13390 ;
13391 return 0;
13392}
13393_ACEOF
13394rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013395if { (ac_try="$ac_compile"
13396case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399esac
13400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013407 (exit $ac_status); } && {
13408 test -z "$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013411 ac_hi=$ac_mid
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
Theodore Ts'oe1052142006-10-21 21:46:47 -040013416 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013418
13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013420done
13421case $ac_lo in
13422?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013423'') if test "$ac_cv_type_long" = yes; then
13424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013425See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013426echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013427See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013428 { (exit 77); exit 77; }; }
13429 else
13430 ac_cv_sizeof_long=0
13431 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013432esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013433else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013434 cat >conftest.$ac_ext <<_ACEOF
13435/* confdefs.h. */
13436_ACEOF
13437cat confdefs.h >>conftest.$ac_ext
13438cat >>conftest.$ac_ext <<_ACEOF
13439/* end confdefs.h. */
13440$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013441 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013442static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13443static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013444#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013445#include <stdlib.h>
13446int
13447main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013448{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013449
13450 FILE *f = fopen ("conftest.val", "w");
13451 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013452 return 1;
13453 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013454 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013455 long int i = longval ();
13456 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13457 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013458 fprintf (f, "%ld\n", i);
13459 }
13460 else
13461 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013462 unsigned long int i = ulongval ();
13463 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13464 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013465 fprintf (f, "%lu\n", i);
13466 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013467 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013468
13469 ;
13470 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013471}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013472_ACEOF
13473rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013474if { (ac_try="$ac_link"
13475case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487esac
13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013494else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013495 echo "$as_me: program exited with status $ac_status" >&5
13496echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
13499( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013500if test "$ac_cv_type_long" = yes; then
13501 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013502See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013503echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013504See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013505 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013506 else
13507 ac_cv_sizeof_long=0
13508 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013510rm -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 -050013511fi
13512rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013514{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13515echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013516
13517
13518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013519cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013520#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013521_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013522
13523
Theodore Ts'oe1052142006-10-21 21:46:47 -040013524{ echo "$as_me:$LINENO: checking for long long" >&5
13525echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013526if test "${ac_cv_type_long_long+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528else
13529 cat >conftest.$ac_ext <<_ACEOF
13530/* confdefs.h. */
13531_ACEOF
13532cat confdefs.h >>conftest.$ac_ext
13533cat >>conftest.$ac_ext <<_ACEOF
13534/* end confdefs.h. */
13535$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013536typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013537int
13538main ()
13539{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013540if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013541 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013542if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013543 return 0;
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_cv_type_long_long=yes
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_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013571fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013572
Theodore Ts'oe1052142006-10-21 21:46:47 -040013573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13574fi
13575{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13576echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13577
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013578# The cast to long int works around a bug in the HP C Compiler
13579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13581# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013582{ echo "$as_me:$LINENO: checking size of long long" >&5
13583echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013584if test "${ac_cv_sizeof_long_long+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013587 if test "$cross_compiling" = yes; then
13588 # Depending upon the size, compute the lo and hi bounds.
13589cat >conftest.$ac_ext <<_ACEOF
13590/* confdefs.h. */
13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
13595$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013596 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013597int
13598main ()
13599{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013600static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013601test_array [0] = 0
13602
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013608if { (ac_try="$ac_compile"
13609case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013624 ac_lo=0 ac_mid=0
13625 while :; do
13626 cat >conftest.$ac_ext <<_ACEOF
13627/* confdefs.h. */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h. */
13632$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013633 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013634int
13635main ()
13636{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013637static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013638test_array [0] = 0
13639
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013645if { (ac_try="$ac_compile"
13646case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013657 (exit $ac_status); } && {
13658 test -z "$ac_c_werror_flag" ||
13659 test ! -s conftest.err
13660 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013661 ac_hi=$ac_mid; break
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
Theodore Ts'oe1052142006-10-21 21:46:47 -040013666 ac_lo=`expr $ac_mid + 1`
13667 if test $ac_lo -le $ac_mid; then
13668 ac_lo= ac_hi=
13669 break
13670 fi
13671 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013672fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013673
13674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013675 done
13676else
13677 echo "$as_me: failed program was:" >&5
13678sed 's/^/| /' conftest.$ac_ext >&5
13679
Theodore Ts'oe1052142006-10-21 21:46:47 -040013680 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013681/* confdefs.h. */
13682_ACEOF
13683cat confdefs.h >>conftest.$ac_ext
13684cat >>conftest.$ac_ext <<_ACEOF
13685/* end confdefs.h. */
13686$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013687 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013688int
13689main ()
13690{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013691static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013692test_array [0] = 0
13693
13694 ;
13695 return 0;
13696}
13697_ACEOF
13698rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013699if { (ac_try="$ac_compile"
13700case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703esac
13704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013711 (exit $ac_status); } && {
13712 test -z "$ac_c_werror_flag" ||
13713 test ! -s conftest.err
13714 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013715 ac_hi=-1 ac_mid=-1
13716 while :; do
13717 cat >conftest.$ac_ext <<_ACEOF
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
13723$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013724 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013725int
13726main ()
13727{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013728static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013729test_array [0] = 0
13730
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013736if { (ac_try="$ac_compile"
13737case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013748 (exit $ac_status); } && {
13749 test -z "$ac_c_werror_flag" ||
13750 test ! -s conftest.err
13751 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013752 ac_lo=$ac_mid; break
13753else
13754 echo "$as_me: failed program was:" >&5
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
Theodore Ts'oe1052142006-10-21 21:46:47 -040013757 ac_hi=`expr '(' $ac_mid ')' - 1`
13758 if test $ac_mid -le $ac_hi; then
13759 ac_lo= ac_hi=
13760 break
13761 fi
13762 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013763fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013764
13765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013766 done
13767else
13768 echo "$as_me: failed program was:" >&5
13769sed 's/^/| /' conftest.$ac_ext >&5
13770
Theodore Ts'oe1052142006-10-21 21:46:47 -040013771 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013772fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013773
13774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013775fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013776
13777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013778# Binary search between lo and hi bounds.
13779while test "x$ac_lo" != "x$ac_hi"; do
13780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13781 cat >conftest.$ac_ext <<_ACEOF
13782/* confdefs.h. */
13783_ACEOF
13784cat confdefs.h >>conftest.$ac_ext
13785cat >>conftest.$ac_ext <<_ACEOF
13786/* end confdefs.h. */
13787$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013788 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013789int
13790main ()
13791{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013792static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013793test_array [0] = 0
13794
13795 ;
13796 return 0;
13797}
13798_ACEOF
13799rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013800if { (ac_try="$ac_compile"
13801case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804esac
13805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013816 ac_hi=$ac_mid
13817else
13818 echo "$as_me: failed program was:" >&5
13819sed 's/^/| /' conftest.$ac_ext >&5
13820
Theodore Ts'oe1052142006-10-21 21:46:47 -040013821 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013823
13824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013825done
13826case $ac_lo in
13827?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013828'') if test "$ac_cv_type_long_long" = yes; then
13829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013830See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013831echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013832See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013833 { (exit 77); exit 77; }; }
13834 else
13835 ac_cv_sizeof_long_long=0
13836 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013837esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013838else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013839 cat >conftest.$ac_ext <<_ACEOF
13840/* confdefs.h. */
13841_ACEOF
13842cat confdefs.h >>conftest.$ac_ext
13843cat >>conftest.$ac_ext <<_ACEOF
13844/* end confdefs.h. */
13845$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013846 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013847static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13848static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013849#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013850#include <stdlib.h>
13851int
13852main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013853{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013854
13855 FILE *f = fopen ("conftest.val", "w");
13856 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013857 return 1;
13858 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013859 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013860 long int i = longval ();
13861 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13862 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013863 fprintf (f, "%ld\n", i);
13864 }
13865 else
13866 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013867 unsigned long int i = ulongval ();
13868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13869 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013870 fprintf (f, "%lu\n", i);
13871 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013872 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013873
13874 ;
13875 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013876}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013877_ACEOF
13878rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013879if { (ac_try="$ac_link"
13880case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883esac
13884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013886 ac_status=$?
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013889 { (case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13892esac
13893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013899else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013900 echo "$as_me: program exited with status $ac_status" >&5
13901echo "$as_me: failed program was:" >&5
13902sed 's/^/| /' conftest.$ac_ext >&5
13903
13904( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013905if test "$ac_cv_type_long_long" = yes; then
13906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013907See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013908echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013909See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013910 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013911 else
13912 ac_cv_sizeof_long_long=0
13913 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013914fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013915rm -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 -050013916fi
13917rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013919{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13920echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013921
13922
13923
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013924cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013925#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013926_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013927
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013928
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013929SIZEOF_SHORT=$ac_cv_sizeof_short
13930SIZEOF_INT=$ac_cv_sizeof_int
13931SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013932SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13933
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013934
13935
13936
Theodore Ts'oe1052142006-10-21 21:46:47 -040013937{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13938echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939if test "${ac_cv_c_bigendian+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013941else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013942 # See if sys/param.h defines the BYTE_ORDER macro.
13943cat >conftest.$ac_ext <<_ACEOF
13944/* confdefs.h. */
13945_ACEOF
13946cat confdefs.h >>conftest.$ac_ext
13947cat >>conftest.$ac_ext <<_ACEOF
13948/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013949#include <sys/types.h>
13950#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013952int
13953main ()
13954{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013955#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13956 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013957 bogus endian macros
13958#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959
13960 ;
13961 return 0;
13962}
13963_ACEOF
13964rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013965if { (ac_try="$ac_compile"
13966case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013977 (exit $ac_status); } && {
13978 test -z "$ac_c_werror_flag" ||
13979 test ! -s conftest.err
13980 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013981 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013982cat >conftest.$ac_ext <<_ACEOF
13983/* confdefs.h. */
13984_ACEOF
13985cat confdefs.h >>conftest.$ac_ext
13986cat >>conftest.$ac_ext <<_ACEOF
13987/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013988#include <sys/types.h>
13989#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013990
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013991int
13992main ()
13993{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013994#if BYTE_ORDER != BIG_ENDIAN
13995 not big endian
13996#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013997
13998 ;
13999 return 0;
14000}
14001_ACEOF
14002rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014003if { (ac_try="$ac_compile"
14004case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014010 ac_status=$?
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014015 (exit $ac_status); } && {
14016 test -z "$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14018 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014019 ac_cv_c_bigendian=yes
14020else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014021 echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
Theodore Ts'oe1052142006-10-21 21:46:47 -040014024 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014025fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014026
14027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014029 echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
14031
Theodore Ts'oe1052142006-10-21 21:46:47 -040014032 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014033if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014034 # try to guess the endianness by grepping values into an object file
14035 ac_cv_c_bigendian=unknown
14036 cat >conftest.$ac_ext <<_ACEOF
14037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014042short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14043short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014044void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014045short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14046short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014047void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14048int
14049main ()
14050{
14051 _ascii (); _ebcdic ();
14052 ;
14053 return 0;
14054}
14055_ACEOF
14056rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014057if { (ac_try="$ac_compile"
14058case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14061esac
14062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014064 ac_status=$?
14065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014069 (exit $ac_status); } && {
14070 test -z "$ac_c_werror_flag" ||
14071 test ! -s conftest.err
14072 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014073 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14074 ac_cv_c_bigendian=yes
14075fi
14076if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14077 if test "$ac_cv_c_bigendian" = unknown; then
14078 ac_cv_c_bigendian=no
14079 else
14080 # finding both strings is unlikely to happen, but who knows?
14081 ac_cv_c_bigendian=unknown
14082 fi
14083fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014084else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014085 echo "$as_me: failed program was:" >&5
14086sed 's/^/| /' conftest.$ac_ext >&5
14087
Theodore Ts'oe1052142006-10-21 21:46:47 -040014088
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014090
14091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014092else
14093 cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014099$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014100int
14101main ()
14102{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014103
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014104 /* Are we little or big endian? From Harbison&Steele. */
14105 union
14106 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014107 long int l;
14108 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014109 } u;
14110 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014111 return u.c[sizeof (long int) - 1] == 1;
14112
14113 ;
14114 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014115}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014116_ACEOF
14117rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118if { (ac_try="$ac_link"
14119case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14122esac
14123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014128 { (case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131esac
14132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014137 ac_cv_c_bigendian=no
14138else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014139 echo "$as_me: program exited with status $ac_status" >&5
14140echo "$as_me: failed program was:" >&5
14141sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014143( exit $ac_status )
14144ac_cv_c_bigendian=yes
14145fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014146rm -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 -040014147fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014148
14149
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014150fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014151
14152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014154{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14155echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014156case $ac_cv_c_bigendian in
14157 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014159cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014160#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014161_ACEOF
14162 ;;
14163 no)
14164 ;;
14165 *)
14166 { { echo "$as_me:$LINENO: error: unknown endianness
14167presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14168echo "$as_me: error: unknown endianness
14169presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14170 { (exit 1); exit 1; }; } ;;
14171esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014172
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014173BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014174ASM_TYPES_HEADER=./asm_types.h
14175
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014177for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014178do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014184 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014185fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014186ac_res=`eval echo '${'$as_ac_Header'}'`
14187 { echo "$as_me:$LINENO: result: $ac_res" >&5
14188echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014189else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014190 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014191{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014193cat >conftest.$ac_ext <<_ACEOF
14194/* confdefs.h. */
14195_ACEOF
14196cat confdefs.h >>conftest.$ac_ext
14197cat >>conftest.$ac_ext <<_ACEOF
14198/* end confdefs.h. */
14199$ac_includes_default
14200#include <$ac_header>
14201_ACEOF
14202rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014203if { (ac_try="$ac_compile"
14204case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014215 (exit $ac_status); } && {
14216 test -z "$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014219 ac_header_compiler=yes
14220else
14221 echo "$as_me: failed program was:" >&5
14222sed 's/^/| /' conftest.$ac_ext >&5
14223
Theodore Ts'oe1052142006-10-21 21:46:47 -040014224 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014225fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014226
14227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14229echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014230
14231# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014234cat >conftest.$ac_ext <<_ACEOF
14235/* confdefs.h. */
14236_ACEOF
14237cat confdefs.h >>conftest.$ac_ext
14238cat >>conftest.$ac_ext <<_ACEOF
14239/* end confdefs.h. */
14240#include <$ac_header>
14241_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014242if { (ac_try="$ac_cpp conftest.$ac_ext"
14243case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14246esac
14247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014254 (exit $ac_status); } >/dev/null && {
14255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258 ac_header_preproc=yes
14259else
14260 echo "$as_me: failed program was:" >&5
14261sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_header_preproc=no
14264fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014266rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014267{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14268echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014269
14270# So? What about this header?
14271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14272 yes:no: )
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14277 ac_header_preproc=yes
14278 ;;
14279 no:yes:* )
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014293 ;;
14294esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014295{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014298 echo $ECHO_N "(cached) $ECHO_C" >&6
14299else
14300 eval "$as_ac_Header=\$ac_header_preproc"
14301fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014302ac_res=`eval echo '${'$as_ac_Header'}'`
14303 { echo "$as_me:$LINENO: result: $ac_res" >&5
14304echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014305
14306fi
14307if test `eval echo '${'$as_ac_Header'}'` = yes; then
14308 cat >>confdefs.h <<_ACEOF
14309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14310_ACEOF
14311
14312fi
14313
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014314done
14315
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14317echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014318if test "${ac_cv_type_intptr_t+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014320else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321 cat >conftest.$ac_ext <<_ACEOF
14322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
14327$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014328typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014329int
14330main ()
14331{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014332if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014333 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014334if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335 return 0;
14336 ;
14337 return 0;
14338}
14339_ACEOF
14340rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014341if { (ac_try="$ac_compile"
14342case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345esac
14346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014353 (exit $ac_status); } && {
14354 test -z "$ac_c_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014357 ac_cv_type_intptr_t=yes
14358else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014359 echo "$as_me: failed program was:" >&5
14360sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014361
Theodore Ts'oe1052142006-10-21 21:46:47 -040014362 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014363fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014364
14365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014367{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14368echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014369if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014370
14371cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014372#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014373_ACEOF
14374
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014375
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376fi
14377
Theodore Ts'oe1052142006-10-21 21:46:47 -040014378{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14379echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014380if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383 cat >conftest.$ac_ext <<_ACEOF
14384/* confdefs.h. */
14385_ACEOF
14386cat confdefs.h >>conftest.$ac_ext
14387cat >>conftest.$ac_ext <<_ACEOF
14388/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014389#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014390int
14391main ()
14392{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014393struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014394 ;
14395 return 0;
14396}
14397_ACEOF
14398rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014399if { (ac_try="$ac_compile"
14400case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403esac
14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014411 (exit $ac_status); } && {
14412 test -z "$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14414 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014415 e2fsprogs_cv_struct_st_flags=yes
14416else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014417 echo "$as_me: failed program was:" >&5
14418sed 's/^/| /' conftest.$ac_ext >&5
14419
Theodore Ts'oe1052142006-10-21 21:46:47 -040014420 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014421fi
14422
Theodore Ts'oe1052142006-10-21 21:46:47 -040014423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424fi
14425
14426{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14427echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014428if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014429 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14430echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014431 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014433else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014434 cat >conftest.$ac_ext <<_ACEOF
14435/* confdefs.h. */
14436_ACEOF
14437cat confdefs.h >>conftest.$ac_ext
14438cat >>conftest.$ac_ext <<_ACEOF
14439/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014440#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014441int
14442main ()
14443{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014444struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014445 ;
14446 return 0;
14447}
14448_ACEOF
14449rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014450if { (ac_try="$ac_compile"
14451case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454esac
14455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014457 ac_status=$?
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014462 (exit $ac_status); } && {
14463 test -z "$ac_c_werror_flag" ||
14464 test ! -s conftest.err
14465 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014466 e2fsprogs_cv_struct_st_flags_immut=yes
14467else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468 echo "$as_me: failed program was:" >&5
14469sed 's/^/| /' conftest.$ac_ext >&5
14470
Theodore Ts'oe1052142006-10-21 21:46:47 -040014471 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014472fi
14473
Theodore Ts'oe1052142006-10-21 21:46:47 -040014474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475fi
14476
14477 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14478echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014479 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014481#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014482_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014483
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014484 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014486{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14487echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014488if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014489 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014490else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014491 cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014497#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014498 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014500int
14501main ()
14502{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014503static struct sockaddr ac_aggr;
14504if (ac_aggr.sa_len)
14505return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014506 ;
14507 return 0;
14508}
14509_ACEOF
14510rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014511if { (ac_try="$ac_compile"
14512case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515esac
14516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014527 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014529 echo "$as_me: failed program was:" >&5
14530sed 's/^/| /' conftest.$ac_ext >&5
14531
Theodore Ts'oe1052142006-10-21 21:46:47 -040014532 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014533/* confdefs.h. */
14534_ACEOF
14535cat confdefs.h >>conftest.$ac_ext
14536cat >>conftest.$ac_ext <<_ACEOF
14537/* end confdefs.h. */
14538#include <sys/types.h>
14539 #include <sys/socket.h>
14540
14541int
14542main ()
14543{
14544static struct sockaddr ac_aggr;
14545if (sizeof ac_aggr.sa_len)
14546return 0;
14547 ;
14548 return 0;
14549}
14550_ACEOF
14551rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014552if { (ac_try="$ac_compile"
14553case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556esac
14557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014568 ac_cv_member_struct_sockaddr_sa_len=yes
14569else
14570 echo "$as_me: failed program was:" >&5
14571sed 's/^/| /' conftest.$ac_ext >&5
14572
Theodore Ts'oe1052142006-10-21 21:46:47 -040014573 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014575
14576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014578
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014581{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14582echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014583if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014584
14585cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014586#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014587_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014588
14589fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014609
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014610
14611
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014612
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014613
Theodore Ts'o106ad962007-04-04 21:26:37 -040014614
14615
14616
Theodore Ts'o740837d2007-12-16 17:21:38 -050014617
14618
14619for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014620do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014622{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014625 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014626else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014627 cat >conftest.$ac_ext <<_ACEOF
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14635#define $ac_func innocuous_$ac_func
14636
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014637/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014638 which can conflict with char $ac_func (); below.
14639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14640 <limits.h> exists even on freestanding compilers. */
14641
14642#ifdef __STDC__
14643# include <limits.h>
14644#else
14645# include <assert.h>
14646#endif
14647
14648#undef $ac_func
14649
Theodore Ts'oe1052142006-10-21 21:46:47 -040014650/* Override any GCC internal prototype to avoid an error.
14651 Use char because int might match the return type of a GCC
14652 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014653#ifdef __cplusplus
14654extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014655#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014656char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014657/* The GNU C library defines this for functions which it implements
14658 to always fail with ENOSYS. Some functions are actually named
14659 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014660#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014661choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014662#endif
14663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014664int
14665main ()
14666{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014668 ;
14669 return 0;
14670}
14671_ACEOF
14672rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014673if { (ac_try="$ac_link"
14674case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14677esac
14678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014680 ac_status=$?
14681 grep -v '^ *+' conftest.er1 >conftest.err
14682 rm -f conftest.er1
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014685 (exit $ac_status); } && {
14686 test -z "$ac_c_werror_flag" ||
14687 test ! -s conftest.err
14688 } && test -s conftest$ac_exeext &&
14689 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014690 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014691else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014692 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014694
Theodore Ts'oe1052142006-10-21 21:46:47 -040014695 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014696fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014697
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014699 conftest$ac_exeext conftest.$ac_ext
14700fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014701ac_res=`eval echo '${'$as_ac_var'}'`
14702 { echo "$as_me:$LINENO: result: $ac_res" >&5
14703echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014704if test `eval echo '${'$as_ac_var'}'` = yes; then
14705 cat >>confdefs.h <<_ACEOF
14706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14707_ACEOF
14708
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014709fi
14710done
14711
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014712SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014713{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14714echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715if test "${ac_cv_lib_socket_socket+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014717else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014718 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014719LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014720cat >conftest.$ac_ext <<_ACEOF
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
14726
Theodore Ts'oe1052142006-10-21 21:46:47 -040014727/* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014730#ifdef __cplusplus
14731extern "C"
14732#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014733char socket ();
14734int
14735main ()
14736{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014737return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014738 ;
14739 return 0;
14740}
14741_ACEOF
14742rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014743if { (ac_try="$ac_link"
14744case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14747esac
14748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014755 (exit $ac_status); } && {
14756 test -z "$ac_c_werror_flag" ||
14757 test ! -s conftest.err
14758 } && test -s conftest$ac_exeext &&
14759 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014760 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014761else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014762 echo "$as_me: failed program was:" >&5
14763sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014764
Theodore Ts'oe1052142006-10-21 21:46:47 -040014765 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014766fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014767
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014769 conftest$ac_exeext conftest.$ac_ext
14770LIBS=$ac_check_lib_save_LIBS
14771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014772{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14773echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014774if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014775 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014776fi
14777
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014778
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014779DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014780{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014782if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014784else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014785 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014786LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793
Theodore Ts'oe1052142006-10-21 21:46:47 -040014794/* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797#ifdef __cplusplus
14798extern "C"
14799#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014800char dlopen ();
14801int
14802main ()
14803{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014804return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014805 ;
14806 return 0;
14807}
14808_ACEOF
14809rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014810if { (ac_try="$ac_link"
14811case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest$ac_exeext &&
14826 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014827 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014828else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014831
Theodore Ts'oe1052142006-10-21 21:46:47 -040014832 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014833fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014834
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014836 conftest$ac_exeext conftest.$ac_ext
14837LIBS=$ac_check_lib_save_LIBS
14838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014839{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14840echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014841if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014842 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014843cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014844#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014845_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014846
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014847fi
14848
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014849
Theodore Ts'oe1052142006-10-21 21:46:47 -040014850{ echo "$as_me:$LINENO: checking for optreset" >&5
14851echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014852if test "${ac_cv_have_optreset+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014854else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014855 cat >conftest.$ac_ext <<_ACEOF
14856/* confdefs.h. */
14857_ACEOF
14858cat confdefs.h >>conftest.$ac_ext
14859cat >>conftest.$ac_ext <<_ACEOF
14860/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014861#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014862
14863_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014865 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014866 ac_cv_have_optreset=yes
14867else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014868 ac_cv_have_optreset=no
14869fi
14870rm -f conftest*
14871
14872fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014873{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14874echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014875if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014876 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014877#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014878_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014879
14880fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014881{ echo "$as_me:$LINENO: checking for unified diff option" >&5
14882echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014883if diff -u $0 $0 >& /dev/null ; then
14884 UNI_DIFF_OPTS=-u
14885else
14886 UNI_DIFF_OPTS=-c
14887fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014888{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14889echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014890
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014891case "$host_os" in
14892linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014893 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014894#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014896
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014897 ;;
14898esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014899LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014900CYGWIN_CMT="#"
14901UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014902case "$host_os" in
14903linux*)
14904 LINUX_CMT=
14905 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014906cygwin)
14907 CYGWIN_CMT=
14908 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014909 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014910esac
14911
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014912
14913
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014914case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014915linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014916 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14917 root_prefix="";
14918 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014919 fi
14920 ;;
14921esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014922case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014923linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014924 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014925 prefix="/usr";
14926 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040014927 if test "$mandir" = '${prefix}/man' ; then
14928 echo "...and mandir defaults to /usr/share/man"
14929 mandir=/usr/share/man
14930 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014931 fi
14932;;
14933esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014934if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000014935 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014936 root_prefix="$ac_default_prefix"
14937 else
14938 root_prefix="$prefix"
14939 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014940 root_bindir=$bindir
14941 root_sbindir=$sbindir
14942 root_libdir=$libdir
14943 root_sysconfdir=$sysconfdir
14944else
14945 root_bindir='${root_prefix}/bin'
14946 root_sbindir='${root_prefix}/sbin'
14947 root_libdir='${root_prefix}/lib'
14948 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014949fi
14950
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014951
14952
14953
14954
Theodore Ts'oe1052142006-10-21 21:46:47 -040014955{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14956echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014957if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000014959else
14960 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014961cat >conftest.$ac_ext <<_ACEOF
14962/* confdefs.h. */
14963_ACEOF
14964cat confdefs.h >>conftest.$ac_ext
14965cat >>conftest.$ac_ext <<_ACEOF
14966/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000014967#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014968int
14969main ()
14970{
Theodore Ts'oae851481997-04-29 18:13:24 +000014971fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014972 ;
14973 return 0;
14974}
14975_ACEOF
14976rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014977if { (ac_try="$ac_link"
14978case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981esac
14982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest$ac_exeext &&
14993 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000014994 ac_cv_e2fsprogs_use_static=yes
14995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014996 echo "$as_me: failed program was:" >&5
14997sed 's/^/| /' conftest.$ac_ext >&5
14998
Theodore Ts'oe1052142006-10-21 21:46:47 -040014999 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015000fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015001
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015003 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015004LDFLAGS=$SAVE_LDFLAGS
15005fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015006
Theodore Ts'odefde781999-01-04 07:39:19 +000015007case "$host_os" in
15008solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015009 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015010;;
15011esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015012{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15013echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015014LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015015if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015016 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015017fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015018
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015019case "$host_os" in
15020darwin*)
15021 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015022 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015023#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015024_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015025
15026 ;;
15027esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015028SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15029ET_DIR=`cd ${srcdir}/lib/et; pwd`
15030
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015031
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015032if test "$cross_compiling" = yes ; then
15033 DO_TEST_SUITE=
15034else
15035 DO_TEST_SUITE=check
15036fi
15037
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015038INTL_FLAGS=
15039if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15040 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15041fi
15042
Theodore Ts'odd947da2005-11-09 18:37:07 -040015043if test $cross_compiling = no; then
15044 BUILD_CFLAGS="$CFLAGS"
15045 BUILD_LDFLAGS="$LDFLAGS"
15046else
15047 BUILD_CFLAGS=
15048 BUILD_LDFLAGS=
15049fi
15050
15051
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015052test -d lib || mkdir lib
15053test -d include || mkdir include
15054test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015055test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015056for i in MCONFIG Makefile e2fsprogs.spec \
15057 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015058 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15059 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015060 lib/uuid/Makefile lib/uuid/uuid_types.h \
15061 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015062 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15063 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015064 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015065 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15066 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15067 if test -d `dirname ${srcdir}/$i` ; then
15068 outlist="$outlist $i"
15069 fi
15070done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015071ac_config_files="$ac_config_files $outlist"
15072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015073cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015074# This file is a shell script that caches the results of configure
15075# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015076# scripts and configure runs, see configure's option --config-cache.
15077# It is not useful on other systems. If it contains results you don't
15078# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015079#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015080# config.status only pays attention to the cache file if you give it
15081# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015082#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015083# `ac_cv_env_foo' variables (set or unset) will be overridden when
15084# loading this file, other *unset* `ac_cv_foo' will be assigned the
15085# following values.
15086
15087_ACEOF
15088
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015089# The following way of writing the cache mishandles newlines in values,
15090# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015091# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015092# Ultrix sh set writes to stderr and can't be redirected directly,
15093# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015094(
15095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15096 eval ac_val=\$$ac_var
15097 case $ac_val in #(
15098 *${as_nl}*)
15099 case $ac_var in #(
15100 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15101echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15102 esac
15103 case $ac_var in #(
15104 _ | IFS | as_nl) ;; #(
15105 *) $as_unset $ac_var ;;
15106 esac ;;
15107 esac
15108 done
15109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015110 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15112 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015113 # `set' does not quote correctly, so add quotes (double-quote
15114 # substitution turns \\\\ into \\, and sed turns \\ into \).
15115 sed -n \
15116 "s/'/'\\\\''/g;
15117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015118 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015119 *)
15120 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015122 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015123 esac |
15124 sort
15125) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015126 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015127 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015128 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015129 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15131 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15133 :end' >>confcache
15134if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15135 if test -w "$cache_file"; then
15136 test "x$cache_file" != "x/dev/null" &&
15137 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15138echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015139 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015140 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015141 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15142echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015143 fi
15144fi
15145rm -f confcache
15146
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015147test "x$prefix" = xNONE && prefix=$ac_default_prefix
15148# Let make expand exec_prefix.
15149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15150
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015151# Transform confdefs.h into DEFS.
15152# Protect against shell expansion while executing Makefile rules.
15153# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015154#
15155# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015156# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015157# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015158ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015159t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015160:clear
15161s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015162t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015163s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015164t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015165b any
15166:quote
15167s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15168s/\[/\\&/g
15169s/\]/\\&/g
15170s/\$/$$/g
15171H
15172:any
15173${
15174 g
15175 s/^\n//
15176 s/\n/ /g
15177 p
15178}
15179'
15180DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015181
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015183ac_libobjs=
15184ac_ltlibobjs=
15185for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15186 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015187 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15188 ac_i=`echo "$ac_i" | sed "$ac_script"`
15189 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15190 # will be set to the directory where LIBOBJS objects are built.
15191 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15192 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015193done
15194LIBOBJS=$ac_libobjs
15195
15196LTLIBOBJS=$ac_ltlibobjs
15197
15198
15199
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015200: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015201ac_clean_files_save=$ac_clean_files
15202ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15203{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15204echo "$as_me: creating $CONFIG_STATUS" >&6;}
15205cat >$CONFIG_STATUS <<_ACEOF
15206#! $SHELL
15207# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015208# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015209# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015210# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015212debug=false
15213ac_cs_recheck=false
15214ac_cs_silent=false
15215SHELL=\${CONFIG_SHELL-$SHELL}
15216_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015217
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015218cat >>$CONFIG_STATUS <<\_ACEOF
15219## --------------------- ##
15220## M4sh Initialization. ##
15221## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015222
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015223# Be more Bourne compatible
15224DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015225if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15226 emulate sh
15227 NULLCMD=:
15228 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15229 # is contrary to our usage. Disable this feature.
15230 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015231 setopt NO_GLOB_SUBST
15232else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015233 case `(set -o) 2>/dev/null` in
15234 *posix*) set -o posix ;;
15235esac
15236
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015237fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015238
15239
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015240
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015241
Theodore Ts'oe1052142006-10-21 21:46:47 -040015242# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015243# Avoid depending upon Character Ranges.
15244as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15245as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15246as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15247as_cr_digits='0123456789'
15248as_cr_alnum=$as_cr_Letters$as_cr_digits
15249
15250# The user is always right.
15251if test "${PATH_SEPARATOR+set}" != set; then
15252 echo "#! /bin/sh" >conf$$.sh
15253 echo "exit 0" >>conf$$.sh
15254 chmod +x conf$$.sh
15255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15256 PATH_SEPARATOR=';'
15257 else
15258 PATH_SEPARATOR=:
15259 fi
15260 rm -f conf$$.sh
15261fi
15262
Theodore Ts'oe1052142006-10-21 21:46:47 -040015263# Support unset when possible.
15264if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15265 as_unset=unset
15266else
15267 as_unset=false
15268fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015269
Theodore Ts'oe1052142006-10-21 21:46:47 -040015270
15271# IFS
15272# We need space, tab and new line, in precisely that order. Quoting is
15273# there to prevent editors from complaining about space-tab.
15274# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15275# splitting by setting IFS to empty value.)
15276as_nl='
15277'
15278IFS=" "" $as_nl"
15279
15280# Find who we are. Look in the path if we contain no directory separator.
15281case $0 in
15282 *[\\/]* ) as_myself=$0 ;;
15283 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015284for as_dir in $PATH
15285do
15286 IFS=$as_save_IFS
15287 test -z "$as_dir" && as_dir=.
15288 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15289done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015290IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015291
Theodore Ts'oe1052142006-10-21 21:46:47 -040015292 ;;
15293esac
15294# We did not find ourselves, most probably we were run as `sh COMMAND'
15295# in which case we are not to be found in the path.
15296if test "x$as_myself" = x; then
15297 as_myself=$0
15298fi
15299if test ! -f "$as_myself"; then
15300 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15301 { (exit 1); exit 1; }
15302fi
15303
15304# Work around bugs in pre-3.0 UWIN ksh.
15305for as_var in ENV MAIL MAILPATH
15306do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15307done
15308PS1='$ '
15309PS2='> '
15310PS4='+ '
15311
15312# NLS nuisances.
15313for as_var in \
15314 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15315 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15316 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015317do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015318 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15319 eval $as_var=C; export $as_var
15320 else
15321 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15322 fi
15323done
15324
15325# Required to use basename.
15326if expr a : '\(a\)' >/dev/null 2>&1 &&
15327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15328 as_expr=expr
15329else
15330 as_expr=false
15331fi
15332
15333if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15334 as_basename=basename
15335else
15336 as_basename=false
15337fi
15338
15339
15340# Name of the executable.
15341as_me=`$as_basename -- "$0" ||
15342$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15343 X"$0" : 'X\(//\)$' \| \
15344 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15345echo X/"$0" |
15346 sed '/^.*\/\([^/][^/]*\)\/*$/{
15347 s//\1/
15348 q
15349 }
15350 /^X\/\(\/\/\)$/{
15351 s//\1/
15352 q
15353 }
15354 /^X\/\(\/\).*/{
15355 s//\1/
15356 q
15357 }
15358 s/.*/./; q'`
15359
15360# CDPATH.
15361$as_unset CDPATH
15362
15363
15364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015365 as_lineno_1=$LINENO
15366 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015367 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015368 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015370 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15371 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015372 # line-number line after each line using $LINENO; the second 'sed'
15373 # does the real work. The second script uses 'N' to pair each
15374 # line-number line with the line containing $LINENO, and appends
15375 # trailing '-' during substitution so that $LINENO is not a special
15376 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015377 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015378 # scripts with optimization help from Paolo Bonzini. Blame Lee
15379 # E. McMahon (1931-1989) for sed's syntax. :-)
15380 sed -n '
15381 p
15382 /[$]LINENO/=
15383 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015384 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015385 s/[$]LINENO.*/&-/
15386 t lineno
15387 b
15388 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015389 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015390 :loop
15391 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015392 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015393 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015394 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015395 chmod +x "$as_me.lineno" ||
15396 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015397 { (exit 1); exit 1; }; }
15398
15399 # Don't try to exec as it changes $[0], causing all sort of problems
15400 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015401 # original and so on. Autoconf is especially sensitive to this).
15402 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015403 # Exit status is that of the last command.
15404 exit
15405}
15406
15407
Theodore Ts'oe1052142006-10-21 21:46:47 -040015408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15409 as_dirname=dirname
15410else
15411 as_dirname=false
15412fi
15413
15414ECHO_C= ECHO_N= ECHO_T=
15415case `echo -n x` in
15416-n*)
15417 case `echo 'x\c'` in
15418 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15419 *) ECHO_C='\c';;
15420 esac;;
15421*)
15422 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015423esac
15424
Theodore Ts'oe1052142006-10-21 21:46:47 -040015425if expr a : '\(a\)' >/dev/null 2>&1 &&
15426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427 as_expr=expr
15428else
15429 as_expr=false
15430fi
15431
15432rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015433if test -d conf$$.dir; then
15434 rm -f conf$$.dir/conf$$.file
15435else
15436 rm -f conf$$.dir
15437 mkdir conf$$.dir
15438fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015439echo >conf$$.file
15440if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015441 as_ln_s='ln -s'
15442 # ... but there are two gotchas:
15443 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15444 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15445 # In both cases, we have to default to `cp -p'.
15446 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015447 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015448elif ln conf$$.file conf$$ 2>/dev/null; then
15449 as_ln_s=ln
15450else
15451 as_ln_s='cp -p'
15452fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015453rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15454rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015455
15456if mkdir -p . 2>/dev/null; then
15457 as_mkdir_p=:
15458else
15459 test -d ./-p && rmdir ./-p
15460 as_mkdir_p=false
15461fi
15462
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015463if test -x / >/dev/null 2>&1; then
15464 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015465else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015466 if ls -dL / >/dev/null 2>&1; then
15467 as_ls_L_option=L
15468 else
15469 as_ls_L_option=
15470 fi
15471 as_test_x='
15472 eval sh -c '\''
15473 if test -d "$1"; then
15474 test -d "$1/.";
15475 else
15476 case $1 in
15477 -*)set "./$1";;
15478 esac;
15479 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15480 ???[sx]*):;;*)false;;esac;fi
15481 '\'' sh
15482 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015483fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015484as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015485
15486# Sed expression to map a string onto a valid CPP name.
15487as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15488
15489# Sed expression to map a string onto a valid variable name.
15490as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15491
15492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015493exec 6>&1
15494
Theodore Ts'oe1052142006-10-21 21:46:47 -040015495# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015496# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015497# values after options handling.
15498ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015499This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015500generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015501
15502 CONFIG_FILES = $CONFIG_FILES
15503 CONFIG_HEADERS = $CONFIG_HEADERS
15504 CONFIG_LINKS = $CONFIG_LINKS
15505 CONFIG_COMMANDS = $CONFIG_COMMANDS
15506 $ $0 $@
15507
Theodore Ts'oe1052142006-10-21 21:46:47 -040015508on `(hostname || uname -n) 2>/dev/null | sed 1q`
15509"
15510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015511_ACEOF
15512
Theodore Ts'oe1052142006-10-21 21:46:47 -040015513cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015514# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015515config_files="$ac_config_files"
15516config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015517
Theodore Ts'oe1052142006-10-21 21:46:47 -040015518_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015519
15520cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015521ac_cs_usage="\
15522\`$as_me' instantiates files from templates according to the
15523current configuration.
15524
15525Usage: $0 [OPTIONS] [FILE]...
15526
15527 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015528 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015529 -q, --quiet do not print progress messages
15530 -d, --debug don't remove temporary files
15531 --recheck update $as_me by reconfiguring in the same conditions
15532 --file=FILE[:TEMPLATE]
15533 instantiate the configuration file FILE
15534
15535Configuration files:
15536$config_files
15537
15538Configuration commands:
15539$config_commands
15540
15541Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015542
Theodore Ts'oe1052142006-10-21 21:46:47 -040015543_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015544cat >>$CONFIG_STATUS <<_ACEOF
15545ac_cs_version="\\
15546config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015547configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015548 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015549
Theodore Ts'oe1052142006-10-21 21:46:47 -040015550Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015551This config.status script is free software; the Free Software Foundation
15552gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015553
15554ac_pwd='$ac_pwd'
15555srcdir='$srcdir'
15556INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015557_ACEOF
15558
15559cat >>$CONFIG_STATUS <<\_ACEOF
15560# If no file are specified by the user, then we need to provide default
15561# value. By we need to know if files were specified by the user.
15562ac_need_defaults=:
15563while test $# != 0
15564do
15565 case $1 in
15566 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015569 ac_shift=:
15570 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015571 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015572 ac_option=$1
15573 ac_optarg=$2
15574 ac_shift=shift
15575 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015576 esac
15577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015578 case $ac_option in
15579 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15581 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15583 echo "$ac_cs_version"; exit ;;
15584 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015585 debug=: ;;
15586 --file | --fil | --fi | --f )
15587 $ac_shift
15588 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15589 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015590 --he | --h | --help | --hel | -h )
15591 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15594 ac_cs_silent=: ;;
15595
15596 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015597 -*) { echo "$as_me: error: unrecognized option: $1
15598Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015599 { (exit 1); exit 1; }; } ;;
15600
Theodore Ts'oe1052142006-10-21 21:46:47 -040015601 *) ac_config_targets="$ac_config_targets $1"
15602 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015603
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015604 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015605 shift
15606done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015607
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015608ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015610if $ac_cs_silent; then
15611 exec 6>/dev/null
15612 ac_configure_extra_args="$ac_configure_extra_args --silent"
15613fi
15614
15615_ACEOF
15616cat >>$CONFIG_STATUS <<_ACEOF
15617if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015618 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15619 CONFIG_SHELL=$SHELL
15620 export CONFIG_SHELL
15621 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015622fi
15623
15624_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015625cat >>$CONFIG_STATUS <<\_ACEOF
15626exec 5>>config.log
15627{
15628 echo
15629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15630## Running $as_me. ##
15631_ASBOX
15632 echo "$ac_log"
15633} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015634
Theodore Ts'oe1052142006-10-21 21:46:47 -040015635_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015636cat >>$CONFIG_STATUS <<_ACEOF
15637#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015638# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015639#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015640# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015641 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015642 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015643 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015644 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15645 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015646
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015647
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015648_ACEOF
15649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015650cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015651
15652# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015653for ac_config_target in $ac_config_targets
15654do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015655 case $ac_config_target in
15656 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15657 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15658
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015659 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15660echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15661 { (exit 1); exit 1; }; };;
15662 esac
15663done
15664
Theodore Ts'oe1052142006-10-21 21:46:47 -040015665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015666# If the user did not use the arguments to specify the items to instantiate,
15667# then the envvar interface is used. Set only those that are not.
15668# We use the long form for the default assignment because of an extremely
15669# bizarre bug on SunOS 4.1.3.
15670if $ac_need_defaults; then
15671 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15672 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15673fi
15674
15675# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015676# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015677# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015678# Hook for its removal unless debugging.
15679# Note that there is a small window in which the directory will not be cleaned:
15680# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015681$debug ||
15682{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015683 tmp=
15684 trap 'exit_status=$?
15685 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15686' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015687 trap '{ (exit 1); exit 1; }' 1 2 13 15
15688}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015689# Create a (secure) tmp directory for tmp files.
15690
15691{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015692 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015693 test -n "$tmp" && test -d "$tmp"
15694} ||
15695{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015696 tmp=./conf$$-$RANDOM
15697 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015698} ||
15699{
15700 echo "$me: cannot create a temporary directory in ." >&2
15701 { (exit 1); exit 1; }
15702}
15703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015704#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015705# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015706#
15707
15708# No need to generate the scripts if there are no CONFIG_FILES.
15709# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015710if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015711
15712_ACEOF
15713
Theodore Ts'oe1052142006-10-21 21:46:47 -040015714# Create sed commands to just substitute file output variables.
15715
15716# Remaining file output variables are in a fragment that also has non-file
15717# output varibles.
15718
15719
15720
15721ac_delim='%!_!# '
15722for ac_last_try in false false false false false :; do
15723 cat >conf$$subs.sed <<_ACEOF
15724SHELL!$SHELL$ac_delim
15725PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15726PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15727PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15728PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15729PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15730PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15731exec_prefix!$exec_prefix$ac_delim
15732prefix!$prefix$ac_delim
15733program_transform_name!$program_transform_name$ac_delim
15734bindir!$bindir$ac_delim
15735sbindir!$sbindir$ac_delim
15736libexecdir!$libexecdir$ac_delim
15737datarootdir!$datarootdir$ac_delim
15738datadir!$datadir$ac_delim
15739sysconfdir!$sysconfdir$ac_delim
15740sharedstatedir!$sharedstatedir$ac_delim
15741localstatedir!$localstatedir$ac_delim
15742includedir!$includedir$ac_delim
15743oldincludedir!$oldincludedir$ac_delim
15744docdir!$docdir$ac_delim
15745infodir!$infodir$ac_delim
15746htmldir!$htmldir$ac_delim
15747dvidir!$dvidir$ac_delim
15748pdfdir!$pdfdir$ac_delim
15749psdir!$psdir$ac_delim
15750libdir!$libdir$ac_delim
15751localedir!$localedir$ac_delim
15752mandir!$mandir$ac_delim
15753DEFS!$DEFS$ac_delim
15754ECHO_C!$ECHO_C$ac_delim
15755ECHO_N!$ECHO_N$ac_delim
15756ECHO_T!$ECHO_T$ac_delim
15757LIBS!$LIBS$ac_delim
15758build_alias!$build_alias$ac_delim
15759host_alias!$host_alias$ac_delim
15760target_alias!$target_alias$ac_delim
15761E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15762E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15763E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15764E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050015765E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015766build!$build$ac_delim
15767build_cpu!$build_cpu$ac_delim
15768build_vendor!$build_vendor$ac_delim
15769build_os!$build_os$ac_delim
15770host!$host$ac_delim
15771host_cpu!$host_cpu$ac_delim
15772host_vendor!$host_vendor$ac_delim
15773host_os!$host_os$ac_delim
15774CC!$CC$ac_delim
15775CFLAGS!$CFLAGS$ac_delim
15776LDFLAGS!$LDFLAGS$ac_delim
15777CPPFLAGS!$CPPFLAGS$ac_delim
15778ac_ct_CC!$ac_ct_CC$ac_delim
15779EXEEXT!$EXEEXT$ac_delim
15780OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015781CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015782LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015783GREP!$GREP$ac_delim
15784EGREP!$EGREP$ac_delim
15785LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15786MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15787HTREE_CMT!$HTREE_CMT$ac_delim
15788ELF_CMT!$ELF_CMT$ac_delim
15789BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15790PROFILE_CMT!$PROFILE_CMT$ac_delim
15791CHECKER_CMT!$CHECKER_CMT$ac_delim
15792LIB_EXT!$LIB_EXT$ac_delim
15793STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15794PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15795SWAPFS_CMT!$SWAPFS_CMT$ac_delim
15796DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15797IMAGER_CMT!$IMAGER_CMT$ac_delim
15798RESIZER_CMT!$RESIZER_CMT$ac_delim
15799E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015800_ACEOF
15801
15802 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
15803 break
15804 elif $ac_last_try; then
15805 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15806echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15807 { (exit 1); exit 1; }; }
15808 else
15809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015810 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015811done
15812
15813ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15814if test -n "$ac_eof"; then
15815 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15816 ac_eof=`expr $ac_eof + 1`
15817fi
15818
15819cat >>$CONFIG_STATUS <<_ACEOF
15820cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15821/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15822/^[ ]*@MCONFIG@[ ]*$/{
15823r $MCONFIG
15824d
15825}
15826/^[ ]*@MAKEFILE_ELF@[ ]*$/{
15827r $MAKEFILE_ELF
15828d
15829}
15830/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15831r $MAKEFILE_BSDLIB
15832d
15833}
15834/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15835r $MAKEFILE_PROFILE
15836d
15837}
15838/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15839r $MAKEFILE_CHECKER
15840d
15841}
15842/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15843r $MAKEFILE_LIBRARY
15844d
15845}
15846/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15847r $ASM_TYPES_HEADER
15848d
15849}
15850_ACEOF
15851sed '
15852s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15853s/^/s,@/; s/!/@,|#_!!_#|/
15854:n
15855t n
15856s/'"$ac_delim"'$/,g/; t
15857s/$/\\/; p
15858N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15859' >>$CONFIG_STATUS <conf$$subs.sed
15860rm -f conf$$subs.sed
15861cat >>$CONFIG_STATUS <<_ACEOF
15862CEOF$ac_eof
15863_ACEOF
15864
15865
15866ac_delim='%!_!# '
15867for ac_last_try in false false false false false :; do
15868 cat >conf$$subs.sed <<_ACEOF
Andreas Dilger927566a2006-11-12 19:41:25 -050015869FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015870FSCK_MAN!$FSCK_MAN$ac_delim
15871E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15872E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15873DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
15874DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
15875DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
15876STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
15877GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15878PACKAGE!$PACKAGE$ac_delim
15879VERSION!$VERSION$ac_delim
15880SET_MAKE!$SET_MAKE$ac_delim
15881INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15882INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15883INSTALL_DATA!$INSTALL_DATA$ac_delim
15884MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15885USE_NLS!$USE_NLS$ac_delim
15886MSGFMT!$MSGFMT$ac_delim
15887GMSGFMT!$GMSGFMT$ac_delim
15888XGETTEXT!$XGETTEXT$ac_delim
15889MSGMERGE!$MSGMERGE$ac_delim
15890RANLIB!$RANLIB$ac_delim
15891ALLOCA!$ALLOCA$ac_delim
15892GLIBC21!$GLIBC21$ac_delim
15893HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15894HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15895HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15896HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15897LIBICONV!$LIBICONV$ac_delim
15898LTLIBICONV!$LTLIBICONV$ac_delim
15899INTLBISON!$INTLBISON$ac_delim
15900BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
15901USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
15902CATOBJEXT!$CATOBJEXT$ac_delim
15903DATADIRNAME!$DATADIRNAME$ac_delim
15904INSTOBJEXT!$INSTOBJEXT$ac_delim
15905GENCAT!$GENCAT$ac_delim
15906INTLOBJS!$INTLOBJS$ac_delim
15907INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
15908INTLLIBS!$INTLLIBS$ac_delim
15909LIBINTL!$LIBINTL$ac_delim
15910LTLIBINTL!$LTLIBINTL$ac_delim
15911POSUB!$POSUB$ac_delim
15912BINARY_TYPE!$BINARY_TYPE$ac_delim
15913LN!$LN$ac_delim
15914LN_S!$LN_S$ac_delim
15915MV!$MV$ac_delim
15916CP!$CP$ac_delim
15917RM!$RM$ac_delim
15918CHMOD!$CHMOD$ac_delim
15919AWK!$AWK$ac_delim
15920SED!$SED$ac_delim
15921PERL!$PERL$ac_delim
15922LDCONFIG!$LDCONFIG$ac_delim
15923AR!$AR$ac_delim
15924STRIP!$STRIP$ac_delim
15925BUILD_CC!$BUILD_CC$ac_delim
15926SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
15927SIZEOF_INT!$SIZEOF_INT$ac_delim
15928SIZEOF_LONG!$SIZEOF_LONG$ac_delim
15929SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
15930SOCKET_LIB!$SOCKET_LIB$ac_delim
15931DLOPEN_LIB!$DLOPEN_LIB$ac_delim
15932UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
15933LINUX_CMT!$LINUX_CMT$ac_delim
15934CYGWIN_CMT!$CYGWIN_CMT$ac_delim
15935UNIX_CMT!$UNIX_CMT$ac_delim
15936root_prefix!$root_prefix$ac_delim
15937root_bindir!$root_bindir$ac_delim
15938root_sbindir!$root_sbindir$ac_delim
15939root_libdir!$root_libdir$ac_delim
15940root_sysconfdir!$root_sysconfdir$ac_delim
15941LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
15942SS_DIR!$SS_DIR$ac_delim
15943ET_DIR!$ET_DIR$ac_delim
15944DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
15945INTL_FLAGS!$INTL_FLAGS$ac_delim
15946BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15947BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15948LIBOBJS!$LIBOBJS$ac_delim
15949LTLIBOBJS!$LTLIBOBJS$ac_delim
15950_ACEOF
15951
Andreas Dilger927566a2006-11-12 19:41:25 -050015952 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 -040015953 break
15954 elif $ac_last_try; then
15955 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15956echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15957 { (exit 1); exit 1; }; }
15958 else
15959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15960 fi
15961done
15962
15963ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15964if test -n "$ac_eof"; then
15965 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15966 ac_eof=`expr $ac_eof + 1`
15967fi
15968
15969cat >>$CONFIG_STATUS <<_ACEOF
15970cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15972_ACEOF
15973sed '
15974s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15975s/^/s,@/; s/!/@,|#_!!_#|/
15976:n
15977t n
15978s/'"$ac_delim"'$/,g/; t
15979s/$/\\/; p
15980N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15981' >>$CONFIG_STATUS <conf$$subs.sed
15982rm -f conf$$subs.sed
15983cat >>$CONFIG_STATUS <<_ACEOF
15984:end
15985s/|#_!!_#|//g
15986CEOF$ac_eof
15987_ACEOF
15988
15989
15990# VPATH may cause trouble with some makes, so we remove $(srcdir),
15991# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15992# trailing colons and then remove the whole line if VPATH becomes empty
15993# (actually we leave an empty line to preserve line numbers).
15994if test "x$srcdir" = x.; then
15995 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15996s/:*\$(srcdir):*/:/
15997s/:*\${srcdir}:*/:/
15998s/:*@srcdir@:*/:/
15999s/^\([^=]*=[ ]*\):*/\1/
16000s/:*$//
16001s/^[^=]*=[ ]*$//
16002}'
16003fi
16004
16005cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016006fi # test -n "$CONFIG_FILES"
16007
Theodore Ts'oe1052142006-10-21 21:46:47 -040016008
16009for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16010do
16011 case $ac_tag in
16012 :[FHLC]) ac_mode=$ac_tag; continue;;
16013 esac
16014 case $ac_mode$ac_tag in
16015 :[FHL]*:*);;
16016 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16017echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16018 { (exit 1); exit 1; }; };;
16019 :[FH]-) ac_tag=-:-;;
16020 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16021 esac
16022 ac_save_IFS=$IFS
16023 IFS=:
16024 set x $ac_tag
16025 IFS=$ac_save_IFS
16026 shift
16027 ac_file=$1
16028 shift
16029
16030 case $ac_mode in
16031 :L) ac_source=$1;;
16032 :[FH])
16033 ac_file_inputs=
16034 for ac_f
16035 do
16036 case $ac_f in
16037 -) ac_f="$tmp/stdin";;
16038 *) # Look for the file first in the build tree, then in the source tree
16039 # (if the path is not absolute). The absolute path cannot be DOS-style,
16040 # because $ac_f cannot contain `:'.
16041 test -f "$ac_f" ||
16042 case $ac_f in
16043 [\\/$]*) false;;
16044 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16045 esac ||
16046 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16047echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16048 { (exit 1); exit 1; }; };;
16049 esac
16050 ac_file_inputs="$ac_file_inputs $ac_f"
16051 done
16052
16053 # Let's still pretend it is `configure' which instantiates (i.e., don't
16054 # use $as_me), people would be surprised to read:
16055 # /* config.h. Generated by config.status. */
16056 configure_input="Generated from "`IFS=:
16057 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16058 if test x"$ac_file" != x-; then
16059 configure_input="$ac_file. $configure_input"
16060 { echo "$as_me:$LINENO: creating $ac_file" >&5
16061echo "$as_me: creating $ac_file" >&6;}
16062 fi
16063
16064 case $ac_tag in
16065 *:-:* | *:-) cat >"$tmp/stdin";;
16066 esac
16067 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016068 esac
16069
Theodore Ts'oe1052142006-10-21 21:46:47 -040016070 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016071$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16072 X"$ac_file" : 'X\(//\)[^/]' \| \
16073 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016074 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016075echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16077 s//\1/
16078 q
16079 }
16080 /^X\(\/\/\)[^/].*/{
16081 s//\1/
16082 q
16083 }
16084 /^X\(\/\/\)$/{
16085 s//\1/
16086 q
16087 }
16088 /^X\(\/\).*/{
16089 s//\1/
16090 q
16091 }
16092 s/.*/./; q'`
16093 { as_dir="$ac_dir"
16094 case $as_dir in #(
16095 -*) as_dir=./$as_dir;;
16096 esac
16097 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016098 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016099 while :; do
16100 case $as_dir in #(
16101 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16102 *) as_qdir=$as_dir;;
16103 esac
16104 as_dirs="'$as_qdir' $as_dirs"
16105 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16107 X"$as_dir" : 'X\(//\)[^/]' \| \
16108 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016110echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16112 s//\1/
16113 q
16114 }
16115 /^X\(\/\/\)[^/].*/{
16116 s//\1/
16117 q
16118 }
16119 /^X\(\/\/\)$/{
16120 s//\1/
16121 q
16122 }
16123 /^X\(\/\).*/{
16124 s//\1/
16125 q
16126 }
16127 s/.*/./; q'`
16128 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016129 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016130 test -z "$as_dirs" || eval "mkdir $as_dirs"
16131 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16132echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016133 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016134 ac_builddir=.
16135
Theodore Ts'oe1052142006-10-21 21:46:47 -040016136case "$ac_dir" in
16137.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16138*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016140 # A ".." for each directory in $ac_dir_suffix.
16141 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16142 case $ac_top_builddir_sub in
16143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16145 esac ;;
16146esac
16147ac_abs_top_builddir=$ac_pwd
16148ac_abs_builddir=$ac_pwd$ac_dir_suffix
16149# for backward compatibility:
16150ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016151
16152case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016153 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016154 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016155 ac_top_srcdir=$ac_top_builddir_sub
16156 ac_abs_top_srcdir=$ac_pwd ;;
16157 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016158 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016159 ac_top_srcdir=$srcdir
16160 ac_abs_top_srcdir=$srcdir ;;
16161 *) # Relative name.
16162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16163 ac_top_srcdir=$ac_top_build_prefix$srcdir
16164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016165esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016166ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016168
Theodore Ts'oe1052142006-10-21 21:46:47 -040016169 case $ac_mode in
16170 :F)
16171 #
16172 # CONFIG_FILE
16173 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016174
16175 case $INSTALL in
16176 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016177 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016178 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016179_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016180
16181cat >>$CONFIG_STATUS <<\_ACEOF
16182# If the template does not know about datarootdir, expand it.
16183# FIXME: This hack should be removed a few years after 2.60.
16184ac_datarootdir_hack=; ac_datarootdir_seen=
16185
16186case `sed -n '/datarootdir/ {
16187 p
16188 q
16189}
16190/@datadir@/p
16191/@docdir@/p
16192/@infodir@/p
16193/@localedir@/p
16194/@mandir@/p
16195' $ac_file_inputs` in
16196*datarootdir*) ac_datarootdir_seen=yes;;
16197*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16198 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16199echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16200_ACEOF
16201cat >>$CONFIG_STATUS <<_ACEOF
16202 ac_datarootdir_hack='
16203 s&@datadir@&$datadir&g
16204 s&@docdir@&$docdir&g
16205 s&@infodir@&$infodir&g
16206 s&@localedir@&$localedir&g
16207 s&@mandir@&$mandir&g
16208 s&\\\${datarootdir}&$datarootdir&g' ;;
16209esac
16210_ACEOF
16211
16212# Neutralize VPATH when `$srcdir' = `.'.
16213# Shell code in configure.ac might set extrasub.
16214# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016215cat >>$CONFIG_STATUS <<_ACEOF
16216 sed "$ac_vpsub
16217$extrasub
16218_ACEOF
16219cat >>$CONFIG_STATUS <<\_ACEOF
16220:t
16221/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016222s&@configure_input@&$configure_input&;t t
16223s&@top_builddir@&$ac_top_builddir_sub&;t t
16224s&@srcdir@&$ac_srcdir&;t t
16225s&@abs_srcdir@&$ac_abs_srcdir&;t t
16226s&@top_srcdir@&$ac_top_srcdir&;t t
16227s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16228s&@builddir@&$ac_builddir&;t t
16229s&@abs_builddir@&$ac_abs_builddir&;t t
16230s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16231s&@INSTALL@&$ac_INSTALL&;t t
16232$ac_datarootdir_hack
16233" $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 -050016234
Theodore Ts'oe1052142006-10-21 21:46:47 -040016235test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16236 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16237 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16238 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16239which seems to be undefined. Please make sure it is defined." >&5
16240echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16241which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016242
Theodore Ts'oe1052142006-10-21 21:46:47 -040016243 rm -f "$tmp/stdin"
16244 case $ac_file in
16245 -) cat "$tmp/out"; rm -f "$tmp/out";;
16246 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16247 esac
16248 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016249
16250
Theodore Ts'oe1052142006-10-21 21:46:47 -040016251 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16252echo "$as_me: executing $ac_file commands" >&6;}
16253 ;;
16254 esac
16255
16256
16257 case $ac_file$ac_mode in
16258 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016259 for ac_file in $CONFIG_FILES; do
16260 # Support "outfile[:infile[:infile...]]"
16261 case "$ac_file" in
16262 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016263 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016264 # PO directories have a Makefile.in generated from Makefile.in.in.
16265 case "$ac_file" in */Makefile.in)
16266 # Adjust a relative srcdir.
16267 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16268 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16269 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16270 # In autoconf-2.13 it is called $ac_given_srcdir.
16271 # In autoconf-2.50 it is called $srcdir.
16272 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16273 case "$ac_given_srcdir" in
16274 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16275 /*) top_srcdir="$ac_given_srcdir" ;;
16276 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16277 esac
16278 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16279 rm -f "$ac_dir/POTFILES"
16280 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16281 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 -050016282 POMAKEFILEDEPS="POTFILES.in"
16283 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016284 # on $ac_dir but don't depend on user-specified configuration
16285 # parameters.
16286 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16287 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016288 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016289 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16290 fi
16291 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16292 # Hide the ALL_LINGUAS assigment from automake.
16293 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016294 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16295 else
16296 # The set of available languages was given in configure.in.
16297 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016298 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016299 # Compute POFILES
16300 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16301 # Compute UPDATEPOFILES
16302 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16303 # Compute DUMMYPOFILES
16304 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16305 # Compute GMOFILES
16306 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016307 case "$ac_given_srcdir" in
16308 .) srcdirpre= ;;
16309 *) srcdirpre='$(srcdir)/' ;;
16310 esac
16311 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016312 UPDATEPOFILES=
16313 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016314 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016315 for lang in $ALL_LINGUAS; do
16316 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016317 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16318 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016319 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016320 done
16321 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16322 # environment variable.
16323 INST_LINGUAS=
16324 if test -n "$ALL_LINGUAS"; then
16325 for presentlang in $ALL_LINGUAS; do
16326 useit=no
16327 if test "%UNSET%" != "$LINGUAS"; then
16328 desiredlanguages="$LINGUAS"
16329 else
16330 desiredlanguages="$ALL_LINGUAS"
16331 fi
16332 for desiredlang in $desiredlanguages; do
16333 # Use the presentlang catalog if desiredlang is
16334 # a. equal to presentlang, or
16335 # b. a variant of presentlang (because in this case,
16336 # presentlang can be used as a fallback for messages
16337 # which are not translated in the desiredlang catalog).
16338 case "$desiredlang" in
16339 "$presentlang"*) useit=yes;;
16340 esac
16341 done
16342 if test $useit = yes; then
16343 INST_LINGUAS="$INST_LINGUAS $presentlang"
16344 fi
16345 done
16346 fi
16347 CATALOGS=
16348 if test -n "$INST_LINGUAS"; then
16349 for lang in $INST_LINGUAS; do
16350 CATALOGS="$CATALOGS $lang.gmo"
16351 done
16352 fi
16353 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016354 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 -040016355 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16356 if test -f "$f"; then
16357 case "$f" in
16358 *.orig | *.bak | *~) ;;
16359 *) cat "$f" >> "$ac_dir/Makefile" ;;
16360 esac
16361 fi
16362 done
16363 fi
16364 ;;
16365 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016366 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016367
Theodore Ts'oe1052142006-10-21 21:46:47 -040016368 esac
16369done # for ac_tag
16370
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016371
16372{ (exit 0); exit 0; }
16373_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016374chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016375ac_clean_files=$ac_clean_files_save
16376
16377
16378# configure is writing to config.log, and then calls config.status.
16379# config.status does its own redirection, appending to config.log.
16380# Unfortunately, on DOS this fails, as config.log is still kept open
16381# by configure, so config.status won't be able to write to it; its
16382# output is simply discarded. So we exec the FD to /dev/null,
16383# effectively closing config.log, so it can be properly (re)opened and
16384# appended to by config.status. When coming back to configure, we
16385# need to make the FD available again.
16386if test "$no_create" != yes; then
16387 ac_cs_success=:
16388 ac_config_status_args=
16389 test "$silent" = yes &&
16390 ac_config_status_args="$ac_config_status_args --quiet"
16391 exec 5>/dev/null
16392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16393 exec 5>>config.log
16394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16395 # would make configure fail if this is the last instruction.
16396 $ac_cs_success || { (exit 1); exit 1; }
16397fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016398
Theodore Ts'oee683a12005-02-05 15:53:56 -050016399if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16400