blob: 0e3bdbed1de3d160511fbac904e6f2a8f7d8aab0 [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
Theodore Ts'o55da9872008-09-02 23:12:38 -0400687LDFLAG_DYNAMIC
688PRIVATE_LIBS_CMT
Theodore Ts'oaf773652008-09-01 11:27:27 -0400689TEST_IO_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400690DEBUGFS_CMT
691IMAGER_CMT
692RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400693FSCK_PROG
694FSCK_MAN
695E2INITRD_PROG
696E2INITRD_MAN
Theodore Ts'o5610f992007-12-31 11:16:56 -0500697UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400698GETTEXT_PACKAGE
699PACKAGE
700VERSION
701SET_MAKE
702INSTALL_PROGRAM
703INSTALL_SCRIPT
704INSTALL_DATA
705MKINSTALLDIRS
706USE_NLS
707MSGFMT
708GMSGFMT
709XGETTEXT
710MSGMERGE
711RANLIB
712ALLOCA
713GLIBC21
714HAVE_POSIX_PRINTF
715HAVE_ASPRINTF
716HAVE_SNPRINTF
717HAVE_WPRINTF
718LIBICONV
719LTLIBICONV
720INTLBISON
721BUILD_INCLUDED_LIBINTL
722USE_INCLUDED_LIBINTL
723CATOBJEXT
724DATADIRNAME
725INSTOBJEXT
726GENCAT
727INTLOBJS
728INTL_LIBTOOL_SUFFIX_PREFIX
729INTLLIBS
730LIBINTL
731LTLIBINTL
732POSUB
733BINARY_TYPE
734LN
735LN_S
736MV
737CP
738RM
739CHMOD
740AWK
741SED
742PERL
743LDCONFIG
744AR
745STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530746MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400747BUILD_CC
748SIZEOF_SHORT
749SIZEOF_INT
750SIZEOF_LONG
751SIZEOF_LONG_LONG
752SOCKET_LIB
753DLOPEN_LIB
754UNI_DIFF_OPTS
755LINUX_CMT
756CYGWIN_CMT
757UNIX_CMT
758root_prefix
759root_bindir
760root_sbindir
761root_libdir
762root_sysconfdir
763LDFLAG_STATIC
764SS_DIR
765ET_DIR
766DO_TEST_SUITE
767INTL_FLAGS
768BUILD_CFLAGS
769BUILD_LDFLAGS
770LIBOBJS
771LTLIBOBJS'
772ac_subst_files='MCONFIG
773MAKEFILE_ELF
774MAKEFILE_BSDLIB
775MAKEFILE_PROFILE
776MAKEFILE_CHECKER
777MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400778ASM_TYPES_HEADER
779PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400780 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
Theodore Ts'o7515a742008-08-26 23:56:00 -0400788CPP'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400789
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
Theodore Ts'oaf773652008-09-01 11:27:27 -04001370 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001371 --disable-debugfs disable support of debugfs program
1372 --disable-imager disable support of e2image program
1373 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001374 --enable-fsck build fsck wrapper program
1375 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001376 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001377 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001378 --disable-nls do not use Native Language Support
1379 --disable-rpath do not hardcode runtime library paths
1380
1381Optional Packages:
1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001384 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001385 --with-cc=COMPILER select compiler to use
1386 --with-linker=LINKER select linker to use
1387 --with-ccopts=CCOPTS select compiler command line options
1388 --with-ldopts=LDOPTS select linker command line options
1389 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1390 --with-gnu-ld assume the C compiler uses GNU ld default=no
1391 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1392 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1393 --with-included-gettext use the GNU gettext library included here
1394 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1395 --without-libintl-prefix don't search for libintl in includedir and libdir
1396
1397Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001402 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001403 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001405 CPP C preprocessor
1406
1407Use these variables to override the choices made by `configure' or to help
1408it to find libraries and programs with nonstandard names/locations.
1409
1410_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001411ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001412fi
1413
1414if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001417 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001418 ac_builddir=.
1419
Theodore Ts'oe1052142006-10-21 21:46:47 -04001420case "$ac_dir" in
1421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 esac ;;
1430esac
1431ac_abs_top_builddir=$ac_pwd
1432ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433# for backward compatibility:
1434ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435
1436case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001437 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001438 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001442 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1445 *) # Relative name.
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001449esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001451
Theodore Ts'oe1052142006-10-21 21:46:47 -04001452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1458 echo &&
1459 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001460 else
1461 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001462 fi || ac_status=$?
1463 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001464 done
1465fi
1466
Theodore Ts'oe1052142006-10-21 21:46:47 -04001467test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001468if $ac_init_version; then
1469 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001470configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001471generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472
Theodore Ts'oe1052142006-10-21 21:46:47 -04001473Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001475This configure script is free software; the Free Software Foundation
1476gives unlimited permission to copy, distribute and modify it.
1477_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001478 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001480cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481This file contains any messages produced by compilers while
1482running configure, to aid debugging if configure makes a mistake.
1483
1484It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001485generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001486
1487 $ $0 $@
1488
1489_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001490exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001491{
1492cat <<_ASUNAME
1493## --------- ##
1494## Platform. ##
1495## --------- ##
1496
1497hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1498uname -m = `(uname -m) 2>/dev/null || echo unknown`
1499uname -r = `(uname -r) 2>/dev/null || echo unknown`
1500uname -s = `(uname -s) 2>/dev/null || echo unknown`
1501uname -v = `(uname -v) 2>/dev/null || echo unknown`
1502
1503/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1504/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1505
1506/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1507/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1508/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001509/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001510/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1511/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1512/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1513
1514_ASUNAME
1515
1516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517for as_dir in $PATH
1518do
1519 IFS=$as_save_IFS
1520 test -z "$as_dir" && as_dir=.
1521 echo "PATH: $as_dir"
1522done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001523IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001524
1525} >&5
1526
1527cat >&5 <<_ACEOF
1528
1529
1530## ----------- ##
1531## Core tests. ##
1532## ----------- ##
1533
1534_ACEOF
1535
1536
1537# Keep a trace of the command line.
1538# Strip out --no-create and --no-recursion so they do not pile up.
1539# Strip out --silent because we don't want to record it for future runs.
1540# Also quote any args containing shell meta-characters.
1541# Make two passes to allow for proper duplicate-argument suppression.
1542ac_configure_args=
1543ac_configure_args0=
1544ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001545ac_must_keep_next=false
1546for ac_pass in 1 2
1547do
1548 for ac_arg
1549 do
1550 case $ac_arg in
1551 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1553 | -silent | --silent | --silen | --sile | --sil)
1554 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001555 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001556 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1557 esac
1558 case $ac_pass in
1559 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1560 2)
1561 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1562 if test $ac_must_keep_next = true; then
1563 ac_must_keep_next=false # Got value, back to normal.
1564 else
1565 case $ac_arg in
1566 *=* | --config-cache | -C | -disable-* | --disable-* \
1567 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1568 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1569 | -with-* | --with-* | -without-* | --without-* | --x)
1570 case "$ac_configure_args0 " in
1571 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1572 esac
1573 ;;
1574 -* ) ac_must_keep_next=true ;;
1575 esac
1576 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001577 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001578 ;;
1579 esac
1580 done
1581done
1582$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1583$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1584
1585# When interrupted or exit'd, cleanup temporary files, and complete
1586# config.log. We remove comments because anyway the quotes in there
1587# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001588# WARNING: Use '\'' to represent an apostrophe within the trap.
1589# 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 -05001590trap 'exit_status=$?
1591 # Save into config.log some information that might help in debugging.
1592 {
1593 echo
1594
1595 cat <<\_ASBOX
1596## ---------------- ##
1597## Cache variables. ##
1598## ---------------- ##
1599_ASBOX
1600 echo
1601 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001602(
1603 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1604 eval ac_val=\$$ac_var
1605 case $ac_val in #(
1606 *${as_nl}*)
1607 case $ac_var in #(
1608 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1609echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1610 esac
1611 case $ac_var in #(
1612 _ | IFS | as_nl) ;; #(
1613 *) $as_unset $ac_var ;;
1614 esac ;;
1615 esac
1616 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001617 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1619 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001620 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001621 "s/'\''/'\''\\\\'\'''\''/g;
1622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1623 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627 esac |
1628 sort
1629)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001630 echo
1631
1632 cat <<\_ASBOX
1633## ----------------- ##
1634## Output variables. ##
1635## ----------------- ##
1636_ASBOX
1637 echo
1638 for ac_var in $ac_subst_vars
1639 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001645 done | sort
1646 echo
1647
1648 if test -n "$ac_subst_files"; then
1649 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001650## ------------------- ##
1651## File substitutions. ##
1652## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001653_ASBOX
1654 echo
1655 for ac_var in $ac_subst_files
1656 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001657 eval ac_val=\$$ac_var
1658 case $ac_val in
1659 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1660 esac
1661 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001662 done | sort
1663 echo
1664 fi
1665
1666 if test -s confdefs.h; then
1667 cat <<\_ASBOX
1668## ----------- ##
1669## confdefs.h. ##
1670## ----------- ##
1671_ASBOX
1672 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001673 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001674 echo
1675 fi
1676 test "$ac_signal" != 0 &&
1677 echo "$as_me: caught signal $ac_signal"
1678 echo "$as_me: exit $exit_status"
1679 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001680 rm -f core *.core core.conftest.* &&
1681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001682 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001683' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001684for ac_signal in 1 2 13 15; do
1685 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1686done
1687ac_signal=0
1688
1689# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001690rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001691
1692# Predefined preprocessor variables.
1693
1694cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_NAME "$PACKAGE_NAME"
1696_ACEOF
1697
1698
1699cat >>confdefs.h <<_ACEOF
1700#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1701_ACEOF
1702
1703
1704cat >>confdefs.h <<_ACEOF
1705#define PACKAGE_VERSION "$PACKAGE_VERSION"
1706_ACEOF
1707
1708
1709cat >>confdefs.h <<_ACEOF
1710#define PACKAGE_STRING "$PACKAGE_STRING"
1711_ACEOF
1712
1713
1714cat >>confdefs.h <<_ACEOF
1715#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1716_ACEOF
1717
1718
1719# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001720# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001721if test -n "$CONFIG_SITE"; then
1722 set x "$CONFIG_SITE"
1723elif test "x$prefix" != xNONE; then
1724 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1725else
1726 set x "$ac_default_prefix/share/config.site" \
1727 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001729shift
1730for ac_site_file
1731do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001732 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001733 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1734echo "$as_me: loading site script $ac_site_file" >&6;}
1735 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001736 . "$ac_site_file"
1737 fi
1738done
1739
1740if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001741 # Some versions of bash will fail to source /dev/null (special
1742 # files actually), so we avoid doing that.
1743 if test -f "$cache_file"; then
1744 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1745echo "$as_me: loading cache $cache_file" >&6;}
1746 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001747 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1748 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001749 esac
1750 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001751else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001752 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1753echo "$as_me: creating cache $cache_file" >&6;}
1754 >$cache_file
1755fi
1756
1757# Check that the precious variables saved in the cache have kept the same
1758# value.
1759ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001760for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001761 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1762 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001763 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1764 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001765 case $ac_old_set,$ac_new_set in
1766 set,)
1767 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1768echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1769 ac_cache_corrupted=: ;;
1770 ,set)
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1772echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1774 ,);;
1775 *)
1776 if test "x$ac_old_val" != "x$ac_new_val"; then
1777 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1778echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1779 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1780echo "$as_me: former value: $ac_old_val" >&2;}
1781 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1782echo "$as_me: current value: $ac_new_val" >&2;}
1783 ac_cache_corrupted=:
1784 fi;;
1785 esac
1786 # Pass precious variables to config.status.
1787 if test "$ac_new_set" = set; then
1788 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001789 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001790 *) ac_arg=$ac_var=$ac_new_val ;;
1791 esac
1792 case " $ac_configure_args " in
1793 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1794 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1795 esac
1796 fi
1797done
1798if $ac_cache_corrupted; then
1799 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1800echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1801 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1802echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1803 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001804fi
1805
Theodore Ts'oe1052142006-10-21 21:46:47 -04001806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001822ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001823ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001827
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001828
1829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001830ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001831for ac_dir in config "$srcdir"/config; do
1832 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001833 ac_aux_dir=$ac_dir
1834 ac_install_sh="$ac_aux_dir/install-sh -c"
1835 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001836 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001837 ac_aux_dir=$ac_dir
1838 ac_install_sh="$ac_aux_dir/install.sh -c"
1839 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001840 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001841 ac_aux_dir=$ac_dir
1842 ac_install_sh="$ac_aux_dir/shtool install -c"
1843 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001844 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001845done
1846if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001847 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1848echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001849 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001851
1852# These three variables are undocumented and unsupported,
1853# and are intended to be withdrawn in a future Autoconf release.
1854# They can cause serious problems if a builder's source tree is in a directory
1855# whose full name contains unusual characters.
1856ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1857ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1858ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1859
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001860
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001861MCONFIG=./MCONFIG
1862
Theodore Ts'o74becf31997-04-26 14:37:06 +00001863BINARY_TYPE=bin
1864E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1865 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1866DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1867 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001868E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001869MONTH=`echo $DATE | awk -F- '{print $2}'`
1870YEAR=`echo $DATE | awk -F- '{print $3}'`
1871
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001872if expr $YEAR ">" 1900 > /dev/null ; then
1873 E2FSPROGS_YEAR=$YEAR
1874elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001875 E2FSPROGS_YEAR=19$YEAR
1876else
1877 E2FSPROGS_YEAR=20$YEAR
1878fi
1879
1880case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001881Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1882Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1883Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1884Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1885May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1886Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1887Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1888Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1889Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1890Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1891Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1892Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001893*) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1894echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001895esac
1896
Andreas Dilger927566a2006-11-12 19:41:25 -05001897base_ver=`echo $E2FSPROGS_VERSION | \
1898 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001899
1900date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1901
1902case $E2FSPROGS_VERSION in
1903*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04001904 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05001905 ;;
1906*)
1907 E2FSPROGS_PKGVER="$base_ver"
1908 ;;
1909esac
1910
1911unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001912{ echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1913echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1914{ echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1915echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00001916
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'oeafba6c2008-07-10 10:21:42 -04002004WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002005
Theodore Ts'oe1052142006-10-21 21:46:47 -04002006# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002007if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002008 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002009WITH_DIET_LIBC=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04002010{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2011echo "${ECHO_T}CC=$CC" >&6; }
2012fi
2013
2014# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002015if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002016 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2017echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002018CC=$withval
2019else
2020 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002021{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2022echo "${ECHO_T}CC defaults to $CC" >&6; }
2023fi
2024export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002025
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002026ac_ext=c
2027ac_cpp='$CPP $CPPFLAGS'
2028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031if test -n "$ac_tool_prefix"; then
2032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2033set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002036if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002038else
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002048 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 -05002049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2052 fi
2053done
2054done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002055IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002056
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002057fi
2058fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002059CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002060if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002061 { echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002063else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002064 { echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002066fi
2067
Theodore Ts'oe1052142006-10-21 21:46:47 -04002068
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002069fi
2070if test -z "$ac_cv_prog_CC"; then
2071 ac_ct_CC=$CC
2072 # Extract the first word of "gcc", so it can be a program name with args.
2073set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081else
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002088 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 -05002089 ac_cv_prog_ac_ct_CC="gcc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2092 fi
2093done
2094done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002095IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002096
2097fi
2098fi
2099ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002101 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002103else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002104 { echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002106fi
2107
Theodore Ts'oe1052142006-10-21 21:46:47 -04002108 if test "x$ac_ct_CC" = x; then
2109 CC=""
2110 else
2111 case $cross_compiling:$ac_tool_warned in
2112yes:)
2113{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2114whose name does not start with the host triplet. If you think this
2115configuration is useful to you, please write to autoconf@gnu.org." >&5
2116echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2117whose name does not start with the host triplet. If you think this
2118configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2119ac_tool_warned=yes ;;
2120esac
2121 CC=$ac_ct_CC
2122 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002123else
2124 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002125fi
2126
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002127if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002128 if test -n "$ac_tool_prefix"; then
2129 # 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 -05002130set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002133if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002135else
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2138else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002145 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 -05002146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2149 fi
2150done
2151done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002152IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002153
2154fi
2155fi
2156CC=$ac_cv_prog_CC
2157if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002158 { echo "$as_me:$LINENO: result: $CC" >&5
2159echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002160else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002161 { echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002163fi
2164
Theodore Ts'oe1052142006-10-21 21:46:47 -04002165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002166 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002167fi
2168if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002173if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002179 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002186 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 -05002187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2190 fi
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195done
2196done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002197IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002198
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002199if test $ac_prog_rejected = yes; then
2200 # We found a bogon in the path, so make sure we never use it.
2201 set dummy $ac_cv_prog_CC
2202 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002203 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002204 # We chose a different compiler from the bogus one.
2205 # However, it has the same basename, so the bogon will be chosen
2206 # first if we set CC to just the basename; use the full file name.
2207 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002209 fi
2210fi
2211fi
2212fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002213CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002214if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002215 { echo "$as_me:$LINENO: result: $CC" >&5
2216echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002217else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002218 { echo "$as_me:$LINENO: result: no" >&5
2219echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002220fi
2221
Theodore Ts'oe1052142006-10-21 21:46:47 -04002222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002223fi
2224if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002226 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002227 do
2228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002232if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002234else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002244 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 -05002245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2248 fi
2249done
2250done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002251IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002252
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002253fi
2254fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002255CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002256if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002257 { echo "$as_me:$LINENO: result: $CC" >&5
2258echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002259else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002260 { echo "$as_me:$LINENO: result: no" >&5
2261echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002262fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002263
Theodore Ts'oe1052142006-10-21 21:46:47 -04002264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002265 test -n "$CC" && break
2266 done
2267fi
2268if test -z "$CC"; then
2269 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002270 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002271do
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281else
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002288 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 -05002289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002292 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002293done
2294done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002295IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002296
2297fi
2298fi
2299ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002301 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002303else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002304 { echo "$as_me:$LINENO: result: no" >&5
2305echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002306fi
2307
Theodore Ts'oe1052142006-10-21 21:46:47 -04002308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002309 test -n "$ac_ct_CC" && break
2310done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002311
Theodore Ts'oe1052142006-10-21 21:46:47 -04002312 if test "x$ac_ct_CC" = x; then
2313 CC=""
2314 else
2315 case $cross_compiling:$ac_tool_warned in
2316yes:)
2317{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318whose name does not start with the host triplet. If you think this
2319configuration is useful to you, please write to autoconf@gnu.org." >&5
2320echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321whose name does not start with the host triplet. If you think this
2322configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323ac_tool_warned=yes ;;
2324esac
2325 CC=$ac_ct_CC
2326 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002327fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002329fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002330
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002332test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2333See \`config.log' for more details." >&5
2334echo "$as_me: error: no acceptable C compiler found in \$PATH
2335See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2337
2338# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002339echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002340ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002341{ (ac_try="$ac_compiler --version >&5"
2342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
2346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002351{ (ac_try="$ac_compiler -v >&5"
2352case "(($ac_try" in
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2355esac
2356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002361{ (ac_try="$ac_compiler -V >&5"
2362case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365esac
2366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2371
2372cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h. */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
2378
2379int
2380main ()
2381{
2382
2383 ;
2384 return 0;
2385}
2386_ACEOF
2387ac_clean_files_save=$ac_clean_files
2388ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389# Try to create an executable without -o first, disregard a.out.
2390# It will help us diagnose broken compilers, and finding out an intuition
2391# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002392{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002394ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395#
2396# List of possible output files, starting from the most likely.
2397# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2398# only as a last resort. b.out is created by i960 compilers.
2399ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2400#
2401# The IRIX 6 linker writes into existing files which may not be
2402# executable, retaining their permissions. Remove them first so a
2403# subsequent execution test works.
2404ac_rmfiles=
2405for ac_file in $ac_files
2406do
2407 case $ac_file in
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2410 esac
2411done
2412rm -f $ac_rmfiles
2413
2414if { (ac_try="$ac_link_default"
2415case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2425# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2426# in a Makefile. We should not override ac_cv_exeext if it was cached,
2427# so that the user can short-circuit this test for compilers unknown to
2428# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002429for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430do
2431 test -f "$ac_file" || continue
2432 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002434 ;;
2435 [ab].out )
2436 # We found the default executable, but exeext='' is most
2437 # certainly right.
2438 break;;
2439 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2441 then :; else
2442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2443 fi
2444 # We set ac_cv_exeext here because the later test for it is not
2445 # safe: cross compilers may not add the suffix if given an `-o'
2446 # argument, so we may need to know it at that point already.
2447 # Even if this section looks crufty: it has the advantage of
2448 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449 break;;
2450 * )
2451 break;;
2452 esac
2453done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002454test "$ac_cv_exeext" = no && ac_cv_exeext=
2455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002456else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002457 ac_file=''
2458fi
2459
2460{ echo "$as_me:$LINENO: result: $ac_file" >&5
2461echo "${ECHO_T}$ac_file" >&6; }
2462if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463 echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2467See \`config.log' for more details." >&5
2468echo "$as_me: error: C compiler cannot create executables
2469See \`config.log' for more details." >&2;}
2470 { (exit 77); exit 77; }; }
2471fi
2472
2473ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002477{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480# If not cross compiling, check that we can run a simple program.
2481if test "$cross_compiling" != yes; then
2482 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486esac
2487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002493 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002494 if test "$cross_compiling" = maybe; then
2495 cross_compiling=yes
2496 else
2497 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2498If you meant to cross compile, use \`--host'.
2499See \`config.log' for more details." >&5
2500echo "$as_me: error: cannot run C compiled programs.
2501If you meant to cross compile, use \`--host'.
2502See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2504 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002505 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507{ echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510rm -f a.out a.exe conftest$ac_cv_exeext b.out
2511ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2515echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2516{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2517echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002518
Theodore Ts'oe1052142006-10-21 21:46:47 -04002519{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2520echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2521if { (ac_try="$ac_link"
2522case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525esac
2526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2532# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2533# work properly (i.e., refer to `conftest.exe'), while it won't with
2534# `rm'.
2535for ac_file in conftest.exe conftest conftest.*; do
2536 test -f "$ac_file" || continue
2537 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 break;;
2541 * ) break;;
2542 esac
2543done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002544else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2546See \`config.log' for more details." >&5
2547echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2548See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2550fi
2551
2552rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002553{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2554echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002555
2556rm -f conftest.$ac_ext
2557EXEEXT=$ac_cv_exeext
2558ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002559{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2560echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561if test "${ac_cv_objext+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564 cat >conftest.$ac_ext <<_ACEOF
2565/* confdefs.h. */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
2569/* end confdefs.h. */
2570
2571int
2572main ()
2573{
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002580if { (ac_try="$ac_compile"
2581case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584esac
2585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002590 for ac_file in conftest.o conftest.obj conftest.*; do
2591 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002592 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595 break;;
2596 esac
2597done
2598else
2599 echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2603See \`config.log' for more details." >&5
2604echo "$as_me: error: cannot compute suffix of object files: cannot compile
2605See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2607fi
2608
2609rm -f conftest.$ac_cv_objext conftest.$ac_ext
2610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002611{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2612echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002613OBJEXT=$ac_cv_objext
2614ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002615{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2616echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002617if test "${ac_cv_c_compiler_gnu+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
2626
2627int
2628main ()
2629{
2630#ifndef __GNUC__
2631 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002632#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002634 ;
2635 return 0;
2636}
2637_ACEOF
2638rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002639if { (ac_try="$ac_compile"
2640case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643esac
2644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002656else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002657 echo "$as_me: failed program was:" >&5
2658sed 's/^/| /' conftest.$ac_ext >&5
2659
Theodore Ts'oe1052142006-10-21 21:46:47 -04002660 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002662
2663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002667{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002669GCC=`test $ac_compiler_gnu = yes && echo yes`
2670ac_test_CFLAGS=${CFLAGS+set}
2671ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002672{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2673echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002674if test "${ac_cv_prog_cc_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002676else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002677 ac_save_c_werror_flag=$ac_c_werror_flag
2678 ac_c_werror_flag=yes
2679 ac_cv_prog_cc_g=no
2680 CFLAGS="-g"
2681 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002682/* confdefs.h. */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h. */
2687
2688int
2689main ()
2690{
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002697if { (ac_try="$ac_compile"
2698case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002713 ac_cv_prog_cc_g=yes
2714else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002715 echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002717
Theodore Ts'oe1052142006-10-21 21:46:47 -04002718 CFLAGS=""
2719 cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h. */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h. */
2725
2726int
2727main ()
2728{
2729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (ac_try="$ac_compile"
2736case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002751 :
2752else
2753 echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2757 CFLAGS="-g"
2758 cat >conftest.$ac_ext <<_ACEOF
2759/* confdefs.h. */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h. */
2764
2765int
2766main ()
2767{
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773rm -f conftest.$ac_objext
2774if { (ac_try="$ac_compile"
2775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
2779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002790 ac_cv_prog_cc_g=yes
2791else
2792 echo "$as_me: failed program was:" >&5
2793sed 's/^/| /' conftest.$ac_ext >&5
2794
2795
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002797
2798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002800
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802fi
2803
2804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 ac_c_werror_flag=$ac_save_c_werror_flag
2806fi
2807{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002809if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002810 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002811elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2813 CFLAGS="-g -O2"
2814 else
2815 CFLAGS="-g"
2816 fi
2817else
2818 if test "$GCC" = yes; then
2819 CFLAGS="-O2"
2820 else
2821 CFLAGS=
2822 fi
2823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002824{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2825echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2826if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002829 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830ac_save_CC=$CC
2831cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h. */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h. */
2837#include <stdarg.h>
2838#include <stdio.h>
2839#include <sys/types.h>
2840#include <sys/stat.h>
2841/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842struct buf { int x; };
2843FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844static char *e (p, i)
2845 char **p;
2846 int i;
2847{
2848 return p[i];
2849}
2850static char *f (char * (*g) (char **, int), char **p, ...)
2851{
2852 char *s;
2853 va_list v;
2854 va_start (v,p);
2855 s = g (p, va_arg (v,int));
2856 va_end (v);
2857 return s;
2858}
2859
2860/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002863 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002867int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 inside strings and character constants. */
2871#define FOO(x) 'x'
2872int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002874int test (int i, double x);
2875struct s1 {int (*f) (int a);};
2876struct s2 {int (*f) (double a);};
2877int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878int argc;
2879char **argv;
2880int
2881main ()
2882{
2883return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2884 ;
2885 return 0;
2886}
2887_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002888for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002890do
2891 CC="$ac_save_CC $ac_arg"
2892 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002893if { (ac_try="$ac_compile"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002909 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002910else
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
Theodore Ts'oe1052142006-10-21 21:46:47 -04002914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002916
2917rm -f core conftest.err conftest.$ac_objext
2918 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002920rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921CC=$ac_save_CC
2922
2923fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002924# AC_CACHE_VAL
2925case "x$ac_cv_prog_cc_c89" in
2926 x)
2927 { echo "$as_me:$LINENO: result: none needed" >&5
2928echo "${ECHO_T}none needed" >&6; } ;;
2929 xno)
2930 { echo "$as_me:$LINENO: result: unsupported" >&5
2931echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002932 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002933 CC="$CC $ac_cv_prog_cc_c89"
2934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2935echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936esac
2937
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939ac_ext=c
2940ac_cpp='$CPP $CPPFLAGS'
2941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002945ac_ext=c
2946ac_cpp='$CPP $CPPFLAGS'
2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002950{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2951echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002952# On Suns, sometimes $CPP names a directory.
2953if test -n "$CPP" && test -d "$CPP"; then
2954 CPP=
2955fi
2956if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957 if test "${ac_cv_prog_CPP+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002959else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960 # Double quotes because CPP needs to be expanded
2961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 do
2963 ac_preproc_ok=false
2964for ac_c_preproc_warn_flag in '' yes
2965do
2966 # Use a header file that comes with gcc, so configuring glibc
2967 # with a fresh cross-compiler works.
2968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002970 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002971 # not just through cpp. "Syntax error" is here to catch this case.
2972 cat >conftest.$ac_ext <<_ACEOF
2973/* confdefs.h. */
2974_ACEOF
2975cat confdefs.h >>conftest.$ac_ext
2976cat >>conftest.$ac_ext <<_ACEOF
2977/* end confdefs.h. */
2978#ifdef __STDC__
2979# include <limits.h>
2980#else
2981# include <assert.h>
2982#endif
2983 Syntax error
2984_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002985if { (ac_try="$ac_cpp conftest.$ac_ext"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002997 (exit $ac_status); } >/dev/null && {
2998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003001 :
3002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003 echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003005
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 # Broken: fails on valid input.
3007continue
3008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010rm -f conftest.err conftest.$ac_ext
3011
Theodore Ts'oe1052142006-10-21 21:46:47 -04003012 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013 # can be detected and how.
3014 cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h. */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
3019/* end confdefs.h. */
3020#include <ac_nonexistent.h>
3021_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003022if { (ac_try="$ac_cpp conftest.$ac_ext"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038 # Broken: success on invalid input.
3039continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 # Passes both tests.
3045ac_preproc_ok=:
3046break
3047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003048
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049rm -f conftest.err conftest.$ac_ext
3050
3051done
3052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053rm -f conftest.err conftest.$ac_ext
3054if $ac_preproc_ok; then
3055 break
3056fi
3057
3058 done
3059 ac_cv_prog_CPP=$CPP
3060
3061fi
3062 CPP=$ac_cv_prog_CPP
3063else
3064 ac_cv_prog_CPP=$CPP
3065fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003066{ echo "$as_me:$LINENO: result: $CPP" >&5
3067echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068ac_preproc_ok=false
3069for ac_c_preproc_warn_flag in '' yes
3070do
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */
3083#ifdef __STDC__
3084# include <limits.h>
3085#else
3086# include <assert.h>
3087#endif
3088 Syntax error
3089_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003090if { (ac_try="$ac_cpp conftest.$ac_ext"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003102 (exit $ac_status); } >/dev/null && {
3103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106 :
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 # Broken: fails on valid input.
3112continue
3113fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115rm -f conftest.err conftest.$ac_ext
3116
Theodore Ts'oe1052142006-10-21 21:46:47 -04003117 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118 # can be detected and how.
3119 cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125#include <ac_nonexistent.h>
3126_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127if { (ac_try="$ac_cpp conftest.$ac_ext"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003143 # Broken: success on invalid input.
3144continue
3145else
3146 echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 # Passes both tests.
3150ac_preproc_ok=:
3151break
3152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154rm -f conftest.err conftest.$ac_ext
3155
3156done
3157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158rm -f conftest.err conftest.$ac_ext
3159if $ac_preproc_ok; then
3160 :
3161else
3162 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3163See \`config.log' for more details." >&5
3164echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3165See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3167fi
3168
3169ac_ext=c
3170ac_cpp='$CPP $CPPFLAGS'
3171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003176# Check whether --with-linker was given.
3177if test "${with_linker+set}" = set; then
3178 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3179echo "${ECHO_T}LD=$withval" >&6; }
3180LD=$withval
3181else
3182 if test -z "$LD" ; then LD=$CC; fi
3183{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3184echo "${ECHO_T}LD defaults to $LD" >&6; }
3185fi
3186export LD
3187
3188
3189# Check whether --with-ccopts was given.
3190if test "${with_ccopts+set}" = set; then
3191 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3192echo "${ECHO_T}CCOPTS is $withval" >&6; }
3193CFLAGS=$withval
3194fi
3195
3196
Theodore Ts'oe1052142006-10-21 21:46:47 -04003197{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3199if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003202 # Extract the first word of "grep ggrep" to use in msg output
3203if test -z "$GREP"; then
3204set dummy grep ggrep; ac_prog_name=$2
3205if test "${ac_cv_path_GREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 ac_path_GREP_found=false
3209# Loop through the user's path and test for each of PROGNAME-LIST
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_prog in grep ggrep; do
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003218 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003219 # Check for GNU ac_path_GREP and select it if it is found.
3220 # Check for GNU $ac_path_GREP
3221case `"$ac_path_GREP" --version 2>&1` in
3222*GNU*)
3223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3224*)
3225 ac_count=0
3226 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3227 while :
3228 do
3229 cat "conftest.in" "conftest.in" >"conftest.tmp"
3230 mv "conftest.tmp" "conftest.in"
3231 cp "conftest.in" "conftest.nl"
3232 echo 'GREP' >> "conftest.nl"
3233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3235 ac_count=`expr $ac_count + 1`
3236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3237 # Best one so far, save it but keep looking for a better one
3238 ac_cv_path_GREP="$ac_path_GREP"
3239 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003240 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003241 # 10*(2^10) chars as input seems more than enough
3242 test $ac_count -gt 10 && break
3243 done
3244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3245esac
3246
3247
3248 $ac_path_GREP_found && break 3
3249 done
3250done
3251
3252done
3253IFS=$as_save_IFS
3254
3255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003257
3258GREP="$ac_cv_path_GREP"
3259if test -z "$GREP"; then
3260 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3261echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3262 { (exit 1); exit 1; }; }
3263fi
3264
3265else
3266 ac_cv_path_GREP=$GREP
3267fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003268
3269
Theodore Ts'oe1052142006-10-21 21:46:47 -04003270fi
3271{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3272echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3273 GREP="$ac_cv_path_GREP"
3274
3275
3276{ echo "$as_me:$LINENO: checking for egrep" >&5
3277echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3278if test "${ac_cv_path_EGREP+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280else
3281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3282 then ac_cv_path_EGREP="$GREP -E"
3283 else
3284 # Extract the first word of "egrep" to use in msg output
3285if test -z "$EGREP"; then
3286set dummy egrep; ac_prog_name=$2
3287if test "${ac_cv_path_EGREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290 ac_path_EGREP_found=false
3291# Loop through the user's path and test for each of PROGNAME-LIST
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_prog in egrep; do
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003300 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003301 # Check for GNU ac_path_EGREP and select it if it is found.
3302 # Check for GNU $ac_path_EGREP
3303case `"$ac_path_EGREP" --version 2>&1` in
3304*GNU*)
3305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3306*)
3307 ac_count=0
3308 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3309 while :
3310 do
3311 cat "conftest.in" "conftest.in" >"conftest.tmp"
3312 mv "conftest.tmp" "conftest.in"
3313 cp "conftest.in" "conftest.nl"
3314 echo 'EGREP' >> "conftest.nl"
3315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317 ac_count=`expr $ac_count + 1`
3318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3319 # Best one so far, save it but keep looking for a better one
3320 ac_cv_path_EGREP="$ac_path_EGREP"
3321 ac_path_EGREP_max=$ac_count
3322 fi
3323 # 10*(2^10) chars as input seems more than enough
3324 test $ac_count -gt 10 && break
3325 done
3326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3327esac
3328
3329
3330 $ac_path_EGREP_found && break 3
3331 done
3332done
3333
3334done
3335IFS=$as_save_IFS
3336
3337
3338fi
3339
3340EGREP="$ac_cv_path_EGREP"
3341if test -z "$EGREP"; then
3342 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344 { (exit 1); exit 1; }; }
3345fi
3346
3347else
3348 ac_cv_path_EGREP=$EGREP
3349fi
3350
3351
3352 fi
3353fi
3354{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3356 EGREP="$ac_cv_path_EGREP"
3357
3358
3359{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3360echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003361if test "${ac_cv_header_stdc+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364 cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h. */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
3370#include <stdlib.h>
3371#include <stdarg.h>
3372#include <string.h>
3373#include <float.h>
3374
3375int
3376main ()
3377{
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003384if { (ac_try="$ac_compile"
3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003400 ac_cv_header_stdc=yes
3401else
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
Theodore Ts'oe1052142006-10-21 21:46:47 -04003405 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003406fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003407
3408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003409
3410if test $ac_cv_header_stdc = yes; then
3411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3412 cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
3418#include <string.h>
3419
3420_ACEOF
3421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 $EGREP "memchr" >/dev/null 2>&1; then
3423 :
3424else
3425 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003426fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003427rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003428
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003429fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003430
3431if test $ac_cv_header_stdc = yes; then
3432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#include <stdlib.h>
3440
3441_ACEOF
3442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 $EGREP "free" >/dev/null 2>&1; then
3444 :
3445else
3446 ac_cv_header_stdc=no
3447fi
3448rm -f conftest*
3449
3450fi
3451
3452if test $ac_cv_header_stdc = yes; then
3453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3454 if test "$cross_compiling" = yes; then
3455 :
3456else
3457 cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003464#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003465#if ((' ' & 0x0FF) == 0x020)
3466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3468#else
3469# define ISLOWER(c) \
3470 (('a' <= (c) && (c) <= 'i') \
3471 || ('j' <= (c) && (c) <= 'r') \
3472 || ('s' <= (c) && (c) <= 'z'))
3473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3474#endif
3475
3476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3477int
3478main ()
3479{
3480 int i;
3481 for (i = 0; i < 256; i++)
3482 if (XOR (islower (i), ISLOWER (i))
3483 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003484 return 2;
3485 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486}
3487_ACEOF
3488rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003489if { (ac_try="$ac_link"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003499 { (case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502esac
3503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 :
3509else
3510 echo "$as_me: program exited with status $ac_status" >&5
3511echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514( exit $ac_status )
3515ac_cv_header_stdc=no
3516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3518fi
3519
3520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003521fi
3522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003523{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3524echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003525if test $ac_cv_header_stdc = yes; then
3526
3527cat >>confdefs.h <<\_ACEOF
3528#define STDC_HEADERS 1
3529_ACEOF
3530
3531fi
3532
3533# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3544 inttypes.h stdint.h unistd.h
3545do
3546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003547{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
3558$ac_includes_default
3559
3560#include <$ac_header>
3561_ACEOF
3562rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003563if { (ac_try="$ac_compile"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003575 (exit $ac_status); } && {
3576 test -z "$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003579 eval "$as_ac_Header=yes"
3580else
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
Theodore Ts'oe1052142006-10-21 21:46:47 -04003584 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003589ac_res=`eval echo '${'$as_ac_Header'}'`
3590 { echo "$as_me:$LINENO: result: $ac_res" >&5
3591echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003592if test `eval echo '${'$as_ac_Header'}'` = yes; then
3593 cat >>confdefs.h <<_ACEOF
3594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3595_ACEOF
3596
3597fi
3598
3599done
3600
3601
3602if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003603 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3604echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003605if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003608{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3609echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003610else
3611 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003612{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3613echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003614cat >conftest.$ac_ext <<_ACEOF
3615/* confdefs.h. */
3616_ACEOF
3617cat confdefs.h >>conftest.$ac_ext
3618cat >>conftest.$ac_ext <<_ACEOF
3619/* end confdefs.h. */
3620$ac_includes_default
3621#include <linux/fs.h>
3622_ACEOF
3623rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003624if { (ac_try="$ac_compile"
3625case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003640 ac_header_compiler=yes
3641else
3642 echo "$as_me: failed program was:" >&5
3643sed 's/^/| /' conftest.$ac_ext >&5
3644
Theodore Ts'oe1052142006-10-21 21:46:47 -04003645 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3650echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003651
3652# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003653{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3654echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003655cat >conftest.$ac_ext <<_ACEOF
3656/* confdefs.h. */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h. */
3661#include <linux/fs.h>
3662_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003663if { (ac_try="$ac_cpp conftest.$ac_ext"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003679 ac_header_preproc=yes
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_header_preproc=no
3685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003686
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003687rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003688{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003690
3691# So? What about this header?
3692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3693 yes:no: )
3694 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3695echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3697echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3698 ac_header_preproc=yes
3699 ;;
3700 no:yes:* )
3701 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3702echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3704echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3706echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3708echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3710echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3712echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003713
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003714 ;;
3715esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003716{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3717echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003718if test "${ac_cv_header_linux_fs_h+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721 ac_cv_header_linux_fs_h=$ac_header_preproc
3722fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003723{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3724echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003725
3726fi
3727if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003728 linux_headers=yes
3729else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003730 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003731fi
3732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003733
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003734if test "$linux_headers" != yes; then
3735 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003736fi
3737
Theodore Ts'oe1052142006-10-21 21:46:47 -04003738{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3739echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003740if test "$GCC" = yes
3741then
3742 case "$host_cpu" in
3743 alpha) addcflags="-mieee" ;;
3744 esac
3745fi
3746if test "x$addcflags" != x
3747then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003748 { echo "$as_me:$LINENO: result: $addcflags" >&5
3749echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003750 CFLAGS="$addcflags $CFLAGS"
3751else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003752 { echo "$as_me:$LINENO: result: (none)" >&5
3753echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003754fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003755LIB_EXT=.a
3756STATIC_LIB_EXT=.a
3757PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003758
Theodore Ts'oe1052142006-10-21 21:46:47 -04003759# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003760if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003761 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3762echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003763LDFLAGS=$withval
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=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003778 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3779echo "${ECHO_T}Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003780else
3781 MAINTAINER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003782 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3783echo "${ECHO_T}Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003784fi
3785
3786else
3787 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003788{ echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3789echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003790
Theodore Ts'oe1052142006-10-21 21:46:47 -04003791fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003792
Theodore Ts'oe1052142006-10-21 21:46:47 -04003793
3794# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003795if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003796 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003797then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003798 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3799echo "${ECHO_T}Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003800else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003801 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003802#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003803_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003804
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003805 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3806echo "${ECHO_T}Enabling compression support" >&6; }
3807 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3808echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003809fi
3810
3811else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003812 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3813echo "${ECHO_T}Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003814
Theodore Ts'oe1052142006-10-21 21:46:47 -04003815fi
3816
3817# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003818if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003819 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003820then
3821 HTREE_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003822 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3823echo "${ECHO_T}Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003824else
3825 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003826 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003827#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003828_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003829
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003830 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3831echo "${ECHO_T}Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003832fi
3833
3834else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003835 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003836cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003837#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003838_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003839
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003840{ echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3841echo "${ECHO_T}Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003842
Theodore Ts'oe1052142006-10-21 21:46:47 -04003843fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003844
Theodore Ts'oe1052142006-10-21 21:46:47 -04003845
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003846E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04003847LDFLAG_DYNAMIC=
3848PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003849# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003850if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003851 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003852then
3853 ELF_CMT=#
3854 MAKEFILE_ELF=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003855 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3856echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003857else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003858 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003859 ELF_CMT=
3860 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003861 case "$host_os" in
3862 solaris2.*)
3863 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3864 ;;
3865 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003866 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003867 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04003868 PRIVATE_LIBS_CMT=#
3869 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003870 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3871echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003872fi
3873
3874else
3875 MAKEFILE_ELF=/dev/null
3876ELF_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003877{ echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3878echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003879
Theodore Ts'oe1052142006-10-21 21:46:47 -04003880fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003881
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003882
Theodore Ts'oe1052142006-10-21 21:46:47 -04003883
3884# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003885if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003886 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003887then
3888 BSDLIB_CMT=#
3889 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003890 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3891echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003892else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003893 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003894 BSDLIB_CMT=
3895 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003896 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003897 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003898 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003899 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3900 LIB_EXT=.dylib
3901 ;;
3902 esac
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003903 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3904echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003905fi
3906
3907else
3908 MAKEFILE_BSDLIB=/dev/null
3909BSDLIB_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003910{ echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3911echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003912
Theodore Ts'oe1052142006-10-21 21:46:47 -04003913fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003914
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003915
Theodore Ts'oe1052142006-10-21 21:46:47 -04003916
3917# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003918if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003919 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003920then
3921 PROFILE_CMT=#
3922 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003923 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3924echo "${ECHO_T}Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003925else
3926 PROFILE_CMT=
3927 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3928 PROFILED_LIB_EXT=_p.a
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003929 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3930echo "${ECHO_T}Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003931fi
3932
3933else
3934 PROFILE_CMT=#
3935MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003936{ echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3937echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003938
Theodore Ts'oe1052142006-10-21 21:46:47 -04003939fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003940
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003941
Theodore Ts'oe1052142006-10-21 21:46:47 -04003942
3943# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003944if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003945 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003946then
3947 CHECKER_CMT=#
3948 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003949 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3950echo "${ECHO_T}Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003951else
3952 CHECKER_CMT=
3953 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003954 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3955echo "${ECHO_T}Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003956fi
3957
3958else
3959 CHECKER_CMT=#
3960MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003961{ echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3962echo "${ECHO_T}Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003963
Theodore Ts'oe1052142006-10-21 21:46:47 -04003964fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003965
3966
3967
3968
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003969
Theodore Ts'oe1052142006-10-21 21:46:47 -04003970
Theodore Ts'o55da9872008-09-02 23:12:38 -04003971
3972
Theodore Ts'oe1052142006-10-21 21:46:47 -04003973# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003974if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003975 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003976then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003977 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3978echo "${ECHO_T}Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003979else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003980 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003981#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003982_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003983
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003984 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3985echo "${ECHO_T}Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003986fi
3987
3988else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003989 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3990echo "${ECHO_T}Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003991
Theodore Ts'oe1052142006-10-21 21:46:47 -04003992fi
3993
3994# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003995if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003996 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003997then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003998 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
3999echo "${ECHO_T}Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004000else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004001 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004002#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004003_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004004
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004005 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4006echo "${ECHO_T}Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004007fi
4008
4009else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004010 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4011echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004012
Theodore Ts'oe1052142006-10-21 21:46:47 -04004013fi
4014
4015# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004016if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004017 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004018then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004019 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4020echo "${ECHO_T}Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004021 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004022else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004023 TEST_IO_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004024 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004025#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004026_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004027
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004028 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4029echo "${ECHO_T}Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004030fi
4031
4032else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004033 { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4034echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4035cat >>confdefs.h <<\_ACEOF
4036#define CONFIG_TESTIO_DEBUG 1
4037_ACEOF
4038
4039TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004040
Theodore Ts'oe1052142006-10-21 21:46:47 -04004041fi
4042
Theodore Ts'oaf773652008-09-01 11:27:27 -04004043
Theodore Ts'oe1052142006-10-21 21:46:47 -04004044# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004045if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004046 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004047then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004048 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4049echo "${ECHO_T}Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004050 DEBUGFS_CMT="#"
4051else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004052 DEBUGFS_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004053 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4054echo "${ECHO_T}Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004055fi
4056
4057else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004058 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4059echo "${ECHO_T}Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004060DEBUGFS_CMT=
4061
Theodore Ts'oe1052142006-10-21 21:46:47 -04004062fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004063
Theodore Ts'oe1052142006-10-21 21:46:47 -04004064
4065# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004066if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004067 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004068then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004069 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4070echo "${ECHO_T}Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004071 IMAGER_CMT="#"
4072else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004073 IMAGER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004074 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4075echo "${ECHO_T}Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004076fi
4077
4078else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004079 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4080echo "${ECHO_T}Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004081IMAGER_CMT=
4082
Theodore Ts'oe1052142006-10-21 21:46:47 -04004083fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004084
Theodore Ts'oe1052142006-10-21 21:46:47 -04004085
4086# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004087if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004088 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004089then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004090 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4091echo "${ECHO_T}Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004092 RESIZER_CMT="#"
4093else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004094 RESIZER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004095 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4096echo "${ECHO_T}Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004097fi
4098
4099else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004100 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4101echo "${ECHO_T}Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004102RESIZER_CMT=
4103
Theodore Ts'oe1052142006-10-21 21:46:47 -04004104fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004105
Theodore Ts'oe1052142006-10-21 21:46:47 -04004106
Theodore Ts'oe1052142006-10-21 21:46:47 -04004107# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004108if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004109 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004110then
4111 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004112 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4113echo "${ECHO_T}Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004114else
4115 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004116 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4117echo "${ECHO_T}Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004118fi
4119
4120else
4121 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004122 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004123 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004124 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4125echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004126 ;;
4127 *)
4128 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004129 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4130echo "${ECHO_T}Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004131esac
4132
Theodore Ts'oe1052142006-10-21 21:46:47 -04004133fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004134
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004135
Theodore Ts'oe1052142006-10-21 21:46:47 -04004136
4137# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004138if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004139 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004140then
4141 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004142 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4143echo "${ECHO_T}Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004144else
4145 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004146 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4147echo "${ECHO_T}Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004148fi
4149
4150else
4151 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004152{ echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4153echo "${ECHO_T}Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004154
Theodore Ts'oe1052142006-10-21 21:46:47 -04004155fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004156
4157
Theodore Ts'oe1052142006-10-21 21:46:47 -04004158
Theodore Ts'o32493942007-12-31 10:45:01 -05004159# Check whether --enable-tls was given.
4160if test "${enable_tls+set}" = set; then
4161 enableval=$enable_tls; if test "$enableval" = "no"
4162then
4163 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004164 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4165echo "${ECHO_T}Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004166else
4167 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004168 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4169echo "${ECHO_T}Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004170fi
4171
4172else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004173 if test -n "$WITH_DIET_LIBC"
4174then
4175 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004176 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4177echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004178else
4179 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004180 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4181echo "${ECHO_T}Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004182fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004183
4184fi
4185
4186if test "$try_tls" = "yes"
4187then
4188
4189 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4190echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4191 if test "${ac_cv_tls+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194
4195 ax_tls_keywords="__thread __declspec(thread) none"
4196 for ax_tls_keyword in $ax_tls_keywords; do
4197 case $ax_tls_keyword in
4198 none) ac_cv_tls=none ; break ;;
4199 *)
4200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206#include <stdlib.h>
4207 static void
4208 foo(void) {
4209 static $ax_tls_keyword int bar;
4210 exit(1);
4211 }
4212int
4213main ()
4214{
4215
4216 ;
4217 return 0;
4218}
4219_ACEOF
4220rm -f conftest.$ac_objext
4221if { (ac_try="$ac_compile"
4222case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_cv_tls=$ax_tls_keyword ; break
4238else
4239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ac_cv_tls=none
4243
4244fi
4245
4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 esac
4248 done
4249
4250fi
4251
4252
4253 if test "$ac_cv_tls" != "none"; then
4254
4255cat >>confdefs.h <<_ACEOF
4256#define TLS $ac_cv_tls
4257_ACEOF
4258
4259 fi
4260 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4261echo "${ECHO_T}$ac_cv_tls" >&6; }
4262
4263fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004264# Check whether --enable-uuidd was given.
4265if test "${enable_uuidd+set}" = set; then
4266 enableval=$enable_uuidd; if test "$enableval" = "no"
4267then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004268 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4269echo "${ECHO_T}Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004270 UUIDD_CMT="#"
4271else
4272 cat >>confdefs.h <<\_ACEOF
4273#define USE_UUIDD 1
4274_ACEOF
4275
4276 UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004277 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4278echo "${ECHO_T}Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004279fi
4280
4281else
4282 cat >>confdefs.h <<\_ACEOF
4283#define USE_UUIDD 1
4284_ACEOF
4285
4286UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004287{ echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4288echo "${ECHO_T}Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004289
4290fi
4291
4292
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004293MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004295GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004296PACKAGE=e2fsprogs
4297VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004298VERSION=0.14.1
4299cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004300#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004301_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004303cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004304#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004305_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004306
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004307
4308
4309
4310
Theodore Ts'oe1052142006-10-21 21:46:47 -04004311{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4312echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4313set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4314if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004315 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004316else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004317 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004318SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004319all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004320 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004321_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004322# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004323case `${MAKE-make} -f conftest.make 2>/dev/null` in
4324 *@@@%%%=?*=@@@%%%*)
4325 eval ac_cv_prog_make_${ac_make}_set=yes;;
4326 *)
4327 eval ac_cv_prog_make_${ac_make}_set=no;;
4328esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004329rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004330fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4332 { echo "$as_me:$LINENO: result: yes" >&5
4333echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004334 SET_MAKE=
4335else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004336 { echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004338 SET_MAKE="MAKE=${MAKE-make}"
4339fi
4340
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004341# Find a good install program. We prefer a C program (faster),
4342# so one script is as good as another. But avoid the broken or
4343# incompatible versions:
4344# SysV /etc/install, /usr/sbin/install
4345# SunOS /usr/etc/install
4346# IRIX /sbin/install
4347# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004348# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004349# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4350# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4351# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004352# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004353# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004354{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4355echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004356if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004357if test "${ac_cv_path_install+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004359else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 # Account for people who put trailing slashes in PATH elements.
4366case $as_dir/ in
4367 ./ | .// | /cC/* | \
4368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4370 /usr/ucb/* ) ;;
4371 *)
4372 # OSF1 and SCO ODT 3.0 have their own names for install.
4373 # Don't use installbsd from OSF since it installs stuff as root
4374 # by default.
4375 for ac_prog in ginstall scoinst install; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004377 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 -04004378 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004380 # AIX install. It has an incompatible calling convention.
4381 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004382 elif test $ac_prog = install &&
4383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4384 # program-specific install script used by HP pwplus--don't use.
4385 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004386 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4388 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004389 fi
4390 fi
4391 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004392 done
4393 ;;
4394esac
4395done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004396IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004397
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004398
4399fi
4400 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004401 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004402 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004403 # As a last resort, use the slow shell script. Don't cache a
4404 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004405 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004406 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004407 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004408 fi
4409fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004410{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4411echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004412
4413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4414# It thinks the first close brace ends the variable substitution.
4415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4416
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004418
4419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4420
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004421
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004422 MKINSTALLDIRS=
4423 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004424 case "$ac_aux_dir" in
4425 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4426 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4427 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004428 fi
4429 if test -z "$MKINSTALLDIRS"; then
4430 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4431 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004433
4434
Theodore Ts'oe1052142006-10-21 21:46:47 -04004435 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4436echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4437 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004438if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004439 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004440else
4441 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004442fi
4443
4444 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4445echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004446
4447
4448
4449
4450
4451
4452# Prepare PATH_SEPARATOR.
4453# The user is always right.
4454if test "${PATH_SEPARATOR+set}" != set; then
4455 echo "#! /bin/sh" >conf$$.sh
4456 echo "exit 0" >>conf$$.sh
4457 chmod +x conf$$.sh
4458 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4459 PATH_SEPARATOR=';'
4460 else
4461 PATH_SEPARATOR=:
4462 fi
4463 rm -f conf$$.sh
4464fi
4465
4466# Find out how to test for executable files. Don't use a zero-byte file,
4467# as systems may use methods other than mode bits to determine executability.
4468cat >conf$$.file <<_ASEOF
4469#! /bin/sh
4470exit 0
4471_ASEOF
4472chmod +x conf$$.file
4473if test -x conf$$.file >/dev/null 2>&1; then
4474 ac_executable_p="test -x"
4475else
4476 ac_executable_p="test -f"
4477fi
4478rm -f conf$$.file
4479
4480# Extract the first word of "msgfmt", so it can be a program name with args.
4481set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004484if test "${ac_cv_path_MSGFMT+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487 case "$MSGFMT" in
4488 [\\/]* | ?:[\\/]*)
4489 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4490 ;;
4491 *)
4492 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4493 for ac_dir in $PATH; do
4494 IFS="$ac_save_IFS"
4495 test -z "$ac_dir" && ac_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4498 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4499 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4500 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4501 break 2
4502 fi
4503 fi
4504 done
4505 done
4506 IFS="$ac_save_IFS"
4507 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4508 ;;
4509esac
4510fi
4511MSGFMT="$ac_cv_path_MSGFMT"
4512if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004513 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4514echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004515else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004516 { echo "$as_me:$LINENO: result: no" >&5
4517echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004518fi
4519
4520 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4521set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004524if test "${ac_cv_path_GMSGFMT+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527 case $GMSGFMT in
4528 [\\/]* | ?:[\\/]*)
4529 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4530 ;;
4531 *)
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004538 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 -05004539 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4542 fi
4543done
4544done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004545IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004546
4547 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4548 ;;
4549esac
4550fi
4551GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004552if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004553 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4554echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004556 { echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004558fi
4559
4560
4561
Theodore Ts'oe1052142006-10-21 21:46:47 -04004562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004563# Prepare PATH_SEPARATOR.
4564# The user is always right.
4565if test "${PATH_SEPARATOR+set}" != set; then
4566 echo "#! /bin/sh" >conf$$.sh
4567 echo "exit 0" >>conf$$.sh
4568 chmod +x conf$$.sh
4569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4570 PATH_SEPARATOR=';'
4571 else
4572 PATH_SEPARATOR=:
4573 fi
4574 rm -f conf$$.sh
4575fi
4576
4577# Find out how to test for executable files. Don't use a zero-byte file,
4578# as systems may use methods other than mode bits to determine executability.
4579cat >conf$$.file <<_ASEOF
4580#! /bin/sh
4581exit 0
4582_ASEOF
4583chmod +x conf$$.file
4584if test -x conf$$.file >/dev/null 2>&1; then
4585 ac_executable_p="test -x"
4586else
4587 ac_executable_p="test -f"
4588fi
4589rm -f conf$$.file
4590
4591# Extract the first word of "xgettext", so it can be a program name with args.
4592set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004595if test "${ac_cv_path_XGETTEXT+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 case "$XGETTEXT" in
4599 [\\/]* | ?:[\\/]*)
4600 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4601 ;;
4602 *)
4603 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4604 for ac_dir in $PATH; do
4605 IFS="$ac_save_IFS"
4606 test -z "$ac_dir" && ac_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4609 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4610 (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
4611 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4612 break 2
4613 fi
4614 fi
4615 done
4616 done
4617 IFS="$ac_save_IFS"
4618 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4619 ;;
4620esac
4621fi
4622XGETTEXT="$ac_cv_path_XGETTEXT"
4623if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004624 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4625echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004626else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004627 { echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004629fi
4630
4631 rm -f messages.po
4632
4633
4634# Prepare PATH_SEPARATOR.
4635# The user is always right.
4636if test "${PATH_SEPARATOR+set}" != set; then
4637 echo "#! /bin/sh" >conf$$.sh
4638 echo "exit 0" >>conf$$.sh
4639 chmod +x conf$$.sh
4640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4641 PATH_SEPARATOR=';'
4642 else
4643 PATH_SEPARATOR=:
4644 fi
4645 rm -f conf$$.sh
4646fi
4647
4648# Find out how to test for executable files. Don't use a zero-byte file,
4649# as systems may use methods other than mode bits to determine executability.
4650cat >conf$$.file <<_ASEOF
4651#! /bin/sh
4652exit 0
4653_ASEOF
4654chmod +x conf$$.file
4655if test -x conf$$.file >/dev/null 2>&1; then
4656 ac_executable_p="test -x"
4657else
4658 ac_executable_p="test -f"
4659fi
4660rm -f conf$$.file
4661
4662# Extract the first word of "msgmerge", so it can be a program name with args.
4663set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004666if test "${ac_cv_path_MSGMERGE+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669 case "$MSGMERGE" in
4670 [\\/]* | ?:[\\/]*)
4671 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4672 ;;
4673 *)
4674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4675 for ac_dir in $PATH; do
4676 IFS="$ac_save_IFS"
4677 test -z "$ac_dir" && ac_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4680 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4681 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4682 break 2
4683 fi
4684 fi
4685 done
4686 done
4687 IFS="$ac_save_IFS"
4688 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4689 ;;
4690esac
4691fi
4692MSGMERGE="$ac_cv_path_MSGMERGE"
4693if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004694 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4695echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004696else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004697 { echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004699fi
4700
4701
4702 if test "$GMSGFMT" != ":"; then
4703 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4704 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4705 : ;
4706 else
4707 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004708 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4709echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004710 GMSGFMT=":"
4711 fi
4712 fi
4713
4714 if test "$XGETTEXT" != ":"; then
4715 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4716 (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
4717 : ;
4718 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004719 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4720echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004721 XGETTEXT=":"
4722 fi
4723 rm -f messages.po
4724 fi
4725
Theodore Ts'oe1052142006-10-21 21:46:47 -04004726 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004727
4728
4729if test -n "$ac_tool_prefix"; then
4730 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4731set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004734if test "${ac_cv_prog_RANLIB+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004736else
4737 if test -n "$RANLIB"; then
4738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4739else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004746 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 -05004747 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004752done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004753IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004754
4755fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004756fi
4757RANLIB=$ac_cv_prog_RANLIB
4758if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004759 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4760echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004761else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004762 { echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004764fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004765
Theodore Ts'oe1052142006-10-21 21:46:47 -04004766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004767fi
4768if test -z "$ac_cv_prog_RANLIB"; then
4769 ac_ct_RANLIB=$RANLIB
4770 # Extract the first word of "ranlib", so it can be a program name with args.
4771set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004774if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777 if test -n "$ac_ct_RANLIB"; then
4778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004786 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 -05004787 ac_cv_prog_ac_ct_RANLIB="ranlib"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004793IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004795fi
4796fi
4797ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4798if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004799 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4800echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004801else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004802 { echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004804fi
4805
Theodore Ts'oe1052142006-10-21 21:46:47 -04004806 if test "x$ac_ct_RANLIB" = x; then
4807 RANLIB=":"
4808 else
4809 case $cross_compiling:$ac_tool_warned in
4810yes:)
4811{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4812whose name does not start with the host triplet. If you think this
4813configuration is useful to you, please write to autoconf@gnu.org." >&5
4814echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4815whose name does not start with the host triplet. If you think this
4816configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4817ac_tool_warned=yes ;;
4818esac
4819 RANLIB=$ac_ct_RANLIB
4820 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004821else
4822 RANLIB="$ac_cv_prog_RANLIB"
4823fi
4824
4825
Theodore Ts'oe1052142006-10-21 21:46:47 -04004826 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4827echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004828if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831 ac_check_lib_save_LIBS=$LIBS
4832LIBS="-lcposix $LIBS"
4833cat >conftest.$ac_ext <<_ACEOF
4834/* confdefs.h. */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */
4839
Theodore Ts'oe1052142006-10-21 21:46:47 -04004840/* Override any GCC internal prototype to avoid an error.
4841 Use char because int might match the return type of a GCC
4842 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004843#ifdef __cplusplus
4844extern "C"
4845#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004846char strerror ();
4847int
4848main ()
4849{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004850return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004851 ;
4852 return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004856if { (ac_try="$ac_link"
4857case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860esac
4861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest$ac_exeext &&
4872 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004873 ac_cv_lib_cposix_strerror=yes
4874else
4875 echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
Theodore Ts'oe1052142006-10-21 21:46:47 -04004878 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004879fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004880
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004882 conftest$ac_exeext conftest.$ac_ext
4883LIBS=$ac_check_lib_save_LIBS
4884fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004885{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4886echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004887if test $ac_cv_lib_cposix_strerror = yes; then
4888 LIBS="$LIBS -lcposix"
4889fi
4890
4891
4892
Theodore Ts'oe1052142006-10-21 21:46:47 -04004893{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4894echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004895if test "${ac_cv_c_const+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904
4905int
4906main ()
4907{
4908/* FIXME: Include the comments suggested by Paul. */
4909#ifndef __cplusplus
4910 /* Ultrix mips cc rejects this. */
4911 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004912 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004913 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004914 char const *const *pcpcc;
4915 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004916 /* NEC SVR4.0.2 mips cc rejects this. */
4917 struct point {int x, y;};
4918 static struct point const zero = {0,0};
4919 /* AIX XL C 1.02.0.0 rejects this.
4920 It does not let you subtract one const X* pointer from another in
4921 an arm of an if-expression whose if-part is not a constant
4922 expression */
4923 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004924 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004925 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004926 ++pcpcc;
4927 ppc = (char**) pcpcc;
4928 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004929 { /* SCO 3.2v4 cc rejects this. */
4930 char *t;
4931 char const *s = 0 ? (char *) 0 : (char const *) 0;
4932
4933 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004934 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004935 }
4936 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4937 int x[] = {25, 17};
4938 const int *foo = &x[0];
4939 ++foo;
4940 }
4941 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4942 typedef const int *iptr;
4943 iptr p = 0;
4944 ++p;
4945 }
4946 { /* AIX XL C 1.02.0.0 rejects this saying
4947 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4948 struct s { int j; const int *ap[3]; };
4949 struct s *b; b->j = 5;
4950 }
4951 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4952 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004953 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004954 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004955 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004956#endif
4957
4958 ;
4959 return 0;
4960}
4961_ACEOF
4962rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004963if { (ac_try="$ac_compile"
4964case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967esac
4968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004979 ac_cv_c_const=yes
4980else
4981 echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
Theodore Ts'oe1052142006-10-21 21:46:47 -04004984 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004985fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004986
4987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004988fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004989{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4990echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004991if test $ac_cv_c_const = no; then
4992
4993cat >>confdefs.h <<\_ACEOF
4994#define const
4995_ACEOF
4996
4997fi
4998
4999
Theodore Ts'oe1052142006-10-21 21:46:47 -04005000 { echo "$as_me:$LINENO: checking for signed" >&5
5001echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005002if test "${bh_cv_c_signed+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
5011
5012int
5013main ()
5014{
5015signed char x;
5016 ;
5017 return 0;
5018}
5019_ACEOF
5020rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005021if { (ac_try="$ac_compile"
5022case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025esac
5026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005037 bh_cv_c_signed=yes
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
Theodore Ts'oe1052142006-10-21 21:46:47 -04005042 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005043fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005044
5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005046fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005047{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5048echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005049 if test $bh_cv_c_signed = no; then
5050
5051cat >>confdefs.h <<\_ACEOF
5052#define signed
5053_ACEOF
5054
5055 fi
5056
Theodore Ts'oe1052142006-10-21 21:46:47 -04005057{ echo "$as_me:$LINENO: checking for inline" >&5
5058echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005059if test "${ac_cv_c_inline+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061else
5062 ac_cv_c_inline=no
5063for ac_kw in inline __inline__ __inline; do
5064 cat >conftest.$ac_ext <<_ACEOF
5065/* confdefs.h. */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h. */
5070#ifndef __cplusplus
5071typedef int foo_t;
5072static $ac_kw foo_t static_foo () {return 0; }
5073$ac_kw foo_t foo () {return 0; }
5074#endif
5075
5076_ACEOF
5077rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005078if { (ac_try="$ac_compile"
5079case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082esac
5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005094 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005095else
5096 echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
Theodore Ts'oe1052142006-10-21 21:46:47 -04005099
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005101
5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005104done
5105
5106fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005107{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5108echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005109
5110
5111case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005112 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005113 *)
5114 case $ac_cv_c_inline in
5115 no) ac_val=;;
5116 *) ac_val=$ac_cv_c_inline;;
5117 esac
5118 cat >>confdefs.h <<_ACEOF
5119#ifndef __cplusplus
5120#define inline $ac_val
5121#endif
5122_ACEOF
5123 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005124esac
5125
Theodore Ts'oe1052142006-10-21 21:46:47 -04005126{ echo "$as_me:$LINENO: checking for off_t" >&5
5127echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005128if test "${ac_cv_type_off_t+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005130else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005131 cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h. */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005138typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005139int
5140main ()
5141{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005142if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005143 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005144if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005145 return 0;
5146 ;
5147 return 0;
5148}
5149_ACEOF
5150rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005151if { (ac_try="$ac_compile"
5152case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155esac
5156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005163 (exit $ac_status); } && {
5164 test -z "$ac_c_werror_flag" ||
5165 test ! -s conftest.err
5166 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005167 ac_cv_type_off_t=yes
5168else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005171
Theodore Ts'oe1052142006-10-21 21:46:47 -04005172 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005173fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005174
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005176fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005177{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5178echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005179if test $ac_cv_type_off_t = yes; then
5180 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005181else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005182
5183cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005184#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005185_ACEOF
5186
5187fi
5188
Theodore Ts'oe1052142006-10-21 21:46:47 -04005189{ echo "$as_me:$LINENO: checking for size_t" >&5
5190echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005191if test "${ac_cv_type_size_t+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 cat >conftest.$ac_ext <<_ACEOF
5195/* confdefs.h. */
5196_ACEOF
5197cat confdefs.h >>conftest.$ac_ext
5198cat >>conftest.$ac_ext <<_ACEOF
5199/* end confdefs.h. */
5200$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005201typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005202int
5203main ()
5204{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005205if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005206 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005207if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005208 return 0;
5209 ;
5210 return 0;
5211}
5212_ACEOF
5213rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005214if { (ac_try="$ac_compile"
5215case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218esac
5219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005226 (exit $ac_status); } && {
5227 test -z "$ac_c_werror_flag" ||
5228 test ! -s conftest.err
5229 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005230 ac_cv_type_size_t=yes
5231else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005232 echo "$as_me: failed program was:" >&5
5233sed 's/^/| /' conftest.$ac_ext >&5
5234
Theodore Ts'oe1052142006-10-21 21:46:47 -04005235 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005236fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005237
5238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005240{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5241echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005242if test $ac_cv_type_size_t = yes; then
5243 :
5244else
5245
5246cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005247#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005248_ACEOF
5249
5250fi
5251
5252
Theodore Ts'oe1052142006-10-21 21:46:47 -04005253 { echo "$as_me:$LINENO: checking for long long" >&5
5254echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005255if test "${ac_cv_type_long_long+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h. */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h. */
5264long long ll = 1LL; int i = 63;
5265int
5266main ()
5267{
5268long long llmax = (long long) -1;
5269 return ll << i | ll >> i | llmax / ll | llmax % ll;
5270 ;
5271 return 0;
5272}
5273_ACEOF
5274rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005275if { (ac_try="$ac_link"
5276case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279esac
5280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005287 (exit $ac_status); } && {
5288 test -z "$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest$ac_exeext &&
5291 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005292 ac_cv_type_long_long=yes
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
Theodore Ts'oe1052142006-10-21 21:46:47 -04005297 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005298fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005299
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005301 conftest$ac_exeext conftest.$ac_ext
5302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005303{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5304echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005305 if test $ac_cv_type_long_long = yes; then
5306
5307cat >>confdefs.h <<\_ACEOF
5308#define HAVE_LONG_LONG 1
5309_ACEOF
5310
5311 fi
5312
5313
Theodore Ts'oe1052142006-10-21 21:46:47 -04005314 { echo "$as_me:$LINENO: checking for long double" >&5
5315echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005316if test "${gt_cv_c_long_double+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319 if test "$GCC" = yes; then
5320 gt_cv_c_long_double=yes
5321 else
5322 cat >conftest.$ac_ext <<_ACEOF
5323/* confdefs.h. */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h. */
5328
5329 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5330 long double foo = 0.0;
5331 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5332 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5333
5334int
5335main ()
5336{
5337
5338 ;
5339 return 0;
5340}
5341_ACEOF
5342rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005343if { (ac_try="$ac_compile"
5344case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347esac
5348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005359 gt_cv_c_long_double=yes
5360else
5361 echo "$as_me: failed program was:" >&5
5362sed 's/^/| /' conftest.$ac_ext >&5
5363
Theodore Ts'oe1052142006-10-21 21:46:47 -04005364 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005365fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005366
5367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005368 fi
5369fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005370{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5371echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005372 if test $gt_cv_c_long_double = yes; then
5373
5374cat >>confdefs.h <<\_ACEOF
5375#define HAVE_LONG_DOUBLE 1
5376_ACEOF
5377
5378 fi
5379
5380
Theodore Ts'oe1052142006-10-21 21:46:47 -04005381 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5382echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005383if test "${gt_cv_c_wchar_t+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386 cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392#include <stddef.h>
5393 wchar_t foo = (wchar_t)'\0';
5394int
5395main ()
5396{
5397
5398 ;
5399 return 0;
5400}
5401_ACEOF
5402rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005403if { (ac_try="$ac_compile"
5404case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005415 (exit $ac_status); } && {
5416 test -z "$ac_c_werror_flag" ||
5417 test ! -s conftest.err
5418 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005419 gt_cv_c_wchar_t=yes
5420else
5421 echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
Theodore Ts'oe1052142006-10-21 21:46:47 -04005424 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005426
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005429{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5430echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005431 if test $gt_cv_c_wchar_t = yes; then
5432
5433cat >>confdefs.h <<\_ACEOF
5434#define HAVE_WCHAR_T 1
5435_ACEOF
5436
5437 fi
5438
5439
Theodore Ts'oe1052142006-10-21 21:46:47 -04005440 { echo "$as_me:$LINENO: checking for wint_t" >&5
5441echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005442if test "${gt_cv_c_wint_t+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h. */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h. */
5451#include <wchar.h>
5452 wint_t foo = (wchar_t)'\0';
5453int
5454main ()
5455{
5456
5457 ;
5458 return 0;
5459}
5460_ACEOF
5461rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005462if { (ac_try="$ac_compile"
5463case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466esac
5467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005478 gt_cv_c_wint_t=yes
5479else
5480 echo "$as_me: failed program was:" >&5
5481sed 's/^/| /' conftest.$ac_ext >&5
5482
Theodore Ts'oe1052142006-10-21 21:46:47 -04005483 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005484fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005485
5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005487fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005488{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5489echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005490 if test $gt_cv_c_wint_t = yes; then
5491
5492cat >>confdefs.h <<\_ACEOF
5493#define HAVE_WINT_T 1
5494_ACEOF
5495
5496 fi
5497
5498
Theodore Ts'oe1052142006-10-21 21:46:47 -04005499 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5500echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005501if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */
5510#include <sys/types.h>
5511#include <inttypes.h>
5512int
5513main ()
5514{
5515uintmax_t i = (uintmax_t) -1;
5516 ;
5517 return 0;
5518}
5519_ACEOF
5520rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005521if { (ac_try="$ac_compile"
5522case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525esac
5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005533 (exit $ac_status); } && {
5534 test -z "$ac_c_werror_flag" ||
5535 test ! -s conftest.err
5536 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005537 jm_ac_cv_header_inttypes_h=yes
5538else
5539 echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
Theodore Ts'oe1052142006-10-21 21:46:47 -04005542 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005543fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005544
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005546fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005547{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5548echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005549 if test $jm_ac_cv_header_inttypes_h = yes; then
5550
5551cat >>confdefs.h <<_ACEOF
5552#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5553_ACEOF
5554
5555 fi
5556
5557
Theodore Ts'oe1052142006-10-21 21:46:47 -04005558 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5559echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005560if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 cat >conftest.$ac_ext <<_ACEOF
5564/* confdefs.h. */
5565_ACEOF
5566cat confdefs.h >>conftest.$ac_ext
5567cat >>conftest.$ac_ext <<_ACEOF
5568/* end confdefs.h. */
5569#include <sys/types.h>
5570#include <stdint.h>
5571int
5572main ()
5573{
5574uintmax_t i = (uintmax_t) -1;
5575 ;
5576 return 0;
5577}
5578_ACEOF
5579rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005580if { (ac_try="$ac_compile"
5581case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584esac
5585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005596 jm_ac_cv_header_stdint_h=yes
5597else
5598 echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
Theodore Ts'oe1052142006-10-21 21:46:47 -04005601 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005603
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005606{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5607echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005608 if test $jm_ac_cv_header_stdint_h = yes; then
5609
5610cat >>confdefs.h <<_ACEOF
5611#define HAVE_STDINT_H_WITH_UINTMAX 1
5612_ACEOF
5613
5614 fi
5615
5616
5617
5618
Theodore Ts'oe1052142006-10-21 21:46:47 -04005619 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5620echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005621if test "${gt_cv_c_intmax_t+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 cat >conftest.$ac_ext <<_ACEOF
5625/* confdefs.h. */
5626_ACEOF
5627cat confdefs.h >>conftest.$ac_ext
5628cat >>conftest.$ac_ext <<_ACEOF
5629/* end confdefs.h. */
5630
5631#include <stddef.h>
5632#include <stdlib.h>
5633#if HAVE_STDINT_H_WITH_UINTMAX
5634#include <stdint.h>
5635#endif
5636#if HAVE_INTTYPES_H_WITH_UINTMAX
5637#include <inttypes.h>
5638#endif
5639
5640int
5641main ()
5642{
5643intmax_t x = -1;
5644 ;
5645 return 0;
5646}
5647_ACEOF
5648rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005649if { (ac_try="$ac_compile"
5650case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653esac
5654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005665 gt_cv_c_intmax_t=yes
5666else
5667 echo "$as_me: failed program was:" >&5
5668sed 's/^/| /' conftest.$ac_ext >&5
5669
Theodore Ts'oe1052142006-10-21 21:46:47 -04005670 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005671fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005672
5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005674fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005675{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5676echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005677 if test $gt_cv_c_intmax_t = yes; then
5678
5679cat >>confdefs.h <<\_ACEOF
5680#define HAVE_INTMAX_T 1
5681_ACEOF
5682
5683 fi
5684
5685
5686
Theodore Ts'oe1052142006-10-21 21:46:47 -04005687 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5688echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005689if test "${gt_cv_func_printf_posix+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692
5693 if test "$cross_compiling" = yes; then
5694
5695 cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
5701
5702#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5703 notposix
5704#endif
5705
5706_ACEOF
5707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "notposix" >/dev/null 2>&1; then
5709 gt_cv_func_printf_posix="guessing no"
5710else
5711 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005712fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005713rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005715
5716else
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723
5724#include <stdio.h>
5725#include <string.h>
5726/* The string "%2$d %1$d", with dollar characters protected from the shell's
5727 dollar expansion (possibly an autoconf bug). */
5728static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5729static char buf[100];
5730int main ()
5731{
5732 sprintf (buf, format, 33, 55);
5733 return (strcmp (buf, "55 33") != 0);
5734}
5735_ACEOF
5736rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005737if { (ac_try="$ac_link"
5738case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741esac
5742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005747 { (case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750esac
5751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 gt_cv_func_printf_posix=yes
5757else
5758 echo "$as_me: program exited with status $ac_status" >&5
5759echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762( exit $ac_status )
5763gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005764fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005765rm -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 -05005766fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005767
Theodore Ts'oe1052142006-10-21 21:46:47 -04005768
5769
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005771{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5772echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005773 case $gt_cv_func_printf_posix in
5774 *yes)
5775
5776cat >>confdefs.h <<\_ACEOF
5777#define HAVE_POSIX_PRINTF 1
5778_ACEOF
5779
5780 ;;
5781 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005782
5783# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5784# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005785{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5786echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005787if test "${ac_cv_working_alloca_h+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005789else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005790 cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005796#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005797int
5798main ()
5799{
5800char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005801 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005802 ;
5803 return 0;
5804}
5805_ACEOF
5806rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005807if { (ac_try="$ac_link"
5808case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest$ac_exeext &&
5823 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005824 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005825else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005826 echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005828
Theodore Ts'oe1052142006-10-21 21:46:47 -04005829 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005830fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005831
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833 conftest$ac_exeext conftest.$ac_ext
5834fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005835{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5836echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005837if test $ac_cv_working_alloca_h = yes; then
5838
5839cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005840#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005841_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005842
5843fi
5844
Theodore Ts'oe1052142006-10-21 21:46:47 -04005845{ echo "$as_me:$LINENO: checking for alloca" >&5
5846echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005847if test "${ac_cv_func_alloca_works+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005849else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005850 cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005856#ifdef __GNUC__
5857# define alloca __builtin_alloca
5858#else
5859# ifdef _MSC_VER
5860# include <malloc.h>
5861# define alloca _alloca
5862# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005863# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005864# include <alloca.h>
5865# else
5866# ifdef _AIX
5867 #pragma alloca
5868# else
5869# ifndef alloca /* predefined by HP cc +Olibcalls */
5870char *alloca ();
5871# endif
5872# endif
5873# endif
5874# endif
5875#endif
5876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005877int
5878main ()
5879{
5880char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04005881 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005882 ;
5883 return 0;
5884}
5885_ACEOF
5886rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005887if { (ac_try="$ac_link"
5888case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest$ac_exeext &&
5903 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005904 ac_cv_func_alloca_works=yes
5905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005908
Theodore Ts'oe1052142006-10-21 21:46:47 -04005909 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005911
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005913 conftest$ac_exeext conftest.$ac_ext
5914fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005915{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5916echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005917
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005918if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005919
5920cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005921#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005922_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005923
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005924else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005925 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5926# that cause trouble. Some versions do not even contain alloca or
5927# contain a buggy version. If you still want to use their alloca,
5928# use ar to extract alloca.o from them instead of compiling alloca.c.
5929
Theodore Ts'oe1052142006-10-21 21:46:47 -04005930ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005931
5932cat >>confdefs.h <<\_ACEOF
5933#define C_ALLOCA 1
5934_ACEOF
5935
5936
Theodore Ts'oe1052142006-10-21 21:46:47 -04005937{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5938echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005939if test "${ac_cv_os_cray+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005948#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005949webecray
5950#else
5951wenotbecray
5952#endif
5953
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005954_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005956 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005957 ac_cv_os_cray=yes
5958else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005959 ac_cv_os_cray=no
5960fi
5961rm -f conftest*
5962
5963fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005964{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5965echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005966if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005967 for ac_func in _getb67 GETB67 getb67; do
5968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04005969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005972 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005973else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005974 cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h. */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h. */
5980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5982#define $ac_func innocuous_$ac_func
5983
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005984/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005985 which can conflict with char $ac_func (); below.
5986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 <limits.h> exists even on freestanding compilers. */
5988
5989#ifdef __STDC__
5990# include <limits.h>
5991#else
5992# include <assert.h>
5993#endif
5994
5995#undef $ac_func
5996
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997/* Override any GCC internal prototype to avoid an error.
5998 Use char because int might match the return type of a GCC
5999 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000#ifdef __cplusplus
6001extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006002#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006003char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006004/* The GNU C library defines this for functions which it implements
6005 to always fail with ENOSYS. Some functions are actually named
6006 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006007#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006008choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006009#endif
6010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011int
6012main ()
6013{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006014return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006015 ;
6016 return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006020if { (ac_try="$ac_link"
6021case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest$ac_exeext &&
6036 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006037 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006039 echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006041
Theodore Ts'oe1052142006-10-21 21:46:47 -04006042 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006044
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006046 conftest$ac_exeext conftest.$ac_ext
6047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006048ac_res=`eval echo '${'$as_ac_var'}'`
6049 { echo "$as_me:$LINENO: result: $ac_res" >&5
6050echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006051if test `eval echo '${'$as_ac_var'}'` = yes; then
6052
6053cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006054#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006055_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006057 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006058fi
6059
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006060 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006061fi
6062
Theodore Ts'oe1052142006-10-21 21:46:47 -04006063{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6064echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065if test "${ac_cv_c_stack_direction+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006067else
6068 if test "$cross_compiling" = yes; then
6069 ac_cv_c_stack_direction=0
6070else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006071 cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006077$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006079find_stack_direction ()
6080{
6081 static char *addr = 0;
6082 auto char dummy;
6083 if (addr == 0)
6084 {
6085 addr = &dummy;
6086 return find_stack_direction ();
6087 }
6088 else
6089 return (&dummy > addr) ? 1 : -1;
6090}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091
6092int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006093main ()
6094{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006095 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006096}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006097_ACEOF
6098rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006099if { (ac_try="$ac_link"
6100case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103esac
6104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006109 { (case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112esac
6113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006118 ac_cv_c_stack_direction=1
6119else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120 echo "$as_me: program exited with status $ac_status" >&5
6121echo "$as_me: failed program was:" >&5
6122sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006124( exit $ac_status )
6125ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006126fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006127rm -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 -05006128fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006129
6130
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006131fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006132{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6133echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006134
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006136#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006137_ACEOF
6138
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006139
6140fi
6141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142
6143
6144for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006145do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006153ac_res=`eval echo '${'$as_ac_Header'}'`
6154 { echo "$as_me:$LINENO: result: $ac_res" >&5
6155echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006156else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006157 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006158{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006160cat >conftest.$ac_ext <<_ACEOF
6161/* confdefs.h. */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h. */
6166$ac_includes_default
6167#include <$ac_header>
6168_ACEOF
6169rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006170if { (ac_try="$ac_compile"
6171case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6174esac
6175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006182 (exit $ac_status); } && {
6183 test -z "$ac_c_werror_flag" ||
6184 test ! -s conftest.err
6185 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006186 ac_header_compiler=yes
6187else
6188 echo "$as_me: failed program was:" >&5
6189sed 's/^/| /' conftest.$ac_ext >&5
6190
Theodore Ts'oe1052142006-10-21 21:46:47 -04006191 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006192fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006193
6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6196echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006197
6198# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006199{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006201cat >conftest.$ac_ext <<_ACEOF
6202/* confdefs.h. */
6203_ACEOF
6204cat confdefs.h >>conftest.$ac_ext
6205cat >>conftest.$ac_ext <<_ACEOF
6206/* end confdefs.h. */
6207#include <$ac_header>
6208_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006209if { (ac_try="$ac_cpp conftest.$ac_ext"
6210case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006221 (exit $ac_status); } >/dev/null && {
6222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6223 test ! -s conftest.err
6224 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006225 ac_header_preproc=yes
6226else
6227 echo "$as_me: failed program was:" >&5
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 ac_header_preproc=no
6231fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6235echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006236
6237# So? What about this header?
6238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6239 yes:no: )
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6244 ac_header_preproc=yes
6245 ;;
6246 no:yes:* )
6247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006260 ;;
6261esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006262{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267 eval "$as_ac_Header=\$ac_header_preproc"
6268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006269ac_res=`eval echo '${'$as_ac_Header'}'`
6270 { echo "$as_me:$LINENO: result: $ac_res" >&5
6271echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006272
6273fi
6274if test `eval echo '${'$as_ac_Header'}'` = yes; then
6275 cat >>confdefs.h <<_ACEOF
6276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6277_ACEOF
6278
6279fi
6280
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006281done
6282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006283
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006284for ac_func in getpagesize
6285do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006287{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6289if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006290 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006291else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006292 cat >conftest.$ac_ext <<_ACEOF
6293/* confdefs.h. */
6294_ACEOF
6295cat confdefs.h >>conftest.$ac_ext
6296cat >>conftest.$ac_ext <<_ACEOF
6297/* end confdefs.h. */
6298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6300#define $ac_func innocuous_$ac_func
6301
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006302/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303 which can conflict with char $ac_func (); below.
6304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6305 <limits.h> exists even on freestanding compilers. */
6306
6307#ifdef __STDC__
6308# include <limits.h>
6309#else
6310# include <assert.h>
6311#endif
6312
6313#undef $ac_func
6314
Theodore Ts'oe1052142006-10-21 21:46:47 -04006315/* Override any GCC internal prototype to avoid an error.
6316 Use char because int might match the return type of a GCC
6317 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006318#ifdef __cplusplus
6319extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006320#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006321char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006322/* The GNU C library defines this for functions which it implements
6323 to always fail with ENOSYS. Some functions are actually named
6324 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006325#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006326choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006327#endif
6328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006329int
6330main ()
6331{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006332return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333 ;
6334 return 0;
6335}
6336_ACEOF
6337rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006338if { (ac_try="$ac_link"
6339case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest$ac_exeext &&
6354 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006355 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006356else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357 echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006359
Theodore Ts'oe1052142006-10-21 21:46:47 -04006360 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006362
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006364 conftest$ac_exeext conftest.$ac_ext
6365fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006366ac_res=`eval echo '${'$as_ac_var'}'`
6367 { echo "$as_me:$LINENO: result: $ac_res" >&5
6368echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369if test `eval echo '${'$as_ac_var'}'` = yes; then
6370 cat >>confdefs.h <<_ACEOF
6371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6372_ACEOF
6373
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006374fi
6375done
6376
Theodore Ts'oe1052142006-10-21 21:46:47 -04006377{ echo "$as_me:$LINENO: checking for working mmap" >&5
6378echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006379if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006381else
6382 if test "$cross_compiling" = yes; then
6383 ac_cv_func_mmap_fixed_mapped=no
6384else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006385 cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h. */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h. */
6391$ac_includes_default
6392/* malloc might have been renamed as rpl_malloc. */
6393#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006394
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006395/* Thanks to Mike Haertel and Jim Avera for this test.
6396 Here is a matrix of mmap possibilities:
6397 mmap private not fixed
6398 mmap private fixed at somewhere currently unmapped
6399 mmap private fixed at somewhere already mapped
6400 mmap shared not fixed
6401 mmap shared fixed at somewhere currently unmapped
6402 mmap shared fixed at somewhere already mapped
6403 For private mappings, we should verify that changes cannot be read()
6404 back from the file, nor mmap's back from the file at a different
6405 address. (There have been systems where private was not correctly
6406 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006407 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006408 like early versions of FreeBSD and possibly contemporary NetBSD.)
6409 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006410 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006411
6412 Grep wants private fixed already mapped.
6413 The main things grep needs to know about mmap are:
6414 * does it exist and is it safe to write into the mmap'd area
6415 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006417#include <fcntl.h>
6418#include <sys/mman.h>
6419
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006420#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421char *malloc ();
6422#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006423
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006424/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006425#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006426/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006427# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006428# define HAVE_SYS_PARAM_H 1
6429# endif
6430
6431# ifdef _SC_PAGESIZE
6432# define getpagesize() sysconf(_SC_PAGESIZE)
6433# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006434# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006435# include <sys/param.h>
6436# ifdef EXEC_PAGESIZE
6437# define getpagesize() EXEC_PAGESIZE
6438# else /* no EXEC_PAGESIZE */
6439# ifdef NBPG
6440# define getpagesize() NBPG * CLSIZE
6441# ifndef CLSIZE
6442# define CLSIZE 1
6443# endif /* no CLSIZE */
6444# else /* no NBPG */
6445# ifdef NBPC
6446# define getpagesize() NBPC
6447# else /* no NBPC */
6448# ifdef PAGESIZE
6449# define getpagesize() PAGESIZE
6450# endif /* PAGESIZE */
6451# endif /* no NBPC */
6452# endif /* no NBPG */
6453# endif /* no EXEC_PAGESIZE */
6454# else /* no HAVE_SYS_PARAM_H */
6455# define getpagesize() 8192 /* punt totally */
6456# endif /* no HAVE_SYS_PARAM_H */
6457# endif /* no _SC_PAGESIZE */
6458
6459#endif /* no HAVE_GETPAGESIZE */
6460
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006461int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006463{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006464 char *data, *data2, *data3;
6465 int i, pagesize;
6466 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470 /* First, make a file with some known garbage in it. */
6471 data = (char *) malloc (pagesize);
6472 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006473 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474 for (i = 0; i < pagesize; ++i)
6475 *(data + i) = rand ();
6476 umask (0);
6477 fd = creat ("conftest.mmap", 0600);
6478 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006479 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006481 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006484 /* Next, try to mmap the file at a fixed address which already has
6485 something else allocated at it. If we can, also make sure that
6486 we see the same garbage. */
6487 fd = open ("conftest.mmap", O_RDWR);
6488 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006489 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490 data2 = (char *) malloc (2 * pagesize);
6491 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006492 return 1;
6493 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006494 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6495 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006496 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497 for (i = 0; i < pagesize; ++i)
6498 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006499 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501 /* Finally, make sure that changes to the mapped area do not
6502 percolate back to the file as seen by read(). (This is a bug on
6503 some variants of i386 svr4.0.) */
6504 for (i = 0; i < pagesize; ++i)
6505 *(data2 + i) = *(data2 + i) + 1;
6506 data3 = (char *) malloc (pagesize);
6507 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006508 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006510 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006511 for (i = 0; i < pagesize; ++i)
6512 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006513 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006514 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006515 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006516}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517_ACEOF
6518rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006519if { (ac_try="$ac_link"
6520case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523esac
6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006529 { (case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532esac
6533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006538 ac_cv_func_mmap_fixed_mapped=yes
6539else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006540 echo "$as_me: program exited with status $ac_status" >&5
6541echo "$as_me: failed program was:" >&5
6542sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006544( exit $ac_status )
6545ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006546fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006547rm -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 -05006548fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006549
6550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006552{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6553echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006554if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006555
6556cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006557#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006558_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006559
6560fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006562
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006563
Theodore Ts'oe1052142006-10-21 21:46:47 -04006564 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6565echo $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 -05006566if test "${ac_cv_gnu_library_2_1+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006568else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006569 cat >conftest.$ac_ext <<_ACEOF
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006575
6576#include <features.h>
6577#ifdef __GNU_LIBRARY__
6578 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6579 Lucky GNU user
6580 #endif
6581#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006582
6583_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006585 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006586 ac_cv_gnu_library_2_1=yes
6587else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006588 ac_cv_gnu_library_2_1=no
6589fi
6590rm -f conftest*
6591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592
6593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006595{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6596echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006597
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006598 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006599
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006601
6602
Theodore Ts'oe1052142006-10-21 21:46:47 -04006603 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6604echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006607else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006609 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006610
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006611 # Guess based on the CPU.
6612 case "$host_cpu" in
6613 alpha* | i3456786 | m68k | s390*)
6614 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6615 *)
6616 gt_cv_int_divbyzero_sigfpe="guessing no";;
6617 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006619else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006626
6627#include <stdlib.h>
6628#include <signal.h>
6629
6630static void
6631#ifdef __cplusplus
6632sigfpe_handler (int sig)
6633#else
6634sigfpe_handler (sig) int sig;
6635#endif
6636{
6637 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6638 exit (sig != SIGFPE);
6639}
6640
6641int x = 1;
6642int y = 0;
6643int z;
6644int nan;
6645
6646int main ()
6647{
6648 signal (SIGFPE, sigfpe_handler);
6649/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6650#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6651 signal (SIGTRAP, sigfpe_handler);
6652#endif
6653/* Linux/SPARC yields signal SIGILL. */
6654#if defined (__sparc__) && defined (__linux__)
6655 signal (SIGILL, sigfpe_handler);
6656#endif
6657
6658 z = x / y;
6659 nan = y / y;
6660 exit (1);
6661}
6662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663_ACEOF
6664rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006665if { (ac_try="$ac_link"
6666case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669esac
6670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006675 { (case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678esac
6679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006684 gt_cv_int_divbyzero_sigfpe=yes
6685else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686 echo "$as_me: program exited with status $ac_status" >&5
6687echo "$as_me: failed program was:" >&5
6688sed 's/^/| /' conftest.$ac_ext >&5
6689
6690( exit $ac_status )
6691gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006692fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006693rm -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 -04006694fi
6695
Theodore Ts'oe1052142006-10-21 21:46:47 -04006696
6697
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006698fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006699{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6700echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006701 case "$gt_cv_int_divbyzero_sigfpe" in
6702 *yes) value=1;;
6703 *) value=0;;
6704 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705
6706cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006707#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006709
6710
6711
Theodore Ts'oe1052142006-10-21 21:46:47 -04006712 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6713echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006714if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717 cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h. */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h. */
6723unsigned long long ull = 1ULL; int i = 63;
6724int
6725main ()
6726{
6727unsigned long long ullmax = (unsigned long long) -1;
6728 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6729 ;
6730 return 0;
6731}
6732_ACEOF
6733rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006734if { (ac_try="$ac_link"
6735case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738esac
6739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006746 (exit $ac_status); } && {
6747 test -z "$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest$ac_exeext &&
6750 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751 ac_cv_type_unsigned_long_long=yes
6752else
6753 echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
Theodore Ts'oe1052142006-10-21 21:46:47 -04006756 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006758
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006760 conftest$ac_exeext conftest.$ac_ext
6761fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006762{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6763echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006764 if test $ac_cv_type_unsigned_long_long = yes; then
6765
6766cat >>confdefs.h <<\_ACEOF
6767#define HAVE_UNSIGNED_LONG_LONG 1
6768_ACEOF
6769
6770 fi
6771
6772
6773
6774
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006775 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 -05006776
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006777 test $ac_cv_type_unsigned_long_long = yes \
6778 && ac_type='unsigned long long' \
6779 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006780
6781cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006782#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006783_ACEOF
6784
6785 else
6786
6787cat >>confdefs.h <<\_ACEOF
6788#define HAVE_UINTMAX_T 1
6789_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006790
6791 fi
6792
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006793
Theodore Ts'oe1052142006-10-21 21:46:47 -04006794 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6795echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796if test "${gt_cv_header_inttypes_h+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006798else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799
6800 cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h. */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006806#include <sys/types.h>
6807#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006808int
6809main ()
6810{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006811
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812 ;
6813 return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006817if { (ac_try="$ac_compile"
6818case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
6822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006829 (exit $ac_status); } && {
6830 test -z "$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6832 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006833 gt_cv_header_inttypes_h=yes
6834else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835 echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006837
Theodore Ts'oe1052142006-10-21 21:46:47 -04006838 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006840
6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842
6843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006844{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6845echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006846 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847
6848cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006849#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006851
6852 fi
6853
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006854
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006855
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006856 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04006857 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6858echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006861else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862
6863 cat >conftest.$ac_ext <<_ACEOF
6864/* confdefs.h. */
6865_ACEOF
6866cat confdefs.h >>conftest.$ac_ext
6867cat >>conftest.$ac_ext <<_ACEOF
6868/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006869#include <inttypes.h>
6870#ifdef PRId32
6871char *p = PRId32;
6872#endif
6873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874int
6875main ()
6876{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006878 ;
6879 return 0;
6880}
6881_ACEOF
6882rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006883if { (ac_try="$ac_compile"
6884case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887esac
6888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006899 gt_cv_inttypes_pri_broken=no
6900else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006901 echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006903
Theodore Ts'oe1052142006-10-21 21:46:47 -04006904 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006906
6907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908
6909fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006910{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6911echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006912 fi
6913 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006914
6915cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006916#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006918
6919 fi
6920
6921
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006923for ac_header in stdint.h
6924do
6925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006932ac_res=`eval echo '${'$as_ac_Header'}'`
6933 { echo "$as_me:$LINENO: result: $ac_res" >&5
6934echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006935else
6936 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006937{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006939cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h. */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h. */
6945$ac_includes_default
6946#include <$ac_header>
6947_ACEOF
6948rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006949if { (ac_try="$ac_compile"
6950case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953esac
6954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006965 ac_header_compiler=yes
6966else
6967 echo "$as_me: failed program was:" >&5
6968sed 's/^/| /' conftest.$ac_ext >&5
6969
Theodore Ts'oe1052142006-10-21 21:46:47 -04006970 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006972
6973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6975echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976
6977# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006978{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h. */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h. */
6986#include <$ac_header>
6987_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006988if { (ac_try="$ac_cpp conftest.$ac_ext"
6989case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992esac
6993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007000 (exit $ac_status); } >/dev/null && {
7001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004 ac_header_preproc=yes
7005else
7006 echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 ac_header_preproc=no
7010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007012rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007013{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7014echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015
7016# So? What about this header?
7017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7018 yes:no: )
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7023 ac_header_preproc=yes
7024 ;;
7025 no:yes:* )
7026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007038
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039 ;;
7040esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007041{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 eval "$as_ac_Header=\$ac_header_preproc"
7047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007048ac_res=`eval echo '${'$as_ac_Header'}'`
7049 { echo "$as_me:$LINENO: result: $ac_res" >&5
7050echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051
7052fi
7053if test `eval echo '${'$as_ac_Header'}'` = yes; then
7054 cat >>confdefs.h <<_ACEOF
7055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7056_ACEOF
7057
7058fi
7059
7060done
7061
Theodore Ts'oe1052142006-10-21 21:46:47 -04007062 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7063echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007064 result=
7065 cat >conftest.$ac_ext <<_ACEOF
7066/* confdefs.h. */
7067_ACEOF
7068cat confdefs.h >>conftest.$ac_ext
7069cat >>conftest.$ac_ext <<_ACEOF
7070/* end confdefs.h. */
7071
7072#include <limits.h>
7073#if HAVE_STDINT_H
7074#include <stdint.h>
7075#endif
7076#ifdef SIZE_MAX
7077Found it
7078#endif
7079
7080_ACEOF
7081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7082 $EGREP "Found it" >/dev/null 2>&1; then
7083 result=yes
7084fi
7085rm -f conftest*
7086
7087 if test -z "$result"; then
7088 if test "$cross_compiling" = yes; then
7089 # Depending upon the size, compute the lo and hi bounds.
7090cat >conftest.$ac_ext <<_ACEOF
7091/* confdefs.h. */
7092_ACEOF
7093cat confdefs.h >>conftest.$ac_ext
7094cat >>conftest.$ac_ext <<_ACEOF
7095/* end confdefs.h. */
7096#include <stddef.h>
7097int
7098main ()
7099{
7100static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7101test_array [0] = 0
7102
7103 ;
7104 return 0;
7105}
7106_ACEOF
7107rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007108if { (ac_try="$ac_compile"
7109case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112esac
7113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007124 ac_lo=0 ac_mid=0
7125 while :; do
7126 cat >conftest.$ac_ext <<_ACEOF
7127/* confdefs.h. */
7128_ACEOF
7129cat confdefs.h >>conftest.$ac_ext
7130cat >>conftest.$ac_ext <<_ACEOF
7131/* end confdefs.h. */
7132#include <stddef.h>
7133int
7134main ()
7135{
7136static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7137test_array [0] = 0
7138
7139 ;
7140 return 0;
7141}
7142_ACEOF
7143rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007144if { (ac_try="$ac_compile"
7145case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148esac
7149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160 ac_hi=$ac_mid; break
7161else
7162 echo "$as_me: failed program was:" >&5
7163sed 's/^/| /' conftest.$ac_ext >&5
7164
Theodore Ts'oe1052142006-10-21 21:46:47 -04007165 ac_lo=`expr $ac_mid + 1`
7166 if test $ac_lo -le $ac_mid; then
7167 ac_lo= ac_hi=
7168 break
7169 fi
7170 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007171fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007172
7173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174 done
7175else
7176 echo "$as_me: failed program was:" >&5
7177sed 's/^/| /' conftest.$ac_ext >&5
7178
Theodore Ts'oe1052142006-10-21 21:46:47 -04007179 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180/* confdefs.h. */
7181_ACEOF
7182cat confdefs.h >>conftest.$ac_ext
7183cat >>conftest.$ac_ext <<_ACEOF
7184/* end confdefs.h. */
7185#include <stddef.h>
7186int
7187main ()
7188{
7189static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7190test_array [0] = 0
7191
7192 ;
7193 return 0;
7194}
7195_ACEOF
7196rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007197if { (ac_try="$ac_compile"
7198case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201esac
7202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213 ac_hi=-1 ac_mid=-1
7214 while :; do
7215 cat >conftest.$ac_ext <<_ACEOF
7216/* confdefs.h. */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h. */
7221#include <stddef.h>
7222int
7223main ()
7224{
7225static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7226test_array [0] = 0
7227
7228 ;
7229 return 0;
7230}
7231_ACEOF
7232rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007233if { (ac_try="$ac_compile"
7234case "(($ac_try" in
7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7237esac
7238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7239 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007245 (exit $ac_status); } && {
7246 test -z "$ac_c_werror_flag" ||
7247 test ! -s conftest.err
7248 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007249 ac_lo=$ac_mid; break
7250else
7251 echo "$as_me: failed program was:" >&5
7252sed 's/^/| /' conftest.$ac_ext >&5
7253
Theodore Ts'oe1052142006-10-21 21:46:47 -04007254 ac_hi=`expr '(' $ac_mid ')' - 1`
7255 if test $ac_mid -le $ac_hi; then
7256 ac_lo= ac_hi=
7257 break
7258 fi
7259 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007261
7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007263 done
7264else
7265 echo "$as_me: failed program was:" >&5
7266sed 's/^/| /' conftest.$ac_ext >&5
7267
Theodore Ts'oe1052142006-10-21 21:46:47 -04007268 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007270
7271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007272fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007273
7274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275# Binary search between lo and hi bounds.
7276while test "x$ac_lo" != "x$ac_hi"; do
7277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7278 cat >conftest.$ac_ext <<_ACEOF
7279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h. */
7284#include <stddef.h>
7285int
7286main ()
7287{
7288static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7289test_array [0] = 0
7290
7291 ;
7292 return 0;
7293}
7294_ACEOF
7295rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007296if { (ac_try="$ac_compile"
7297case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300esac
7301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007312 ac_hi=$ac_mid
7313else
7314 echo "$as_me: failed program was:" >&5
7315sed 's/^/| /' conftest.$ac_ext >&5
7316
Theodore Ts'oe1052142006-10-21 21:46:47 -04007317 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007319
7320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321done
7322case $ac_lo in
7323?*) res_hi=$ac_lo;;
7324'') result=? ;;
7325esac
7326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007327 cat >conftest.$ac_ext <<_ACEOF
7328/* confdefs.h. */
7329_ACEOF
7330cat confdefs.h >>conftest.$ac_ext
7331cat >>conftest.$ac_ext <<_ACEOF
7332/* end confdefs.h. */
7333#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007334static long int longval () { return ~(size_t)0 / 10; }
7335static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007336#include <stdio.h>
7337#include <stdlib.h>
7338int
7339main ()
7340{
7341
7342 FILE *f = fopen ("conftest.val", "w");
7343 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007344 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345 if ((~(size_t)0 / 10) < 0)
7346 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007347 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007349 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350 fprintf (f, "%ld\n", i);
7351 }
7352 else
7353 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007354 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007355 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007356 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007357 fprintf (f, "%lu\n", i);
7358 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007359 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007360
7361 ;
7362 return 0;
7363}
7364_ACEOF
7365rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007366if { (ac_try="$ac_link"
7367case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370esac
7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007376 { (case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7379esac
7380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 res_hi=`cat conftest.val`
7386else
7387 echo "$as_me: program exited with status $ac_status" >&5
7388echo "$as_me: failed program was:" >&5
7389sed 's/^/| /' conftest.$ac_ext >&5
7390
7391( exit $ac_status )
7392result=?
7393fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007394rm -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 -05007395fi
7396rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007397
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007398 if test "$cross_compiling" = yes; then
7399 # Depending upon the size, compute the lo and hi bounds.
7400cat >conftest.$ac_ext <<_ACEOF
7401/* confdefs.h. */
7402_ACEOF
7403cat confdefs.h >>conftest.$ac_ext
7404cat >>conftest.$ac_ext <<_ACEOF
7405/* end confdefs.h. */
7406#include <stddef.h>
7407int
7408main ()
7409{
7410static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7411test_array [0] = 0
7412
7413 ;
7414 return 0;
7415}
7416_ACEOF
7417rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007418if { (ac_try="$ac_compile"
7419case "(($ac_try" in
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7422esac
7423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007425 ac_status=$?
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007434 ac_lo=0 ac_mid=0
7435 while :; do
7436 cat >conftest.$ac_ext <<_ACEOF
7437/* confdefs.h. */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h. */
7442#include <stddef.h>
7443int
7444main ()
7445{
7446static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7447test_array [0] = 0
7448
7449 ;
7450 return 0;
7451}
7452_ACEOF
7453rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007454if { (ac_try="$ac_compile"
7455case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458esac
7459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007461 ac_status=$?
7462 grep -v '^ *+' conftest.er1 >conftest.err
7463 rm -f conftest.er1
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007466 (exit $ac_status); } && {
7467 test -z "$ac_c_werror_flag" ||
7468 test ! -s conftest.err
7469 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007470 ac_hi=$ac_mid; break
7471else
7472 echo "$as_me: failed program was:" >&5
7473sed 's/^/| /' conftest.$ac_ext >&5
7474
Theodore Ts'oe1052142006-10-21 21:46:47 -04007475 ac_lo=`expr $ac_mid + 1`
7476 if test $ac_lo -le $ac_mid; then
7477 ac_lo= ac_hi=
7478 break
7479 fi
7480 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007481fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007482
7483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484 done
7485else
7486 echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
Theodore Ts'oe1052142006-10-21 21:46:47 -04007489 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490/* confdefs.h. */
7491_ACEOF
7492cat confdefs.h >>conftest.$ac_ext
7493cat >>conftest.$ac_ext <<_ACEOF
7494/* end confdefs.h. */
7495#include <stddef.h>
7496int
7497main ()
7498{
7499static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7500test_array [0] = 0
7501
7502 ;
7503 return 0;
7504}
7505_ACEOF
7506rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007507if { (ac_try="$ac_compile"
7508case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511esac
7512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523 ac_hi=-1 ac_mid=-1
7524 while :; do
7525 cat >conftest.$ac_ext <<_ACEOF
7526/* confdefs.h. */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h. */
7531#include <stddef.h>
7532int
7533main ()
7534{
7535static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7536test_array [0] = 0
7537
7538 ;
7539 return 0;
7540}
7541_ACEOF
7542rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007543if { (ac_try="$ac_compile"
7544case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547esac
7548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007555 (exit $ac_status); } && {
7556 test -z "$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007559 ac_lo=$ac_mid; break
7560else
7561 echo "$as_me: failed program was:" >&5
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
Theodore Ts'oe1052142006-10-21 21:46:47 -04007564 ac_hi=`expr '(' $ac_mid ')' - 1`
7565 if test $ac_mid -le $ac_hi; then
7566 ac_lo= ac_hi=
7567 break
7568 fi
7569 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007571
7572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007573 done
7574else
7575 echo "$as_me: failed program was:" >&5
7576sed 's/^/| /' conftest.$ac_ext >&5
7577
Theodore Ts'oe1052142006-10-21 21:46:47 -04007578 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007580
7581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007582fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007583
7584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007585# Binary search between lo and hi bounds.
7586while test "x$ac_lo" != "x$ac_hi"; do
7587 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7588 cat >conftest.$ac_ext <<_ACEOF
7589/* confdefs.h. */
7590_ACEOF
7591cat confdefs.h >>conftest.$ac_ext
7592cat >>conftest.$ac_ext <<_ACEOF
7593/* end confdefs.h. */
7594#include <stddef.h>
7595int
7596main ()
7597{
7598static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7599test_array [0] = 0
7600
7601 ;
7602 return 0;
7603}
7604_ACEOF
7605rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007606if { (ac_try="$ac_compile"
7607case "(($ac_try" in
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7610esac
7611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7612 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007622 ac_hi=$ac_mid
7623else
7624 echo "$as_me: failed program was:" >&5
7625sed 's/^/| /' conftest.$ac_ext >&5
7626
Theodore Ts'oe1052142006-10-21 21:46:47 -04007627 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007629
7630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631done
7632case $ac_lo in
7633?*) res_lo=$ac_lo;;
7634'') result=? ;;
7635esac
7636else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637 cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h. */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h. */
7643#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007644static long int longval () { return ~(size_t)0 % 10; }
7645static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007646#include <stdio.h>
7647#include <stdlib.h>
7648int
7649main ()
7650{
7651
7652 FILE *f = fopen ("conftest.val", "w");
7653 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007654 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007655 if ((~(size_t)0 % 10) < 0)
7656 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007657 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007659 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660 fprintf (f, "%ld\n", i);
7661 }
7662 else
7663 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007664 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007665 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007666 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007667 fprintf (f, "%lu\n", i);
7668 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007669 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007676if { (ac_try="$ac_link"
7677case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680esac
7681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007686 { (case "(($ac_try" in
7687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688 *) ac_try_echo=$ac_try;;
7689esac
7690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 res_lo=`cat conftest.val`
7696else
7697 echo "$as_me: program exited with status $ac_status" >&5
7698echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701( exit $ac_status )
7702result=?
7703fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007704rm -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 -05007705fi
7706rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007707
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007708 if test "$cross_compiling" = yes; then
7709 # Depending upon the size, compute the lo and hi bounds.
7710cat >conftest.$ac_ext <<_ACEOF
7711/* confdefs.h. */
7712_ACEOF
7713cat confdefs.h >>conftest.$ac_ext
7714cat >>conftest.$ac_ext <<_ACEOF
7715/* end confdefs.h. */
7716#include <stddef.h>
7717int
7718main ()
7719{
7720static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7721test_array [0] = 0
7722
7723 ;
7724 return 0;
7725}
7726_ACEOF
7727rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007728if { (ac_try="$ac_compile"
7729case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732esac
7733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007740 (exit $ac_status); } && {
7741 test -z "$ac_c_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007744 ac_lo=0 ac_mid=0
7745 while :; do
7746 cat >conftest.$ac_ext <<_ACEOF
7747/* confdefs.h. */
7748_ACEOF
7749cat confdefs.h >>conftest.$ac_ext
7750cat >>conftest.$ac_ext <<_ACEOF
7751/* end confdefs.h. */
7752#include <stddef.h>
7753int
7754main ()
7755{
7756static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7757test_array [0] = 0
7758
7759 ;
7760 return 0;
7761}
7762_ACEOF
7763rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007764if { (ac_try="$ac_compile"
7765case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768esac
7769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007780 ac_hi=$ac_mid; break
7781else
7782 echo "$as_me: failed program was:" >&5
7783sed 's/^/| /' conftest.$ac_ext >&5
7784
Theodore Ts'oe1052142006-10-21 21:46:47 -04007785 ac_lo=`expr $ac_mid + 1`
7786 if test $ac_lo -le $ac_mid; then
7787 ac_lo= ac_hi=
7788 break
7789 fi
7790 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007792
7793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007794 done
7795else
7796 echo "$as_me: failed program was:" >&5
7797sed 's/^/| /' conftest.$ac_ext >&5
7798
Theodore Ts'oe1052142006-10-21 21:46:47 -04007799 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007800/* confdefs.h. */
7801_ACEOF
7802cat confdefs.h >>conftest.$ac_ext
7803cat >>conftest.$ac_ext <<_ACEOF
7804/* end confdefs.h. */
7805#include <stddef.h>
7806int
7807main ()
7808{
7809static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7810test_array [0] = 0
7811
7812 ;
7813 return 0;
7814}
7815_ACEOF
7816rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007817if { (ac_try="$ac_compile"
7818case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821esac
7822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007833 ac_hi=-1 ac_mid=-1
7834 while :; do
7835 cat >conftest.$ac_ext <<_ACEOF
7836/* confdefs.h. */
7837_ACEOF
7838cat confdefs.h >>conftest.$ac_ext
7839cat >>conftest.$ac_ext <<_ACEOF
7840/* end confdefs.h. */
7841#include <stddef.h>
7842int
7843main ()
7844{
7845static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7846test_array [0] = 0
7847
7848 ;
7849 return 0;
7850}
7851_ACEOF
7852rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007853if { (ac_try="$ac_compile"
7854case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007869 ac_lo=$ac_mid; break
7870else
7871 echo "$as_me: failed program was:" >&5
7872sed 's/^/| /' conftest.$ac_ext >&5
7873
Theodore Ts'oe1052142006-10-21 21:46:47 -04007874 ac_hi=`expr '(' $ac_mid ')' - 1`
7875 if test $ac_mid -le $ac_hi; then
7876 ac_lo= ac_hi=
7877 break
7878 fi
7879 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007880fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007881
7882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007883 done
7884else
7885 echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
Theodore Ts'oe1052142006-10-21 21:46:47 -04007888 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007889fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007890
7891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007892fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007893
7894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007895# Binary search between lo and hi bounds.
7896while test "x$ac_lo" != "x$ac_hi"; do
7897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7898 cat >conftest.$ac_ext <<_ACEOF
7899/* confdefs.h. */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h. */
7904#include <stddef.h>
7905int
7906main ()
7907{
7908static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7909test_array [0] = 0
7910
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007916if { (ac_try="$ac_compile"
7917case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920esac
7921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007932 ac_hi=$ac_mid
7933else
7934 echo "$as_me: failed program was:" >&5
7935sed 's/^/| /' conftest.$ac_ext >&5
7936
Theodore Ts'oe1052142006-10-21 21:46:47 -04007937 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007938fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007939
7940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007941done
7942case $ac_lo in
7943?*) fits_in_uint=$ac_lo;;
7944'') result=? ;;
7945esac
7946else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007947 cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h. */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h. */
7953#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007954static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7955static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007956#include <stdio.h>
7957#include <stdlib.h>
7958int
7959main ()
7960{
7961
7962 FILE *f = fopen ("conftest.val", "w");
7963 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007964 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007965 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7966 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007967 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007968 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007969 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007970 fprintf (f, "%ld\n", i);
7971 }
7972 else
7973 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007974 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007975 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007976 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007977 fprintf (f, "%lu\n", i);
7978 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007979 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007980
7981 ;
7982 return 0;
7983}
7984_ACEOF
7985rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007986if { (ac_try="$ac_link"
7987case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990esac
7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007993 ac_status=$?
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007996 { (case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999esac
8000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 fits_in_uint=`cat conftest.val`
8006else
8007 echo "$as_me: program exited with status $ac_status" >&5
8008echo "$as_me: failed program was:" >&5
8009sed 's/^/| /' conftest.$ac_ext >&5
8010
8011( exit $ac_status )
8012result=?
8013fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008014rm -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 -05008015fi
8016rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008018 if test "$fits_in_uint" = 1; then
8019 cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8025#include <stddef.h>
8026 extern size_t foo;
8027 extern unsigned long foo;
8028
8029int
8030main ()
8031{
8032
8033 ;
8034 return 0;
8035}
8036_ACEOF
8037rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008038if { (ac_try="$ac_compile"
8039case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042esac
8043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008054 fits_in_uint=0
8055else
8056 echo "$as_me: failed program was:" >&5
8057sed 's/^/| /' conftest.$ac_ext >&5
8058
Theodore Ts'oe1052142006-10-21 21:46:47 -04008059
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008060fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008061
8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008063 fi
8064 if test -z "$result"; then
8065 if test "$fits_in_uint" = 1; then
8066 result="$res_hi$res_lo"U
8067 else
8068 result="$res_hi$res_lo"UL
8069 fi
8070 else
8071 result='~(size_t)0'
8072 fi
8073 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008074 { echo "$as_me:$LINENO: result: $result" >&5
8075echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008076 if test "$result" != yes; then
8077
8078cat >>confdefs.h <<_ACEOF
8079#define SIZE_MAX $result
8080_ACEOF
8081
8082 fi
8083
8084
8085
8086
8087for ac_header in stdint.h
8088do
8089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008094 echo $ECHO_N "(cached) $ECHO_C" >&6
8095fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008096ac_res=`eval echo '${'$as_ac_Header'}'`
8097 { echo "$as_me:$LINENO: result: $ac_res" >&5
8098echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008099else
8100 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008101{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8102echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008103cat >conftest.$ac_ext <<_ACEOF
8104/* confdefs.h. */
8105_ACEOF
8106cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h. */
8109$ac_includes_default
8110#include <$ac_header>
8111_ACEOF
8112rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008113if { (ac_try="$ac_compile"
8114case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117esac
8118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008129 ac_header_compiler=yes
8130else
8131 echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
Theodore Ts'oe1052142006-10-21 21:46:47 -04008134 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008136
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8139echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008140
8141# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008142{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008144cat >conftest.$ac_ext <<_ACEOF
8145/* confdefs.h. */
8146_ACEOF
8147cat confdefs.h >>conftest.$ac_ext
8148cat >>conftest.$ac_ext <<_ACEOF
8149/* end confdefs.h. */
8150#include <$ac_header>
8151_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008152if { (ac_try="$ac_cpp conftest.$ac_ext"
8153case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8156esac
8157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008164 (exit $ac_status); } >/dev/null && {
8165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008168 ac_header_preproc=yes
8169else
8170 echo "$as_me: failed program was:" >&5
8171sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_header_preproc=no
8174fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008176rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008177{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8178echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008179
8180# So? What about this header?
8181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8182 yes:no: )
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8187 ac_header_preproc=yes
8188 ;;
8189 no:yes:* )
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008202
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008203 ;;
8204esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 eval "$as_ac_Header=\$ac_header_preproc"
8211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008212ac_res=`eval echo '${'$as_ac_Header'}'`
8213 { echo "$as_me:$LINENO: result: $ac_res" >&5
8214echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008215
8216fi
8217if test `eval echo '${'$as_ac_Header'}'` = yes; then
8218 cat >>confdefs.h <<_ACEOF
8219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8220_ACEOF
8221
8222fi
8223
8224done
8225
8226
8227
8228 if test "X$prefix" = "XNONE"; then
8229 acl_final_prefix="$ac_default_prefix"
8230 else
8231 acl_final_prefix="$prefix"
8232 fi
8233 if test "X$exec_prefix" = "XNONE"; then
8234 acl_final_exec_prefix='${prefix}'
8235 else
8236 acl_final_exec_prefix="$exec_prefix"
8237 fi
8238 acl_save_prefix="$prefix"
8239 prefix="$acl_final_prefix"
8240 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8241 prefix="$acl_save_prefix"
8242
8243
Theodore Ts'oe1052142006-10-21 21:46:47 -04008244# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008245if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008247else
8248 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008249fi
8250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008251# Prepare PATH_SEPARATOR.
8252# The user is always right.
8253if test "${PATH_SEPARATOR+set}" != set; then
8254 echo "#! /bin/sh" >conf$$.sh
8255 echo "exit 0" >>conf$$.sh
8256 chmod +x conf$$.sh
8257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8258 PATH_SEPARATOR=';'
8259 else
8260 PATH_SEPARATOR=:
8261 fi
8262 rm -f conf$$.sh
8263fi
8264ac_prog=ld
8265if test "$GCC" = yes; then
8266 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008267 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8268echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008269 case $host in
8270 *-*-mingw*)
8271 # gcc leaves a trailing carriage return which upsets mingw
8272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8273 *)
8274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8275 esac
8276 case $ac_prog in
8277 # Accept absolute paths.
8278 [\\/]* | [A-Za-z]:[\\/]*)
8279 re_direlt='/[^/][^/]*/\.\./'
8280 # Canonicalize the path of ld
8281 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8282 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8283 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8284 done
8285 test -z "$LD" && LD="$ac_prog"
8286 ;;
8287 "")
8288 # If it fails, then pretend we aren't using GCC.
8289 ac_prog=ld
8290 ;;
8291 *)
8292 # If it is relative, then search for the first ld in PATH.
8293 with_gnu_ld=unknown
8294 ;;
8295 esac
8296elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008297 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8298echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008299else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008300 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8301echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008302fi
8303if test "${acl_cv_path_LD+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306 if test -z "$LD"; then
8307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8308 for ac_dir in $PATH; do
8309 test -z "$ac_dir" && ac_dir=.
8310 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8311 acl_cv_path_LD="$ac_dir/$ac_prog"
8312 # Check to see if the program is GNU ld. I'd rather use --version,
8313 # but apparently some GNU ld's only accept -v.
8314 # Break only if it was the GNU/non-GNU ld that we prefer.
8315 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8316 *GNU* | *'with BFD'*)
8317 test "$with_gnu_ld" != no && break ;;
8318 *)
8319 test "$with_gnu_ld" != yes && break ;;
8320 esac
8321 fi
8322 done
8323 IFS="$ac_save_ifs"
8324else
8325 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8326fi
8327fi
8328
8329LD="$acl_cv_path_LD"
8330if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008331 { echo "$as_me:$LINENO: result: $LD" >&5
8332echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008333else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008334 { echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336fi
8337test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8338echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8339 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008340{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8341echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008342if test "${acl_cv_prog_gnu_ld+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8344else
8345 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8346case `$LD -v 2>&1 </dev/null` in
8347*GNU* | *'with BFD'*)
8348 acl_cv_prog_gnu_ld=yes ;;
8349*)
8350 acl_cv_prog_gnu_ld=no ;;
8351esac
8352fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008353{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8354echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355with_gnu_ld=$acl_cv_prog_gnu_ld
8356
8357
8358
Theodore Ts'oe1052142006-10-21 21:46:47 -04008359 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8360echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008361if test "${acl_cv_rpath+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363else
8364
8365 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8366 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8367 . ./conftest.sh
8368 rm -f ./conftest.sh
8369 acl_cv_rpath=done
8370
8371fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008372{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8373echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008374 wl="$acl_cv_wl"
8375 libext="$acl_cv_libext"
8376 shlibext="$acl_cv_shlibext"
8377 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8378 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8379 hardcode_direct="$acl_cv_hardcode_direct"
8380 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008383 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384else
8385 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008386fi
8387
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008388
8389
8390
8391
8392
8393
8394
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008395 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008396
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008397 acl_save_prefix="$prefix"
8398 prefix="$acl_final_prefix"
8399 acl_save_exec_prefix="$exec_prefix"
8400 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008401
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008402 eval additional_includedir=\"$includedir\"
8403 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008404
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008405 exec_prefix="$acl_save_exec_prefix"
8406 prefix="$acl_save_prefix"
8407
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008408
Theodore Ts'oe1052142006-10-21 21:46:47 -04008409# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008410if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008411 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008412 if test "X$withval" = "Xno"; then
8413 use_additional=no
8414 else
8415 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008416
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008417 acl_save_prefix="$prefix"
8418 prefix="$acl_final_prefix"
8419 acl_save_exec_prefix="$exec_prefix"
8420 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008421
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008422 eval additional_includedir=\"$includedir\"
8423 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008424
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008425 exec_prefix="$acl_save_exec_prefix"
8426 prefix="$acl_save_prefix"
8427
8428 else
8429 additional_includedir="$withval/include"
8430 additional_libdir="$withval/lib"
8431 fi
8432 fi
8433
Theodore Ts'oe1052142006-10-21 21:46:47 -04008434fi
8435
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008436 LIBICONV=
8437 LTLIBICONV=
8438 INCICONV=
8439 rpathdirs=
8440 ltrpathdirs=
8441 names_already_handled=
8442 names_next_round='iconv '
8443 while test -n "$names_next_round"; do
8444 names_this_round="$names_next_round"
8445 names_next_round=
8446 for name in $names_this_round; do
8447 already_handled=
8448 for n in $names_already_handled; do
8449 if test "$n" = "$name"; then
8450 already_handled=yes
8451 break
8452 fi
8453 done
8454 if test -z "$already_handled"; then
8455 names_already_handled="$names_already_handled $name"
8456 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8457 eval value=\"\$HAVE_LIB$uppername\"
8458 if test -n "$value"; then
8459 if test "$value" = yes; then
8460 eval value=\"\$LIB$uppername\"
8461 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8462 eval value=\"\$LTLIB$uppername\"
8463 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8464 else
8465 :
8466 fi
8467 else
8468 found_dir=
8469 found_la=
8470 found_so=
8471 found_a=
8472 if test $use_additional = yes; then
8473 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8474 found_dir="$additional_libdir"
8475 found_so="$additional_libdir/lib$name.$shlibext"
8476 if test -f "$additional_libdir/lib$name.la"; then
8477 found_la="$additional_libdir/lib$name.la"
8478 fi
8479 else
8480 if test -f "$additional_libdir/lib$name.$libext"; then
8481 found_dir="$additional_libdir"
8482 found_a="$additional_libdir/lib$name.$libext"
8483 if test -f "$additional_libdir/lib$name.la"; then
8484 found_la="$additional_libdir/lib$name.la"
8485 fi
8486 fi
8487 fi
8488 fi
8489 if test "X$found_dir" = "X"; then
8490 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008491
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008492 acl_save_prefix="$prefix"
8493 prefix="$acl_final_prefix"
8494 acl_save_exec_prefix="$exec_prefix"
8495 exec_prefix="$acl_final_exec_prefix"
8496 eval x=\"$x\"
8497 exec_prefix="$acl_save_exec_prefix"
8498 prefix="$acl_save_prefix"
8499
8500 case "$x" in
8501 -L*)
8502 dir=`echo "X$x" | sed -e 's/^X-L//'`
8503 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8504 found_dir="$dir"
8505 found_so="$dir/lib$name.$shlibext"
8506 if test -f "$dir/lib$name.la"; then
8507 found_la="$dir/lib$name.la"
8508 fi
8509 else
8510 if test -f "$dir/lib$name.$libext"; then
8511 found_dir="$dir"
8512 found_a="$dir/lib$name.$libext"
8513 if test -f "$dir/lib$name.la"; then
8514 found_la="$dir/lib$name.la"
8515 fi
8516 fi
8517 fi
8518 ;;
8519 esac
8520 if test "X$found_dir" != "X"; then
8521 break
8522 fi
8523 done
8524 fi
8525 if test "X$found_dir" != "X"; then
8526 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8527 if test "X$found_so" != "X"; then
8528 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8529 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8530 else
8531 haveit=
8532 for x in $ltrpathdirs; do
8533 if test "X$x" = "X$found_dir"; then
8534 haveit=yes
8535 break
8536 fi
8537 done
8538 if test -z "$haveit"; then
8539 ltrpathdirs="$ltrpathdirs $found_dir"
8540 fi
8541 if test "$hardcode_direct" = yes; then
8542 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8543 else
8544 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8545 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8546 haveit=
8547 for x in $rpathdirs; do
8548 if test "X$x" = "X$found_dir"; then
8549 haveit=yes
8550 break
8551 fi
8552 done
8553 if test -z "$haveit"; then
8554 rpathdirs="$rpathdirs $found_dir"
8555 fi
8556 else
8557 haveit=
8558 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008559
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008560 acl_save_prefix="$prefix"
8561 prefix="$acl_final_prefix"
8562 acl_save_exec_prefix="$exec_prefix"
8563 exec_prefix="$acl_final_exec_prefix"
8564 eval x=\"$x\"
8565 exec_prefix="$acl_save_exec_prefix"
8566 prefix="$acl_save_prefix"
8567
8568 if test "X$x" = "X-L$found_dir"; then
8569 haveit=yes
8570 break
8571 fi
8572 done
8573 if test -z "$haveit"; then
8574 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8575 fi
8576 if test "$hardcode_minus_L" != no; then
8577 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8578 else
8579 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8580 fi
8581 fi
8582 fi
8583 fi
8584 else
8585 if test "X$found_a" != "X"; then
8586 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8587 else
8588 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8589 fi
8590 fi
8591 additional_includedir=
8592 case "$found_dir" in
8593 */lib | */lib/)
8594 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8595 additional_includedir="$basedir/include"
8596 ;;
8597 esac
8598 if test "X$additional_includedir" != "X"; then
8599 if test "X$additional_includedir" != "X/usr/include"; then
8600 haveit=
8601 if test "X$additional_includedir" = "X/usr/local/include"; then
8602 if test -n "$GCC"; then
8603 case $host_os in
8604 linux*) haveit=yes;;
8605 esac
8606 fi
8607 fi
8608 if test -z "$haveit"; then
8609 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008610
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008611 acl_save_prefix="$prefix"
8612 prefix="$acl_final_prefix"
8613 acl_save_exec_prefix="$exec_prefix"
8614 exec_prefix="$acl_final_exec_prefix"
8615 eval x=\"$x\"
8616 exec_prefix="$acl_save_exec_prefix"
8617 prefix="$acl_save_prefix"
8618
8619 if test "X$x" = "X-I$additional_includedir"; then
8620 haveit=yes
8621 break
8622 fi
8623 done
8624 if test -z "$haveit"; then
8625 if test -d "$additional_includedir"; then
8626 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8627 fi
8628 fi
8629 fi
8630 fi
8631 fi
8632 if test -n "$found_la"; then
8633 save_libdir="$libdir"
8634 case "$found_la" in
8635 */* | *\\*) . "$found_la" ;;
8636 *) . "./$found_la" ;;
8637 esac
8638 libdir="$save_libdir"
8639 for dep in $dependency_libs; do
8640 case "$dep" in
8641 -L*)
8642 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8643 if test "X$additional_libdir" != "X/usr/lib"; then
8644 haveit=
8645 if test "X$additional_libdir" = "X/usr/local/lib"; then
8646 if test -n "$GCC"; then
8647 case $host_os in
8648 linux*) haveit=yes;;
8649 esac
8650 fi
8651 fi
8652 if test -z "$haveit"; then
8653 haveit=
8654 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008655
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8660 eval x=\"$x\"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8663
8664 if test "X$x" = "X-L$additional_libdir"; then
8665 haveit=yes
8666 break
8667 fi
8668 done
8669 if test -z "$haveit"; then
8670 if test -d "$additional_libdir"; then
8671 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8672 fi
8673 fi
8674 haveit=
8675 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008676
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008677 acl_save_prefix="$prefix"
8678 prefix="$acl_final_prefix"
8679 acl_save_exec_prefix="$exec_prefix"
8680 exec_prefix="$acl_final_exec_prefix"
8681 eval x=\"$x\"
8682 exec_prefix="$acl_save_exec_prefix"
8683 prefix="$acl_save_prefix"
8684
8685 if test "X$x" = "X-L$additional_libdir"; then
8686 haveit=yes
8687 break
8688 fi
8689 done
8690 if test -z "$haveit"; then
8691 if test -d "$additional_libdir"; then
8692 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8693 fi
8694 fi
8695 fi
8696 fi
8697 ;;
8698 -R*)
8699 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8700 if test "$enable_rpath" != no; then
8701 haveit=
8702 for x in $rpathdirs; do
8703 if test "X$x" = "X$dir"; then
8704 haveit=yes
8705 break
8706 fi
8707 done
8708 if test -z "$haveit"; then
8709 rpathdirs="$rpathdirs $dir"
8710 fi
8711 haveit=
8712 for x in $ltrpathdirs; do
8713 if test "X$x" = "X$dir"; then
8714 haveit=yes
8715 break
8716 fi
8717 done
8718 if test -z "$haveit"; then
8719 ltrpathdirs="$ltrpathdirs $dir"
8720 fi
8721 fi
8722 ;;
8723 -l*)
8724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8725 ;;
8726 *.la)
8727 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8728 ;;
8729 *)
8730 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8731 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8732 ;;
8733 esac
8734 done
8735 fi
8736 else
8737 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8739 fi
8740 fi
8741 fi
8742 done
8743 done
8744 if test "X$rpathdirs" != "X"; then
8745 if test -n "$hardcode_libdir_separator"; then
8746 alldirs=
8747 for found_dir in $rpathdirs; do
8748 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8749 done
8750 acl_save_libdir="$libdir"
8751 libdir="$alldirs"
8752 eval flag=\"$hardcode_libdir_flag_spec\"
8753 libdir="$acl_save_libdir"
8754 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8755 else
8756 for found_dir in $rpathdirs; do
8757 acl_save_libdir="$libdir"
8758 libdir="$found_dir"
8759 eval flag=\"$hardcode_libdir_flag_spec\"
8760 libdir="$acl_save_libdir"
8761 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8762 done
8763 fi
8764 fi
8765 if test "X$ltrpathdirs" != "X"; then
8766 for found_dir in $ltrpathdirs; do
8767 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8768 done
8769 fi
8770
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008771
8772
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008773
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008774
8775
8776
8777
Theodore Ts'oe1052142006-10-21 21:46:47 -04008778 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8779echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008780if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008782else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008783 cat >conftest.$ac_ext <<_ACEOF
8784/* confdefs.h. */
8785_ACEOF
8786cat confdefs.h >>conftest.$ac_ext
8787cat >>conftest.$ac_ext <<_ACEOF
8788/* end confdefs.h. */
8789$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008790typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008791int
8792main ()
8793{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008794if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008795 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008796if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008797 return 0;
8798 ;
8799 return 0;
8800}
8801_ACEOF
8802rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008803if { (ac_try="$ac_compile"
8804case "(($ac_try" in
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8807esac
8808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819 ac_cv_type_ptrdiff_t=yes
8820else
8821 echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
Theodore Ts'oe1052142006-10-21 21:46:47 -04008824 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008825fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008826
8827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008829{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8830echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008831if test $ac_cv_type_ptrdiff_t = yes; then
8832 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008833else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008834
8835cat >>confdefs.h <<\_ACEOF
8836#define ptrdiff_t long
8837_ACEOF
8838
8839
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008840fi
8841
8842
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008843
8844
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008845
8846
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008847
8848
8849
8850
8851
8852for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008853stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008854do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008860 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008862ac_res=`eval echo '${'$as_ac_Header'}'`
8863 { echo "$as_me:$LINENO: result: $ac_res" >&5
8864echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008865else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008866 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008867{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008869cat >conftest.$ac_ext <<_ACEOF
8870/* confdefs.h. */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h. */
8875$ac_includes_default
8876#include <$ac_header>
8877_ACEOF
8878rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008879if { (ac_try="$ac_compile"
8880case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883esac
8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008895 ac_header_compiler=yes
8896else
8897 echo "$as_me: failed program was:" >&5
8898sed 's/^/| /' conftest.$ac_ext >&5
8899
Theodore Ts'oe1052142006-10-21 21:46:47 -04008900 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008901fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008902
8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8905echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008906
8907# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008908{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008910cat >conftest.$ac_ext <<_ACEOF
8911/* confdefs.h. */
8912_ACEOF
8913cat confdefs.h >>conftest.$ac_ext
8914cat >>conftest.$ac_ext <<_ACEOF
8915/* end confdefs.h. */
8916#include <$ac_header>
8917_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008918if { (ac_try="$ac_cpp conftest.$ac_ext"
8919case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922esac
8923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008930 (exit $ac_status); } >/dev/null && {
8931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008934 ac_header_preproc=yes
8935else
8936 echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 ac_header_preproc=no
8940fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008942rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8944echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008945
8946# So? What about this header?
8947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8948 yes:no: )
8949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8953 ac_header_preproc=yes
8954 ;;
8955 no:yes:* )
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008968
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008969 ;;
8970esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008971{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975else
8976 eval "$as_ac_Header=\$ac_header_preproc"
8977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008978ac_res=`eval echo '${'$as_ac_Header'}'`
8979 { echo "$as_me:$LINENO: result: $ac_res" >&5
8980echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008981
8982fi
8983if test `eval echo '${'$as_ac_Header'}'` = yes; then
8984 cat >>confdefs.h <<_ACEOF
8985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8986_ACEOF
8987
8988fi
8989
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008990done
8991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9016mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9017strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9018__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009019do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009021{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009024 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009025else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009026 cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
9032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9034#define $ac_func innocuous_$ac_func
9035
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009036/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009037 which can conflict with char $ac_func (); below.
9038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9039 <limits.h> exists even on freestanding compilers. */
9040
9041#ifdef __STDC__
9042# include <limits.h>
9043#else
9044# include <assert.h>
9045#endif
9046
9047#undef $ac_func
9048
Theodore Ts'oe1052142006-10-21 21:46:47 -04009049/* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009052#ifdef __cplusplus
9053extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009054#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009056/* The GNU C library defines this for functions which it implements
9057 to always fail with ENOSYS. Some functions are actually named
9058 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009059#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009060choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009061#endif
9062
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009063int
9064main ()
9065{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009066return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009067 ;
9068 return 0;
9069}
9070_ACEOF
9071rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009072if { (ac_try="$ac_link"
9073case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076esac
9077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest$ac_exeext &&
9088 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009089 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009090else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091 echo "$as_me: failed program was:" >&5
9092sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009093
Theodore Ts'oe1052142006-10-21 21:46:47 -04009094 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009095fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009096
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009098 conftest$ac_exeext conftest.$ac_ext
9099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009100ac_res=`eval echo '${'$as_ac_var'}'`
9101 { echo "$as_me:$LINENO: result: $ac_res" >&5
9102echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009103if test `eval echo '${'$as_ac_var'}'` = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9106_ACEOF
9107
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009108fi
9109done
9110
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009112
Theodore Ts'oe1052142006-10-21 21:46:47 -04009113 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9114echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009115if test "${ac_cv_have_decl__snprintf+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117else
9118 cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124#include <stdio.h>
9125int
9126main ()
9127{
9128
9129#ifndef _snprintf
9130 char *p = (char *) _snprintf;
9131#endif
9132
9133 ;
9134 return 0;
9135}
9136_ACEOF
9137rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009138if { (ac_try="$ac_compile"
9139case "(($ac_try" in
9140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141 *) ac_try_echo=$ac_try;;
9142esac
9143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9144 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009145 ac_status=$?
9146 grep -v '^ *+' conftest.er1 >conftest.err
9147 rm -f conftest.er1
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009150 (exit $ac_status); } && {
9151 test -z "$ac_c_werror_flag" ||
9152 test ! -s conftest.err
9153 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009154 ac_cv_have_decl__snprintf=yes
9155else
9156 echo "$as_me: failed program was:" >&5
9157sed 's/^/| /' conftest.$ac_ext >&5
9158
Theodore Ts'oe1052142006-10-21 21:46:47 -04009159 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009161
9162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009164{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9165echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009166 if test $ac_cv_have_decl__snprintf = yes; then
9167 gt_value=1
9168 else
9169 gt_value=0
9170 fi
9171
9172cat >>confdefs.h <<_ACEOF
9173#define HAVE_DECL__SNPRINTF $gt_value
9174_ACEOF
9175
9176
9177
Theodore Ts'oe1052142006-10-21 21:46:47 -04009178 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9179echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009180if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183 cat >conftest.$ac_ext <<_ACEOF
9184/* confdefs.h. */
9185_ACEOF
9186cat confdefs.h >>conftest.$ac_ext
9187cat >>conftest.$ac_ext <<_ACEOF
9188/* end confdefs.h. */
9189#include <stdio.h>
9190int
9191main ()
9192{
9193
9194#ifndef _snwprintf
9195 char *p = (char *) _snwprintf;
9196#endif
9197
9198 ;
9199 return 0;
9200}
9201_ACEOF
9202rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009203if { (ac_try="$ac_compile"
9204case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207esac
9208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009219 ac_cv_have_decl__snwprintf=yes
9220else
9221 echo "$as_me: failed program was:" >&5
9222sed 's/^/| /' conftest.$ac_ext >&5
9223
Theodore Ts'oe1052142006-10-21 21:46:47 -04009224 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009225fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009226
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009229{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9230echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009231 if test $ac_cv_have_decl__snwprintf = yes; then
9232 gt_value=1
9233 else
9234 gt_value=0
9235 fi
9236
9237cat >>confdefs.h <<_ACEOF
9238#define HAVE_DECL__SNWPRINTF $gt_value
9239_ACEOF
9240
9241
9242
9243
Theodore Ts'oe1052142006-10-21 21:46:47 -04009244 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9245echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009246if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248else
9249 cat >conftest.$ac_ext <<_ACEOF
9250/* confdefs.h. */
9251_ACEOF
9252cat confdefs.h >>conftest.$ac_ext
9253cat >>conftest.$ac_ext <<_ACEOF
9254/* end confdefs.h. */
9255#include <stdio.h>
9256int
9257main ()
9258{
9259
9260#ifndef feof_unlocked
9261 char *p = (char *) feof_unlocked;
9262#endif
9263
9264 ;
9265 return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009269if { (ac_try="$ac_compile"
9270case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273esac
9274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009285 ac_cv_have_decl_feof_unlocked=yes
9286else
9287 echo "$as_me: failed program was:" >&5
9288sed 's/^/| /' conftest.$ac_ext >&5
9289
Theodore Ts'oe1052142006-10-21 21:46:47 -04009290 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009292
9293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009295{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9296echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009297 if test $ac_cv_have_decl_feof_unlocked = yes; then
9298 gt_value=1
9299 else
9300 gt_value=0
9301 fi
9302
9303cat >>confdefs.h <<_ACEOF
9304#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9305_ACEOF
9306
9307
9308
Theodore Ts'oe1052142006-10-21 21:46:47 -04009309 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9310echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009311if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314 cat >conftest.$ac_ext <<_ACEOF
9315/* confdefs.h. */
9316_ACEOF
9317cat confdefs.h >>conftest.$ac_ext
9318cat >>conftest.$ac_ext <<_ACEOF
9319/* end confdefs.h. */
9320#include <stdio.h>
9321int
9322main ()
9323{
9324
9325#ifndef fgets_unlocked
9326 char *p = (char *) fgets_unlocked;
9327#endif
9328
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009334if { (ac_try="$ac_compile"
9335case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9338esac
9339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009350 ac_cv_have_decl_fgets_unlocked=yes
9351else
9352 echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
Theodore Ts'oe1052142006-10-21 21:46:47 -04009355 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009356fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009357
9358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009360{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9361echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009362 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9363 gt_value=1
9364 else
9365 gt_value=0
9366 fi
9367
9368cat >>confdefs.h <<_ACEOF
9369#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9370_ACEOF
9371
9372
9373
Theodore Ts'oe1052142006-10-21 21:46:47 -04009374 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9375echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009376if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378else
9379 cat >conftest.$ac_ext <<_ACEOF
9380/* confdefs.h. */
9381_ACEOF
9382cat confdefs.h >>conftest.$ac_ext
9383cat >>conftest.$ac_ext <<_ACEOF
9384/* end confdefs.h. */
9385#include <stdio.h>
9386int
9387main ()
9388{
9389
9390#ifndef getc_unlocked
9391 char *p = (char *) getc_unlocked;
9392#endif
9393
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009399if { (ac_try="$ac_compile"
9400case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9403esac
9404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009415 ac_cv_have_decl_getc_unlocked=yes
9416else
9417 echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
Theodore Ts'oe1052142006-10-21 21:46:47 -04009420 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009422
9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009425{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9426echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009427 if test $ac_cv_have_decl_getc_unlocked = yes; then
9428 gt_value=1
9429 else
9430 gt_value=0
9431 fi
9432
9433cat >>confdefs.h <<_ACEOF
9434#define HAVE_DECL_GETC_UNLOCKED $gt_value
9435_ACEOF
9436
9437
9438
9439 case $gt_cv_func_printf_posix in
9440 *yes) HAVE_POSIX_PRINTF=1 ;;
9441 *) HAVE_POSIX_PRINTF=0 ;;
9442 esac
9443
9444 if test "$ac_cv_func_asprintf" = yes; then
9445 HAVE_ASPRINTF=1
9446 else
9447 HAVE_ASPRINTF=0
9448 fi
9449
9450 if test "$ac_cv_func_snprintf" = yes; then
9451 HAVE_SNPRINTF=1
9452 else
9453 HAVE_SNPRINTF=0
9454 fi
9455
9456 if test "$ac_cv_func_wprintf" = yes; then
9457 HAVE_WPRINTF=1
9458 else
9459 HAVE_WPRINTF=0
9460 fi
9461
9462
9463
9464
9465
9466
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009467
9468 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009469
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009470 for element in $INCICONV; do
9471 haveit=
9472 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009473
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009474 acl_save_prefix="$prefix"
9475 prefix="$acl_final_prefix"
9476 acl_save_exec_prefix="$exec_prefix"
9477 exec_prefix="$acl_final_exec_prefix"
9478 eval x=\"$x\"
9479 exec_prefix="$acl_save_exec_prefix"
9480 prefix="$acl_save_prefix"
9481
9482 if test "X$x" = "X$element"; then
9483 haveit=yes
9484 break
9485 fi
9486 done
9487 if test -z "$haveit"; then
9488 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9489 fi
9490 done
9491
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009492
Theodore Ts'oe1052142006-10-21 21:46:47 -04009493 { echo "$as_me:$LINENO: checking for iconv" >&5
9494echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009495if test "${am_cv_func_iconv+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009497else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009498
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009499 am_cv_func_iconv="no, consider installing GNU libiconv"
9500 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501 cat >conftest.$ac_ext <<_ACEOF
9502/* confdefs.h. */
9503_ACEOF
9504cat confdefs.h >>conftest.$ac_ext
9505cat >>conftest.$ac_ext <<_ACEOF
9506/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009507#include <stdlib.h>
9508#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009509int
9510main ()
9511{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009512iconv_t cd = iconv_open("","");
9513 iconv(cd,NULL,NULL,NULL,NULL);
9514 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009515 ;
9516 return 0;
9517}
9518_ACEOF
9519rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009520if { (ac_try="$ac_link"
9521case "(($ac_try" in
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9524esac
9525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009527 ac_status=$?
9528 grep -v '^ *+' conftest.er1 >conftest.err
9529 rm -f conftest.er1
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009532 (exit $ac_status); } && {
9533 test -z "$ac_c_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest$ac_exeext &&
9536 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009537 am_cv_func_iconv=yes
9538else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009539 echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
Theodore Ts'oe1052142006-10-21 21:46:47 -04009542
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009543fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009544
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009547 if test "$am_cv_func_iconv" != yes; then
9548 am_save_LIBS="$LIBS"
9549 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009550 cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009556#include <stdlib.h>
9557#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558int
9559main ()
9560{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009561iconv_t cd = iconv_open("","");
9562 iconv(cd,NULL,NULL,NULL,NULL);
9563 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009564 ;
9565 return 0;
9566}
9567_ACEOF
9568rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009569if { (ac_try="$ac_link"
9570case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9573esac
9574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009576 ac_status=$?
9577 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009581 (exit $ac_status); } && {
9582 test -z "$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9584 } && test -s conftest$ac_exeext &&
9585 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009586 am_cv_lib_iconv=yes
9587 am_cv_func_iconv=yes
9588else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009589 echo "$as_me: failed program was:" >&5
9590sed 's/^/| /' conftest.$ac_ext >&5
9591
Theodore Ts'oe1052142006-10-21 21:46:47 -04009592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009594
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009597 LIBS="$am_save_LIBS"
9598 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009600fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009601{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9602echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009603 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009604
9605cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009606#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009607_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009608
9609 fi
9610 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009611 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9612echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9613 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9614echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009615 else
9616 CPPFLAGS="$am_save_CPPFLAGS"
9617 LIBICONV=
9618 LTLIBICONV=
9619 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009620
9621
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009622
9623 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009624 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9625echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009626 if test "${am_cv_proto_iconv+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009628else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009629
9630 cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009636
9637#include <stdlib.h>
9638#include <iconv.h>
9639extern
9640#ifdef __cplusplus
9641"C"
9642#endif
9643#if defined(__STDC__) || defined(__cplusplus)
9644size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9645#else
9646size_t iconv();
9647#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009648
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649int
9650main ()
9651{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009652
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009658if { (ac_try="$ac_compile"
9659case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009674 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009675else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009676 echo "$as_me: failed program was:" >&5
9677sed 's/^/| /' conftest.$ac_ext >&5
9678
Theodore Ts'oe1052142006-10-21 21:46:47 -04009679 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009680fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009681
9682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009683 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 +00009684fi
9685
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009686 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009687 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009688 }$am_cv_proto_iconv" >&5
9689echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009690 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009691
9692cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009693#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009694_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009695
9696 fi
9697
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009698
Theodore Ts'oe1052142006-10-21 21:46:47 -04009699 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9700echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009701if test "${am_cv_langinfo_codeset+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009703else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009704 cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h. */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009710#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009711int
9712main ()
9713{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009714char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009715 ;
9716 return 0;
9717}
9718_ACEOF
9719rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009720if { (ac_try="$ac_link"
9721case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724esac
9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009737 am_cv_langinfo_codeset=yes
9738else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009741
Theodore Ts'oe1052142006-10-21 21:46:47 -04009742 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009744
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009746 conftest$ac_exeext conftest.$ac_ext
9747
9748fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009749{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9750echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009751 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009752
9753cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009754#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009755_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009756
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009757 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009758
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009759 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009760
Theodore Ts'oe1052142006-10-21 21:46:47 -04009761 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9762echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009763if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009765else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009766 cat >conftest.$ac_ext <<_ACEOF
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009772#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773int
9774main ()
9775{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009776return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009777 ;
9778 return 0;
9779}
9780_ACEOF
9781rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009782if { (ac_try="$ac_link"
9783case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786esac
9787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009794 (exit $ac_status); } && {
9795 test -z "$ac_c_werror_flag" ||
9796 test ! -s conftest.err
9797 } && test -s conftest$ac_exeext &&
9798 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009799 am_cv_val_LC_MESSAGES=yes
9800else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009801 echo "$as_me: failed program was:" >&5
9802sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009803
Theodore Ts'oe1052142006-10-21 21:46:47 -04009804 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009805fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009806
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009808 conftest$ac_exeext conftest.$ac_ext
9809fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009810{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9811echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009812 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009813
9814cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009815#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009816_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009817
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009818 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009819
9820 fi
9821
9822 for ac_prog in bison
9823do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009824 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009825set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009828if test "${ac_cv_prog_INTLBISON+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009830else
9831 if test -n "$INTLBISON"; then
9832 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9833else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009840 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 -05009841 ac_cv_prog_INTLBISON="$ac_prog"
9842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9844 fi
9845done
9846done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009847IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009848
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009849fi
9850fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009851INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009852if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009853 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9854echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009855else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009856 { echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009858fi
9859
Theodore Ts'oe1052142006-10-21 21:46:47 -04009860
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009861 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009862done
9863
9864 if test -z "$INTLBISON"; then
9865 ac_verc_fail=yes
9866 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009867 { echo "$as_me:$LINENO: checking version of bison" >&5
9868echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009869 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9870 case $ac_prog_version in
9871 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9872 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9873 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9874 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9875 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009876 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9877echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009878 fi
9879 if test $ac_verc_fail = yes; then
9880 INTLBISON=:
9881 fi
9882
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009883
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009884
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009885
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009886
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009887
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009888
9889
9890
9891
9892
9893
9894
9895
9896
9897
Theodore Ts'oe1052142006-10-21 21:46:47 -04009898 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9899echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9900 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009901if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009902 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009903else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009904 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009905fi
9906
9907 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9908echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009909
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009911
9912
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009913 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009914 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009915
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009916 LIBINTL=
9917 LTLIBINTL=
9918 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009919
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009920 if test "$USE_NLS" = "yes"; then
9921 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922
Theodore Ts'oe1052142006-10-21 21:46:47 -04009923 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9924echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009925
Theodore Ts'oe1052142006-10-21 21:46:47 -04009926# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009927if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009928 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009929else
9930 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009931fi
9932
9933 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9934echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009935
9936 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9937 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939
9940
9941
9942
9943
Theodore Ts'oe1052142006-10-21 21:46:47 -04009944 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9945echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009946if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009948else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009955#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009956extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009957extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958int
9959main ()
9960{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009961bindtextdomain ("", "");
9962return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009963 ;
9964 return 0;
9965}
9966_ACEOF
9967rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009968if { (ac_try="$ac_link"
9969case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972esac
9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975 ac_status=$?
9976 grep -v '^ *+' conftest.er1 >conftest.err
9977 rm -f conftest.er1
9978 cat conftest.err >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009980 (exit $ac_status); } && {
9981 test -z "$ac_c_werror_flag" ||
9982 test ! -s conftest.err
9983 } && test -s conftest$ac_exeext &&
9984 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009985 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009986else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009987 echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009989
Theodore Ts'oe1052142006-10-21 21:46:47 -04009990 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009991fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009992
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009994 conftest$ac_exeext conftest.$ac_ext
9995fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009996{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9997echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009998
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009999 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010000
10001
10002
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010003 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010005 acl_save_prefix="$prefix"
10006 prefix="$acl_final_prefix"
10007 acl_save_exec_prefix="$exec_prefix"
10008 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010009
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010010 eval additional_includedir=\"$includedir\"
10011 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010012
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010013 exec_prefix="$acl_save_exec_prefix"
10014 prefix="$acl_save_prefix"
10015
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016
Theodore Ts'oe1052142006-10-21 21:46:47 -040010017# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010018if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010019 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010020 if test "X$withval" = "Xno"; then
10021 use_additional=no
10022 else
10023 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010025 acl_save_prefix="$prefix"
10026 prefix="$acl_final_prefix"
10027 acl_save_exec_prefix="$exec_prefix"
10028 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010029
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010030 eval additional_includedir=\"$includedir\"
10031 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010032
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010033 exec_prefix="$acl_save_exec_prefix"
10034 prefix="$acl_save_prefix"
10035
10036 else
10037 additional_includedir="$withval/include"
10038 additional_libdir="$withval/lib"
10039 fi
10040 fi
10041
Theodore Ts'oe1052142006-10-21 21:46:47 -040010042fi
10043
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010044 LIBINTL=
10045 LTLIBINTL=
10046 INCINTL=
10047 rpathdirs=
10048 ltrpathdirs=
10049 names_already_handled=
10050 names_next_round='intl '
10051 while test -n "$names_next_round"; do
10052 names_this_round="$names_next_round"
10053 names_next_round=
10054 for name in $names_this_round; do
10055 already_handled=
10056 for n in $names_already_handled; do
10057 if test "$n" = "$name"; then
10058 already_handled=yes
10059 break
10060 fi
10061 done
10062 if test -z "$already_handled"; then
10063 names_already_handled="$names_already_handled $name"
10064 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10065 eval value=\"\$HAVE_LIB$uppername\"
10066 if test -n "$value"; then
10067 if test "$value" = yes; then
10068 eval value=\"\$LIB$uppername\"
10069 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10070 eval value=\"\$LTLIB$uppername\"
10071 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10072 else
10073 :
10074 fi
10075 else
10076 found_dir=
10077 found_la=
10078 found_so=
10079 found_a=
10080 if test $use_additional = yes; then
10081 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10082 found_dir="$additional_libdir"
10083 found_so="$additional_libdir/lib$name.$shlibext"
10084 if test -f "$additional_libdir/lib$name.la"; then
10085 found_la="$additional_libdir/lib$name.la"
10086 fi
10087 else
10088 if test -f "$additional_libdir/lib$name.$libext"; then
10089 found_dir="$additional_libdir"
10090 found_a="$additional_libdir/lib$name.$libext"
10091 if test -f "$additional_libdir/lib$name.la"; then
10092 found_la="$additional_libdir/lib$name.la"
10093 fi
10094 fi
10095 fi
10096 fi
10097 if test "X$found_dir" = "X"; then
10098 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010100 acl_save_prefix="$prefix"
10101 prefix="$acl_final_prefix"
10102 acl_save_exec_prefix="$exec_prefix"
10103 exec_prefix="$acl_final_exec_prefix"
10104 eval x=\"$x\"
10105 exec_prefix="$acl_save_exec_prefix"
10106 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010107
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010108 case "$x" in
10109 -L*)
10110 dir=`echo "X$x" | sed -e 's/^X-L//'`
10111 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10112 found_dir="$dir"
10113 found_so="$dir/lib$name.$shlibext"
10114 if test -f "$dir/lib$name.la"; then
10115 found_la="$dir/lib$name.la"
10116 fi
10117 else
10118 if test -f "$dir/lib$name.$libext"; then
10119 found_dir="$dir"
10120 found_a="$dir/lib$name.$libext"
10121 if test -f "$dir/lib$name.la"; then
10122 found_la="$dir/lib$name.la"
10123 fi
10124 fi
10125 fi
10126 ;;
10127 esac
10128 if test "X$found_dir" != "X"; then
10129 break
10130 fi
10131 done
10132 fi
10133 if test "X$found_dir" != "X"; then
10134 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10135 if test "X$found_so" != "X"; then
10136 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10138 else
10139 haveit=
10140 for x in $ltrpathdirs; do
10141 if test "X$x" = "X$found_dir"; then
10142 haveit=yes
10143 break
10144 fi
10145 done
10146 if test -z "$haveit"; then
10147 ltrpathdirs="$ltrpathdirs $found_dir"
10148 fi
10149 if test "$hardcode_direct" = yes; then
10150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10151 else
10152 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10154 haveit=
10155 for x in $rpathdirs; do
10156 if test "X$x" = "X$found_dir"; then
10157 haveit=yes
10158 break
10159 fi
10160 done
10161 if test -z "$haveit"; then
10162 rpathdirs="$rpathdirs $found_dir"
10163 fi
10164 else
10165 haveit=
10166 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010167
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010168 acl_save_prefix="$prefix"
10169 prefix="$acl_final_prefix"
10170 acl_save_exec_prefix="$exec_prefix"
10171 exec_prefix="$acl_final_exec_prefix"
10172 eval x=\"$x\"
10173 exec_prefix="$acl_save_exec_prefix"
10174 prefix="$acl_save_prefix"
10175
10176 if test "X$x" = "X-L$found_dir"; then
10177 haveit=yes
10178 break
10179 fi
10180 done
10181 if test -z "$haveit"; then
10182 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10183 fi
10184 if test "$hardcode_minus_L" != no; then
10185 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10186 else
10187 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10188 fi
10189 fi
10190 fi
10191 fi
10192 else
10193 if test "X$found_a" != "X"; then
10194 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10195 else
10196 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10197 fi
10198 fi
10199 additional_includedir=
10200 case "$found_dir" in
10201 */lib | */lib/)
10202 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10203 additional_includedir="$basedir/include"
10204 ;;
10205 esac
10206 if test "X$additional_includedir" != "X"; then
10207 if test "X$additional_includedir" != "X/usr/include"; then
10208 haveit=
10209 if test "X$additional_includedir" = "X/usr/local/include"; then
10210 if test -n "$GCC"; then
10211 case $host_os in
10212 linux*) haveit=yes;;
10213 esac
10214 fi
10215 fi
10216 if test -z "$haveit"; then
10217 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010218
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010219 acl_save_prefix="$prefix"
10220 prefix="$acl_final_prefix"
10221 acl_save_exec_prefix="$exec_prefix"
10222 exec_prefix="$acl_final_exec_prefix"
10223 eval x=\"$x\"
10224 exec_prefix="$acl_save_exec_prefix"
10225 prefix="$acl_save_prefix"
10226
10227 if test "X$x" = "X-I$additional_includedir"; then
10228 haveit=yes
10229 break
10230 fi
10231 done
10232 if test -z "$haveit"; then
10233 if test -d "$additional_includedir"; then
10234 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10235 fi
10236 fi
10237 fi
10238 fi
10239 fi
10240 if test -n "$found_la"; then
10241 save_libdir="$libdir"
10242 case "$found_la" in
10243 */* | *\\*) . "$found_la" ;;
10244 *) . "./$found_la" ;;
10245 esac
10246 libdir="$save_libdir"
10247 for dep in $dependency_libs; do
10248 case "$dep" in
10249 -L*)
10250 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10251 if test "X$additional_libdir" != "X/usr/lib"; then
10252 haveit=
10253 if test "X$additional_libdir" = "X/usr/local/lib"; then
10254 if test -n "$GCC"; then
10255 case $host_os in
10256 linux*) haveit=yes;;
10257 esac
10258 fi
10259 fi
10260 if test -z "$haveit"; then
10261 haveit=
10262 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010263
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010264 acl_save_prefix="$prefix"
10265 prefix="$acl_final_prefix"
10266 acl_save_exec_prefix="$exec_prefix"
10267 exec_prefix="$acl_final_exec_prefix"
10268 eval x=\"$x\"
10269 exec_prefix="$acl_save_exec_prefix"
10270 prefix="$acl_save_prefix"
10271
10272 if test "X$x" = "X-L$additional_libdir"; then
10273 haveit=yes
10274 break
10275 fi
10276 done
10277 if test -z "$haveit"; then
10278 if test -d "$additional_libdir"; then
10279 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10280 fi
10281 fi
10282 haveit=
10283 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010284
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010285 acl_save_prefix="$prefix"
10286 prefix="$acl_final_prefix"
10287 acl_save_exec_prefix="$exec_prefix"
10288 exec_prefix="$acl_final_exec_prefix"
10289 eval x=\"$x\"
10290 exec_prefix="$acl_save_exec_prefix"
10291 prefix="$acl_save_prefix"
10292
10293 if test "X$x" = "X-L$additional_libdir"; then
10294 haveit=yes
10295 break
10296 fi
10297 done
10298 if test -z "$haveit"; then
10299 if test -d "$additional_libdir"; then
10300 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10301 fi
10302 fi
10303 fi
10304 fi
10305 ;;
10306 -R*)
10307 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10308 if test "$enable_rpath" != no; then
10309 haveit=
10310 for x in $rpathdirs; do
10311 if test "X$x" = "X$dir"; then
10312 haveit=yes
10313 break
10314 fi
10315 done
10316 if test -z "$haveit"; then
10317 rpathdirs="$rpathdirs $dir"
10318 fi
10319 haveit=
10320 for x in $ltrpathdirs; do
10321 if test "X$x" = "X$dir"; then
10322 haveit=yes
10323 break
10324 fi
10325 done
10326 if test -z "$haveit"; then
10327 ltrpathdirs="$ltrpathdirs $dir"
10328 fi
10329 fi
10330 ;;
10331 -l*)
10332 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10333 ;;
10334 *.la)
10335 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10336 ;;
10337 *)
10338 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10339 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10340 ;;
10341 esac
10342 done
10343 fi
10344 else
10345 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10346 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10347 fi
10348 fi
10349 fi
10350 done
10351 done
10352 if test "X$rpathdirs" != "X"; then
10353 if test -n "$hardcode_libdir_separator"; then
10354 alldirs=
10355 for found_dir in $rpathdirs; do
10356 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10357 done
10358 acl_save_libdir="$libdir"
10359 libdir="$alldirs"
10360 eval flag=\"$hardcode_libdir_flag_spec\"
10361 libdir="$acl_save_libdir"
10362 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10363 else
10364 for found_dir in $rpathdirs; do
10365 acl_save_libdir="$libdir"
10366 libdir="$found_dir"
10367 eval flag=\"$hardcode_libdir_flag_spec\"
10368 libdir="$acl_save_libdir"
10369 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10370 done
10371 fi
10372 fi
10373 if test "X$ltrpathdirs" != "X"; then
10374 for found_dir in $ltrpathdirs; do
10375 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10376 done
10377 fi
10378
Theodore Ts'oe1052142006-10-21 21:46:47 -040010379 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10380echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010381if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010383else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010384 gt_save_CPPFLAGS="$CPPFLAGS"
10385 CPPFLAGS="$CPPFLAGS $INCINTL"
10386 gt_save_LIBS="$LIBS"
10387 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010388 cat >conftest.$ac_ext <<_ACEOF
10389/* confdefs.h. */
10390_ACEOF
10391cat confdefs.h >>conftest.$ac_ext
10392cat >>conftest.$ac_ext <<_ACEOF
10393/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010394#include <libintl.h>
10395extern int _nl_msg_cat_cntr;
10396extern
10397#ifdef __cplusplus
10398"C"
10399#endif
10400const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010401int
10402main ()
10403{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010404bindtextdomain ("", "");
10405return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010406 ;
10407 return 0;
10408}
10409_ACEOF
10410rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010411if { (ac_try="$ac_link"
10412case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415esac
10416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest$ac_exeext &&
10427 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010428 gt_cv_func_gnugettext1_libintl=yes
10429else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010430 echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
Theodore Ts'oe1052142006-10-21 21:46:47 -040010433 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010434fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010435
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010437 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010438 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10439 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010440 cat >conftest.$ac_ext <<_ACEOF
10441/* confdefs.h. */
10442_ACEOF
10443cat confdefs.h >>conftest.$ac_ext
10444cat >>conftest.$ac_ext <<_ACEOF
10445/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010446#include <libintl.h>
10447extern int _nl_msg_cat_cntr;
10448extern
10449#ifdef __cplusplus
10450"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010451#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010452const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453int
10454main ()
10455{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010456bindtextdomain ("", "");
10457return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010458 ;
10459 return 0;
10460}
10461_ACEOF
10462rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010463if { (ac_try="$ac_link"
10464case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467esac
10468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest$ac_exeext &&
10479 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010480 LIBINTL="$LIBINTL $LIBICONV"
10481 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10482 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010483
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010484else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
Theodore Ts'oe1052142006-10-21 21:46:47 -040010488
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010489fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010490
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010492 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010493 fi
10494 CPPFLAGS="$gt_save_CPPFLAGS"
10495 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010496fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010497{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10498echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010499 fi
10500
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010501 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10502 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010503 && test "$PACKAGE" != gettext-runtime \
10504 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010505 gt_use_preinstalled_gnugettext=yes
10506 else
10507 LIBINTL=
10508 LTLIBINTL=
10509 INCINTL=
10510 fi
10511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010512
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010513 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10514 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010515 fi
10516 fi
10517
10518 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010519 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010520 USE_INCLUDED_LIBINTL=yes
10521 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10522 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10523 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010524 fi
10525
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010526 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10527 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10528 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010529 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010530
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010531
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010532 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10533 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010534
10535cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010536#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010537_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010538
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010539 else
10540 USE_NLS=no
10541 fi
10542 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010543
Theodore Ts'oe1052142006-10-21 21:46:47 -040010544 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10545echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10546 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10547echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010548 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010549 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10550echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010551 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10552 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10553 gt_source="external libintl"
10554 else
10555 gt_source="libc"
10556 fi
10557 else
10558 gt_source="included intl directory"
10559 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010560 { echo "$as_me:$LINENO: result: $gt_source" >&5
10561echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010562 fi
10563
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010564 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010565
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010566 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10567 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010568 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10569echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10570 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10571echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010572
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010573 for element in $INCINTL; do
10574 haveit=
10575 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010576
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010577 acl_save_prefix="$prefix"
10578 prefix="$acl_final_prefix"
10579 acl_save_exec_prefix="$exec_prefix"
10580 exec_prefix="$acl_final_exec_prefix"
10581 eval x=\"$x\"
10582 exec_prefix="$acl_save_exec_prefix"
10583 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010584
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010585 if test "X$x" = "X$element"; then
10586 haveit=yes
10587 break
10588 fi
10589 done
10590 if test -z "$haveit"; then
10591 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10592 fi
10593 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010594
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010595 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010596
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010598cat >>confdefs.h <<\_ACEOF
10599#define HAVE_GETTEXT 1
10600_ACEOF
10601
10602
10603cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010604#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010605_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010606
10607 fi
10608
10609 POSUB=po
10610 fi
10611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010612
10613 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010614 BUILD_INCLUDED_LIBINTL=yes
10615 fi
10616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010617
10618
10619
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010620
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010621 nls_cv_header_intl=
10622 nls_cv_header_libgt=
10623
10624 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010625
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010626
10627 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010628
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010629
10630 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010631
10632
10633 if test "$USE_INCLUDED_LIBINTL" = yes; then
10634 INTLOBJS="\$(GETTOBJS)"
10635 fi
10636
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010637
10638 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010639
10640
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010641
10642 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010643
10644
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010645
10646
10647
10648
10649
Theodore Ts'oe1052142006-10-21 21:46:47 -040010650{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10651echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10652set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10653if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010654 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010655else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010656 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010657SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010658all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010659 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010660_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010661# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010662case `${MAKE-make} -f conftest.make 2>/dev/null` in
10663 *@@@%%%=?*=@@@%%%*)
10664 eval ac_cv_prog_make_${ac_make}_set=yes;;
10665 *)
10666 eval ac_cv_prog_make_${ac_make}_set=no;;
10667esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010670if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10671 { echo "$as_me:$LINENO: result: yes" >&5
10672echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010673 SET_MAKE=
10674else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010675 { echo "$as_me:$LINENO: result: no" >&5
10676echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010677 SET_MAKE="MAKE=${MAKE-make}"
10678fi
10679
10680# Extract the first word of "ln", so it can be a program name with args.
10681set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010684if test "${ac_cv_path_LN+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010687 case $LN in
10688 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010689 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10690 ;;
10691 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $PATH
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010698 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 -050010699 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10702 fi
10703done
10704done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010705IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010706
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010707 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10708 ;;
10709esac
10710fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010712if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010713 { echo "$as_me:$LINENO: result: $LN" >&5
10714echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010715else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010716 { echo "$as_me:$LINENO: result: no" >&5
10717echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010718fi
10719
Theodore Ts'oe1052142006-10-21 21:46:47 -040010720
10721{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10722echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010723LN_S=$as_ln_s
10724if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010725 { echo "$as_me:$LINENO: result: yes" >&5
10726echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010727else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010728 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10729echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010730fi
10731
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010732# Extract the first word of "mv", so it can be a program name with args.
10733set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010736if test "${ac_cv_path_MV+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010738else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010739 case $MV in
10740 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010741 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10742 ;;
10743 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $PATH
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010750 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 -050010751 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 break 2
10754 fi
10755done
10756done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010757IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010758
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010759 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10760 ;;
10761esac
10762fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010764if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010765 { echo "$as_me:$LINENO: result: $MV" >&5
10766echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010767else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010768 { echo "$as_me:$LINENO: result: no" >&5
10769echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010770fi
10771
Theodore Ts'oe1052142006-10-21 21:46:47 -040010772
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010773# Extract the first word of "cp", so it can be a program name with args.
10774set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010777if test "${ac_cv_path_CP+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010779else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010780 case $CP in
10781 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010782 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10783 ;;
10784 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786for as_dir in $PATH
10787do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010791 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 -050010792 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10795 fi
10796done
10797done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010798IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010799
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010800 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10801 ;;
10802esac
10803fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010804CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010805if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010806 { echo "$as_me:$LINENO: result: $CP" >&5
10807echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010808else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010809 { echo "$as_me:$LINENO: result: no" >&5
10810echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010811fi
10812
Theodore Ts'oe1052142006-10-21 21:46:47 -040010813
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010814# Extract the first word of "rm", so it can be a program name with args.
10815set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010818if test "${ac_cv_path_RM+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010820else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821 case $RM in
10822 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010823 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10824 ;;
10825 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010832 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 -050010833 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10836 fi
10837done
10838done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010839IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010840
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010841 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10842 ;;
10843esac
10844fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010846if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010847 { echo "$as_me:$LINENO: result: $RM" >&5
10848echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010849else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010850 { echo "$as_me:$LINENO: result: no" >&5
10851echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010852fi
10853
Theodore Ts'oe1052142006-10-21 21:46:47 -040010854
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010855# Extract the first word of "chmod", so it can be a program name with args.
10856set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010859if test "${ac_cv_path_CHMOD+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010861else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010862 case $CHMOD in
10863 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010864 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10865 ;;
10866 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868for as_dir in $PATH
10869do
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010873 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 -050010874 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 break 2
10877 fi
10878done
10879done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010880IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010881
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010882 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10883 ;;
10884esac
10885fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010886CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010887if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010888 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10889echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010890else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010891 { echo "$as_me:$LINENO: result: no" >&5
10892echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010893fi
10894
Theodore Ts'oe1052142006-10-21 21:46:47 -040010895
Theodore Ts'o32237012005-01-17 19:13:39 -050010896for ac_prog in gawk mawk nawk awk
10897do
10898 # Extract the first word of "$ac_prog", so it can be a program name with args.
10899set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050010902if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010903 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010904else
Theodore Ts'o32237012005-01-17 19:13:39 -050010905 if test -n "$AWK"; then
10906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10907else
10908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010909for as_dir in $PATH
10910do
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010914 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 -050010915 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 break 2
10918 fi
10919done
10920done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010921IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010922
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010923fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010924fi
10925AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010926if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010927 { echo "$as_me:$LINENO: result: $AWK" >&5
10928echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010929else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010930 { echo "$as_me:$LINENO: result: no" >&5
10931echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010932fi
10933
Theodore Ts'oe1052142006-10-21 21:46:47 -040010934
Theodore Ts'o32237012005-01-17 19:13:39 -050010935 test -n "$AWK" && break
10936done
10937
Theodore Ts'oe1052142006-10-21 21:46:47 -040010938{ echo "$as_me:$LINENO: checking for egrep" >&5
10939echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10940if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10944 then ac_cv_path_EGREP="$GREP -E"
10945 else
10946 # Extract the first word of "egrep" to use in msg output
10947if test -z "$EGREP"; then
10948set dummy egrep; ac_prog_name=$2
10949if test "${ac_cv_path_EGREP+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952 ac_path_EGREP_found=false
10953# Loop through the user's path and test for each of PROGNAME-LIST
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_prog in egrep; do
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040010963 # Check for GNU ac_path_EGREP and select it if it is found.
10964 # Check for GNU $ac_path_EGREP
10965case `"$ac_path_EGREP" --version 2>&1` in
10966*GNU*)
10967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10968*)
10969 ac_count=0
10970 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10971 while :
10972 do
10973 cat "conftest.in" "conftest.in" >"conftest.tmp"
10974 mv "conftest.tmp" "conftest.in"
10975 cp "conftest.in" "conftest.nl"
10976 echo 'EGREP' >> "conftest.nl"
10977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10979 ac_count=`expr $ac_count + 1`
10980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10981 # Best one so far, save it but keep looking for a better one
10982 ac_cv_path_EGREP="$ac_path_EGREP"
10983 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050010984 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010985 # 10*(2^10) chars as input seems more than enough
10986 test $ac_count -gt 10 && break
10987 done
10988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10989esac
10990
10991
10992 $ac_path_EGREP_found && break 3
10993 done
10994done
10995
10996done
10997IFS=$as_save_IFS
10998
10999
Theodore Ts'o32237012005-01-17 19:13:39 -050011000fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011001
11002EGREP="$ac_cv_path_EGREP"
11003if test -z "$EGREP"; then
11004 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11005echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11006 { (exit 1); exit 1; }; }
11007fi
11008
11009else
11010 ac_cv_path_EGREP=$EGREP
11011fi
11012
11013
11014 fi
11015fi
11016{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11017echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11018 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011019
11020
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011021# Extract the first word of "sed", so it can be a program name with args.
11022set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011025if test "${ac_cv_path_SED+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011027else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011028 case $SED in
11029 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011030 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11031 ;;
11032 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034for as_dir in $PATH
11035do
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011039 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 -050011040 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11042 break 2
11043 fi
11044done
11045done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011046IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011047
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011048 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11049 ;;
11050esac
11051fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011052SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011053if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011054 { echo "$as_me:$LINENO: result: $SED" >&5
11055echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011056else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011057 { echo "$as_me:$LINENO: result: no" >&5
11058echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011059fi
11060
Theodore Ts'oe1052142006-10-21 21:46:47 -040011061
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011062# Extract the first word of "perl", so it can be a program name with args.
11063set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011066if test "${ac_cv_path_PERL+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011069 case $PERL in
11070 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011071 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11072 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011073 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075for as_dir in $PATH
11076do
11077 IFS=$as_save_IFS
11078 test -z "$as_dir" && as_dir=.
11079 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011080 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 -050011081 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 break 2
11084 fi
11085done
11086done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011087IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011088
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011089 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11090 ;;
11091esac
11092fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011093PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011094if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011095 { echo "$as_me:$LINENO: result: $PERL" >&5
11096echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011097else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011098 { echo "$as_me:$LINENO: result: no" >&5
11099echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011100fi
11101
Theodore Ts'oe1052142006-10-21 21:46:47 -040011102
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011103# Extract the first word of "ldconfig", so it can be a program name with args.
11104set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011107if test "${ac_cv_path_LDCONFIG+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011109else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011110 case $LDCONFIG in
11111 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011112 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11113 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011114 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011121 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 -050011122 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126done
11127done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011128IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011129
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011130 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11131 ;;
11132esac
11133fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011134LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011135if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011136 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11137echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011138else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011139 { echo "$as_me:$LINENO: result: no" >&5
11140echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011141fi
11142
Theodore Ts'oe1052142006-10-21 21:46:47 -040011143
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011144if test -n "$ac_tool_prefix"; then
11145 # 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 +000011146set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011149if test "${ac_cv_prog_AR+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011151else
11152 if test -n "$AR"; then
11153 ac_cv_prog_AR="$AR" # Let the user override the test.
11154else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156for as_dir in $PATH
11157do
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011161 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 -050011162 ac_cv_prog_AR="${ac_tool_prefix}ar"
11163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11165 fi
11166done
11167done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011168IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011169
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011170fi
11171fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011172AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011173if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011174 { echo "$as_me:$LINENO: result: $AR" >&5
11175echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011176else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011177 { echo "$as_me:$LINENO: result: no" >&5
11178echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011179fi
11180
Theodore Ts'oe1052142006-10-21 21:46:47 -040011181
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011182fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011183if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011184 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011185 # Extract the first word of "ar", so it can be a program name with args.
11186set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011189if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011191else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011192 if test -n "$ac_ct_AR"; then
11193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011194else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196for as_dir in $PATH
11197do
11198 IFS=$as_save_IFS
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011201 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 -050011202 ac_cv_prog_ac_ct_AR="ar"
11203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 break 2
11205 fi
11206done
11207done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011208IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011209
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011210fi
11211fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011212ac_ct_AR=$ac_cv_prog_ac_ct_AR
11213if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011214 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11215echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011216else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011217 { echo "$as_me:$LINENO: result: no" >&5
11218echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011219fi
11220
Theodore Ts'oe1052142006-10-21 21:46:47 -040011221 if test "x$ac_ct_AR" = x; then
11222 AR="ar"
11223 else
11224 case $cross_compiling:$ac_tool_warned in
11225yes:)
11226{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11227whose name does not start with the host triplet. If you think this
11228configuration is useful to you, please write to autoconf@gnu.org." >&5
11229echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11230whose name does not start with the host triplet. If you think this
11231configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11232ac_tool_warned=yes ;;
11233esac
11234 AR=$ac_ct_AR
11235 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011236else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011237 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011238fi
11239
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011240if test -n "$ac_tool_prefix"; then
11241 # 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 +000011242set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011245if test "${ac_cv_prog_RANLIB+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011247else
11248 if test -n "$RANLIB"; then
11249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11250else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011257 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 -050011258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11261 fi
11262done
11263done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011264IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011265
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011266fi
11267fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011268RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011269if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011270 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11271echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011272else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011273 { echo "$as_me:$LINENO: result: no" >&5
11274echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011275fi
11276
Theodore Ts'oe1052142006-10-21 21:46:47 -040011277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011278fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011279if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011280 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011281 # Extract the first word of "ranlib", so it can be a program name with args.
11282set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011285if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011287else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011288 if test -n "$ac_ct_RANLIB"; then
11289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011290else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011297 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 -050011298 ac_cv_prog_ac_ct_RANLIB="ranlib"
11299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11301 fi
11302done
11303done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011304IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011305
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011306fi
11307fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011308ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11309if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011310 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11311echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011312else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011313 { echo "$as_me:$LINENO: result: no" >&5
11314echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011315fi
11316
Theodore Ts'oe1052142006-10-21 21:46:47 -040011317 if test "x$ac_ct_RANLIB" = x; then
11318 RANLIB=":"
11319 else
11320 case $cross_compiling:$ac_tool_warned in
11321yes:)
11322{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11323whose name does not start with the host triplet. If you think this
11324configuration is useful to you, please write to autoconf@gnu.org." >&5
11325echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11326whose name does not start with the host triplet. If you think this
11327configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11328ac_tool_warned=yes ;;
11329esac
11330 RANLIB=$ac_ct_RANLIB
11331 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011333 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011334fi
11335
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011336if test -n "$ac_tool_prefix"; then
11337 # 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 +000011338set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011341if test "${ac_cv_prog_STRIP+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011343else
11344 if test -n "$STRIP"; then
11345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11346else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348for as_dir in $PATH
11349do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011353 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 -050011354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11357 fi
11358done
11359done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011360IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011361
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011362fi
11363fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011364STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011365if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011366 { echo "$as_me:$LINENO: result: $STRIP" >&5
11367echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011368else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011369 { echo "$as_me:$LINENO: result: no" >&5
11370echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011371fi
11372
Theodore Ts'oe1052142006-10-21 21:46:47 -040011373
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011374fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011375if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011377 # Extract the first word of "strip", so it can be a program name with args.
11378set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011381if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011383else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011384 if test -n "$ac_ct_STRIP"; then
11385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011386else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388for as_dir in $PATH
11389do
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011393 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 -050011394 ac_cv_prog_ac_ct_STRIP="strip"
11395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11397 fi
11398done
11399done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011400IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011401
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011402fi
11403fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11405if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011406 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11407echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011408else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011409 { echo "$as_me:$LINENO: result: no" >&5
11410echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011411fi
11412
Theodore Ts'oe1052142006-10-21 21:46:47 -040011413 if test "x$ac_ct_STRIP" = x; then
11414 STRIP=":"
11415 else
11416 case $cross_compiling:$ac_tool_warned in
11417yes:)
11418{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11419whose name does not start with the host triplet. If you think this
11420configuration is useful to you, please write to autoconf@gnu.org." >&5
11421echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11422whose name does not start with the host triplet. If you think this
11423configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11424ac_tool_warned=yes ;;
11425esac
11426 STRIP=$ac_ct_STRIP
11427 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011428else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011429 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011430fi
11431
Manish Katiyar7321d942008-04-14 17:20:03 +053011432# Extract the first word of "makeinfo", so it can be a program name with args.
11433set dummy makeinfo; ac_word=$2
11434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11436if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438else
11439 if test -n "$MAKEINFO"; then
11440 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11441else
11442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443for as_dir in $PATH
11444do
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449 ac_cv_prog_MAKEINFO="makeinfo"
11450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11452 fi
11453done
11454done
11455IFS=$as_save_IFS
11456
11457fi
11458fi
11459MAKEINFO=$ac_cv_prog_MAKEINFO
11460if test -n "$MAKEINFO"; then
11461 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11462echo "${ECHO_T}$MAKEINFO" >&6; }
11463else
11464 { echo "$as_me:$LINENO: result: no" >&5
11465echo "${ECHO_T}no" >&6; }
11466fi
11467
11468
11469if test "_$MAKEINFO" = "_"; then
11470 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11471else
11472 case "$MAKEINFO" in
11473 */missing.*)
11474 { echo "$as_me:$LINENO: WARNING:
11475*** Makeinfo is missing. Info documentation will not be built." >&5
11476echo "$as_me: WARNING:
11477*** Makeinfo is missing. Info documentation will not be built." >&2;}
11478 ;;
11479 *)
11480 ;;
11481 esac
11482fi
11483
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011484# Find a good install program. We prefer a C program (faster),
11485# so one script is as good as another. But avoid the broken or
11486# incompatible versions:
11487# SysV /etc/install, /usr/sbin/install
11488# SunOS /usr/etc/install
11489# IRIX /sbin/install
11490# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011492# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011493# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11494# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011495# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011496# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011497{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11498echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011499if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500if test "${ac_cv_path_install+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011502else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 # Account for people who put trailing slashes in PATH elements.
11509case $as_dir/ in
11510 ./ | .// | /cC/* | \
11511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11512 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11513 /usr/ucb/* ) ;;
11514 *)
11515 # OSF1 and SCO ODT 3.0 have their own names for install.
11516 # Don't use installbsd from OSF since it installs stuff as root
11517 # by default.
11518 for ac_prog in ginstall scoinst install; do
11519 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011520 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 +000011521 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011523 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011524 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011525 elif test $ac_prog = install &&
11526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11527 # program-specific install script used by HP pwplus--don't use.
11528 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011529 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11531 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011532 fi
11533 fi
11534 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011535 done
11536 ;;
11537esac
11538done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011539IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011540
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011541
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011542fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011543 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011545 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011546 # As a last resort, use the slow shell script. Don't cache a
11547 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011548 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011549 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011551 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011553{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11554echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011555
11556# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11557# It thinks the first close brace ends the variable substitution.
11558test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011560test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011561
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011562test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11563
Theodore Ts'o6c133521999-07-03 20:37:03 +000011564# See if we need a separate native compiler.
11565if test $cross_compiling = no; then
11566 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567
Theodore Ts'o6c133521999-07-03 20:37:03 +000011568else
11569 for ac_prog in gcc cc
11570do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011572set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011577else
11578 if test -n "$BUILD_CC"; then
11579 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11580else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011583do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011587 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 -050011588 ac_cv_prog_BUILD_CC="$ac_prog"
11589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11591 fi
11592done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011593done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011594IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011595
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596fi
11597fi
11598BUILD_CC=$ac_cv_prog_BUILD_CC
11599if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011600 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11601echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011602else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011603 { echo "$as_me:$LINENO: result: no" >&5
11604echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011605fi
11606
Theodore Ts'oe1052142006-10-21 21:46:47 -040011607
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011608 test -n "$BUILD_CC" && break
11609done
11610
11611fi
11612
Theodore Ts'o740837d2007-12-16 17:21:38 -050011613
11614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011643
Theodore Ts'o106ad962007-04-04 21:26:37 -040011644
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011645
11646
Theodore Ts'o3d058022008-07-12 22:06:30 -040011647
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040011648
11649for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011650do
11651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011658ac_res=`eval echo '${'$as_ac_Header'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011661else
11662 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011663{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671$ac_includes_default
11672#include <$ac_header>
11673_ACEOF
11674rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011675if { (ac_try="$ac_compile"
11676case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679esac
11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011687 (exit $ac_status); } && {
11688 test -z "$ac_c_werror_flag" ||
11689 test ! -s conftest.err
11690 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691 ac_header_compiler=yes
11692else
11693 echo "$as_me: failed program was:" >&5
11694sed 's/^/| /' conftest.$ac_ext >&5
11695
Theodore Ts'oe1052142006-10-21 21:46:47 -040011696 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011697fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011698
11699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11701echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011702
11703# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011704{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11705echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011706cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712#include <$ac_header>
11713_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011714if { (ac_try="$ac_cpp conftest.$ac_ext"
11715case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718esac
11719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011726 (exit $ac_status); } >/dev/null && {
11727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011730 ac_header_preproc=yes
11731else
11732 echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_header_preproc=no
11736fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011737
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011738rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011739{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11740echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011741
11742# So? What about this header?
11743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11744 yes:no: )
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11749 ac_header_preproc=yes
11750 ;;
11751 no:yes:* )
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11755echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11759echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011765 ;;
11766esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011767{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771else
11772 eval "$as_ac_Header=\$ac_header_preproc"
11773fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011774ac_res=`eval echo '${'$as_ac_Header'}'`
11775 { echo "$as_me:$LINENO: result: $ac_res" >&5
11776echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011777
11778fi
11779if test `eval echo '${'$as_ac_Header'}'` = yes; then
11780 cat >>confdefs.h <<_ACEOF
11781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11782_ACEOF
11783
11784fi
11785
11786done
11787
11788
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011789
11790for ac_header in sys/disk.h sys/mount.h
11791do
11792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804
11805#if HAVE_SYS_QUEUE_H
11806#include <sys/queue.h>
11807#endif
11808
11809
11810#include <$ac_header>
11811_ACEOF
11812rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011813if { (ac_try="$ac_compile"
11814case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817esac
11818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011825 (exit $ac_status); } && {
11826 test -z "$ac_c_werror_flag" ||
11827 test ! -s conftest.err
11828 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011829 eval "$as_ac_Header=yes"
11830else
11831 echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
11833
Theodore Ts'oe1052142006-10-21 21:46:47 -040011834 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011835fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011836
11837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011839ac_res=`eval echo '${'$as_ac_Header'}'`
11840 { echo "$as_me:$LINENO: result: $ac_res" >&5
11841echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011842if test `eval echo '${'$as_ac_Header'}'` = yes; then
11843 cat >>confdefs.h <<_ACEOF
11844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11845_ACEOF
11846
11847fi
11848
11849done
11850
11851
11852for ac_header in net/if.h
11853do
11854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011855{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860 cat >conftest.$ac_ext <<_ACEOF
11861/* confdefs.h. */
11862_ACEOF
11863cat confdefs.h >>conftest.$ac_ext
11864cat >>conftest.$ac_ext <<_ACEOF
11865/* end confdefs.h. */
11866
11867#if HAVE_SYS_TYPES_H
11868#include <sys/types.h>
11869#endif
11870#if HAVE_SYS_SOCKET
11871#include <sys/socket.h>
11872#endif
11873
11874
11875#include <$ac_header>
11876_ACEOF
11877rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011878if { (ac_try="$ac_compile"
11879case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882esac
11883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011894 eval "$as_ac_Header=yes"
11895else
11896 echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
Theodore Ts'oe1052142006-10-21 21:46:47 -040011899 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011900fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901
11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011903fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011904ac_res=`eval echo '${'$as_ac_Header'}'`
11905 { echo "$as_me:$LINENO: result: $ac_res" >&5
11906echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011907if test `eval echo '${'$as_ac_Header'}'` = yes; then
11908 cat >>confdefs.h <<_ACEOF
11909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11910_ACEOF
11911
11912fi
11913
11914done
11915
11916
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011917for ac_func in vprintf
11918do
11919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924else
11925 cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
11931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11933#define $ac_func innocuous_$ac_func
11934
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011935/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936 which can conflict with char $ac_func (); below.
11937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11938 <limits.h> exists even on freestanding compilers. */
11939
11940#ifdef __STDC__
11941# include <limits.h>
11942#else
11943# include <assert.h>
11944#endif
11945
11946#undef $ac_func
11947
Theodore Ts'oe1052142006-10-21 21:46:47 -040011948/* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011951#ifdef __cplusplus
11952extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011953#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011954char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011955/* The GNU C library defines this for functions which it implements
11956 to always fail with ENOSYS. Some functions are actually named
11957 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011958#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011959choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011960#endif
11961
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011962int
11963main ()
11964{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011965return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011966 ;
11967 return 0;
11968}
11969_ACEOF
11970rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011971if { (ac_try="$ac_link"
11972case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest$ac_exeext &&
11987 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011988 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011989else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011992
Theodore Ts'oe1052142006-10-21 21:46:47 -040011993 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011994fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011995
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011997 conftest$ac_exeext conftest.$ac_ext
11998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011999ac_res=`eval echo '${'$as_ac_var'}'`
12000 { echo "$as_me:$LINENO: result: $ac_res" >&5
12001echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012002if test `eval echo '${'$as_ac_var'}'` = yes; then
12003 cat >>confdefs.h <<_ACEOF
12004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012006
Theodore Ts'oe1052142006-10-21 21:46:47 -040012007{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12008echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012009if test "${ac_cv_func__doprnt+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012011else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012012 cat >conftest.$ac_ext <<_ACEOF
12013/* confdefs.h. */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h. */
12018/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12020#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012021
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012022/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023 which can conflict with char _doprnt (); below.
12024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12025 <limits.h> exists even on freestanding compilers. */
12026
12027#ifdef __STDC__
12028# include <limits.h>
12029#else
12030# include <assert.h>
12031#endif
12032
12033#undef _doprnt
12034
Theodore Ts'oe1052142006-10-21 21:46:47 -040012035/* Override any GCC internal prototype to avoid an error.
12036 Use char because int might match the return type of a GCC
12037 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012038#ifdef __cplusplus
12039extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012041char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012042/* The GNU C library defines this for functions which it implements
12043 to always fail with ENOSYS. Some functions are actually named
12044 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012045#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012046choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012047#endif
12048
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012049int
12050main ()
12051{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012052return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012053 ;
12054 return 0;
12055}
12056_ACEOF
12057rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012058if { (ac_try="$ac_link"
12059case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12062esac
12063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012070 (exit $ac_status); } && {
12071 test -z "$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 } && test -s conftest$ac_exeext &&
12074 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012076else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077 echo "$as_me: failed program was:" >&5
12078sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012079
Theodore Ts'oe1052142006-10-21 21:46:47 -040012080 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012082
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012084 conftest$ac_exeext conftest.$ac_ext
12085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012086{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12087echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012088if test $ac_cv_func__doprnt = yes; then
12089
12090cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012091#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012093
12094fi
12095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012096fi
12097done
12098
12099
Theodore Ts'oe1052142006-10-21 21:46:47 -040012100{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12101echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012102if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105 cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012111#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012112
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012113int
12114main ()
12115{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012116static struct dirent ac_aggr;
12117if (ac_aggr.d_reclen)
12118return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119 ;
12120 return 0;
12121}
12122_ACEOF
12123rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012124if { (ac_try="$ac_compile"
12125case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128esac
12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012140 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012142 echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012146/* confdefs.h. */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h. */
12151#include <dirent.h>
12152
12153int
12154main ()
12155{
12156static struct dirent ac_aggr;
12157if (sizeof ac_aggr.d_reclen)
12158return 0;
12159 ;
12160 return 0;
12161}
12162_ACEOF
12163rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012164if { (ac_try="$ac_compile"
12165case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168esac
12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012180 ac_cv_member_struct_dirent_d_reclen=yes
12181else
12182 echo "$as_me: failed program was:" >&5
12183sed 's/^/| /' conftest.$ac_ext >&5
12184
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012186fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012187
12188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012189fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012190
12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012192fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012193{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12194echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012195if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12196 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012197#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012199
12200fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012201
Theodore Ts'oe1052142006-10-21 21:46:47 -040012202{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12203echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012204if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012206else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012207 cat >conftest.$ac_ext <<_ACEOF
12208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
12212/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012213#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012214
Theodore Ts'oe1052142006-10-21 21:46:47 -040012215typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216int
12217main ()
12218{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012219if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012220 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012221if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012222 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012223 ;
12224 return 0;
12225}
12226_ACEOF
12227rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012228if { (ac_try="$ac_compile"
12229case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012244 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012245else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012246 echo "$as_me: failed program was:" >&5
12247sed 's/^/| /' conftest.$ac_ext >&5
12248
Theodore Ts'oe1052142006-10-21 21:46:47 -040012249 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012250fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012251
12252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012253fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012254{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12255echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012256if test $ac_cv_type_ssize_t = yes; then
12257 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012258#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012259_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012260
12261fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012262
Theodore Ts'oe1052142006-10-21 21:46:47 -040012263{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12264echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012265if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012266 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012267else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012268 cat >conftest.$ac_ext <<_ACEOF
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012274#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012275
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276int
12277main ()
12278{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012279#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012280 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012281#endif
12282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012283 ;
12284 return 0;
12285}
12286_ACEOF
12287rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012288if { (ac_try="$ac_compile"
12289case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292esac
12293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012304 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012305else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012306 echo "$as_me: failed program was:" >&5
12307sed 's/^/| /' conftest.$ac_ext >&5
12308
Theodore Ts'oe1052142006-10-21 21:46:47 -040012309 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012310fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012311
12312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012313fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012314{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12315echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012316if test $ac_cv_have_decl_llseek = yes; then
12317 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012318#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012319_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012320
12321fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012322
Theodore Ts'oe1052142006-10-21 21:46:47 -040012323{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12324echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012325if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012326 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012327else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012328 cat >conftest.$ac_ext <<_ACEOF
12329/* confdefs.h. */
12330_ACEOF
12331cat confdefs.h >>conftest.$ac_ext
12332cat >>conftest.$ac_ext <<_ACEOF
12333/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012334#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012335 #define _LARGEFILE64_SOURCE
12336 #include <unistd.h>
12337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012338int
12339main ()
12340{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012341#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012342 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012343#endif
12344
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012345 ;
12346 return 0;
12347}
12348_ACEOF
12349rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012350if { (ac_try="$ac_compile"
12351case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354esac
12355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012362 (exit $ac_status); } && {
12363 test -z "$ac_c_werror_flag" ||
12364 test ! -s conftest.err
12365 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012366 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012367else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012368 echo "$as_me: failed program was:" >&5
12369sed 's/^/| /' conftest.$ac_ext >&5
12370
Theodore Ts'oe1052142006-10-21 21:46:47 -040012371 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012372fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012373
12374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012375fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012376{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12377echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012378if test $ac_cv_have_decl_lseek64 = yes; then
12379 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012380#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012381_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012382
12383fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012384
Theodore Ts'oe1052142006-10-21 21:46:47 -040012385{ echo "$as_me:$LINENO: checking for short" >&5
12386echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012387if test "${ac_cv_type_short+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389else
12390 cat >conftest.$ac_ext <<_ACEOF
12391/* confdefs.h. */
12392_ACEOF
12393cat confdefs.h >>conftest.$ac_ext
12394cat >>conftest.$ac_ext <<_ACEOF
12395/* end confdefs.h. */
12396$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012397typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012398int
12399main ()
12400{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012401if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012402 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012403if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012404 return 0;
12405 ;
12406 return 0;
12407}
12408_ACEOF
12409rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012410if { (ac_try="$ac_compile"
12411case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414esac
12415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012426 ac_cv_type_short=yes
12427else
12428 echo "$as_me: failed program was:" >&5
12429sed 's/^/| /' conftest.$ac_ext >&5
12430
Theodore Ts'oe1052142006-10-21 21:46:47 -040012431 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012432fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012433
Theodore Ts'oe1052142006-10-21 21:46:47 -040012434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12435fi
12436{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12437echo "${ECHO_T}$ac_cv_type_short" >&6; }
12438
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012439# The cast to long int works around a bug in the HP C Compiler
12440# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12441# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12442# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012443{ echo "$as_me:$LINENO: checking size of short" >&5
12444echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012445if test "${ac_cv_sizeof_short+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012448 if test "$cross_compiling" = yes; then
12449 # Depending upon the size, compute the lo and hi bounds.
12450cat >conftest.$ac_ext <<_ACEOF
12451/* confdefs.h. */
12452_ACEOF
12453cat confdefs.h >>conftest.$ac_ext
12454cat >>conftest.$ac_ext <<_ACEOF
12455/* end confdefs.h. */
12456$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012457 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012458int
12459main ()
12460{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012461static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012462test_array [0] = 0
12463
12464 ;
12465 return 0;
12466}
12467_ACEOF
12468rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012469if { (ac_try="$ac_compile"
12470case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12473esac
12474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012481 (exit $ac_status); } && {
12482 test -z "$ac_c_werror_flag" ||
12483 test ! -s conftest.err
12484 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012485 ac_lo=0 ac_mid=0
12486 while :; do
12487 cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
12493$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012494 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012495int
12496main ()
12497{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012498static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499test_array [0] = 0
12500
12501 ;
12502 return 0;
12503}
12504_ACEOF
12505rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012506if { (ac_try="$ac_compile"
12507case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12510esac
12511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012522 ac_hi=$ac_mid; break
12523else
12524 echo "$as_me: failed program was:" >&5
12525sed 's/^/| /' conftest.$ac_ext >&5
12526
Theodore Ts'oe1052142006-10-21 21:46:47 -040012527 ac_lo=`expr $ac_mid + 1`
12528 if test $ac_lo -le $ac_mid; then
12529 ac_lo= ac_hi=
12530 break
12531 fi
12532 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012533fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012534
12535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012536 done
12537else
12538 echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
Theodore Ts'oe1052142006-10-21 21:46:47 -040012541 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h. */
12547$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012548 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012549int
12550main ()
12551{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012552static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553test_array [0] = 0
12554
12555 ;
12556 return 0;
12557}
12558_ACEOF
12559rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012560if { (ac_try="$ac_compile"
12561case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12564esac
12565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012572 (exit $ac_status); } && {
12573 test -z "$ac_c_werror_flag" ||
12574 test ! -s conftest.err
12575 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012576 ac_hi=-1 ac_mid=-1
12577 while :; do
12578 cat >conftest.$ac_ext <<_ACEOF
12579/* confdefs.h. */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h. */
12584$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012585 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012586int
12587main ()
12588{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012589static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012590test_array [0] = 0
12591
12592 ;
12593 return 0;
12594}
12595_ACEOF
12596rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012597if { (ac_try="$ac_compile"
12598case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601esac
12602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012609 (exit $ac_status); } && {
12610 test -z "$ac_c_werror_flag" ||
12611 test ! -s conftest.err
12612 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012613 ac_lo=$ac_mid; break
12614else
12615 echo "$as_me: failed program was:" >&5
12616sed 's/^/| /' conftest.$ac_ext >&5
12617
Theodore Ts'oe1052142006-10-21 21:46:47 -040012618 ac_hi=`expr '(' $ac_mid ')' - 1`
12619 if test $ac_mid -le $ac_hi; then
12620 ac_lo= ac_hi=
12621 break
12622 fi
12623 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012625
12626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012627 done
12628else
12629 echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
Theodore Ts'oe1052142006-10-21 21:46:47 -040012632 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012633fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012634
12635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012636fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012637
12638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012639# Binary search between lo and hi bounds.
12640while test "x$ac_lo" != "x$ac_hi"; do
12641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12642 cat >conftest.$ac_ext <<_ACEOF
12643/* confdefs.h. */
12644_ACEOF
12645cat confdefs.h >>conftest.$ac_ext
12646cat >>conftest.$ac_ext <<_ACEOF
12647/* end confdefs.h. */
12648$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012649 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012650int
12651main ()
12652{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012653static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012654test_array [0] = 0
12655
12656 ;
12657 return 0;
12658}
12659_ACEOF
12660rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012661if { (ac_try="$ac_compile"
12662case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665esac
12666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012673 (exit $ac_status); } && {
12674 test -z "$ac_c_werror_flag" ||
12675 test ! -s conftest.err
12676 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012677 ac_hi=$ac_mid
12678else
12679 echo "$as_me: failed program was:" >&5
12680sed 's/^/| /' conftest.$ac_ext >&5
12681
Theodore Ts'oe1052142006-10-21 21:46:47 -040012682 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012684
12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012686done
12687case $ac_lo in
12688?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012689'') if test "$ac_cv_type_short" = yes; then
12690 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012691See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012692echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012693See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012694 { (exit 77); exit 77; }; }
12695 else
12696 ac_cv_sizeof_short=0
12697 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012698esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012699else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700 cat >conftest.$ac_ext <<_ACEOF
12701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
12706$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012707 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012708static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12709static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012710#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012711#include <stdlib.h>
12712int
12713main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012714{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012715
12716 FILE *f = fopen ("conftest.val", "w");
12717 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012718 return 1;
12719 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012720 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012721 long int i = longval ();
12722 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12723 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012724 fprintf (f, "%ld\n", i);
12725 }
12726 else
12727 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012728 unsigned long int i = ulongval ();
12729 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12730 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731 fprintf (f, "%lu\n", i);
12732 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012733 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012734
12735 ;
12736 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012737}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012738_ACEOF
12739rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012740if { (ac_try="$ac_link"
12741case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744esac
12745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012760else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012761 echo "$as_me: program exited with status $ac_status" >&5
12762echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012766if test "$ac_cv_type_short" = yes; then
12767 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012768See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012769echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012771 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012772 else
12773 ac_cv_sizeof_short=0
12774 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012775fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012776rm -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 -050012777fi
12778rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012779fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012780{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12781echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012782
12783
12784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012785cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012786#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012787_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012788
12789
Theodore Ts'oe1052142006-10-21 21:46:47 -040012790{ echo "$as_me:$LINENO: checking for int" >&5
12791echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012792if test "${ac_cv_type_int+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12794else
12795 cat >conftest.$ac_ext <<_ACEOF
12796/* confdefs.h. */
12797_ACEOF
12798cat confdefs.h >>conftest.$ac_ext
12799cat >>conftest.$ac_ext <<_ACEOF
12800/* end confdefs.h. */
12801$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012802typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012803int
12804main ()
12805{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012806if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012807 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012808if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012809 return 0;
12810 ;
12811 return 0;
12812}
12813_ACEOF
12814rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012815if { (ac_try="$ac_compile"
12816case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819esac
12820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012831 ac_cv_type_int=yes
12832else
12833 echo "$as_me: failed program was:" >&5
12834sed 's/^/| /' conftest.$ac_ext >&5
12835
Theodore Ts'oe1052142006-10-21 21:46:47 -040012836 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012837fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012838
Theodore Ts'oe1052142006-10-21 21:46:47 -040012839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840fi
12841{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12842echo "${ECHO_T}$ac_cv_type_int" >&6; }
12843
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012844# The cast to long int works around a bug in the HP C Compiler
12845# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12846# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12847# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012848{ echo "$as_me:$LINENO: checking size of int" >&5
12849echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850if test "${ac_cv_sizeof_int+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012853 if test "$cross_compiling" = yes; then
12854 # Depending upon the size, compute the lo and hi bounds.
12855cat >conftest.$ac_ext <<_ACEOF
12856/* confdefs.h. */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h. */
12861$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012862 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012863int
12864main ()
12865{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012866static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012867test_array [0] = 0
12868
12869 ;
12870 return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012874if { (ac_try="$ac_compile"
12875case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878esac
12879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012881 ac_status=$?
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012890 ac_lo=0 ac_mid=0
12891 while :; do
12892 cat >conftest.$ac_ext <<_ACEOF
12893/* confdefs.h. */
12894_ACEOF
12895cat confdefs.h >>conftest.$ac_ext
12896cat >>conftest.$ac_ext <<_ACEOF
12897/* end confdefs.h. */
12898$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012899 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012900int
12901main ()
12902{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012903static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012904test_array [0] = 0
12905
12906 ;
12907 return 0;
12908}
12909_ACEOF
12910rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012911if { (ac_try="$ac_compile"
12912case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915esac
12916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012923 (exit $ac_status); } && {
12924 test -z "$ac_c_werror_flag" ||
12925 test ! -s conftest.err
12926 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012927 ac_hi=$ac_mid; break
12928else
12929 echo "$as_me: failed program was:" >&5
12930sed 's/^/| /' conftest.$ac_ext >&5
12931
Theodore Ts'oe1052142006-10-21 21:46:47 -040012932 ac_lo=`expr $ac_mid + 1`
12933 if test $ac_lo -le $ac_mid; then
12934 ac_lo= ac_hi=
12935 break
12936 fi
12937 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012938fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012939
12940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012941 done
12942else
12943 echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
Theodore Ts'oe1052142006-10-21 21:46:47 -040012946 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012953 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954int
12955main ()
12956{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012957static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012958test_array [0] = 0
12959
12960 ;
12961 return 0;
12962}
12963_ACEOF
12964rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012965if { (ac_try="$ac_compile"
12966case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969esac
12970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012977 (exit $ac_status); } && {
12978 test -z "$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12980 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012981 ac_hi=-1 ac_mid=-1
12982 while :; do
12983 cat >conftest.$ac_ext <<_ACEOF
12984/* confdefs.h. */
12985_ACEOF
12986cat confdefs.h >>conftest.$ac_ext
12987cat >>conftest.$ac_ext <<_ACEOF
12988/* end confdefs.h. */
12989$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012990 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012991int
12992main ()
12993{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012994static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012995test_array [0] = 0
12996
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013002if { (ac_try="$ac_compile"
13003case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006esac
13007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013018 ac_lo=$ac_mid; break
13019else
13020 echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
Theodore Ts'oe1052142006-10-21 21:46:47 -040013023 ac_hi=`expr '(' $ac_mid ')' - 1`
13024 if test $ac_mid -le $ac_hi; then
13025 ac_lo= ac_hi=
13026 break
13027 fi
13028 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013030
13031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013032 done
13033else
13034 echo "$as_me: failed program was:" >&5
13035sed 's/^/| /' conftest.$ac_ext >&5
13036
Theodore Ts'oe1052142006-10-21 21:46:47 -040013037 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013038fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013039
13040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013041fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013042
13043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013044# Binary search between lo and hi bounds.
13045while test "x$ac_lo" != "x$ac_hi"; do
13046 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13047 cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
13052/* end confdefs.h. */
13053$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013054 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013055int
13056main ()
13057{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013058static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013059test_array [0] = 0
13060
13061 ;
13062 return 0;
13063}
13064_ACEOF
13065rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013066if { (ac_try="$ac_compile"
13067case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070esac
13071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013082 ac_hi=$ac_mid
13083else
13084 echo "$as_me: failed program was:" >&5
13085sed 's/^/| /' conftest.$ac_ext >&5
13086
Theodore Ts'oe1052142006-10-21 21:46:47 -040013087 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013089
13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013091done
13092case $ac_lo in
13093?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013094'') if test "$ac_cv_type_int" = yes; then
13095 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013096See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013097echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013098See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013099 { (exit 77); exit 77; }; }
13100 else
13101 ac_cv_sizeof_int=0
13102 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013103esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013112 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013113static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13114static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013115#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013116#include <stdlib.h>
13117int
13118main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013119{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013120
13121 FILE *f = fopen ("conftest.val", "w");
13122 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013123 return 1;
13124 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013125 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013126 long int i = longval ();
13127 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13128 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013129 fprintf (f, "%ld\n", i);
13130 }
13131 else
13132 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013133 unsigned long int i = ulongval ();
13134 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13135 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013136 fprintf (f, "%lu\n", i);
13137 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013138 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013139
13140 ;
13141 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013142}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013143_ACEOF
13144rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013145if { (ac_try="$ac_link"
13146case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149esac
13150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013155 { (case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13158esac
13159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013165else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013166 echo "$as_me: program exited with status $ac_status" >&5
13167echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013171if test "$ac_cv_type_int" = yes; then
13172 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013173See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013174echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013176 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013177 else
13178 ac_cv_sizeof_int=0
13179 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013180fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013181rm -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 -050013182fi
13183rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013184fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013185{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13186echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013187
13188
13189
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013190cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013191#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013192_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013193
13194
Theodore Ts'oe1052142006-10-21 21:46:47 -040013195{ echo "$as_me:$LINENO: checking for long" >&5
13196echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013197if test "${ac_cv_type_long+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199else
13200 cat >conftest.$ac_ext <<_ACEOF
13201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
13206$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013207typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013208int
13209main ()
13210{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013211if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013212 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013213if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013214 return 0;
13215 ;
13216 return 0;
13217}
13218_ACEOF
13219rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013220if { (ac_try="$ac_compile"
13221case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224esac
13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013236 ac_cv_type_long=yes
13237else
13238 echo "$as_me: failed program was:" >&5
13239sed 's/^/| /' conftest.$ac_ext >&5
13240
Theodore Ts'oe1052142006-10-21 21:46:47 -040013241 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013242fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013243
Theodore Ts'oe1052142006-10-21 21:46:47 -040013244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245fi
13246{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13247echo "${ECHO_T}$ac_cv_type_long" >&6; }
13248
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013249# The cast to long int works around a bug in the HP C Compiler
13250# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13251# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13252# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013253{ echo "$as_me:$LINENO: checking size of long" >&5
13254echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013255if test "${ac_cv_sizeof_long+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13257else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013258 if test "$cross_compiling" = yes; then
13259 # Depending upon the size, compute the lo and hi bounds.
13260cat >conftest.$ac_ext <<_ACEOF
13261/* confdefs.h. */
13262_ACEOF
13263cat confdefs.h >>conftest.$ac_ext
13264cat >>conftest.$ac_ext <<_ACEOF
13265/* end confdefs.h. */
13266$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013267 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013268int
13269main ()
13270{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013271static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013272test_array [0] = 0
13273
13274 ;
13275 return 0;
13276}
13277_ACEOF
13278rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013279if { (ac_try="$ac_compile"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013291 (exit $ac_status); } && {
13292 test -z "$ac_c_werror_flag" ||
13293 test ! -s conftest.err
13294 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013295 ac_lo=0 ac_mid=0
13296 while :; do
13297 cat >conftest.$ac_ext <<_ACEOF
13298/* confdefs.h. */
13299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
13302/* end confdefs.h. */
13303$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013304 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013305int
13306main ()
13307{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013308static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013309test_array [0] = 0
13310
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013316if { (ac_try="$ac_compile"
13317case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13320esac
13321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013328 (exit $ac_status); } && {
13329 test -z "$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013332 ac_hi=$ac_mid; break
13333else
13334 echo "$as_me: failed program was:" >&5
13335sed 's/^/| /' conftest.$ac_ext >&5
13336
Theodore Ts'oe1052142006-10-21 21:46:47 -040013337 ac_lo=`expr $ac_mid + 1`
13338 if test $ac_lo -le $ac_mid; then
13339 ac_lo= ac_hi=
13340 break
13341 fi
13342 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013343fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013344
13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013346 done
13347else
13348 echo "$as_me: failed program was:" >&5
13349sed 's/^/| /' conftest.$ac_ext >&5
13350
Theodore Ts'oe1052142006-10-21 21:46:47 -040013351 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013352/* confdefs.h. */
13353_ACEOF
13354cat confdefs.h >>conftest.$ac_ext
13355cat >>conftest.$ac_ext <<_ACEOF
13356/* end confdefs.h. */
13357$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013358 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013359int
13360main ()
13361{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013362static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013363test_array [0] = 0
13364
13365 ;
13366 return 0;
13367}
13368_ACEOF
13369rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013370if { (ac_try="$ac_compile"
13371case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013386 ac_hi=-1 ac_mid=-1
13387 while :; do
13388 cat >conftest.$ac_ext <<_ACEOF
13389/* confdefs.h. */
13390_ACEOF
13391cat confdefs.h >>conftest.$ac_ext
13392cat >>conftest.$ac_ext <<_ACEOF
13393/* end confdefs.h. */
13394$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013395 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013396int
13397main ()
13398{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013399static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013400test_array [0] = 0
13401
13402 ;
13403 return 0;
13404}
13405_ACEOF
13406rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013407if { (ac_try="$ac_compile"
13408case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013419 (exit $ac_status); } && {
13420 test -z "$ac_c_werror_flag" ||
13421 test ! -s conftest.err
13422 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013423 ac_lo=$ac_mid; break
13424else
13425 echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
Theodore Ts'oe1052142006-10-21 21:46:47 -040013428 ac_hi=`expr '(' $ac_mid ')' - 1`
13429 if test $ac_mid -le $ac_hi; then
13430 ac_lo= ac_hi=
13431 break
13432 fi
13433 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013434fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013435
13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013437 done
13438else
13439 echo "$as_me: failed program was:" >&5
13440sed 's/^/| /' conftest.$ac_ext >&5
13441
Theodore Ts'oe1052142006-10-21 21:46:47 -040013442 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013443fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013444
13445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013447
13448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013449# Binary search between lo and hi bounds.
13450while test "x$ac_lo" != "x$ac_hi"; do
13451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13452 cat >conftest.$ac_ext <<_ACEOF
13453/* confdefs.h. */
13454_ACEOF
13455cat confdefs.h >>conftest.$ac_ext
13456cat >>conftest.$ac_ext <<_ACEOF
13457/* end confdefs.h. */
13458$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013459 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013460int
13461main ()
13462{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013463static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013464test_array [0] = 0
13465
13466 ;
13467 return 0;
13468}
13469_ACEOF
13470rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013471if { (ac_try="$ac_compile"
13472case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013483 (exit $ac_status); } && {
13484 test -z "$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13486 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013487 ac_hi=$ac_mid
13488else
13489 echo "$as_me: failed program was:" >&5
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
Theodore Ts'oe1052142006-10-21 21:46:47 -040013492 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013493fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013494
13495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013496done
13497case $ac_lo in
13498?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013499'') if test "$ac_cv_type_long" = yes; then
13500 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013501See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013502echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013503See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013504 { (exit 77); exit 77; }; }
13505 else
13506 ac_cv_sizeof_long=0
13507 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013508esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013509else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013510 cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
13516$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013517 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013518static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13519static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013520#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013521#include <stdlib.h>
13522int
13523main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013524{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013525
13526 FILE *f = fopen ("conftest.val", "w");
13527 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013528 return 1;
13529 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013530 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013531 long int i = longval ();
13532 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13533 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013534 fprintf (f, "%ld\n", i);
13535 }
13536 else
13537 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013538 unsigned long int i = ulongval ();
13539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13540 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013541 fprintf (f, "%lu\n", i);
13542 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013543 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013544
13545 ;
13546 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013547}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013548_ACEOF
13549rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013550if { (ac_try="$ac_link"
13551case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13554esac
13555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013560 { (case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013570else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013571 echo "$as_me: program exited with status $ac_status" >&5
13572echo "$as_me: failed program was:" >&5
13573sed 's/^/| /' conftest.$ac_ext >&5
13574
13575( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013576if test "$ac_cv_type_long" = yes; then
13577 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013578See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013579echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013581 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013582 else
13583 ac_cv_sizeof_long=0
13584 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013586rm -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 -050013587fi
13588rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013590{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13591echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013592
13593
13594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013595cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013596#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013597_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013598
13599
Theodore Ts'oe1052142006-10-21 21:46:47 -040013600{ echo "$as_me:$LINENO: checking for long long" >&5
13601echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013602if test "${ac_cv_type_long_long+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604else
13605 cat >conftest.$ac_ext <<_ACEOF
13606/* confdefs.h. */
13607_ACEOF
13608cat confdefs.h >>conftest.$ac_ext
13609cat >>conftest.$ac_ext <<_ACEOF
13610/* end confdefs.h. */
13611$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013612typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013613int
13614main ()
13615{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013616if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013617 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013618if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013619 return 0;
13620 ;
13621 return 0;
13622}
13623_ACEOF
13624rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013625if { (ac_try="$ac_compile"
13626case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13629esac
13630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013641 ac_cv_type_long_long=yes
13642else
13643 echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
Theodore Ts'oe1052142006-10-21 21:46:47 -040013646 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013647fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013648
Theodore Ts'oe1052142006-10-21 21:46:47 -040013649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650fi
13651{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13652echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13653
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013654# The cast to long int works around a bug in the HP C Compiler
13655# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13656# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13657# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013658{ echo "$as_me:$LINENO: checking size of long long" >&5
13659echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660if test "${ac_cv_sizeof_long_long+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013663 if test "$cross_compiling" = yes; then
13664 # Depending upon the size, compute the lo and hi bounds.
13665cat >conftest.$ac_ext <<_ACEOF
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013672 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013673int
13674main ()
13675{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013676static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013677test_array [0] = 0
13678
13679 ;
13680 return 0;
13681}
13682_ACEOF
13683rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013684if { (ac_try="$ac_compile"
13685case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688esac
13689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013696 (exit $ac_status); } && {
13697 test -z "$ac_c_werror_flag" ||
13698 test ! -s conftest.err
13699 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013700 ac_lo=0 ac_mid=0
13701 while :; do
13702 cat >conftest.$ac_ext <<_ACEOF
13703/* confdefs.h. */
13704_ACEOF
13705cat confdefs.h >>conftest.$ac_ext
13706cat >>conftest.$ac_ext <<_ACEOF
13707/* end confdefs.h. */
13708$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013709 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013710int
13711main ()
13712{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013713static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013714test_array [0] = 0
13715
13716 ;
13717 return 0;
13718}
13719_ACEOF
13720rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013721if { (ac_try="$ac_compile"
13722case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13725esac
13726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013733 (exit $ac_status); } && {
13734 test -z "$ac_c_werror_flag" ||
13735 test ! -s conftest.err
13736 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013737 ac_hi=$ac_mid; break
13738else
13739 echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
Theodore Ts'oe1052142006-10-21 21:46:47 -040013742 ac_lo=`expr $ac_mid + 1`
13743 if test $ac_lo -le $ac_mid; then
13744 ac_lo= ac_hi=
13745 break
13746 fi
13747 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013748fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013749
13750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013751 done
13752else
13753 echo "$as_me: failed program was:" >&5
13754sed 's/^/| /' conftest.$ac_ext >&5
13755
Theodore Ts'oe1052142006-10-21 21:46:47 -040013756 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013757/* confdefs.h. */
13758_ACEOF
13759cat confdefs.h >>conftest.$ac_ext
13760cat >>conftest.$ac_ext <<_ACEOF
13761/* end confdefs.h. */
13762$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013763 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013764int
13765main ()
13766{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013767static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013768test_array [0] = 0
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013775if { (ac_try="$ac_compile"
13776case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13779esac
13780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013787 (exit $ac_status); } && {
13788 test -z "$ac_c_werror_flag" ||
13789 test ! -s conftest.err
13790 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013791 ac_hi=-1 ac_mid=-1
13792 while :; do
13793 cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013800 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013801int
13802main ()
13803{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013804static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013805test_array [0] = 0
13806
13807 ;
13808 return 0;
13809}
13810_ACEOF
13811rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013812if { (ac_try="$ac_compile"
13813case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816esac
13817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013819 ac_status=$?
13820 grep -v '^ *+' conftest.er1 >conftest.err
13821 rm -f conftest.er1
13822 cat conftest.err >&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013824 (exit $ac_status); } && {
13825 test -z "$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013828 ac_lo=$ac_mid; break
13829else
13830 echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
Theodore Ts'oe1052142006-10-21 21:46:47 -040013833 ac_hi=`expr '(' $ac_mid ')' - 1`
13834 if test $ac_mid -le $ac_hi; then
13835 ac_lo= ac_hi=
13836 break
13837 fi
13838 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013840
13841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013842 done
13843else
13844 echo "$as_me: failed program was:" >&5
13845sed 's/^/| /' conftest.$ac_ext >&5
13846
Theodore Ts'oe1052142006-10-21 21:46:47 -040013847 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013849
13850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852
13853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013854# Binary search between lo and hi bounds.
13855while test "x$ac_lo" != "x$ac_hi"; do
13856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13857 cat >conftest.$ac_ext <<_ACEOF
13858/* confdefs.h. */
13859_ACEOF
13860cat confdefs.h >>conftest.$ac_ext
13861cat >>conftest.$ac_ext <<_ACEOF
13862/* end confdefs.h. */
13863$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013864 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013865int
13866main ()
13867{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013868static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013869test_array [0] = 0
13870
13871 ;
13872 return 0;
13873}
13874_ACEOF
13875rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013876if { (ac_try="$ac_compile"
13877case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880esac
13881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013892 ac_hi=$ac_mid
13893else
13894 echo "$as_me: failed program was:" >&5
13895sed 's/^/| /' conftest.$ac_ext >&5
13896
Theodore Ts'oe1052142006-10-21 21:46:47 -040013897 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013898fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013899
13900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013901done
13902case $ac_lo in
13903?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013904'') if test "$ac_cv_type_long_long" = yes; then
13905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013906See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013907echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013908See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013909 { (exit 77); exit 77; }; }
13910 else
13911 ac_cv_sizeof_long_long=0
13912 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013913esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013914else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013915 cat >conftest.$ac_ext <<_ACEOF
13916/* confdefs.h. */
13917_ACEOF
13918cat confdefs.h >>conftest.$ac_ext
13919cat >>conftest.$ac_ext <<_ACEOF
13920/* end confdefs.h. */
13921$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013922 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013923static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13924static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013925#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013926#include <stdlib.h>
13927int
13928main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013929{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013930
13931 FILE *f = fopen ("conftest.val", "w");
13932 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013933 return 1;
13934 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013935 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936 long int i = longval ();
13937 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13938 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939 fprintf (f, "%ld\n", i);
13940 }
13941 else
13942 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013943 unsigned long int i = ulongval ();
13944 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13945 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013946 fprintf (f, "%lu\n", i);
13947 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013948 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013949
13950 ;
13951 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013952}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013953_ACEOF
13954rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013955if { (ac_try="$ac_link"
13956case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959esac
13960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013965 { (case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13968esac
13969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976 echo "$as_me: program exited with status $ac_status" >&5
13977echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013981if test "$ac_cv_type_long_long" = yes; then
13982 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013983See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013984echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013986 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013987 else
13988 ac_cv_sizeof_long_long=0
13989 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013990fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013991rm -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 -050013992fi
13993rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013994fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013995{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13996echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013997
13998
13999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014000cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014001#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014002_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014003
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014004
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014005SIZEOF_SHORT=$ac_cv_sizeof_short
14006SIZEOF_INT=$ac_cv_sizeof_int
14007SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014008SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14009
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014010
14011
14012
Theodore Ts'oe1052142006-10-21 21:46:47 -040014013{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14014echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014015if test "${ac_cv_c_bigendian+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014018 # See if sys/param.h defines the BYTE_ORDER macro.
14019cat >conftest.$ac_ext <<_ACEOF
14020/* confdefs.h. */
14021_ACEOF
14022cat confdefs.h >>conftest.$ac_ext
14023cat >>conftest.$ac_ext <<_ACEOF
14024/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014025#include <sys/types.h>
14026#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014028int
14029main ()
14030{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014031#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14032 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014033 bogus endian macros
14034#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014035
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014041if { (ac_try="$ac_compile"
14042case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014057 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058cat >conftest.$ac_ext <<_ACEOF
14059/* confdefs.h. */
14060_ACEOF
14061cat confdefs.h >>conftest.$ac_ext
14062cat >>conftest.$ac_ext <<_ACEOF
14063/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014064#include <sys/types.h>
14065#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014067int
14068main ()
14069{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014070#if BYTE_ORDER != BIG_ENDIAN
14071 not big endian
14072#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014073
14074 ;
14075 return 0;
14076}
14077_ACEOF
14078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014079if { (ac_try="$ac_compile"
14080case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14083esac
14084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014095 ac_cv_c_bigendian=yes
14096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014097 echo "$as_me: failed program was:" >&5
14098sed 's/^/| /' conftest.$ac_ext >&5
14099
Theodore Ts'oe1052142006-10-21 21:46:47 -040014100 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014102
14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014105 echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
Theodore Ts'oe1052142006-10-21 21:46:47 -040014108 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014109if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014110 # try to guess the endianness by grepping values into an object file
14111 ac_cv_c_bigendian=unknown
14112 cat >conftest.$ac_ext <<_ACEOF
14113/* confdefs.h. */
14114_ACEOF
14115cat confdefs.h >>conftest.$ac_ext
14116cat >>conftest.$ac_ext <<_ACEOF
14117/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14119short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014120void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014121short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14122short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014123void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14124int
14125main ()
14126{
14127 _ascii (); _ebcdic ();
14128 ;
14129 return 0;
14130}
14131_ACEOF
14132rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014133if { (ac_try="$ac_compile"
14134case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137esac
14138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014149 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14150 ac_cv_c_bigendian=yes
14151fi
14152if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14153 if test "$ac_cv_c_bigendian" = unknown; then
14154 ac_cv_c_bigendian=no
14155 else
14156 # finding both strings is unlikely to happen, but who knows?
14157 ac_cv_c_bigendian=unknown
14158 fi
14159fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014160else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
Theodore Ts'oe1052142006-10-21 21:46:47 -040014164
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014166
14167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014168else
14169 cat >conftest.$ac_ext <<_ACEOF
14170/* confdefs.h. */
14171_ACEOF
14172cat confdefs.h >>conftest.$ac_ext
14173cat >>conftest.$ac_ext <<_ACEOF
14174/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014175$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014176int
14177main ()
14178{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014179
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014180 /* Are we little or big endian? From Harbison&Steele. */
14181 union
14182 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014183 long int l;
14184 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014185 } u;
14186 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014187 return u.c[sizeof (long int) - 1] == 1;
14188
14189 ;
14190 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014191}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014192_ACEOF
14193rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014194if { (ac_try="$ac_link"
14195case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198esac
14199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014204 { (case "(($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_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014213 ac_cv_c_bigendian=no
14214else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014215 echo "$as_me: program exited with status $ac_status" >&5
14216echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014218
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014219( exit $ac_status )
14220ac_cv_c_bigendian=yes
14221fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014222rm -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 -040014223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014224
14225
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014226fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014227
14228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014229fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014230{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14231echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014232case $ac_cv_c_bigendian in
14233 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014235cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014236#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014237_ACEOF
14238 ;;
14239 no)
14240 ;;
14241 *)
14242 { { echo "$as_me:$LINENO: error: unknown endianness
14243presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14244echo "$as_me: error: unknown endianness
14245presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14246 { (exit 1); exit 1; }; } ;;
14247esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014248
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014249BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014250ASM_TYPES_HEADER=./asm_types.h
14251
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014252echo "/* These defines are needed for the public ext2fs.h header file */" \
14253 > public_config.h
14254if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14255 uniq tmp_config.$$ >> public_config.h
14256else
14257 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14258fi
14259if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14260 uniq tmp_config.$$ >> public_config.h
14261else
14262 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14263fi
14264rm -f tmp_config.$$
14265PUBLIC_CONFIG_HEADER=./public_config.h
14266
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014268for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014269do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014275 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014276fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014277ac_res=`eval echo '${'$as_ac_Header'}'`
14278 { echo "$as_me:$LINENO: result: $ac_res" >&5
14279echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014280else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014281 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014282{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14283echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014284cat >conftest.$ac_ext <<_ACEOF
14285/* confdefs.h. */
14286_ACEOF
14287cat confdefs.h >>conftest.$ac_ext
14288cat >>conftest.$ac_ext <<_ACEOF
14289/* end confdefs.h. */
14290$ac_includes_default
14291#include <$ac_header>
14292_ACEOF
14293rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014294if { (ac_try="$ac_compile"
14295case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298esac
14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014310 ac_header_compiler=yes
14311else
14312 echo "$as_me: failed program was:" >&5
14313sed 's/^/| /' conftest.$ac_ext >&5
14314
Theodore Ts'oe1052142006-10-21 21:46:47 -040014315 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014316fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014317
14318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14320echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321
14322# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014323{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014325cat >conftest.$ac_ext <<_ACEOF
14326/* confdefs.h. */
14327_ACEOF
14328cat confdefs.h >>conftest.$ac_ext
14329cat >>conftest.$ac_ext <<_ACEOF
14330/* end confdefs.h. */
14331#include <$ac_header>
14332_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014333if { (ac_try="$ac_cpp conftest.$ac_ext"
14334case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014345 (exit $ac_status); } >/dev/null && {
14346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014349 ac_header_preproc=yes
14350else
14351 echo "$as_me: failed program was:" >&5
14352sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 ac_header_preproc=no
14355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014357rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014358{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14359echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014360
14361# So? What about this header?
14362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14363 yes:no: )
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14368 ac_header_preproc=yes
14369 ;;
14370 no:yes:* )
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14374echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14378echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014384 ;;
14385esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014386{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390else
14391 eval "$as_ac_Header=\$ac_header_preproc"
14392fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014393ac_res=`eval echo '${'$as_ac_Header'}'`
14394 { echo "$as_me:$LINENO: result: $ac_res" >&5
14395echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014396
14397fi
14398if test `eval echo '${'$as_ac_Header'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14401_ACEOF
14402
14403fi
14404
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014405done
14406
Theodore Ts'oe1052142006-10-21 21:46:47 -040014407{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14408echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014409if test "${ac_cv_type_intptr_t+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014411else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014412 cat >conftest.$ac_ext <<_ACEOF
14413/* confdefs.h. */
14414_ACEOF
14415cat confdefs.h >>conftest.$ac_ext
14416cat >>conftest.$ac_ext <<_ACEOF
14417/* end confdefs.h. */
14418$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014419typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014420int
14421main ()
14422{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014423if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014424 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014425if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014426 return 0;
14427 ;
14428 return 0;
14429}
14430_ACEOF
14431rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014432if { (ac_try="$ac_compile"
14433case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14436esac
14437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014439 ac_status=$?
14440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014444 (exit $ac_status); } && {
14445 test -z "$ac_c_werror_flag" ||
14446 test ! -s conftest.err
14447 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014448 ac_cv_type_intptr_t=yes
14449else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014452
Theodore Ts'oe1052142006-10-21 21:46:47 -040014453 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014454fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014455
14456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014457fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014458{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14459echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014461
14462cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014463#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014464_ACEOF
14465
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014467fi
14468
Theodore Ts'oe1052142006-10-21 21:46:47 -040014469{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14470echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014471if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473else
14474 cat >conftest.$ac_ext <<_ACEOF
14475/* confdefs.h. */
14476_ACEOF
14477cat confdefs.h >>conftest.$ac_ext
14478cat >>conftest.$ac_ext <<_ACEOF
14479/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014480#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014481int
14482main ()
14483{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014484struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014485 ;
14486 return 0;
14487}
14488_ACEOF
14489rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014490if { (ac_try="$ac_compile"
14491case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494esac
14495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014506 e2fsprogs_cv_struct_st_flags=yes
14507else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014508 echo "$as_me: failed program was:" >&5
14509sed 's/^/| /' conftest.$ac_ext >&5
14510
Theodore Ts'oe1052142006-10-21 21:46:47 -040014511 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014512fi
14513
Theodore Ts'oe1052142006-10-21 21:46:47 -040014514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14515fi
14516
14517{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14518echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014519if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014520 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14521echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014522 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014524else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014525 cat >conftest.$ac_ext <<_ACEOF
14526/* confdefs.h. */
14527_ACEOF
14528cat confdefs.h >>conftest.$ac_ext
14529cat >>conftest.$ac_ext <<_ACEOF
14530/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014531#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014532int
14533main ()
14534{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014535struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014536 ;
14537 return 0;
14538}
14539_ACEOF
14540rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014541if { (ac_try="$ac_compile"
14542case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545esac
14546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014548 ac_status=$?
14549 grep -v '^ *+' conftest.er1 >conftest.err
14550 rm -f conftest.er1
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014557 e2fsprogs_cv_struct_st_flags_immut=yes
14558else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014559 echo "$as_me: failed program was:" >&5
14560sed 's/^/| /' conftest.$ac_ext >&5
14561
Theodore Ts'oe1052142006-10-21 21:46:47 -040014562 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014563fi
14564
Theodore Ts'oe1052142006-10-21 21:46:47 -040014565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566fi
14567
14568 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14569echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014570 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014571 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014572#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014573_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014574
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014575 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014576fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014577{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14578echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014579if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014580 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014581else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014582 cat >conftest.$ac_ext <<_ACEOF
14583/* confdefs.h. */
14584_ACEOF
14585cat confdefs.h >>conftest.$ac_ext
14586cat >>conftest.$ac_ext <<_ACEOF
14587/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014588#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014589 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014591int
14592main ()
14593{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014594static struct sockaddr ac_aggr;
14595if (ac_aggr.sa_len)
14596return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014597 ;
14598 return 0;
14599}
14600_ACEOF
14601rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014602if { (ac_try="$ac_compile"
14603case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606esac
14607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014614 (exit $ac_status); } && {
14615 test -z "$ac_c_werror_flag" ||
14616 test ! -s conftest.err
14617 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014618 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014619else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014620 echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
Theodore Ts'oe1052142006-10-21 21:46:47 -040014623 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
14629#include <sys/types.h>
14630 #include <sys/socket.h>
14631
14632int
14633main ()
14634{
14635static struct sockaddr ac_aggr;
14636if (sizeof ac_aggr.sa_len)
14637return 0;
14638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014643if { (ac_try="$ac_compile"
14644case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014659 ac_cv_member_struct_sockaddr_sa_len=yes
14660else
14661 echo "$as_me: failed program was:" >&5
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
Theodore Ts'oe1052142006-10-21 21:46:47 -040014664 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014665fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014666
14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014668fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014669
14670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014671fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014672{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14673echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014674if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014675
14676cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014677#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014678_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014679
14680fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014700
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014701
14702
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014703
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014704
Theodore Ts'o106ad962007-04-04 21:26:37 -040014705
14706
14707
Theodore Ts'o740837d2007-12-16 17:21:38 -050014708
14709
Theodore Ts'o261cd392008-01-21 13:45:00 -050014710
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040014711
14712
14713for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014714do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014716{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14717echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14718if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014719 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014720else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014721 cat >conftest.$ac_ext <<_ACEOF
14722/* confdefs.h. */
14723_ACEOF
14724cat confdefs.h >>conftest.$ac_ext
14725cat >>conftest.$ac_ext <<_ACEOF
14726/* end confdefs.h. */
14727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14729#define $ac_func innocuous_$ac_func
14730
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014731/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014732 which can conflict with char $ac_func (); below.
14733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14734 <limits.h> exists even on freestanding compilers. */
14735
14736#ifdef __STDC__
14737# include <limits.h>
14738#else
14739# include <assert.h>
14740#endif
14741
14742#undef $ac_func
14743
Theodore Ts'oe1052142006-10-21 21:46:47 -040014744/* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014747#ifdef __cplusplus
14748extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014749#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014751/* The GNU C library defines this for functions which it implements
14752 to always fail with ENOSYS. Some functions are actually named
14753 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014754#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014755choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014756#endif
14757
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014758int
14759main ()
14760{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014761return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014762 ;
14763 return 0;
14764}
14765_ACEOF
14766rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014767if { (ac_try="$ac_link"
14768case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771esac
14772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014779 (exit $ac_status); } && {
14780 test -z "$ac_c_werror_flag" ||
14781 test ! -s conftest.err
14782 } && test -s conftest$ac_exeext &&
14783 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014784 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014785else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786 echo "$as_me: failed program was:" >&5
14787sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014788
Theodore Ts'oe1052142006-10-21 21:46:47 -040014789 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014791
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014793 conftest$ac_exeext conftest.$ac_ext
14794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014795ac_res=`eval echo '${'$as_ac_var'}'`
14796 { echo "$as_me:$LINENO: result: $ac_res" >&5
14797echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014798if test `eval echo '${'$as_ac_var'}'` = yes; then
14799 cat >>confdefs.h <<_ACEOF
14800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14801_ACEOF
14802
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014803fi
14804done
14805
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014806SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014807{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14808echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014809if test "${ac_cv_lib_socket_socket+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014811else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014812 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014813LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014814cat >conftest.$ac_ext <<_ACEOF
14815/* confdefs.h. */
14816_ACEOF
14817cat confdefs.h >>conftest.$ac_ext
14818cat >>conftest.$ac_ext <<_ACEOF
14819/* end confdefs.h. */
14820
Theodore Ts'oe1052142006-10-21 21:46:47 -040014821/* Override any GCC internal prototype to avoid an error.
14822 Use char because int might match the return type of a GCC
14823 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014824#ifdef __cplusplus
14825extern "C"
14826#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014827char socket ();
14828int
14829main ()
14830{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014831return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014832 ;
14833 return 0;
14834}
14835_ACEOF
14836rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014837if { (ac_try="$ac_link"
14838case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841esac
14842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014849 (exit $ac_status); } && {
14850 test -z "$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14852 } && test -s conftest$ac_exeext &&
14853 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014854 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014855else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014856 echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014858
Theodore Ts'oe1052142006-10-21 21:46:47 -040014859 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014860fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014861
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014863 conftest$ac_exeext conftest.$ac_ext
14864LIBS=$ac_check_lib_save_LIBS
14865fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014866{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14867echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014868if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014869 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014870fi
14871
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014872
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014873DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014874{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14875echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014876if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014878else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014879 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014880LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014881cat >conftest.$ac_ext <<_ACEOF
14882/* confdefs.h. */
14883_ACEOF
14884cat confdefs.h >>conftest.$ac_ext
14885cat >>conftest.$ac_ext <<_ACEOF
14886/* end confdefs.h. */
14887
Theodore Ts'oe1052142006-10-21 21:46:47 -040014888/* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014891#ifdef __cplusplus
14892extern "C"
14893#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014894char dlopen ();
14895int
14896main ()
14897{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014898return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014899 ;
14900 return 0;
14901}
14902_ACEOF
14903rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014904if { (ac_try="$ac_link"
14905case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908esac
14909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest$ac_exeext &&
14920 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014921 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014922else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014923 echo "$as_me: failed program was:" >&5
14924sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014925
Theodore Ts'oe1052142006-10-21 21:46:47 -040014926 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014927fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014928
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014930 conftest$ac_exeext conftest.$ac_ext
14931LIBS=$ac_check_lib_save_LIBS
14932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014933{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14934echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014935if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014936 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014937cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014938#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014939_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014940
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014941fi
14942
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014943
Theodore Ts'oe1052142006-10-21 21:46:47 -040014944{ echo "$as_me:$LINENO: checking for optreset" >&5
14945echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014946if test "${ac_cv_have_optreset+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014948else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014949 cat >conftest.$ac_ext <<_ACEOF
14950/* confdefs.h. */
14951_ACEOF
14952cat confdefs.h >>conftest.$ac_ext
14953cat >>conftest.$ac_ext <<_ACEOF
14954/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014955#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014956
14957_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014959 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014960 ac_cv_have_optreset=yes
14961else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014962 ac_cv_have_optreset=no
14963fi
14964rm -f conftest*
14965
14966fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014967{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14968echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014969if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014970 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014971#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014972_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014973
14974fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014975{ echo "$as_me:$LINENO: checking for unified diff option" >&5
14976echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040014977if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014978 UNI_DIFF_OPTS=-u
14979else
14980 UNI_DIFF_OPTS=-c
14981fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014982{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14983echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014984
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014985case "$host_os" in
14986linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014988#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014989_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014990
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014991 ;;
14992esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014993LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014994CYGWIN_CMT="#"
14995UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014996case "$host_os" in
14997linux*)
14998 LINUX_CMT=
14999 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015000cygwin)
15001 CYGWIN_CMT=
15002 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015003 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015004esac
15005
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015006
15007
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015008case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015009linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015010 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15011 root_prefix="";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015012 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15013echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015014 fi
15015 ;;
15016esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015017case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015018linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015019 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015020 prefix="/usr";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015021 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15022echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015023 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015024 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15025echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015026 mandir=/usr/share/man
15027 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015028 fi
15029;;
15030esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015031if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015032 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015033 root_prefix="$ac_default_prefix"
15034 else
15035 root_prefix="$prefix"
15036 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015037 root_bindir=$bindir
15038 root_sbindir=$sbindir
15039 root_libdir=$libdir
15040 root_sysconfdir=$sysconfdir
15041else
15042 root_bindir='${root_prefix}/bin'
15043 root_sbindir='${root_prefix}/sbin'
15044 root_libdir='${root_prefix}/lib'
15045 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015046fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015047if test "$bindir" != '${exec_prefix}/bin'; then
15048 root_bindir=$bindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015049 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15050echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015051fi
15052if test "$sbindir" != '${exec_prefix}/sbin'; then
15053 root_sbindir=$sbindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015054 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15055echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015056fi
15057if test "$libdir" != '${exec_prefix}/lib'; then
15058 root_libdir=$libdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015059 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15060echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015061fi
15062if test "$sysconfdir" != '${prefix}/etc'; then
15063 root_sysconfdir=$sysconfdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015064 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15065echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015066fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015067
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015068
15069
15070
15071
Theodore Ts'oe1052142006-10-21 21:46:47 -040015072{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15073echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015074if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015076else
15077 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015078cat >conftest.$ac_ext <<_ACEOF
15079/* confdefs.h. */
15080_ACEOF
15081cat confdefs.h >>conftest.$ac_ext
15082cat >>conftest.$ac_ext <<_ACEOF
15083/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015084#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015085int
15086main ()
15087{
Theodore Ts'oae851481997-04-29 18:13:24 +000015088fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015089 ;
15090 return 0;
15091}
15092_ACEOF
15093rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015094if { (ac_try="$ac_link"
15095case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098esac
15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest$ac_exeext &&
15110 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015111 ac_cv_e2fsprogs_use_static=yes
15112else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015113 echo "$as_me: failed program was:" >&5
15114sed 's/^/| /' conftest.$ac_ext >&5
15115
Theodore Ts'oe1052142006-10-21 21:46:47 -040015116 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015117fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015118
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015120 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015121LDFLAGS=$SAVE_LDFLAGS
15122fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015123
Theodore Ts'odefde781999-01-04 07:39:19 +000015124case "$host_os" in
15125solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015126 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015127;;
15128esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015129{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15130echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015131LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015132if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015133 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015134fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015135
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015136case "$host_os" in
15137darwin*)
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015138 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15139echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015140 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015141#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015142_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015143
15144 ;;
15145esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015146SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15147ET_DIR=`cd ${srcdir}/lib/et; pwd`
15148
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015149
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015150if test "$cross_compiling" = yes ; then
15151 DO_TEST_SUITE=
15152else
15153 DO_TEST_SUITE=check
15154fi
15155
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015156INTL_FLAGS=
15157if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15158 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15159fi
15160
Theodore Ts'odd947da2005-11-09 18:37:07 -040015161if test $cross_compiling = no; then
15162 BUILD_CFLAGS="$CFLAGS"
15163 BUILD_LDFLAGS="$LDFLAGS"
15164else
15165 BUILD_CFLAGS=
15166 BUILD_LDFLAGS=
15167fi
15168
15169
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015170test -d lib || mkdir lib
15171test -d include || mkdir include
15172test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015173test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015174for i in MCONFIG Makefile e2fsprogs.spec \
15175 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015176 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15177 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015178 lib/uuid/Makefile lib/uuid/uuid_types.h \
15179 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015180 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15181 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015182 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015183 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15184 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15185 if test -d `dirname ${srcdir}/$i` ; then
15186 outlist="$outlist $i"
15187 fi
15188done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015189ac_config_files="$ac_config_files $outlist"
15190
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015191cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015192# This file is a shell script that caches the results of configure
15193# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015194# scripts and configure runs, see configure's option --config-cache.
15195# It is not useful on other systems. If it contains results you don't
15196# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015197#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015198# config.status only pays attention to the cache file if you give it
15199# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015200#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015201# `ac_cv_env_foo' variables (set or unset) will be overridden when
15202# loading this file, other *unset* `ac_cv_foo' will be assigned the
15203# following values.
15204
15205_ACEOF
15206
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015207# The following way of writing the cache mishandles newlines in values,
15208# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015209# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015210# Ultrix sh set writes to stderr and can't be redirected directly,
15211# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015212(
15213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15214 eval ac_val=\$$ac_var
15215 case $ac_val in #(
15216 *${as_nl}*)
15217 case $ac_var in #(
15218 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15219echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15220 esac
15221 case $ac_var in #(
15222 _ | IFS | as_nl) ;; #(
15223 *) $as_unset $ac_var ;;
15224 esac ;;
15225 esac
15226 done
15227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015228 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15230 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015231 # `set' does not quote correctly, so add quotes (double-quote
15232 # substitution turns \\\\ into \\, and sed turns \\ into \).
15233 sed -n \
15234 "s/'/'\\\\''/g;
15235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015236 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015237 *)
15238 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015240 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015241 esac |
15242 sort
15243) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015244 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015245 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015246 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015247 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15249 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15251 :end' >>confcache
15252if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15253 if test -w "$cache_file"; then
15254 test "x$cache_file" != "x/dev/null" &&
15255 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15256echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015257 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015258 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015259 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15260echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015261 fi
15262fi
15263rm -f confcache
15264
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015265test "x$prefix" = xNONE && prefix=$ac_default_prefix
15266# Let make expand exec_prefix.
15267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15268
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015269# Transform confdefs.h into DEFS.
15270# Protect against shell expansion while executing Makefile rules.
15271# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015272#
15273# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015274# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015275# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015276ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015277t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015278:clear
15279s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015280t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015281s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015282t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015283b any
15284:quote
15285s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15286s/\[/\\&/g
15287s/\]/\\&/g
15288s/\$/$$/g
15289H
15290:any
15291${
15292 g
15293 s/^\n//
15294 s/\n/ /g
15295 p
15296}
15297'
15298DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015299
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015301ac_libobjs=
15302ac_ltlibobjs=
15303for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15304 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15306 ac_i=`echo "$ac_i" | sed "$ac_script"`
15307 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15308 # will be set to the directory where LIBOBJS objects are built.
15309 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15310 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015311done
15312LIBOBJS=$ac_libobjs
15313
15314LTLIBOBJS=$ac_ltlibobjs
15315
15316
15317
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015318: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015319ac_clean_files_save=$ac_clean_files
15320ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15321{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15322echo "$as_me: creating $CONFIG_STATUS" >&6;}
15323cat >$CONFIG_STATUS <<_ACEOF
15324#! $SHELL
15325# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015326# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015327# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015328# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015330debug=false
15331ac_cs_recheck=false
15332ac_cs_silent=false
15333SHELL=\${CONFIG_SHELL-$SHELL}
15334_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015335
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015336cat >>$CONFIG_STATUS <<\_ACEOF
15337## --------------------- ##
15338## M4sh Initialization. ##
15339## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015340
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015341# Be more Bourne compatible
15342DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015343if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15344 emulate sh
15345 NULLCMD=:
15346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15347 # is contrary to our usage. Disable this feature.
15348 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015349 setopt NO_GLOB_SUBST
15350else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015351 case `(set -o) 2>/dev/null` in
15352 *posix*) set -o posix ;;
15353esac
15354
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015355fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015356
15357
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015358
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015359
Theodore Ts'oe1052142006-10-21 21:46:47 -040015360# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015361# Avoid depending upon Character Ranges.
15362as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15363as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15364as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15365as_cr_digits='0123456789'
15366as_cr_alnum=$as_cr_Letters$as_cr_digits
15367
15368# The user is always right.
15369if test "${PATH_SEPARATOR+set}" != set; then
15370 echo "#! /bin/sh" >conf$$.sh
15371 echo "exit 0" >>conf$$.sh
15372 chmod +x conf$$.sh
15373 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15374 PATH_SEPARATOR=';'
15375 else
15376 PATH_SEPARATOR=:
15377 fi
15378 rm -f conf$$.sh
15379fi
15380
Theodore Ts'oe1052142006-10-21 21:46:47 -040015381# Support unset when possible.
15382if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15383 as_unset=unset
15384else
15385 as_unset=false
15386fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015387
Theodore Ts'oe1052142006-10-21 21:46:47 -040015388
15389# IFS
15390# We need space, tab and new line, in precisely that order. Quoting is
15391# there to prevent editors from complaining about space-tab.
15392# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15393# splitting by setting IFS to empty value.)
15394as_nl='
15395'
15396IFS=" "" $as_nl"
15397
15398# Find who we are. Look in the path if we contain no directory separator.
15399case $0 in
15400 *[\\/]* ) as_myself=$0 ;;
15401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015402for as_dir in $PATH
15403do
15404 IFS=$as_save_IFS
15405 test -z "$as_dir" && as_dir=.
15406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15407done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015408IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015409
Theodore Ts'oe1052142006-10-21 21:46:47 -040015410 ;;
15411esac
15412# We did not find ourselves, most probably we were run as `sh COMMAND'
15413# in which case we are not to be found in the path.
15414if test "x$as_myself" = x; then
15415 as_myself=$0
15416fi
15417if test ! -f "$as_myself"; then
15418 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15419 { (exit 1); exit 1; }
15420fi
15421
15422# Work around bugs in pre-3.0 UWIN ksh.
15423for as_var in ENV MAIL MAILPATH
15424do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15425done
15426PS1='$ '
15427PS2='> '
15428PS4='+ '
15429
15430# NLS nuisances.
15431for as_var in \
15432 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15433 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15434 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015435do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015436 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15437 eval $as_var=C; export $as_var
15438 else
15439 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15440 fi
15441done
15442
15443# Required to use basename.
15444if expr a : '\(a\)' >/dev/null 2>&1 &&
15445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15446 as_expr=expr
15447else
15448 as_expr=false
15449fi
15450
15451if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15452 as_basename=basename
15453else
15454 as_basename=false
15455fi
15456
15457
15458# Name of the executable.
15459as_me=`$as_basename -- "$0" ||
15460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15461 X"$0" : 'X\(//\)$' \| \
15462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15463echo X/"$0" |
15464 sed '/^.*\/\([^/][^/]*\)\/*$/{
15465 s//\1/
15466 q
15467 }
15468 /^X\/\(\/\/\)$/{
15469 s//\1/
15470 q
15471 }
15472 /^X\/\(\/\).*/{
15473 s//\1/
15474 q
15475 }
15476 s/.*/./; q'`
15477
15478# CDPATH.
15479$as_unset CDPATH
15480
15481
15482
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015483 as_lineno_1=$LINENO
15484 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015485 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015486 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015488 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15489 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015490 # line-number line after each line using $LINENO; the second 'sed'
15491 # does the real work. The second script uses 'N' to pair each
15492 # line-number line with the line containing $LINENO, and appends
15493 # trailing '-' during substitution so that $LINENO is not a special
15494 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015496 # scripts with optimization help from Paolo Bonzini. Blame Lee
15497 # E. McMahon (1931-1989) for sed's syntax. :-)
15498 sed -n '
15499 p
15500 /[$]LINENO/=
15501 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015502 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015503 s/[$]LINENO.*/&-/
15504 t lineno
15505 b
15506 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015507 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015508 :loop
15509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015510 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015511 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015512 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015513 chmod +x "$as_me.lineno" ||
15514 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015515 { (exit 1); exit 1; }; }
15516
15517 # Don't try to exec as it changes $[0], causing all sort of problems
15518 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015519 # original and so on. Autoconf is especially sensitive to this).
15520 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015521 # Exit status is that of the last command.
15522 exit
15523}
15524
15525
Theodore Ts'oe1052142006-10-21 21:46:47 -040015526if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15527 as_dirname=dirname
15528else
15529 as_dirname=false
15530fi
15531
15532ECHO_C= ECHO_N= ECHO_T=
15533case `echo -n x` in
15534-n*)
15535 case `echo 'x\c'` in
15536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15537 *) ECHO_C='\c';;
15538 esac;;
15539*)
15540 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015541esac
15542
Theodore Ts'oe1052142006-10-21 21:46:47 -040015543if expr a : '\(a\)' >/dev/null 2>&1 &&
15544 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015545 as_expr=expr
15546else
15547 as_expr=false
15548fi
15549
15550rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015551if test -d conf$$.dir; then
15552 rm -f conf$$.dir/conf$$.file
15553else
15554 rm -f conf$$.dir
15555 mkdir conf$$.dir
15556fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015557echo >conf$$.file
15558if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015559 as_ln_s='ln -s'
15560 # ... but there are two gotchas:
15561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15563 # In both cases, we have to default to `cp -p'.
15564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015565 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015566elif ln conf$$.file conf$$ 2>/dev/null; then
15567 as_ln_s=ln
15568else
15569 as_ln_s='cp -p'
15570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15572rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015573
15574if mkdir -p . 2>/dev/null; then
15575 as_mkdir_p=:
15576else
15577 test -d ./-p && rmdir ./-p
15578 as_mkdir_p=false
15579fi
15580
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015581if test -x / >/dev/null 2>&1; then
15582 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015583else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015584 if ls -dL / >/dev/null 2>&1; then
15585 as_ls_L_option=L
15586 else
15587 as_ls_L_option=
15588 fi
15589 as_test_x='
15590 eval sh -c '\''
15591 if test -d "$1"; then
15592 test -d "$1/.";
15593 else
15594 case $1 in
15595 -*)set "./$1";;
15596 esac;
15597 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15598 ???[sx]*):;;*)false;;esac;fi
15599 '\'' sh
15600 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015601fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015602as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015603
15604# Sed expression to map a string onto a valid CPP name.
15605as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15606
15607# Sed expression to map a string onto a valid variable name.
15608as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15609
15610
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015611exec 6>&1
15612
Theodore Ts'oe1052142006-10-21 21:46:47 -040015613# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015614# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015615# values after options handling.
15616ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015617This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015618generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015619
15620 CONFIG_FILES = $CONFIG_FILES
15621 CONFIG_HEADERS = $CONFIG_HEADERS
15622 CONFIG_LINKS = $CONFIG_LINKS
15623 CONFIG_COMMANDS = $CONFIG_COMMANDS
15624 $ $0 $@
15625
Theodore Ts'oe1052142006-10-21 21:46:47 -040015626on `(hostname || uname -n) 2>/dev/null | sed 1q`
15627"
15628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015629_ACEOF
15630
Theodore Ts'oe1052142006-10-21 21:46:47 -040015631cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015632# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015633config_files="$ac_config_files"
15634config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015635
Theodore Ts'oe1052142006-10-21 21:46:47 -040015636_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015637
15638cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015639ac_cs_usage="\
15640\`$as_me' instantiates files from templates according to the
15641current configuration.
15642
15643Usage: $0 [OPTIONS] [FILE]...
15644
15645 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015646 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015647 -q, --quiet do not print progress messages
15648 -d, --debug don't remove temporary files
15649 --recheck update $as_me by reconfiguring in the same conditions
15650 --file=FILE[:TEMPLATE]
15651 instantiate the configuration file FILE
15652
15653Configuration files:
15654$config_files
15655
15656Configuration commands:
15657$config_commands
15658
15659Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015660
Theodore Ts'oe1052142006-10-21 21:46:47 -040015661_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015662cat >>$CONFIG_STATUS <<_ACEOF
15663ac_cs_version="\\
15664config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015665configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015666 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015667
Theodore Ts'oe1052142006-10-21 21:46:47 -040015668Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015669This config.status script is free software; the Free Software Foundation
15670gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015671
15672ac_pwd='$ac_pwd'
15673srcdir='$srcdir'
15674INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015675_ACEOF
15676
15677cat >>$CONFIG_STATUS <<\_ACEOF
15678# If no file are specified by the user, then we need to provide default
15679# value. By we need to know if files were specified by the user.
15680ac_need_defaults=:
15681while test $# != 0
15682do
15683 case $1 in
15684 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015685 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15686 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015687 ac_shift=:
15688 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015689 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015690 ac_option=$1
15691 ac_optarg=$2
15692 ac_shift=shift
15693 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015694 esac
15695
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015696 case $ac_option in
15697 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15699 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015700 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15701 echo "$ac_cs_version"; exit ;;
15702 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015703 debug=: ;;
15704 --file | --fil | --fi | --f )
15705 $ac_shift
15706 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15707 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015708 --he | --h | --help | --hel | -h )
15709 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15712 ac_cs_silent=: ;;
15713
15714 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015715 -*) { echo "$as_me: error: unrecognized option: $1
15716Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015717 { (exit 1); exit 1; }; } ;;
15718
Theodore Ts'oe1052142006-10-21 21:46:47 -040015719 *) ac_config_targets="$ac_config_targets $1"
15720 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015721
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015722 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015723 shift
15724done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015726ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015728if $ac_cs_silent; then
15729 exec 6>/dev/null
15730 ac_configure_extra_args="$ac_configure_extra_args --silent"
15731fi
15732
15733_ACEOF
15734cat >>$CONFIG_STATUS <<_ACEOF
15735if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015736 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15737 CONFIG_SHELL=$SHELL
15738 export CONFIG_SHELL
15739 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015740fi
15741
15742_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015743cat >>$CONFIG_STATUS <<\_ACEOF
15744exec 5>>config.log
15745{
15746 echo
15747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15748## Running $as_me. ##
15749_ASBOX
15750 echo "$ac_log"
15751} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015752
Theodore Ts'oe1052142006-10-21 21:46:47 -040015753_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015754cat >>$CONFIG_STATUS <<_ACEOF
15755#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015756# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015757#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015758# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015759 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015760 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015761 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015762 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15763 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015764
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015766_ACEOF
15767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015768cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015769
15770# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015771for ac_config_target in $ac_config_targets
15772do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015773 case $ac_config_target in
15774 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15775 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15776
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015777 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15778echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15779 { (exit 1); exit 1; }; };;
15780 esac
15781done
15782
Theodore Ts'oe1052142006-10-21 21:46:47 -040015783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015784# If the user did not use the arguments to specify the items to instantiate,
15785# then the envvar interface is used. Set only those that are not.
15786# We use the long form for the default assignment because of an extremely
15787# bizarre bug on SunOS 4.1.3.
15788if $ac_need_defaults; then
15789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15790 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15791fi
15792
15793# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015794# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015795# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015796# Hook for its removal unless debugging.
15797# Note that there is a small window in which the directory will not be cleaned:
15798# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015799$debug ||
15800{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015801 tmp=
15802 trap 'exit_status=$?
15803 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15804' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015805 trap '{ (exit 1); exit 1; }' 1 2 13 15
15806}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015807# Create a (secure) tmp directory for tmp files.
15808
15809{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015810 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015811 test -n "$tmp" && test -d "$tmp"
15812} ||
15813{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015814 tmp=./conf$$-$RANDOM
15815 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015816} ||
15817{
15818 echo "$me: cannot create a temporary directory in ." >&2
15819 { (exit 1); exit 1; }
15820}
15821
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015822#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015823# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015824#
15825
15826# No need to generate the scripts if there are no CONFIG_FILES.
15827# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015828if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015829
15830_ACEOF
15831
Theodore Ts'oe1052142006-10-21 21:46:47 -040015832# Create sed commands to just substitute file output variables.
15833
15834# Remaining file output variables are in a fragment that also has non-file
15835# output varibles.
15836
15837
15838
15839ac_delim='%!_!# '
15840for ac_last_try in false false false false false :; do
15841 cat >conf$$subs.sed <<_ACEOF
15842SHELL!$SHELL$ac_delim
15843PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15844PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15845PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15846PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15847PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15848PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15849exec_prefix!$exec_prefix$ac_delim
15850prefix!$prefix$ac_delim
15851program_transform_name!$program_transform_name$ac_delim
15852bindir!$bindir$ac_delim
15853sbindir!$sbindir$ac_delim
15854libexecdir!$libexecdir$ac_delim
15855datarootdir!$datarootdir$ac_delim
15856datadir!$datadir$ac_delim
15857sysconfdir!$sysconfdir$ac_delim
15858sharedstatedir!$sharedstatedir$ac_delim
15859localstatedir!$localstatedir$ac_delim
15860includedir!$includedir$ac_delim
15861oldincludedir!$oldincludedir$ac_delim
15862docdir!$docdir$ac_delim
15863infodir!$infodir$ac_delim
15864htmldir!$htmldir$ac_delim
15865dvidir!$dvidir$ac_delim
15866pdfdir!$pdfdir$ac_delim
15867psdir!$psdir$ac_delim
15868libdir!$libdir$ac_delim
15869localedir!$localedir$ac_delim
15870mandir!$mandir$ac_delim
15871DEFS!$DEFS$ac_delim
15872ECHO_C!$ECHO_C$ac_delim
15873ECHO_N!$ECHO_N$ac_delim
15874ECHO_T!$ECHO_T$ac_delim
15875LIBS!$LIBS$ac_delim
15876build_alias!$build_alias$ac_delim
15877host_alias!$host_alias$ac_delim
15878target_alias!$target_alias$ac_delim
15879E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15880E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15881E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15882E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050015883E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015884build!$build$ac_delim
15885build_cpu!$build_cpu$ac_delim
15886build_vendor!$build_vendor$ac_delim
15887build_os!$build_os$ac_delim
15888host!$host$ac_delim
15889host_cpu!$host_cpu$ac_delim
15890host_vendor!$host_vendor$ac_delim
15891host_os!$host_os$ac_delim
15892CC!$CC$ac_delim
15893CFLAGS!$CFLAGS$ac_delim
15894LDFLAGS!$LDFLAGS$ac_delim
15895CPPFLAGS!$CPPFLAGS$ac_delim
15896ac_ct_CC!$ac_ct_CC$ac_delim
15897EXEEXT!$EXEEXT$ac_delim
15898OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015899CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015900LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015901GREP!$GREP$ac_delim
15902EGREP!$EGREP$ac_delim
15903LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15904MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15905HTREE_CMT!$HTREE_CMT$ac_delim
15906ELF_CMT!$ELF_CMT$ac_delim
15907BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15908PROFILE_CMT!$PROFILE_CMT$ac_delim
15909CHECKER_CMT!$CHECKER_CMT$ac_delim
15910LIB_EXT!$LIB_EXT$ac_delim
15911STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15912PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'o55da9872008-09-02 23:12:38 -040015913LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim
15914PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015915_ACEOF
15916
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015918 break
15919 elif $ac_last_try; then
15920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15921echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15922 { (exit 1); exit 1; }; }
15923 else
15924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015925 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015926done
15927
15928ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15929if test -n "$ac_eof"; then
15930 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15931 ac_eof=`expr $ac_eof + 1`
15932fi
15933
15934cat >>$CONFIG_STATUS <<_ACEOF
15935cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15936/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15937/^[ ]*@MCONFIG@[ ]*$/{
15938r $MCONFIG
15939d
15940}
15941/^[ ]*@MAKEFILE_ELF@[ ]*$/{
15942r $MAKEFILE_ELF
15943d
15944}
15945/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15946r $MAKEFILE_BSDLIB
15947d
15948}
15949/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15950r $MAKEFILE_PROFILE
15951d
15952}
15953/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15954r $MAKEFILE_CHECKER
15955d
15956}
15957/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15958r $MAKEFILE_LIBRARY
15959d
15960}
15961/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15962r $ASM_TYPES_HEADER
15963d
15964}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015965/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
15966r $PUBLIC_CONFIG_HEADER
15967d
15968}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015969_ACEOF
15970sed '
15971s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15972s/^/s,@/; s/!/@,|#_!!_#|/
15973:n
15974t n
15975s/'"$ac_delim"'$/,g/; t
15976s/$/\\/; p
15977N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15978' >>$CONFIG_STATUS <conf$$subs.sed
15979rm -f conf$$subs.sed
15980cat >>$CONFIG_STATUS <<_ACEOF
15981CEOF$ac_eof
15982_ACEOF
15983
15984
15985ac_delim='%!_!# '
15986for ac_last_try in false false false false false :; do
15987 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o55da9872008-09-02 23:12:38 -040015988TEST_IO_CMT!$TEST_IO_CMT$ac_delim
15989DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
Theodore Ts'oaf773652008-09-01 11:27:27 -040015990IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015991RESIZER_CMT!$RESIZER_CMT$ac_delim
15992FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015993FSCK_MAN!$FSCK_MAN$ac_delim
15994E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15995E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050015996UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015997GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15998PACKAGE!$PACKAGE$ac_delim
15999VERSION!$VERSION$ac_delim
16000SET_MAKE!$SET_MAKE$ac_delim
16001INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16002INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16003INSTALL_DATA!$INSTALL_DATA$ac_delim
16004MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16005USE_NLS!$USE_NLS$ac_delim
16006MSGFMT!$MSGFMT$ac_delim
16007GMSGFMT!$GMSGFMT$ac_delim
16008XGETTEXT!$XGETTEXT$ac_delim
16009MSGMERGE!$MSGMERGE$ac_delim
16010RANLIB!$RANLIB$ac_delim
16011ALLOCA!$ALLOCA$ac_delim
16012GLIBC21!$GLIBC21$ac_delim
16013HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16014HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16015HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16016HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16017LIBICONV!$LIBICONV$ac_delim
16018LTLIBICONV!$LTLIBICONV$ac_delim
16019INTLBISON!$INTLBISON$ac_delim
16020BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16021USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16022CATOBJEXT!$CATOBJEXT$ac_delim
16023DATADIRNAME!$DATADIRNAME$ac_delim
16024INSTOBJEXT!$INSTOBJEXT$ac_delim
16025GENCAT!$GENCAT$ac_delim
16026INTLOBJS!$INTLOBJS$ac_delim
16027INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16028INTLLIBS!$INTLLIBS$ac_delim
16029LIBINTL!$LIBINTL$ac_delim
16030LTLIBINTL!$LTLIBINTL$ac_delim
16031POSUB!$POSUB$ac_delim
16032BINARY_TYPE!$BINARY_TYPE$ac_delim
16033LN!$LN$ac_delim
16034LN_S!$LN_S$ac_delim
16035MV!$MV$ac_delim
16036CP!$CP$ac_delim
16037RM!$RM$ac_delim
16038CHMOD!$CHMOD$ac_delim
16039AWK!$AWK$ac_delim
16040SED!$SED$ac_delim
16041PERL!$PERL$ac_delim
16042LDCONFIG!$LDCONFIG$ac_delim
16043AR!$AR$ac_delim
16044STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016045MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016046BUILD_CC!$BUILD_CC$ac_delim
16047SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16048SIZEOF_INT!$SIZEOF_INT$ac_delim
16049SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16050SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16051SOCKET_LIB!$SOCKET_LIB$ac_delim
16052DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16053UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16054LINUX_CMT!$LINUX_CMT$ac_delim
16055CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16056UNIX_CMT!$UNIX_CMT$ac_delim
16057root_prefix!$root_prefix$ac_delim
16058root_bindir!$root_bindir$ac_delim
16059root_sbindir!$root_sbindir$ac_delim
16060root_libdir!$root_libdir$ac_delim
16061root_sysconfdir!$root_sysconfdir$ac_delim
16062LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16063SS_DIR!$SS_DIR$ac_delim
16064ET_DIR!$ET_DIR$ac_delim
16065DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16066INTL_FLAGS!$INTL_FLAGS$ac_delim
16067BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16068BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16069LIBOBJS!$LIBOBJS$ac_delim
16070LTLIBOBJS!$LTLIBOBJS$ac_delim
16071_ACEOF
16072
Theodore Ts'o55da9872008-09-02 23:12:38 -040016073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016074 break
16075 elif $ac_last_try; then
16076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16077echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16078 { (exit 1); exit 1; }; }
16079 else
16080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16081 fi
16082done
16083
16084ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16085if test -n "$ac_eof"; then
16086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16087 ac_eof=`expr $ac_eof + 1`
16088fi
16089
16090cat >>$CONFIG_STATUS <<_ACEOF
16091cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16093_ACEOF
16094sed '
16095s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16096s/^/s,@/; s/!/@,|#_!!_#|/
16097:n
16098t n
16099s/'"$ac_delim"'$/,g/; t
16100s/$/\\/; p
16101N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16102' >>$CONFIG_STATUS <conf$$subs.sed
16103rm -f conf$$subs.sed
16104cat >>$CONFIG_STATUS <<_ACEOF
16105:end
16106s/|#_!!_#|//g
16107CEOF$ac_eof
16108_ACEOF
16109
16110
16111# VPATH may cause trouble with some makes, so we remove $(srcdir),
16112# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16113# trailing colons and then remove the whole line if VPATH becomes empty
16114# (actually we leave an empty line to preserve line numbers).
16115if test "x$srcdir" = x.; then
16116 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16117s/:*\$(srcdir):*/:/
16118s/:*\${srcdir}:*/:/
16119s/:*@srcdir@:*/:/
16120s/^\([^=]*=[ ]*\):*/\1/
16121s/:*$//
16122s/^[^=]*=[ ]*$//
16123}'
16124fi
16125
16126cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016127fi # test -n "$CONFIG_FILES"
16128
Theodore Ts'oe1052142006-10-21 21:46:47 -040016129
16130for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16131do
16132 case $ac_tag in
16133 :[FHLC]) ac_mode=$ac_tag; continue;;
16134 esac
16135 case $ac_mode$ac_tag in
16136 :[FHL]*:*);;
16137 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16138echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16139 { (exit 1); exit 1; }; };;
16140 :[FH]-) ac_tag=-:-;;
16141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16142 esac
16143 ac_save_IFS=$IFS
16144 IFS=:
16145 set x $ac_tag
16146 IFS=$ac_save_IFS
16147 shift
16148 ac_file=$1
16149 shift
16150
16151 case $ac_mode in
16152 :L) ac_source=$1;;
16153 :[FH])
16154 ac_file_inputs=
16155 for ac_f
16156 do
16157 case $ac_f in
16158 -) ac_f="$tmp/stdin";;
16159 *) # Look for the file first in the build tree, then in the source tree
16160 # (if the path is not absolute). The absolute path cannot be DOS-style,
16161 # because $ac_f cannot contain `:'.
16162 test -f "$ac_f" ||
16163 case $ac_f in
16164 [\\/$]*) false;;
16165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16166 esac ||
16167 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16168echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16169 { (exit 1); exit 1; }; };;
16170 esac
16171 ac_file_inputs="$ac_file_inputs $ac_f"
16172 done
16173
16174 # Let's still pretend it is `configure' which instantiates (i.e., don't
16175 # use $as_me), people would be surprised to read:
16176 # /* config.h. Generated by config.status. */
16177 configure_input="Generated from "`IFS=:
16178 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16179 if test x"$ac_file" != x-; then
16180 configure_input="$ac_file. $configure_input"
16181 { echo "$as_me:$LINENO: creating $ac_file" >&5
16182echo "$as_me: creating $ac_file" >&6;}
16183 fi
16184
16185 case $ac_tag in
16186 *:-:* | *:-) cat >"$tmp/stdin";;
16187 esac
16188 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016189 esac
16190
Theodore Ts'oe1052142006-10-21 21:46:47 -040016191 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016192$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16193 X"$ac_file" : 'X\(//\)[^/]' \| \
16194 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016196echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16198 s//\1/
16199 q
16200 }
16201 /^X\(\/\/\)[^/].*/{
16202 s//\1/
16203 q
16204 }
16205 /^X\(\/\/\)$/{
16206 s//\1/
16207 q
16208 }
16209 /^X\(\/\).*/{
16210 s//\1/
16211 q
16212 }
16213 s/.*/./; q'`
16214 { as_dir="$ac_dir"
16215 case $as_dir in #(
16216 -*) as_dir=./$as_dir;;
16217 esac
16218 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016219 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016220 while :; do
16221 case $as_dir in #(
16222 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16223 *) as_qdir=$as_dir;;
16224 esac
16225 as_dirs="'$as_qdir' $as_dirs"
16226 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16228 X"$as_dir" : 'X\(//\)[^/]' \| \
16229 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016231echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16233 s//\1/
16234 q
16235 }
16236 /^X\(\/\/\)[^/].*/{
16237 s//\1/
16238 q
16239 }
16240 /^X\(\/\/\)$/{
16241 s//\1/
16242 q
16243 }
16244 /^X\(\/\).*/{
16245 s//\1/
16246 q
16247 }
16248 s/.*/./; q'`
16249 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016250 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016251 test -z "$as_dirs" || eval "mkdir $as_dirs"
16252 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16253echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016254 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016255 ac_builddir=.
16256
Theodore Ts'oe1052142006-10-21 21:46:47 -040016257case "$ac_dir" in
16258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16259*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016261 # A ".." for each directory in $ac_dir_suffix.
16262 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16263 case $ac_top_builddir_sub in
16264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16266 esac ;;
16267esac
16268ac_abs_top_builddir=$ac_pwd
16269ac_abs_builddir=$ac_pwd$ac_dir_suffix
16270# for backward compatibility:
16271ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016272
16273case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016274 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016275 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016276 ac_top_srcdir=$ac_top_builddir_sub
16277 ac_abs_top_srcdir=$ac_pwd ;;
16278 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016279 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016280 ac_top_srcdir=$srcdir
16281 ac_abs_top_srcdir=$srcdir ;;
16282 *) # Relative name.
16283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16284 ac_top_srcdir=$ac_top_build_prefix$srcdir
16285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016286esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016289
Theodore Ts'oe1052142006-10-21 21:46:47 -040016290 case $ac_mode in
16291 :F)
16292 #
16293 # CONFIG_FILE
16294 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016295
16296 case $INSTALL in
16297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016299 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016300_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016301
16302cat >>$CONFIG_STATUS <<\_ACEOF
16303# If the template does not know about datarootdir, expand it.
16304# FIXME: This hack should be removed a few years after 2.60.
16305ac_datarootdir_hack=; ac_datarootdir_seen=
16306
16307case `sed -n '/datarootdir/ {
16308 p
16309 q
16310}
16311/@datadir@/p
16312/@docdir@/p
16313/@infodir@/p
16314/@localedir@/p
16315/@mandir@/p
16316' $ac_file_inputs` in
16317*datarootdir*) ac_datarootdir_seen=yes;;
16318*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16319 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16320echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16321_ACEOF
16322cat >>$CONFIG_STATUS <<_ACEOF
16323 ac_datarootdir_hack='
16324 s&@datadir@&$datadir&g
16325 s&@docdir@&$docdir&g
16326 s&@infodir@&$infodir&g
16327 s&@localedir@&$localedir&g
16328 s&@mandir@&$mandir&g
16329 s&\\\${datarootdir}&$datarootdir&g' ;;
16330esac
16331_ACEOF
16332
16333# Neutralize VPATH when `$srcdir' = `.'.
16334# Shell code in configure.ac might set extrasub.
16335# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016336cat >>$CONFIG_STATUS <<_ACEOF
16337 sed "$ac_vpsub
16338$extrasub
16339_ACEOF
16340cat >>$CONFIG_STATUS <<\_ACEOF
16341:t
16342/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016343s&@configure_input@&$configure_input&;t t
16344s&@top_builddir@&$ac_top_builddir_sub&;t t
16345s&@srcdir@&$ac_srcdir&;t t
16346s&@abs_srcdir@&$ac_abs_srcdir&;t t
16347s&@top_srcdir@&$ac_top_srcdir&;t t
16348s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16349s&@builddir@&$ac_builddir&;t t
16350s&@abs_builddir@&$ac_abs_builddir&;t t
16351s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16352s&@INSTALL@&$ac_INSTALL&;t t
16353$ac_datarootdir_hack
16354" $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 -050016355
Theodore Ts'oe1052142006-10-21 21:46:47 -040016356test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16357 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16358 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16359 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16360which seems to be undefined. Please make sure it is defined." >&5
16361echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16362which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016363
Theodore Ts'oe1052142006-10-21 21:46:47 -040016364 rm -f "$tmp/stdin"
16365 case $ac_file in
16366 -) cat "$tmp/out"; rm -f "$tmp/out";;
16367 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16368 esac
16369 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016370
16371
Theodore Ts'oe1052142006-10-21 21:46:47 -040016372 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16373echo "$as_me: executing $ac_file commands" >&6;}
16374 ;;
16375 esac
16376
16377
16378 case $ac_file$ac_mode in
16379 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016380 for ac_file in $CONFIG_FILES; do
16381 # Support "outfile[:infile[:infile...]]"
16382 case "$ac_file" in
16383 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016384 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016385 # PO directories have a Makefile.in generated from Makefile.in.in.
16386 case "$ac_file" in */Makefile.in)
16387 # Adjust a relative srcdir.
16388 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16389 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16390 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16391 # In autoconf-2.13 it is called $ac_given_srcdir.
16392 # In autoconf-2.50 it is called $srcdir.
16393 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16394 case "$ac_given_srcdir" in
16395 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16396 /*) top_srcdir="$ac_given_srcdir" ;;
16397 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16398 esac
16399 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16400 rm -f "$ac_dir/POTFILES"
16401 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16402 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 -050016403 POMAKEFILEDEPS="POTFILES.in"
16404 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016405 # on $ac_dir but don't depend on user-specified configuration
16406 # parameters.
16407 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16408 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016409 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016410 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16411 fi
16412 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16413 # Hide the ALL_LINGUAS assigment from automake.
16414 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016415 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16416 else
16417 # The set of available languages was given in configure.in.
16418 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016419 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016420 # Compute POFILES
16421 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16422 # Compute UPDATEPOFILES
16423 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16424 # Compute DUMMYPOFILES
16425 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16426 # Compute GMOFILES
16427 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016428 case "$ac_given_srcdir" in
16429 .) srcdirpre= ;;
16430 *) srcdirpre='$(srcdir)/' ;;
16431 esac
16432 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016433 UPDATEPOFILES=
16434 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016435 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016436 for lang in $ALL_LINGUAS; do
16437 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016438 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16439 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016440 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016441 done
16442 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16443 # environment variable.
16444 INST_LINGUAS=
16445 if test -n "$ALL_LINGUAS"; then
16446 for presentlang in $ALL_LINGUAS; do
16447 useit=no
16448 if test "%UNSET%" != "$LINGUAS"; then
16449 desiredlanguages="$LINGUAS"
16450 else
16451 desiredlanguages="$ALL_LINGUAS"
16452 fi
16453 for desiredlang in $desiredlanguages; do
16454 # Use the presentlang catalog if desiredlang is
16455 # a. equal to presentlang, or
16456 # b. a variant of presentlang (because in this case,
16457 # presentlang can be used as a fallback for messages
16458 # which are not translated in the desiredlang catalog).
16459 case "$desiredlang" in
16460 "$presentlang"*) useit=yes;;
16461 esac
16462 done
16463 if test $useit = yes; then
16464 INST_LINGUAS="$INST_LINGUAS $presentlang"
16465 fi
16466 done
16467 fi
16468 CATALOGS=
16469 if test -n "$INST_LINGUAS"; then
16470 for lang in $INST_LINGUAS; do
16471 CATALOGS="$CATALOGS $lang.gmo"
16472 done
16473 fi
16474 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016475 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 -040016476 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16477 if test -f "$f"; then
16478 case "$f" in
16479 *.orig | *.bak | *~) ;;
16480 *) cat "$f" >> "$ac_dir/Makefile" ;;
16481 esac
16482 fi
16483 done
16484 fi
16485 ;;
16486 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016487 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016488
Theodore Ts'oe1052142006-10-21 21:46:47 -040016489 esac
16490done # for ac_tag
16491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016492
16493{ (exit 0); exit 0; }
16494_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016495chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016496ac_clean_files=$ac_clean_files_save
16497
16498
16499# configure is writing to config.log, and then calls config.status.
16500# config.status does its own redirection, appending to config.log.
16501# Unfortunately, on DOS this fails, as config.log is still kept open
16502# by configure, so config.status won't be able to write to it; its
16503# output is simply discarded. So we exec the FD to /dev/null,
16504# effectively closing config.log, so it can be properly (re)opened and
16505# appended to by config.status. When coming back to configure, we
16506# need to make the FD available again.
16507if test "$no_create" != yes; then
16508 ac_cs_success=:
16509 ac_config_status_args=
16510 test "$silent" = yes &&
16511 ac_config_status_args="$ac_config_status_args --quiet"
16512 exec 5>/dev/null
16513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16514 exec 5>>config.log
16515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16516 # would make configure fail if this is the last instruction.
16517 $ac_cs_success || { (exit 1); exit 1; }
16518fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016519
Theodore Ts'oee683a12005-02-05 15:53:56 -050016520if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi