blob: 6df394355344eb51ba1edcf3534109dbbb86c52a [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'oe1052142006-10-21 21:46:47 -0400687DEBUGFS_CMT
688IMAGER_CMT
689RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400690FSCK_PROG
691FSCK_MAN
692E2INITRD_PROG
693E2INITRD_MAN
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500694PKG_CONFIG
Theodore Ts'oe1052142006-10-21 21:46:47 -0400695DEVMAPPER_REQ
696DEVMAPPER_PC_LIBS
697DEVMAPPER_LIBS
698STATIC_DEVMAPPER_LIBS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500699STATIC_BLKID_DEVMAPPER_LIBS
Theodore Ts'o5610f992007-12-31 11:16:56 -0500700UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400701GETTEXT_PACKAGE
702PACKAGE
703VERSION
704SET_MAKE
705INSTALL_PROGRAM
706INSTALL_SCRIPT
707INSTALL_DATA
708MKINSTALLDIRS
709USE_NLS
710MSGFMT
711GMSGFMT
712XGETTEXT
713MSGMERGE
714RANLIB
715ALLOCA
716GLIBC21
717HAVE_POSIX_PRINTF
718HAVE_ASPRINTF
719HAVE_SNPRINTF
720HAVE_WPRINTF
721LIBICONV
722LTLIBICONV
723INTLBISON
724BUILD_INCLUDED_LIBINTL
725USE_INCLUDED_LIBINTL
726CATOBJEXT
727DATADIRNAME
728INSTOBJEXT
729GENCAT
730INTLOBJS
731INTL_LIBTOOL_SUFFIX_PREFIX
732INTLLIBS
733LIBINTL
734LTLIBINTL
735POSUB
736BINARY_TYPE
737LN
738LN_S
739MV
740CP
741RM
742CHMOD
743AWK
744SED
745PERL
746LDCONFIG
747AR
748STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530749MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400750BUILD_CC
751SIZEOF_SHORT
752SIZEOF_INT
753SIZEOF_LONG
754SIZEOF_LONG_LONG
755SOCKET_LIB
756DLOPEN_LIB
757UNI_DIFF_OPTS
758LINUX_CMT
759CYGWIN_CMT
760UNIX_CMT
761root_prefix
762root_bindir
763root_sbindir
764root_libdir
765root_sysconfdir
766LDFLAG_STATIC
767SS_DIR
768ET_DIR
769DO_TEST_SUITE
770INTL_FLAGS
771BUILD_CFLAGS
772BUILD_LDFLAGS
773LIBOBJS
774LTLIBOBJS'
775ac_subst_files='MCONFIG
776MAKEFILE_ELF
777MAKEFILE_BSDLIB
778MAKEFILE_PROFILE
779MAKEFILE_CHECKER
780MAKEFILE_LIBRARY
781ASM_TYPES_HEADER'
782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400788LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400789CPPFLAGS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500790CPP
791PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400792
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000793
794# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500795ac_init_help=
796ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000797# The variables have the same names as the options, with
798# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500799cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000800exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000801no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000810verbose=
811x_includes=NONE
812x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400819# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000828includedir='${prefix}/include'
829oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400830docdir='${datarootdir}/doc/${PACKAGE}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400841ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000842for ac_option
843do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400846 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000847 ac_prev=
848 continue
849 fi
850
Theodore Ts'oe1052142006-10-21 21:46:47 -0400851 case $ac_option in
852 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *) ac_optarg=yes ;;
854 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
Theodore Ts'oe1052142006-10-21 21:46:47 -0400858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000861
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500865 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000866
867 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500868 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500870 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000881
Theodore Ts'oe1052142006-10-21 21:46:47 -0400882 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000883 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500885 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000886
Theodore Ts'oe1052142006-10-21 21:46:47 -0400887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000894 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500895 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000896 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400897 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500898 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400900 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400901 eval enable_$ac_feature=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000912
913 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500914 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400916 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500917 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400919 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400920 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500929 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000941
942 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500943 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500945 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000946
Theodore Ts'oe1052142006-10-21 21:46:47 -0400947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500958 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500963 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500968 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500975 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000976
Theodore Ts'oe1052142006-10-21 21:46:47 -0400977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000982 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400983 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500987 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500992 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000993
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500999 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001013 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001014
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001018 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001025 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001032 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001049 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001050
Theodore Ts'oe1052142006-10-21 21:46:47 -04001051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001069 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001081
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001085 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001090 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001091
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001098
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001100 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001102 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001109
1110 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001111 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001117 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001118
1119 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001121 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001122 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001125 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001126 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001127
1128 --x)
1129 # Obsolete; use --with-x.
1130 with_x=yes ;;
1131
1132 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133 | --x-incl | --x-inc | --x-in | --x-i)
1134 ac_prev=x_includes ;;
1135 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001137 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001138
1139 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141 ac_prev=x_libraries ;;
1142 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 -*) { echo "$as_me: error: unrecognized option: $ac_option
1147Try \`$0 --help' for more information." >&2
1148 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149 ;;
1150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001157 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 export $ac_envvar ;;
1159
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001160 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001161 # FIXME: should be removed in autoconf 3.0.
1162 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001166 ;;
1167
1168 esac
1169done
1170
1171if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001172 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 { echo "$as_me: error: missing argument to $ac_option" >&2
1174 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001175fi
1176
Theodore Ts'oe1052142006-10-21 21:46:47 -04001177# Be sure to have absolute directory names.
1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001183 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001184 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001187 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001188 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1189 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001190done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001192# There might be people who depend on the old broken behavior: `$host'
1193# used to hold the argument of --host etc.
1194# FIXME: To remove some day.
1195build=$build_alias
1196host=$host_alias
1197target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001199# FIXME: To remove some day.
1200if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used." >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208fi
1209
1210ac_tool_prefix=
1211test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213test "$silent" = yes && exec 6>/dev/null
1214
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001215
Theodore Ts'oe1052142006-10-21 21:46:47 -04001216ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217ac_ls_di=`ls -di .` &&
1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 { echo "$as_me: error: Working directory cannot be determined" >&2
1220 { (exit 1); exit 1; }; }
1221test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 { echo "$as_me: error: pwd does not report name of working directory" >&2
1223 { (exit 1); exit 1; }; }
1224
1225
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226# Find the source files, if location was not specified.
1227if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001231$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$0" : 'X\(//\)[^/]' \| \
1233 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001235echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\).*/{
1249 s//\1/
1250 q
1251 }
1252 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001254 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001255 srcdir=..
1256 fi
1257else
1258 ac_srcdir_defaulted=no
1259fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001260if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001263 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001264fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001265ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266ac_abs_confdir=`(
1267 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001268 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001269 pwd)`
1270# When building in place, set srcdir=.
1271if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 srcdir=.
1273fi
1274# Remove unnecessary trailing slashes from srcdir.
1275# Double slashes in file names in object file debugging info
1276# mess up M-x gdb in Emacs.
1277case $srcdir in
1278*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279esac
1280for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001287#
1288# Report the --help message.
1289#
1290if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1293 cat <<_ACEOF
1294\`configure' configures this package to adapt to many kinds of systems.
1295
1296Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299VAR=VALUE. See below for descriptions of some of the useful variables.
1300
1301Defaults for the options are specified in brackets.
1302
1303Configuration:
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001314Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 [PREFIX]
1319
1320By default, \`make install' will install all the files in
1321\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323for instance \`--prefix=\$HOME'.
1324
1325For better control, use the options below.
1326
1327Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001347_ACEOF
1348
1349 cat <<\_ACEOF
1350
1351System types:
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354_ACEOF
1355fi
1356
1357if test -n "$ac_init_help"; then
1358
1359 cat <<\_ACEOF
1360
1361Optional Features:
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001364 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001365 --enable-compression enable EXPERIMENTAL compression support
1366 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001367 --enable-elf-shlibs select ELF shared libraries
1368 --enable-bsd-shlibs select BSD shared libraries
1369 --enable-profile build profiling libraries
1370 --enable-checker build checker libraries
1371 --enable-jbd-debug enable journal debugging
1372 --enable-blkid-debug enable blkid debugging
1373 --enable-testio-debug enable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001374 --disable-debugfs disable support of debugfs program
1375 --disable-imager disable support of e2image program
1376 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001377 --enable-fsck build fsck wrapper program
1378 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001379 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001380 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001381 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001382 --disable-nls do not use Native Language Support
1383 --disable-rpath do not hardcode runtime library paths
1384
1385Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001388 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001389 --with-cc=COMPILER select compiler to use
1390 --with-linker=LINKER select linker to use
1391 --with-ccopts=CCOPTS select compiler command line options
1392 --with-ldopts=LDOPTS select linker command line options
1393 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1394 --with-gnu-ld assume the C compiler uses GNU ld default=no
1395 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1396 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1397 --with-included-gettext use the GNU gettext library included here
1398 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1399 --without-libintl-prefix don't search for libintl in includedir and libdir
1400
1401Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001406 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001409 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001410 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001416ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001417fi
1418
1419if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001423 ac_builddir=.
1424
Theodore Ts'oe1052142006-10-21 21:46:47 -04001425case "$ac_dir" in
1426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 esac ;;
1435esac
1436ac_abs_top_builddir=$ac_pwd
1437ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438# for backward compatibility:
1439ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001440
1441case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001442 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001447 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1450 *) # Relative name.
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001454esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001456
Theodore Ts'oe1052142006-10-21 21:46:47 -04001457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465 else
1466 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001467 fi || ac_status=$?
1468 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469 done
1470fi
1471
Theodore Ts'oe1052142006-10-21 21:46:47 -04001472test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473if $ac_init_version; then
1474 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001475configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001476generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001477
Theodore Ts'oe1052142006-10-21 21:46:47 -04001478Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14792002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480This configure script is free software; the Free Software Foundation
1481gives unlimited permission to copy, distribute and modify it.
1482_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001483 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001484fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001485cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001486This file contains any messages produced by compilers while
1487running configure, to aid debugging if configure makes a mistake.
1488
1489It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001490generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001491
1492 $ $0 $@
1493
1494_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001495exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001496{
1497cat <<_ASUNAME
1498## --------- ##
1499## Platform. ##
1500## --------- ##
1501
1502hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507
1508/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510
1511/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1512/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1513/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001514/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001515/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1516/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1517/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1518
1519_ASUNAME
1520
1521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522for as_dir in $PATH
1523do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 echo "PATH: $as_dir"
1527done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001528IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001529
1530} >&5
1531
1532cat >&5 <<_ACEOF
1533
1534
1535## ----------- ##
1536## Core tests. ##
1537## ----------- ##
1538
1539_ACEOF
1540
1541
1542# Keep a trace of the command line.
1543# Strip out --no-create and --no-recursion so they do not pile up.
1544# Strip out --silent because we don't want to record it for future runs.
1545# Also quote any args containing shell meta-characters.
1546# Make two passes to allow for proper duplicate-argument suppression.
1547ac_configure_args=
1548ac_configure_args0=
1549ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001550ac_must_keep_next=false
1551for ac_pass in 1 2
1552do
1553 for ac_arg
1554 do
1555 case $ac_arg in
1556 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558 | -silent | --silent | --silen | --sile | --sil)
1559 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001560 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001561 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1562 esac
1563 case $ac_pass in
1564 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 2)
1566 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567 if test $ac_must_keep_next = true; then
1568 ac_must_keep_next=false # Got value, back to normal.
1569 else
1570 case $ac_arg in
1571 *=* | --config-cache | -C | -disable-* | --disable-* \
1572 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574 | -with-* | --with-* | -without-* | --without-* | --x)
1575 case "$ac_configure_args0 " in
1576 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1577 esac
1578 ;;
1579 -* ) ac_must_keep_next=true ;;
1580 esac
1581 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001582 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001583 ;;
1584 esac
1585 done
1586done
1587$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589
1590# When interrupted or exit'd, cleanup temporary files, and complete
1591# config.log. We remove comments because anyway the quotes in there
1592# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001593# WARNING: Use '\'' to represent an apostrophe within the trap.
1594# 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 -05001595trap 'exit_status=$?
1596 # Save into config.log some information that might help in debugging.
1597 {
1598 echo
1599
1600 cat <<\_ASBOX
1601## ---------------- ##
1602## Cache variables. ##
1603## ---------------- ##
1604_ASBOX
1605 echo
1606 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001607(
1608 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609 eval ac_val=\$$ac_var
1610 case $ac_val in #(
1611 *${as_nl}*)
1612 case $ac_var in #(
1613 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1614echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1615 esac
1616 case $ac_var in #(
1617 _ | IFS | as_nl) ;; #(
1618 *) $as_unset $ac_var ;;
1619 esac ;;
1620 esac
1621 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001622 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001625 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001629 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001631 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001632 esac |
1633 sort
1634)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001635 echo
1636
1637 cat <<\_ASBOX
1638## ----------------- ##
1639## Output variables. ##
1640## ----------------- ##
1641_ASBOX
1642 echo
1643 for ac_var in $ac_subst_vars
1644 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001645 eval ac_val=\$$ac_var
1646 case $ac_val in
1647 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 esac
1649 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001650 done | sort
1651 echo
1652
1653 if test -n "$ac_subst_files"; then
1654 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001655## ------------------- ##
1656## File substitutions. ##
1657## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001658_ASBOX
1659 echo
1660 for ac_var in $ac_subst_files
1661 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001662 eval ac_val=\$$ac_var
1663 case $ac_val in
1664 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665 esac
1666 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001667 done | sort
1668 echo
1669 fi
1670
1671 if test -s confdefs.h; then
1672 cat <<\_ASBOX
1673## ----------- ##
1674## confdefs.h. ##
1675## ----------- ##
1676_ASBOX
1677 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001678 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001679 echo
1680 fi
1681 test "$ac_signal" != 0 &&
1682 echo "$as_me: caught signal $ac_signal"
1683 echo "$as_me: exit $exit_status"
1684 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001687 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001688' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001689for ac_signal in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1691done
1692ac_signal=0
1693
1694# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001695rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001696
1697# Predefined preprocessor variables.
1698
1699cat >>confdefs.h <<_ACEOF
1700#define PACKAGE_NAME "$PACKAGE_NAME"
1701_ACEOF
1702
1703
1704cat >>confdefs.h <<_ACEOF
1705#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1706_ACEOF
1707
1708
1709cat >>confdefs.h <<_ACEOF
1710#define PACKAGE_VERSION "$PACKAGE_VERSION"
1711_ACEOF
1712
1713
1714cat >>confdefs.h <<_ACEOF
1715#define PACKAGE_STRING "$PACKAGE_STRING"
1716_ACEOF
1717
1718
1719cat >>confdefs.h <<_ACEOF
1720#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1721_ACEOF
1722
1723
1724# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001725# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001726if test -n "$CONFIG_SITE"; then
1727 set x "$CONFIG_SITE"
1728elif test "x$prefix" != xNONE; then
1729 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1730else
1731 set x "$ac_default_prefix/share/config.site" \
1732 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001733fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001734shift
1735for ac_site_file
1736do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001737 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001738 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1739echo "$as_me: loading site script $ac_site_file" >&6;}
1740 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001741 . "$ac_site_file"
1742 fi
1743done
1744
1745if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001746 # Some versions of bash will fail to source /dev/null (special
1747 # files actually), so we avoid doing that.
1748 if test -f "$cache_file"; then
1749 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1750echo "$as_me: loading cache $cache_file" >&6;}
1751 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001752 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1753 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001754 esac
1755 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001756else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001757 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1758echo "$as_me: creating cache $cache_file" >&6;}
1759 >$cache_file
1760fi
1761
1762# Check that the precious variables saved in the cache have kept the same
1763# value.
1764ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001765for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001766 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1767 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001768 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1769 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001770 case $ac_old_set,$ac_new_set in
1771 set,)
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1773echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1775 ,set)
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1777echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1779 ,);;
1780 *)
1781 if test "x$ac_old_val" != "x$ac_new_val"; then
1782 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1783echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1784 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1785echo "$as_me: former value: $ac_old_val" >&2;}
1786 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1787echo "$as_me: current value: $ac_new_val" >&2;}
1788 ac_cache_corrupted=:
1789 fi;;
1790 esac
1791 # Pass precious variables to config.status.
1792 if test "$ac_new_set" = set; then
1793 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001794 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001795 *) ac_arg=$ac_var=$ac_new_val ;;
1796 esac
1797 case " $ac_configure_args " in
1798 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1799 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1800 esac
1801 fi
1802done
1803if $ac_cache_corrupted; then
1804 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1805echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1806 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1807echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1808 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001809fi
1810
Theodore Ts'oe1052142006-10-21 21:46:47 -04001811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001827ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001828ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001832
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001833
1834
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001835ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001836for ac_dir in config "$srcdir"/config; do
1837 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/install-sh -c"
1840 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001841 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001842 ac_aux_dir=$ac_dir
1843 ac_install_sh="$ac_aux_dir/install.sh -c"
1844 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001845 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001846 ac_aux_dir=$ac_dir
1847 ac_install_sh="$ac_aux_dir/shtool install -c"
1848 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001849 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001850done
1851if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001852 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1853echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001854 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001855fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001856
1857# These three variables are undocumented and unsupported,
1858# and are intended to be withdrawn in a future Autoconf release.
1859# They can cause serious problems if a builder's source tree is in a directory
1860# whose full name contains unusual characters.
1861ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1862ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1863ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1864
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001865
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001866MCONFIG=./MCONFIG
1867
Theodore Ts'o74becf31997-04-26 14:37:06 +00001868BINARY_TYPE=bin
1869E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1870 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1871DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1872 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001873E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001874MONTH=`echo $DATE | awk -F- '{print $2}'`
1875YEAR=`echo $DATE | awk -F- '{print $3}'`
1876
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001877if expr $YEAR ">" 1900 > /dev/null ; then
1878 E2FSPROGS_YEAR=$YEAR
1879elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001880 E2FSPROGS_YEAR=19$YEAR
1881else
1882 E2FSPROGS_YEAR=20$YEAR
1883fi
1884
1885case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001886Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1887Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1888Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1889Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1890May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1891Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1892Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1893Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1894Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1895Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1896Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1897Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001898*) echo "Unknown month $MONTH??" ;;
1899esac
1900
Andreas Dilger927566a2006-11-12 19:41:25 -05001901base_ver=`echo $E2FSPROGS_VERSION | \
1902 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001903
1904date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1905
1906case $E2FSPROGS_VERSION in
1907*-WIP|pre-*)
Theodore Ts'od69e7e22008-02-15 21:28:48 -05001908 pre_vers=`echo $base_ver 0.01 - p | dc`
Andreas Dilger927566a2006-11-12 19:41:25 -05001909 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1910 ;;
1911*)
1912 E2FSPROGS_PKGVER="$base_ver"
1913 ;;
1914esac
1915
1916unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001917echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1918echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1919
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001920
1921
1922
Andreas Dilger927566a2006-11-12 19:41:25 -05001923
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001924# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001925$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1926 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1927echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001928 { (exit 1); exit 1; }; }
1929
Theodore Ts'oe1052142006-10-21 21:46:47 -04001930{ echo "$as_me:$LINENO: checking build system type" >&5
1931echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001932if test "${ac_cv_build+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001935 ac_build_alias=$build_alias
1936test "x$ac_build_alias" = x &&
1937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1938test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001939 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1940echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1941 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001942ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1944echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001945 { (exit 1); exit 1; }; }
1946
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001947fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001948{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1949echo "${ECHO_T}$ac_cv_build" >&6; }
1950case $ac_cv_build in
1951*-*-*) ;;
1952*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1953echo "$as_me: error: invalid value of canonical build" >&2;}
1954 { (exit 1); exit 1; }; };;
1955esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001956build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001957ac_save_IFS=$IFS; IFS='-'
1958set x $ac_cv_build
1959shift
1960build_cpu=$1
1961build_vendor=$2
1962shift; shift
1963# Remember, the first character of IFS is used to create $*,
1964# except with old shells:
1965build_os=$*
1966IFS=$ac_save_IFS
1967case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001968
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001969
Theodore Ts'oe1052142006-10-21 21:46:47 -04001970{ echo "$as_me:$LINENO: checking host system type" >&5
1971echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001972if test "${ac_cv_host+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001975 if test "x$host_alias" = x; then
1976 ac_cv_host=$ac_cv_build
1977else
1978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1980echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001981 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001982fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001983
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001984fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001985{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1986echo "${ECHO_T}$ac_cv_host" >&6; }
1987case $ac_cv_host in
1988*-*-*) ;;
1989*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1990echo "$as_me: error: invalid value of canonical host" >&2;}
1991 { (exit 1); exit 1; }; };;
1992esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001993host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001994ac_save_IFS=$IFS; IFS='-'
1995set x $ac_cv_host
1996shift
1997host_cpu=$1
1998host_vendor=$2
1999shift; shift
2000# Remember, the first character of IFS is used to create $*,
2001# except with old shells:
2002host_os=$*
2003IFS=$ac_save_IFS
2004case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002005
2006
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002007
Theodore Ts'oe1052142006-10-21 21:46:47 -04002008# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002009if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002010 withval=$with_diet_libc; CC="diet cc -nostdinc"
2011{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2012echo "${ECHO_T}CC=$CC" >&6; }
2013fi
2014
2015# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002016if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002017 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2018echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002019CC=$withval
2020else
2021 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002022{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2023echo "${ECHO_T}CC defaults to $CC" >&6; }
2024fi
2025export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002027ac_ext=c
2028ac_cpp='$CPP $CPPFLAGS'
2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2034set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002037if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002039else
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002049 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 -05002050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054done
2055done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002056IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002057
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002058fi
2059fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002060CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002061if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002062 { echo "$as_me:$LINENO: result: $CC" >&5
2063echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002064else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002065 { echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002067fi
2068
Theodore Ts'oe1052142006-10-21 21:46:47 -04002069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002070fi
2071if test -z "$ac_cv_prog_CC"; then
2072 ac_ct_CC=$CC
2073 # Extract the first word of "gcc", so it can be a program name with args.
2074set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002075{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082else
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002089 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 -05002090 ac_cv_prog_ac_ct_CC="gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2093 fi
2094done
2095done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002096IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002097
2098fi
2099fi
2100ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002104else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002105 { echo "$as_me:$LINENO: result: no" >&5
2106echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002107fi
2108
Theodore Ts'oe1052142006-10-21 21:46:47 -04002109 if test "x$ac_ct_CC" = x; then
2110 CC=""
2111 else
2112 case $cross_compiling:$ac_tool_warned in
2113yes:)
2114{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2115whose name does not start with the host triplet. If you think this
2116configuration is useful to you, please write to autoconf@gnu.org." >&5
2117echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2118whose name does not start with the host triplet. If you think this
2119configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2120ac_tool_warned=yes ;;
2121esac
2122 CC=$ac_ct_CC
2123 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002124else
2125 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002126fi
2127
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002128if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002129 if test -n "$ac_tool_prefix"; then
2130 # 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 -05002131set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002134if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002136else
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002146 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 -05002147 ac_cv_prog_CC="${ac_tool_prefix}cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2150 fi
2151done
2152done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002153IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002154
2155fi
2156fi
2157CC=$ac_cv_prog_CC
2158if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002159 { echo "$as_me:$LINENO: result: $CC" >&5
2160echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002161else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002162 { echo "$as_me:$LINENO: result: no" >&5
2163echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002164fi
2165
Theodore Ts'oe1052142006-10-21 21:46:47 -04002166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002167 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002168fi
2169if test -z "$CC"; then
2170 # Extract the first word of "cc", so it can be a program name with args.
2171set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002174if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2179else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002180 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002187 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 -05002188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189 ac_prog_rejected=yes
2190 continue
2191 fi
2192 ac_cv_prog_CC="cc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196done
2197done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002198IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002199
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002200if test $ac_prog_rejected = yes; then
2201 # We found a bogon in the path, so make sure we never use it.
2202 set dummy $ac_cv_prog_CC
2203 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002204 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002205 # We chose a different compiler from the bogus one.
2206 # However, it has the same basename, so the bogon will be chosen
2207 # first if we set CC to just the basename; use the full file name.
2208 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002210 fi
2211fi
2212fi
2213fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002214CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002215if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002216 { echo "$as_me:$LINENO: result: $CC" >&5
2217echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002218else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002219 { echo "$as_me:$LINENO: result: no" >&5
2220echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002221fi
2222
Theodore Ts'oe1052142006-10-21 21:46:47 -04002223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002224fi
2225if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002227 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002228 do
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002233if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002235else
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2238else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002245 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 -05002246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2249 fi
2250done
2251done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002252IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002253
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002254fi
2255fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002256CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002257if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002258 { echo "$as_me:$LINENO: result: $CC" >&5
2259echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002260else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002261 { echo "$as_me:$LINENO: result: no" >&5
2262echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002263fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002264
Theodore Ts'oe1052142006-10-21 21:46:47 -04002265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002266 test -n "$CC" && break
2267 done
2268fi
2269if test -z "$CC"; then
2270 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002271 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002272do
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280 if test -n "$ac_ct_CC"; then
2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282else
2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002289 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 -05002290 ac_cv_prog_ac_ct_CC="$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002293 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002294done
2295done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002296IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002297
2298fi
2299fi
2300ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002304else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002305 { echo "$as_me:$LINENO: result: no" >&5
2306echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002307fi
2308
Theodore Ts'oe1052142006-10-21 21:46:47 -04002309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002310 test -n "$ac_ct_CC" && break
2311done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002312
Theodore Ts'oe1052142006-10-21 21:46:47 -04002313 if test "x$ac_ct_CC" = x; then
2314 CC=""
2315 else
2316 case $cross_compiling:$ac_tool_warned in
2317yes:)
2318{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319whose name does not start with the host triplet. If you think this
2320configuration is useful to you, please write to autoconf@gnu.org." >&5
2321echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322whose name does not start with the host triplet. If you think this
2323configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2324ac_tool_warned=yes ;;
2325esac
2326 CC=$ac_ct_CC
2327 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002328fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002330fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002331
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002333test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: no acceptable C compiler found in \$PATH
2336See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338
2339# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002340echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002341ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002342{ (ac_try="$ac_compiler --version >&5"
2343case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346esac
2347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002352{ (ac_try="$ac_compiler -v >&5"
2353case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002362{ (ac_try="$ac_compiler -V >&5"
2363case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366esac
2367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372
2373cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h. */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h. */
2379
2380int
2381main ()
2382{
2383
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388ac_clean_files_save=$ac_clean_files
2389ac_clean_files="$ac_clean_files a.out a.exe b.out"
2390# Try to create an executable without -o first, disregard a.out.
2391# It will help us diagnose broken compilers, and finding out an intuition
2392# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002393{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2394echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002395ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396#
2397# List of possible output files, starting from the most likely.
2398# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2399# only as a last resort. b.out is created by i960 compilers.
2400ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401#
2402# The IRIX 6 linker writes into existing files which may not be
2403# executable, retaining their permissions. Remove them first so a
2404# subsequent execution test works.
2405ac_rmfiles=
2406for ac_file in $ac_files
2407do
2408 case $ac_file in
2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2411 esac
2412done
2413rm -f $ac_rmfiles
2414
2415if { (ac_try="$ac_link_default"
2416case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2426# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2427# in a Makefile. We should not override ac_cv_exeext if it was cached,
2428# so that the user can short-circuit this test for compilers unknown to
2429# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002430for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431do
2432 test -f "$ac_file" || continue
2433 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002435 ;;
2436 [ab].out )
2437 # We found the default executable, but exeext='' is most
2438 # certainly right.
2439 break;;
2440 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2442 then :; else
2443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 fi
2445 # We set ac_cv_exeext here because the later test for it is not
2446 # safe: cross compilers may not add the suffix if given an `-o'
2447 # argument, so we may need to know it at that point already.
2448 # Even if this section looks crufty: it has the advantage of
2449 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450 break;;
2451 * )
2452 break;;
2453 esac
2454done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002455test "$ac_cv_exeext" = no && ac_cv_exeext=
2456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002458 ac_file=''
2459fi
2460
2461{ echo "$as_me:$LINENO: result: $ac_file" >&5
2462echo "${ECHO_T}$ac_file" >&6; }
2463if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464 echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2468See \`config.log' for more details." >&5
2469echo "$as_me: error: C compiler cannot create executables
2470See \`config.log' for more details." >&2;}
2471 { (exit 77); exit 77; }; }
2472fi
2473
2474ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002475
Theodore Ts'oe1052142006-10-21 21:46:47 -04002476# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002478{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481# If not cross compiling, check that we can run a simple program.
2482if test "$cross_compiling" != yes; then
2483 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002484 { (case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487esac
2488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2493 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002494 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002495 if test "$cross_compiling" = maybe; then
2496 cross_compiling=yes
2497 else
2498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499If you meant to cross compile, use \`--host'.
2500See \`config.log' for more details." >&5
2501echo "$as_me: error: cannot run C compiled programs.
2502If you meant to cross compile, use \`--host'.
2503See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2505 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002506 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002507fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508{ echo "$as_me:$LINENO: result: yes" >&5
2509echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2517{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002519
Theodore Ts'oe1052142006-10-21 21:46:47 -04002520{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2522if { (ac_try="$ac_link"
2523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2534# work properly (i.e., refer to `conftest.exe'), while it won't with
2535# `rm'.
2536for ac_file in conftest.exe conftest conftest.*; do
2537 test -f "$ac_file" || continue
2538 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541 break;;
2542 * ) break;;
2543 esac
2544done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002545else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002546 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2547See \`config.log' for more details." >&5
2548echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2549See \`config.log' for more details." >&2;}
2550 { (exit 1); exit 1; }; }
2551fi
2552
2553rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002554{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2555echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002556
2557rm -f conftest.$ac_ext
2558EXEEXT=$ac_cv_exeext
2559ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002560{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2561echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002562if test "${ac_cv_objext+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565 cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h. */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h. */
2571
2572int
2573main ()
2574{
2575
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002581if { (ac_try="$ac_compile"
2582case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002591 for ac_file in conftest.o conftest.obj conftest.*; do
2592 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002593 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2596 break;;
2597 esac
2598done
2599else
2600 echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604See \`config.log' for more details." >&5
2605echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2608fi
2609
2610rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002612{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002614OBJEXT=$ac_cv_objext
2615ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002616{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002618if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h. */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h. */
2627
2628int
2629main ()
2630{
2631#ifndef __GNUC__
2632 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002633#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002635 ;
2636 return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002640if { (ac_try="$ac_compile"
2641case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644esac
2645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002647 ac_status=$?
2648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002652 (exit $ac_status); } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002656 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
Theodore Ts'oe1052142006-10-21 21:46:47 -04002661 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002662fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002663
2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002665ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002668{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2669echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002670GCC=`test $ac_compiler_gnu = yes && echo yes`
2671ac_test_CFLAGS=${CFLAGS+set}
2672ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002673{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002675if test "${ac_cv_prog_cc_g+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002677else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002678 ac_save_c_werror_flag=$ac_c_werror_flag
2679 ac_c_werror_flag=yes
2680 ac_cv_prog_cc_g=no
2681 CFLAGS="-g"
2682 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002683/* confdefs.h. */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
2687/* end confdefs.h. */
2688
2689int
2690main ()
2691{
2692
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002698if { (ac_try="$ac_compile"
2699case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002710 (exit $ac_status); } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002714 ac_cv_prog_cc_g=yes
2715else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002716 echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002718
Theodore Ts'oe1052142006-10-21 21:46:47 -04002719 CFLAGS=""
2720 cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h. */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h. */
2726
2727int
2728main ()
2729{
2730
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext
2736if { (ac_try="$ac_compile"
2737case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740esac
2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compile") 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002752 :
2753else
2754 echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 ac_c_werror_flag=$ac_save_c_werror_flag
2758 CFLAGS="-g"
2759 cat >conftest.$ac_ext <<_ACEOF
2760/* confdefs.h. */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h. */
2765
2766int
2767main ()
2768{
2769
2770 ;
2771 return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (ac_try="$ac_compile"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002791 ac_cv_prog_cc_g=yes
2792else
2793 echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002798
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002801
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803fi
2804
2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 ac_c_werror_flag=$ac_save_c_werror_flag
2807fi
2808{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002810if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002811 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002812elif test $ac_cv_prog_cc_g = yes; then
2813 if test "$GCC" = yes; then
2814 CFLAGS="-g -O2"
2815 else
2816 CFLAGS="-g"
2817 fi
2818else
2819 if test "$GCC" = yes; then
2820 CFLAGS="-O2"
2821 else
2822 CFLAGS=
2823 fi
2824fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002825{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2826echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2827if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002830 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002831ac_save_CC=$CC
2832cat >conftest.$ac_ext <<_ACEOF
2833/* confdefs.h. */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h. */
2838#include <stdarg.h>
2839#include <stdio.h>
2840#include <sys/types.h>
2841#include <sys/stat.h>
2842/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2843struct buf { int x; };
2844FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845static char *e (p, i)
2846 char **p;
2847 int i;
2848{
2849 return p[i];
2850}
2851static char *f (char * (*g) (char **, int), char **p, ...)
2852{
2853 char *s;
2854 va_list v;
2855 va_start (v,p);
2856 s = g (p, va_arg (v,int));
2857 va_end (v);
2858 return s;
2859}
2860
2861/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2862 function prototypes and stuff, but not '\xHH' hex character constants.
2863 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2866 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002867 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871 inside strings and character constants. */
2872#define FOO(x) 'x'
2873int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002875int test (int i, double x);
2876struct s1 {int (*f) (int a);};
2877struct s2 {int (*f) (double a);};
2878int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2879int argc;
2880char **argv;
2881int
2882main ()
2883{
2884return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 ;
2886 return 0;
2887}
2888_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002889for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891do
2892 CC="$ac_save_CC $ac_arg"
2893 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002894if { (ac_try="$ac_compile"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002901 ac_status=$?
2902 grep -v '^ *+' conftest.er1 >conftest.err
2903 rm -f conftest.er1
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002906 (exit $ac_status); } && {
2907 test -z "$ac_c_werror_flag" ||
2908 test ! -s conftest.err
2909 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002910 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002911else
2912 echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
Theodore Ts'oe1052142006-10-21 21:46:47 -04002915
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917
2918rm -f core conftest.err conftest.$ac_objext
2919 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002921rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922CC=$ac_save_CC
2923
2924fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002925# AC_CACHE_VAL
2926case "x$ac_cv_prog_cc_c89" in
2927 x)
2928 { echo "$as_me:$LINENO: result: none needed" >&5
2929echo "${ECHO_T}none needed" >&6; } ;;
2930 xno)
2931 { echo "$as_me:$LINENO: result: unsupported" >&5
2932echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002934 CC="$CC $ac_cv_prog_cc_c89"
2935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2936echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937esac
2938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940ac_ext=c
2941ac_cpp='$CPP $CPPFLAGS'
2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002946ac_ext=c
2947ac_cpp='$CPP $CPPFLAGS'
2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002951{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2952echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002953# On Suns, sometimes $CPP names a directory.
2954if test -n "$CPP" && test -d "$CPP"; then
2955 CPP=
2956fi
2957if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958 if test "${ac_cv_prog_CPP+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961 # Double quotes because CPP needs to be expanded
2962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2963 do
2964 ac_preproc_ok=false
2965for ac_c_preproc_warn_flag in '' yes
2966do
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002971 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972 # not just through cpp. "Syntax error" is here to catch this case.
2973 cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
2979#ifdef __STDC__
2980# include <limits.h>
2981#else
2982# include <assert.h>
2983#endif
2984 Syntax error
2985_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002986if { (ac_try="$ac_cpp conftest.$ac_ext"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002998 (exit $ac_status); } >/dev/null && {
2999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003002 :
3003else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003004 echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007 # Broken: fails on valid input.
3008continue
3009fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011rm -f conftest.err conftest.$ac_ext
3012
Theodore Ts'oe1052142006-10-21 21:46:47 -04003013 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003014 # can be detected and how.
3015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021#include <ac_nonexistent.h>
3022_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003023if { (ac_try="$ac_cpp conftest.$ac_ext"
3024case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003035 (exit $ac_status); } >/dev/null && {
3036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039 # Broken: success on invalid input.
3040continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 # Passes both tests.
3046ac_preproc_ok=:
3047break
3048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050rm -f conftest.err conftest.$ac_ext
3051
3052done
3053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054rm -f conftest.err conftest.$ac_ext
3055if $ac_preproc_ok; then
3056 break
3057fi
3058
3059 done
3060 ac_cv_prog_CPP=$CPP
3061
3062fi
3063 CPP=$ac_cv_prog_CPP
3064else
3065 ac_cv_prog_CPP=$CPP
3066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003067{ echo "$as_me:$LINENO: result: $CPP" >&5
3068echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003069ac_preproc_ok=false
3070for ac_c_preproc_warn_flag in '' yes
3071do
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084#ifdef __STDC__
3085# include <limits.h>
3086#else
3087# include <assert.h>
3088#endif
3089 Syntax error
3090_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003091if { (ac_try="$ac_cpp conftest.$ac_ext"
3092case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107 :
3108else
3109 echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 # Broken: fails on valid input.
3113continue
3114fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116rm -f conftest.err conftest.$ac_ext
3117
Theodore Ts'oe1052142006-10-21 21:46:47 -04003118 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126#include <ac_nonexistent.h>
3127_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003128if { (ac_try="$ac_cpp conftest.$ac_ext"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003140 (exit $ac_status); } >/dev/null && {
3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144 # Broken: success on invalid input.
3145continue
3146else
3147 echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 # Passes both tests.
3151ac_preproc_ok=:
3152break
3153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003154
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155rm -f conftest.err conftest.$ac_ext
3156
3157done
3158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159rm -f conftest.err conftest.$ac_ext
3160if $ac_preproc_ok; then
3161 :
3162else
3163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164See \`config.log' for more details." >&5
3165echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166See \`config.log' for more details." >&2;}
3167 { (exit 1); exit 1; }; }
3168fi
3169
3170ac_ext=c
3171ac_cpp='$CPP $CPPFLAGS'
3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175
3176
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003177# Check whether --with-linker was given.
3178if test "${with_linker+set}" = set; then
3179 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3180echo "${ECHO_T}LD=$withval" >&6; }
3181LD=$withval
3182else
3183 if test -z "$LD" ; then LD=$CC; fi
3184{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3185echo "${ECHO_T}LD defaults to $LD" >&6; }
3186fi
3187export LD
3188
3189
3190# Check whether --with-ccopts was given.
3191if test "${with_ccopts+set}" = set; then
3192 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3193echo "${ECHO_T}CCOPTS is $withval" >&6; }
3194CFLAGS=$withval
3195fi
3196
3197
Theodore Ts'oe1052142006-10-21 21:46:47 -04003198{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3199echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3200if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003203 # Extract the first word of "grep ggrep" to use in msg output
3204if test -z "$GREP"; then
3205set dummy grep ggrep; ac_prog_name=$2
3206if test "${ac_cv_path_GREP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 ac_path_GREP_found=false
3210# Loop through the user's path and test for each of PROGNAME-LIST
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_prog in grep ggrep; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003220 # Check for GNU ac_path_GREP and select it if it is found.
3221 # Check for GNU $ac_path_GREP
3222case `"$ac_path_GREP" --version 2>&1` in
3223*GNU*)
3224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3225*)
3226 ac_count=0
3227 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3228 while :
3229 do
3230 cat "conftest.in" "conftest.in" >"conftest.tmp"
3231 mv "conftest.tmp" "conftest.in"
3232 cp "conftest.in" "conftest.nl"
3233 echo 'GREP' >> "conftest.nl"
3234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236 ac_count=`expr $ac_count + 1`
3237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3238 # Best one so far, save it but keep looking for a better one
3239 ac_cv_path_GREP="$ac_path_GREP"
3240 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003241 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003242 # 10*(2^10) chars as input seems more than enough
3243 test $ac_count -gt 10 && break
3244 done
3245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246esac
3247
3248
3249 $ac_path_GREP_found && break 3
3250 done
3251done
3252
3253done
3254IFS=$as_save_IFS
3255
3256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003257fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003258
3259GREP="$ac_cv_path_GREP"
3260if test -z "$GREP"; then
3261 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263 { (exit 1); exit 1; }; }
3264fi
3265
3266else
3267 ac_cv_path_GREP=$GREP
3268fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003269
3270
Theodore Ts'oe1052142006-10-21 21:46:47 -04003271fi
3272{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3273echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3274 GREP="$ac_cv_path_GREP"
3275
3276
3277{ echo "$as_me:$LINENO: checking for egrep" >&5
3278echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3279if test "${ac_cv_path_EGREP+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283 then ac_cv_path_EGREP="$GREP -E"
3284 else
3285 # Extract the first word of "egrep" to use in msg output
3286if test -z "$EGREP"; then
3287set dummy egrep; ac_prog_name=$2
3288if test "${ac_cv_path_EGREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291 ac_path_EGREP_found=false
3292# Loop through the user's path and test for each of PROGNAME-LIST
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3295do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_prog in egrep; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003302 # Check for GNU ac_path_EGREP and select it if it is found.
3303 # Check for GNU $ac_path_EGREP
3304case `"$ac_path_EGREP" --version 2>&1` in
3305*GNU*)
3306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3307*)
3308 ac_count=0
3309 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3310 while :
3311 do
3312 cat "conftest.in" "conftest.in" >"conftest.tmp"
3313 mv "conftest.tmp" "conftest.in"
3314 cp "conftest.in" "conftest.nl"
3315 echo 'EGREP' >> "conftest.nl"
3316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3318 ac_count=`expr $ac_count + 1`
3319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3320 # Best one so far, save it but keep looking for a better one
3321 ac_cv_path_EGREP="$ac_path_EGREP"
3322 ac_path_EGREP_max=$ac_count
3323 fi
3324 # 10*(2^10) chars as input seems more than enough
3325 test $ac_count -gt 10 && break
3326 done
3327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3328esac
3329
3330
3331 $ac_path_EGREP_found && break 3
3332 done
3333done
3334
3335done
3336IFS=$as_save_IFS
3337
3338
3339fi
3340
3341EGREP="$ac_cv_path_EGREP"
3342if test -z "$EGREP"; then
3343 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345 { (exit 1); exit 1; }; }
3346fi
3347
3348else
3349 ac_cv_path_EGREP=$EGREP
3350fi
3351
3352
3353 fi
3354fi
3355{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3356echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3357 EGREP="$ac_cv_path_EGREP"
3358
3359
3360{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003362if test "${ac_cv_header_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365 cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
3371#include <stdlib.h>
3372#include <stdarg.h>
3373#include <string.h>
3374#include <float.h>
3375
3376int
3377main ()
3378{
3379
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003385if { (ac_try="$ac_compile"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003401 ac_cv_header_stdc=yes
3402else
3403 echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
Theodore Ts'oe1052142006-10-21 21:46:47 -04003406 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003408
3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003410
3411if test $ac_cv_header_stdc = yes; then
3412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
3419#include <string.h>
3420
3421_ACEOF
3422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423 $EGREP "memchr" >/dev/null 2>&1; then
3424 :
3425else
3426 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003427fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003428rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003429
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003430fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431
3432if test $ac_cv_header_stdc = yes; then
3433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434 cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440#include <stdlib.h>
3441
3442_ACEOF
3443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444 $EGREP "free" >/dev/null 2>&1; then
3445 :
3446else
3447 ac_cv_header_stdc=no
3448fi
3449rm -f conftest*
3450
3451fi
3452
3453if test $ac_cv_header_stdc = yes; then
3454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455 if test "$cross_compiling" = yes; then
3456 :
3457else
3458 cat >conftest.$ac_ext <<_ACEOF
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
3464#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003465#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003466#if ((' ' & 0x0FF) == 0x020)
3467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3469#else
3470# define ISLOWER(c) \
3471 (('a' <= (c) && (c) <= 'i') \
3472 || ('j' <= (c) && (c) <= 'r') \
3473 || ('s' <= (c) && (c) <= 'z'))
3474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3475#endif
3476
3477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3478int
3479main ()
3480{
3481 int i;
3482 for (i = 0; i < 256; i++)
3483 if (XOR (islower (i), ISLOWER (i))
3484 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003485 return 2;
3486 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487}
3488_ACEOF
3489rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003490if { (ac_try="$ac_link"
3491case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
3495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003500 { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503esac
3504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 :
3510else
3511 echo "$as_me: program exited with status $ac_status" >&5
3512echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515( exit $ac_status )
3516ac_cv_header_stdc=no
3517fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3519fi
3520
3521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003522fi
3523fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003524{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003526if test $ac_cv_header_stdc = yes; then
3527
3528cat >>confdefs.h <<\_ACEOF
3529#define STDC_HEADERS 1
3530_ACEOF
3531
3532fi
3533
3534# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545 inttypes.h stdint.h unistd.h
3546do
3547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003548{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553 cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h. */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */
3559$ac_includes_default
3560
3561#include <$ac_header>
3562_ACEOF
3563rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003564if { (ac_try="$ac_compile"
3565case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003580 eval "$as_ac_Header=yes"
3581else
3582 echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
Theodore Ts'oe1052142006-10-21 21:46:47 -04003585 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587
3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590ac_res=`eval echo '${'$as_ac_Header'}'`
3591 { echo "$as_me:$LINENO: result: $ac_res" >&5
3592echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003593if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594 cat >>confdefs.h <<_ACEOF
3595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596_ACEOF
3597
3598fi
3599
3600done
3601
3602
3603if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003604 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3605echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003609{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3610echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003611else
3612 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003613{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3614echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003615cat >conftest.$ac_ext <<_ACEOF
3616/* confdefs.h. */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3620/* end confdefs.h. */
3621$ac_includes_default
3622#include <linux/fs.h>
3623_ACEOF
3624rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003625if { (ac_try="$ac_compile"
3626case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629esac
3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003641 ac_header_compiler=yes
3642else
3643 echo "$as_me: failed program was:" >&5
3644sed 's/^/| /' conftest.$ac_ext >&5
3645
Theodore Ts'oe1052142006-10-21 21:46:47 -04003646 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003647fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003648
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652
3653# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003654{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3655echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003656cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h. */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h. */
3662#include <linux/fs.h>
3663_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003664if { (ac_try="$ac_cpp conftest.$ac_ext"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003676 (exit $ac_status); } >/dev/null && {
3677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003680 ac_header_preproc=yes
3681else
3682 echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ac_header_preproc=no
3686fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003688rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003691
3692# So? What about this header?
3693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3694 yes:no: )
3695 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3698echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3699 ac_header_preproc=yes
3700 ;;
3701 no:yes:* )
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3703echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3705echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3707echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3709echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3711echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3713echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003715 ;;
3716esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003717{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3718echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003719if test "${ac_cv_header_linux_fs_h+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 ac_cv_header_linux_fs_h=$ac_header_preproc
3723fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003724{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3725echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003726
3727fi
3728if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003729 linux_headers=yes
3730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003731 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003732fi
3733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003734
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003735if test "$linux_headers" != yes; then
3736 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003737fi
3738
Theodore Ts'oe1052142006-10-21 21:46:47 -04003739{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3740echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003741if test "$GCC" = yes
3742then
3743 case "$host_cpu" in
3744 alpha) addcflags="-mieee" ;;
3745 esac
3746fi
3747if test "x$addcflags" != x
3748then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003749 { echo "$as_me:$LINENO: result: $addcflags" >&5
3750echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003751 CFLAGS="$addcflags $CFLAGS"
3752else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003753 { echo "$as_me:$LINENO: result: (none)" >&5
3754echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003755fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003756LIB_EXT=.a
3757STATIC_LIB_EXT=.a
3758PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003759
Theodore Ts'oe1052142006-10-21 21:46:47 -04003760# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003761if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003762 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3763echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003764LDFLAGS=$withval
3765else
3766 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003767fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003768
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769
3770# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003771if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003772 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003773else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003774 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003775fi
3776# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003777if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003778 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003779then
3780 MAINTAINER_CMT=#
3781 echo "Disabling maintainer mode"
3782else
3783 MAINTAINER_CMT=
3784 echo "Enabling maintainer mode"
3785fi
3786
3787else
3788 MAINTAINER_CMT=#
3789echo "Disabling maintainer mode by default"
3790
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
3798 echo "Disabling compression support"
3799else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003800 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003801#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003802_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003803
3804 echo "Enabling compression support"
3805 echo "WARNING: Compression support is experimental"
3806fi
3807
3808else
3809 echo "Disabling compression support by default"
3810
Theodore Ts'oe1052142006-10-21 21:46:47 -04003811fi
3812
3813# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003814if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003815 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003816then
3817 HTREE_CMT=#
3818 echo "Disabling htree directory support"
3819else
3820 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003821 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003822#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003823_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003824
3825 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003826fi
3827
3828else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003829 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003830cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003831#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003832_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003833
3834echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003835
Theodore Ts'oe1052142006-10-21 21:46:47 -04003836fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003837
Theodore Ts'oe1052142006-10-21 21:46:47 -04003838
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003839E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003840# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003841if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003842 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003843then
3844 ELF_CMT=#
3845 MAKEFILE_ELF=/dev/null
3846 echo "Disabling ELF shared libraries"
3847else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003848 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003849 ELF_CMT=
3850 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003851 case "$host_os" in
3852 solaris2.*)
3853 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3854 ;;
3855 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003856 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003857 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003858 echo "Enabling ELF shared libraries"
3859fi
3860
3861else
3862 MAKEFILE_ELF=/dev/null
3863ELF_CMT=#
3864echo "Disabling ELF shared libraries by default"
3865
Theodore Ts'oe1052142006-10-21 21:46:47 -04003866fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003867
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003868
Theodore Ts'oe1052142006-10-21 21:46:47 -04003869
3870# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003871if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003872 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003873then
3874 BSDLIB_CMT=#
3875 MAKEFILE_BSDLIB=/dev/null
3876 echo "Disabling BSD shared libraries"
3877else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003878 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003879 BSDLIB_CMT=
3880 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003881 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003882 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003883 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003884 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3885 LIB_EXT=.dylib
3886 ;;
3887 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003888 echo "Enabling BSD shared libraries"
3889fi
3890
3891else
3892 MAKEFILE_BSDLIB=/dev/null
3893BSDLIB_CMT=#
3894echo "Disabling BSD shared libraries by default"
3895
Theodore Ts'oe1052142006-10-21 21:46:47 -04003896fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003897
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003898
Theodore Ts'oe1052142006-10-21 21:46:47 -04003899
3900# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003901if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003902 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003903then
3904 PROFILE_CMT=#
3905 MAKEFILE_PROFILE=/dev/null
3906 echo "Disabling profiling libraries"
3907else
3908 PROFILE_CMT=
3909 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3910 PROFILED_LIB_EXT=_p.a
3911 echo "Building profiling libraries"
3912fi
3913
3914else
3915 PROFILE_CMT=#
3916MAKEFILE_PROFILE=/dev/null
3917echo "Disabling profiling libraries by default"
3918
Theodore Ts'oe1052142006-10-21 21:46:47 -04003919fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003920
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003921
Theodore Ts'oe1052142006-10-21 21:46:47 -04003922
3923# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003924if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003925 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003926then
3927 CHECKER_CMT=#
3928 MAKEFILE_CHECKER=/dev/null
3929 echo "Disabling checker libraries"
3930else
3931 CHECKER_CMT=
3932 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3933 echo "Building checker libraries"
3934fi
3935
3936else
3937 CHECKER_CMT=#
3938MAKEFILE_CHECKER=/dev/null
3939echo "Disabling checker libraries by default"
3940
Theodore Ts'oe1052142006-10-21 21:46:47 -04003941fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003942
3943
3944
3945
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003946
Theodore Ts'oe1052142006-10-21 21:46:47 -04003947
3948# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003949if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003950 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003951then
3952 echo "Disabling journal debugging"
3953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003954 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003955#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003956_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003957
3958 echo "Enabling journal debugging"
3959fi
3960
3961else
3962 echo "Disabling journal debugging by default"
3963
Theodore Ts'oe1052142006-10-21 21:46:47 -04003964fi
3965
3966# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003967if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003968 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003969then
3970 echo "Disabling blkid debugging"
3971else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003972 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003973#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003974_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003975
3976 echo "Enabling blkid debugging"
3977fi
3978
3979else
3980 echo "Disabling blkid debugging by default"
3981
Theodore Ts'oe1052142006-10-21 21:46:47 -04003982fi
3983
3984# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003985if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003986 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003987then
3988 echo "Disabling testio debugging"
3989else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003990 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003991#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003992_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003993
3994 echo "Enabling testio debugging"
3995fi
3996
3997else
3998 echo "Disabling testio debugging by default"
3999
Theodore Ts'oe1052142006-10-21 21:46:47 -04004000fi
4001
Theodore Ts'oe1052142006-10-21 21:46:47 -04004002# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004003if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004004 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004005then
4006 echo "Disabling debugfs support"
4007 DEBUGFS_CMT="#"
4008else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004009 DEBUGFS_CMT=
4010 echo "Enabling debugfs support"
4011fi
4012
4013else
4014 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004015DEBUGFS_CMT=
4016
Theodore Ts'oe1052142006-10-21 21:46:47 -04004017fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004018
Theodore Ts'oe1052142006-10-21 21:46:47 -04004019
4020# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004021if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004022 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004023then
4024 echo "Disabling e2image support"
4025 IMAGER_CMT="#"
4026else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004027 IMAGER_CMT=
4028 echo "Enabling e2image support"
4029fi
4030
4031else
4032 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004033IMAGER_CMT=
4034
Theodore Ts'oe1052142006-10-21 21:46:47 -04004035fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004036
Theodore Ts'oe1052142006-10-21 21:46:47 -04004037
4038# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004039if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004040 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004041then
4042 echo "Disabling e2resize support"
4043 RESIZER_CMT="#"
4044else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004045 RESIZER_CMT=
4046 echo "Enabling e2resize support"
4047fi
4048
4049else
4050 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004051RESIZER_CMT=
4052
Theodore Ts'oe1052142006-10-21 21:46:47 -04004053fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004054
Theodore Ts'oe1052142006-10-21 21:46:47 -04004055
Theodore Ts'oe1052142006-10-21 21:46:47 -04004056# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004057if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004058 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004059then
4060 FSCK_PROG='' FSCK_MAN=''
4061 echo "Not building fsck wrapper"
4062else
4063 FSCK_PROG=fsck FSCK_MAN=fsck.8
4064 echo "Building fsck wrapper"
4065fi
4066
4067else
4068 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004069 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004070 FSCK_PROG='' FSCK_MAN=''
4071 echo "Not building fsck wrapper by default"
4072 ;;
4073 *)
4074 FSCK_PROG=fsck FSCK_MAN=fsck.8
4075 echo "Building fsck wrapper by default"
4076esac
4077
Theodore Ts'oe1052142006-10-21 21:46:47 -04004078fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004079
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004080
Theodore Ts'oe1052142006-10-21 21:46:47 -04004081
4082# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004083if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004084 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004085then
4086 E2INITRD_PROG='' E2INITRD_MAN=''
4087 echo "Not building e2initrd helper"
4088else
4089 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4090 echo "Building e2initrd helper"
4091fi
4092
4093else
4094 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4095echo "Building e2initrd helper by default"
4096
Theodore Ts'oe1052142006-10-21 21:46:47 -04004097fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004098
4099
Theodore Ts'oe1052142006-10-21 21:46:47 -04004100
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004101STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004102# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004103if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004104 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004105then
4106 echo "Disabling device-mapper support"
4107 DEVMAPPER_REQ=''
4108 DEVMAPPER_LIBS=''
4109 STATIC_DEVMAPPER_LIBS=''
4110else
4111 cat >>confdefs.h <<\_ACEOF
4112#define HAVE_DEVMAPPER 1
4113_ACEOF
4114
4115 echo "Enabling device-mapper support"
4116
Karel Zak4db2f592006-03-08 14:17:28 -05004117
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004118
4119if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4122set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4125if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 case $PKG_CONFIG in
4129 [\\/]* | ?:[\\/]*)
4130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4131 ;;
4132 *)
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
4145done
4146IFS=$as_save_IFS
4147
4148 ;;
4149esac
4150fi
4151PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4152if test -n "$PKG_CONFIG"; then
4153 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4154echo "${ECHO_T}$PKG_CONFIG" >&6; }
4155else
4156 { echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6; }
4158fi
4159
4160
4161fi
4162if test -z "$ac_cv_path_PKG_CONFIG"; then
4163 ac_pt_PKG_CONFIG=$PKG_CONFIG
4164 # Extract the first word of "pkg-config", so it can be a program name with args.
4165set dummy pkg-config; ac_word=$2
4166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171 case $ac_pt_PKG_CONFIG in
4172 [\\/]* | ?:[\\/]*)
4173 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4174 ;;
4175 *)
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187done
4188done
4189IFS=$as_save_IFS
4190
4191 ;;
4192esac
4193fi
4194ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4195if test -n "$ac_pt_PKG_CONFIG"; then
4196 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4197echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4198else
4199 { echo "$as_me:$LINENO: result: no" >&5
4200echo "${ECHO_T}no" >&6; }
4201fi
4202
4203 if test "x$ac_pt_PKG_CONFIG" = x; then
4204 PKG_CONFIG=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207yes:)
4208{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4209whose name does not start with the host triplet. If you think this
4210configuration is useful to you, please write to autoconf@gnu.org." >&5
4211echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4212whose name does not start with the host triplet. If you think this
4213configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4214ac_tool_warned=yes ;;
4215esac
4216 PKG_CONFIG=$ac_pt_PKG_CONFIG
4217 fi
4218else
4219 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4220fi
4221
4222fi
4223if test -n "$PKG_CONFIG"; then
4224 _pkg_min_version=0.9.0
4225 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4226echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4227 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4228 { echo "$as_me:$LINENO: result: yes" >&5
4229echo "${ECHO_T}yes" >&6; }
4230 else
4231 { echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6; }
4233 PKG_CONFIG=""
4234 fi
4235
4236fi
4237
4238 if test -z "$PKG_CONFIG"; then
4239 echo "pkg-config not installed; please install it."
4240 exit 1;
4241 fi
4242
4243 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4244echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4245if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248 ac_check_lib_save_LIBS=$LIBS
4249LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4250cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
4256
4257/* Override any GCC internal prototype to avoid an error.
4258 Use char because int might match the return type of a GCC
4259 builtin and then its argument prototype would still apply. */
4260#ifdef __cplusplus
4261extern "C"
4262#endif
4263char dm_tree_create ();
4264int
4265main ()
4266{
4267return dm_tree_create ();
4268 ;
4269 return 0;
4270}
4271_ACEOF
4272rm -f conftest.$ac_objext conftest$ac_exeext
4273if { (ac_try="$ac_link"
4274case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_link") 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest$ac_exeext &&
4289 $as_test_x conftest$ac_exeext; then
4290 ac_cv_lib_devmapper_dm_tree_create=yes
4291else
4292 echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 ac_cv_lib_devmapper_dm_tree_create=no
4296fi
4297
4298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299 conftest$ac_exeext conftest.$ac_ext
4300LIBS=$ac_check_lib_save_LIBS
4301fi
4302{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4303echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4304if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4305 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4306 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4307 DEVMAPPER_REQ="devmapper";
4308 DEVMAPPER_PC_LIBS="-ldevmapper"
4309else
4310 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4311echo "$as_me: error: device-mapper library not found" >&2;}
4312 { (exit 1); exit 1; }; }
4313fi
4314
4315 # work around stupid devmapper.pc bug in Debian
4316 case "$STATIC_DEVMAPPER_LIBS" in
4317 *pthread*)
4318 ;;
4319 *)
4320 echo "Working around Debian bug #390243..."
4321 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4322 ;;
4323 esac
4324 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4325 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4326 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4327 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004328fi
4329
4330else
4331 echo "Disabling device-mapper support by default"
4332
Theodore Ts'oe1052142006-10-21 21:46:47 -04004333fi
4334
Karel Zak4db2f592006-03-08 14:17:28 -05004335
4336
4337
4338
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004339
Theodore Ts'o32493942007-12-31 10:45:01 -05004340# Check whether --enable-tls was given.
4341if test "${enable_tls+set}" = set; then
4342 enableval=$enable_tls; if test "$enableval" = "no"
4343then
4344 try_tls=""
4345 echo "Disabling thread local support"
4346else
4347 try_tls="yes"
4348 echo "Enabling thread local support"
4349fi
4350
4351else
4352 try_tls="yes"
4353echo "Try using thread local support by default"
4354
4355fi
4356
4357if test "$try_tls" = "yes"
4358then
4359
4360 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4361echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4362 if test "${ac_cv_tls+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365
4366 ax_tls_keywords="__thread __declspec(thread) none"
4367 for ax_tls_keyword in $ax_tls_keywords; do
4368 case $ax_tls_keyword in
4369 none) ac_cv_tls=none ; break ;;
4370 *)
4371 cat >conftest.$ac_ext <<_ACEOF
4372/* confdefs.h. */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h. */
4377#include <stdlib.h>
4378 static void
4379 foo(void) {
4380 static $ax_tls_keyword int bar;
4381 exit(1);
4382 }
4383int
4384main ()
4385{
4386
4387 ;
4388 return 0;
4389}
4390_ACEOF
4391rm -f conftest.$ac_objext
4392if { (ac_try="$ac_compile"
4393case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396esac
4397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_compile") 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest.$ac_objext; then
4408 ac_cv_tls=$ax_tls_keyword ; break
4409else
4410 echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 ac_cv_tls=none
4414
4415fi
4416
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 esac
4419 done
4420
4421fi
4422
4423
4424 if test "$ac_cv_tls" != "none"; then
4425
4426cat >>confdefs.h <<_ACEOF
4427#define TLS $ac_cv_tls
4428_ACEOF
4429
4430 fi
4431 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4432echo "${ECHO_T}$ac_cv_tls" >&6; }
4433
4434fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004435# Check whether --enable-uuidd was given.
4436if test "${enable_uuidd+set}" = set; then
4437 enableval=$enable_uuidd; if test "$enableval" = "no"
4438then
4439 echo "Not building uuidd"
4440 UUIDD_CMT="#"
4441else
4442 cat >>confdefs.h <<\_ACEOF
4443#define USE_UUIDD 1
4444_ACEOF
4445
4446 UUIDD_CMT=""
4447 echo "Building uuidd"
4448fi
4449
4450else
4451 cat >>confdefs.h <<\_ACEOF
4452#define USE_UUIDD 1
4453_ACEOF
4454
4455UUIDD_CMT=""
4456echo "Building uuidd by default"
4457
4458fi
4459
4460
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004461MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004463GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004464PACKAGE=e2fsprogs
4465VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004466VERSION=0.14.1
4467cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004468#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004469_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004471cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004472#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004473_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004474
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004475
4476
4477
4478
Theodore Ts'oe1052142006-10-21 21:46:47 -04004479{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4481set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4482if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004483 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004484else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004485 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004486SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004487all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004488 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004489_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004490# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004491case `${MAKE-make} -f conftest.make 2>/dev/null` in
4492 *@@@%%%=?*=@@@%%%*)
4493 eval ac_cv_prog_make_${ac_make}_set=yes;;
4494 *)
4495 eval ac_cv_prog_make_${ac_make}_set=no;;
4496esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004497rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004499if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4500 { echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004502 SET_MAKE=
4503else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004504 { echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004506 SET_MAKE="MAKE=${MAKE-make}"
4507fi
4508
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004509# Find a good install program. We prefer a C program (faster),
4510# so one script is as good as another. But avoid the broken or
4511# incompatible versions:
4512# SysV /etc/install, /usr/sbin/install
4513# SunOS /usr/etc/install
4514# IRIX /sbin/install
4515# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004516# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4518# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004520# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004521# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004522{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4523echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004524if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004525if test "${ac_cv_path_install+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004527else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 # Account for people who put trailing slashes in PATH elements.
4534case $as_dir/ in
4535 ./ | .// | /cC/* | \
4536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4538 /usr/ucb/* ) ;;
4539 *)
4540 # OSF1 and SCO ODT 3.0 have their own names for install.
4541 # Don't use installbsd from OSF since it installs stuff as root
4542 # by default.
4543 for ac_prog in ginstall scoinst install; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004545 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 -04004546 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004548 # AIX install. It has an incompatible calling convention.
4549 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004550 elif test $ac_prog = install &&
4551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4552 # program-specific install script used by HP pwplus--don't use.
4553 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004554 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4556 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004557 fi
4558 fi
4559 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004560 done
4561 ;;
4562esac
4563done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004564IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004565
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004566
4567fi
4568 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004569 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004570 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004571 # As a last resort, use the slow shell script. Don't cache a
4572 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004573 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004574 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004575 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004576 fi
4577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004578{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4579echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004580
4581# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4582# It thinks the first close brace ends the variable substitution.
4583test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004585test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004586
4587test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4588
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004590 MKINSTALLDIRS=
4591 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004592 case "$ac_aux_dir" in
4593 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4594 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4595 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004596 fi
4597 if test -z "$MKINSTALLDIRS"; then
4598 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4599 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004601
4602
Theodore Ts'oe1052142006-10-21 21:46:47 -04004603 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4604echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4605 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004606if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004607 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004608else
4609 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004610fi
4611
4612 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4613echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004614
4615
4616
4617
4618
4619
4620# Prepare PATH_SEPARATOR.
4621# The user is always right.
4622if test "${PATH_SEPARATOR+set}" != set; then
4623 echo "#! /bin/sh" >conf$$.sh
4624 echo "exit 0" >>conf$$.sh
4625 chmod +x conf$$.sh
4626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4627 PATH_SEPARATOR=';'
4628 else
4629 PATH_SEPARATOR=:
4630 fi
4631 rm -f conf$$.sh
4632fi
4633
4634# Find out how to test for executable files. Don't use a zero-byte file,
4635# as systems may use methods other than mode bits to determine executability.
4636cat >conf$$.file <<_ASEOF
4637#! /bin/sh
4638exit 0
4639_ASEOF
4640chmod +x conf$$.file
4641if test -x conf$$.file >/dev/null 2>&1; then
4642 ac_executable_p="test -x"
4643else
4644 ac_executable_p="test -f"
4645fi
4646rm -f conf$$.file
4647
4648# Extract the first word of "msgfmt", so it can be a program name with args.
4649set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004652if test "${ac_cv_path_MSGFMT+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 case "$MSGFMT" in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4658 ;;
4659 *)
4660 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH; do
4662 IFS="$ac_save_IFS"
4663 test -z "$ac_dir" && ac_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4667 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4668 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4669 break 2
4670 fi
4671 fi
4672 done
4673 done
4674 IFS="$ac_save_IFS"
4675 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4676 ;;
4677esac
4678fi
4679MSGFMT="$ac_cv_path_MSGFMT"
4680if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004681 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4682echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004683else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004684 { echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004686fi
4687
4688 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4689set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004692if test "${ac_cv_path_GMSGFMT+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 case $GMSGFMT in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004706 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 -05004707 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004713IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004714
4715 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4716 ;;
4717esac
4718fi
4719GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004720if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004721 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4722echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004723else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004724 { echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004726fi
4727
4728
4729
Theodore Ts'oe1052142006-10-21 21:46:47 -04004730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004731# Prepare PATH_SEPARATOR.
4732# The user is always right.
4733if test "${PATH_SEPARATOR+set}" != set; then
4734 echo "#! /bin/sh" >conf$$.sh
4735 echo "exit 0" >>conf$$.sh
4736 chmod +x conf$$.sh
4737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4738 PATH_SEPARATOR=';'
4739 else
4740 PATH_SEPARATOR=:
4741 fi
4742 rm -f conf$$.sh
4743fi
4744
4745# Find out how to test for executable files. Don't use a zero-byte file,
4746# as systems may use methods other than mode bits to determine executability.
4747cat >conf$$.file <<_ASEOF
4748#! /bin/sh
4749exit 0
4750_ASEOF
4751chmod +x conf$$.file
4752if test -x conf$$.file >/dev/null 2>&1; then
4753 ac_executable_p="test -x"
4754else
4755 ac_executable_p="test -f"
4756fi
4757rm -f conf$$.file
4758
4759# Extract the first word of "xgettext", so it can be a program name with args.
4760set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004763if test "${ac_cv_path_XGETTEXT+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766 case "$XGETTEXT" in
4767 [\\/]* | ?:[\\/]*)
4768 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4769 ;;
4770 *)
4771 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4772 for ac_dir in $PATH; do
4773 IFS="$ac_save_IFS"
4774 test -z "$ac_dir" && ac_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4777 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4778 (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
4779 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4780 break 2
4781 fi
4782 fi
4783 done
4784 done
4785 IFS="$ac_save_IFS"
4786 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4787 ;;
4788esac
4789fi
4790XGETTEXT="$ac_cv_path_XGETTEXT"
4791if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004792 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4793echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004794else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004795 { echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004797fi
4798
4799 rm -f messages.po
4800
4801
4802# Prepare PATH_SEPARATOR.
4803# The user is always right.
4804if test "${PATH_SEPARATOR+set}" != set; then
4805 echo "#! /bin/sh" >conf$$.sh
4806 echo "exit 0" >>conf$$.sh
4807 chmod +x conf$$.sh
4808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4809 PATH_SEPARATOR=';'
4810 else
4811 PATH_SEPARATOR=:
4812 fi
4813 rm -f conf$$.sh
4814fi
4815
4816# Find out how to test for executable files. Don't use a zero-byte file,
4817# as systems may use methods other than mode bits to determine executability.
4818cat >conf$$.file <<_ASEOF
4819#! /bin/sh
4820exit 0
4821_ASEOF
4822chmod +x conf$$.file
4823if test -x conf$$.file >/dev/null 2>&1; then
4824 ac_executable_p="test -x"
4825else
4826 ac_executable_p="test -f"
4827fi
4828rm -f conf$$.file
4829
4830# Extract the first word of "msgmerge", so it can be a program name with args.
4831set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004834if test "${ac_cv_path_MSGMERGE+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837 case "$MSGMERGE" in
4838 [\\/]* | ?:[\\/]*)
4839 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4840 ;;
4841 *)
4842 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4843 for ac_dir in $PATH; do
4844 IFS="$ac_save_IFS"
4845 test -z "$ac_dir" && ac_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4848 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4849 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4850 break 2
4851 fi
4852 fi
4853 done
4854 done
4855 IFS="$ac_save_IFS"
4856 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4857 ;;
4858esac
4859fi
4860MSGMERGE="$ac_cv_path_MSGMERGE"
4861if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004862 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4863echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004864else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004865 { echo "$as_me:$LINENO: result: no" >&5
4866echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004867fi
4868
4869
4870 if test "$GMSGFMT" != ":"; then
4871 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4872 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4873 : ;
4874 else
4875 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004876 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4877echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004878 GMSGFMT=":"
4879 fi
4880 fi
4881
4882 if test "$XGETTEXT" != ":"; then
4883 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4884 (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
4885 : ;
4886 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004887 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4888echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004889 XGETTEXT=":"
4890 fi
4891 rm -f messages.po
4892 fi
4893
Theodore Ts'oe1052142006-10-21 21:46:47 -04004894 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004895
4896
4897if test -n "$ac_tool_prefix"; then
4898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4899set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004902if test "${ac_cv_prog_RANLIB+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004904else
4905 if test -n "$RANLIB"; then
4906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4907else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004914 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 -05004915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004920done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004921IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004922
4923fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004924fi
4925RANLIB=$ac_cv_prog_RANLIB
4926if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004927 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4928echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004929else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004930 { echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004932fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004933
Theodore Ts'oe1052142006-10-21 21:46:47 -04004934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004935fi
4936if test -z "$ac_cv_prog_RANLIB"; then
4937 ac_ct_RANLIB=$RANLIB
4938 # Extract the first word of "ranlib", so it can be a program name with args.
4939set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004942if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944else
4945 if test -n "$ac_ct_RANLIB"; then
4946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004954 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 -05004955 ac_cv_prog_ac_ct_RANLIB="ranlib"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959done
4960done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004961IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004963fi
4964fi
4965ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4966if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004967 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4968echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004969else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004970 { echo "$as_me:$LINENO: result: no" >&5
4971echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004972fi
4973
Theodore Ts'oe1052142006-10-21 21:46:47 -04004974 if test "x$ac_ct_RANLIB" = x; then
4975 RANLIB=":"
4976 else
4977 case $cross_compiling:$ac_tool_warned in
4978yes:)
4979{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4980whose name does not start with the host triplet. If you think this
4981configuration is useful to you, please write to autoconf@gnu.org." >&5
4982echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4983whose name does not start with the host triplet. If you think this
4984configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4985ac_tool_warned=yes ;;
4986esac
4987 RANLIB=$ac_ct_RANLIB
4988 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004989else
4990 RANLIB="$ac_cv_prog_RANLIB"
4991fi
4992
4993
Theodore Ts'oe1052142006-10-21 21:46:47 -04004994 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4995echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004996if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999 ac_check_lib_save_LIBS=$LIBS
5000LIBS="-lcposix $LIBS"
5001cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h. */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h. */
5007
Theodore Ts'oe1052142006-10-21 21:46:47 -04005008/* Override any GCC internal prototype to avoid an error.
5009 Use char because int might match the return type of a GCC
5010 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005011#ifdef __cplusplus
5012extern "C"
5013#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005014char strerror ();
5015int
5016main ()
5017{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005018return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005019 ;
5020 return 0;
5021}
5022_ACEOF
5023rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005024if { (ac_try="$ac_link"
5025case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028esac
5029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest$ac_exeext &&
5040 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005041 ac_cv_lib_cposix_strerror=yes
5042else
5043 echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
Theodore Ts'oe1052142006-10-21 21:46:47 -04005046 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005050 conftest$ac_exeext conftest.$ac_ext
5051LIBS=$ac_check_lib_save_LIBS
5052fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005053{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5054echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005055if test $ac_cv_lib_cposix_strerror = yes; then
5056 LIBS="$LIBS -lcposix"
5057fi
5058
5059
5060
Theodore Ts'oe1052142006-10-21 21:46:47 -04005061{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5062echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005063if test "${ac_cv_c_const+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072
5073int
5074main ()
5075{
5076/* FIXME: Include the comments suggested by Paul. */
5077#ifndef __cplusplus
5078 /* Ultrix mips cc rejects this. */
5079 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005080 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005081 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005082 char const *const *pcpcc;
5083 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005084 /* NEC SVR4.0.2 mips cc rejects this. */
5085 struct point {int x, y;};
5086 static struct point const zero = {0,0};
5087 /* AIX XL C 1.02.0.0 rejects this.
5088 It does not let you subtract one const X* pointer from another in
5089 an arm of an if-expression whose if-part is not a constant
5090 expression */
5091 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005092 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005093 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005094 ++pcpcc;
5095 ppc = (char**) pcpcc;
5096 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005097 { /* SCO 3.2v4 cc rejects this. */
5098 char *t;
5099 char const *s = 0 ? (char *) 0 : (char const *) 0;
5100
5101 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005102 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005103 }
5104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5105 int x[] = {25, 17};
5106 const int *foo = &x[0];
5107 ++foo;
5108 }
5109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5110 typedef const int *iptr;
5111 iptr p = 0;
5112 ++p;
5113 }
5114 { /* AIX XL C 1.02.0.0 rejects this saying
5115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5116 struct s { int j; const int *ap[3]; };
5117 struct s *b; b->j = 5;
5118 }
5119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5120 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005121 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005122 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005123 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005124#endif
5125
5126 ;
5127 return 0;
5128}
5129_ACEOF
5130rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005131if { (ac_try="$ac_compile"
5132case "(($ac_try" in
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5135esac
5136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005143 (exit $ac_status); } && {
5144 test -z "$ac_c_werror_flag" ||
5145 test ! -s conftest.err
5146 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005147 ac_cv_c_const=yes
5148else
5149 echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
Theodore Ts'oe1052142006-10-21 21:46:47 -04005152 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005154
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005156fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005157{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5158echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005159if test $ac_cv_c_const = no; then
5160
5161cat >>confdefs.h <<\_ACEOF
5162#define const
5163_ACEOF
5164
5165fi
5166
5167
Theodore Ts'oe1052142006-10-21 21:46:47 -04005168 { echo "$as_me:$LINENO: checking for signed" >&5
5169echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005170if test "${bh_cv_c_signed+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173 cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h. */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h. */
5179
5180int
5181main ()
5182{
5183signed char x;
5184 ;
5185 return 0;
5186}
5187_ACEOF
5188rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005189if { (ac_try="$ac_compile"
5190case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193esac
5194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005205 bh_cv_c_signed=yes
5206else
5207 echo "$as_me: failed program was:" >&5
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
Theodore Ts'oe1052142006-10-21 21:46:47 -04005210 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005212
5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005214fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005215{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5216echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005217 if test $bh_cv_c_signed = no; then
5218
5219cat >>confdefs.h <<\_ACEOF
5220#define signed
5221_ACEOF
5222
5223 fi
5224
Theodore Ts'oe1052142006-10-21 21:46:47 -04005225{ echo "$as_me:$LINENO: checking for inline" >&5
5226echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005227if test "${ac_cv_c_inline+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 ac_cv_c_inline=no
5231for ac_kw in inline __inline__ __inline; do
5232 cat >conftest.$ac_ext <<_ACEOF
5233/* confdefs.h. */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h. */
5238#ifndef __cplusplus
5239typedef int foo_t;
5240static $ac_kw foo_t static_foo () {return 0; }
5241$ac_kw foo_t foo () {return 0; }
5242#endif
5243
5244_ACEOF
5245rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005246if { (ac_try="$ac_compile"
5247case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250esac
5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005262 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
Theodore Ts'oe1052142006-10-21 21:46:47 -04005267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005269
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005272done
5273
5274fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005275{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5276echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005277
5278
5279case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005280 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005281 *)
5282 case $ac_cv_c_inline in
5283 no) ac_val=;;
5284 *) ac_val=$ac_cv_c_inline;;
5285 esac
5286 cat >>confdefs.h <<_ACEOF
5287#ifndef __cplusplus
5288#define inline $ac_val
5289#endif
5290_ACEOF
5291 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005292esac
5293
Theodore Ts'oe1052142006-10-21 21:46:47 -04005294{ echo "$as_me:$LINENO: checking for off_t" >&5
5295echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005296if test "${ac_cv_type_off_t+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005299 cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h. */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h. */
5305$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005306typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005307int
5308main ()
5309{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005310if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005311 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005312if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005313 return 0;
5314 ;
5315 return 0;
5316}
5317_ACEOF
5318rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005319if { (ac_try="$ac_compile"
5320case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323esac
5324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005335 ac_cv_type_off_t=yes
5336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005337 echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005339
Theodore Ts'oe1052142006-10-21 21:46:47 -04005340 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005342
5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005344fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005345{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5346echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005347if test $ac_cv_type_off_t = yes; then
5348 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005349else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005350
5351cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005352#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005353_ACEOF
5354
5355fi
5356
Theodore Ts'oe1052142006-10-21 21:46:47 -04005357{ echo "$as_me:$LINENO: checking for size_t" >&5
5358echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005359if test "${ac_cv_type_size_t+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362 cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h. */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h. */
5368$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005369typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005370int
5371main ()
5372{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005373if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005374 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005375if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005376 return 0;
5377 ;
5378 return 0;
5379}
5380_ACEOF
5381rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005382if { (ac_try="$ac_compile"
5383case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005398 ac_cv_type_size_t=yes
5399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005400 echo "$as_me: failed program was:" >&5
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
Theodore Ts'oe1052142006-10-21 21:46:47 -04005403 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005405
5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005408{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5409echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005410if test $ac_cv_type_size_t = yes; then
5411 :
5412else
5413
5414cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005415#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005416_ACEOF
5417
5418fi
5419
5420
Theodore Ts'oe1052142006-10-21 21:46:47 -04005421 { echo "$as_me:$LINENO: checking for long long" >&5
5422echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005423if test "${ac_cv_type_long_long+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426 cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
5432long long ll = 1LL; int i = 63;
5433int
5434main ()
5435{
5436long long llmax = (long long) -1;
5437 return ll << i | ll >> i | llmax / ll | llmax % ll;
5438 ;
5439 return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005443if { (ac_try="$ac_link"
5444case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005460 ac_cv_type_long_long=yes
5461else
5462 echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
Theodore Ts'oe1052142006-10-21 21:46:47 -04005465 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005466fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005467
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005469 conftest$ac_exeext conftest.$ac_ext
5470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5472echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005473 if test $ac_cv_type_long_long = yes; then
5474
5475cat >>confdefs.h <<\_ACEOF
5476#define HAVE_LONG_LONG 1
5477_ACEOF
5478
5479 fi
5480
5481
Theodore Ts'oe1052142006-10-21 21:46:47 -04005482 { echo "$as_me:$LINENO: checking for long double" >&5
5483echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005484if test "${gt_cv_c_long_double+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486else
5487 if test "$GCC" = yes; then
5488 gt_cv_c_long_double=yes
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496
5497 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5498 long double foo = 0.0;
5499 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5500 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5501
5502int
5503main ()
5504{
5505
5506 ;
5507 return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005511if { (ac_try="$ac_compile"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005527 gt_cv_c_long_double=yes
5528else
5529 echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
Theodore Ts'oe1052142006-10-21 21:46:47 -04005532 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005533fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005534
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005536 fi
5537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005538{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5539echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005540 if test $gt_cv_c_long_double = yes; then
5541
5542cat >>confdefs.h <<\_ACEOF
5543#define HAVE_LONG_DOUBLE 1
5544_ACEOF
5545
5546 fi
5547
5548
Theodore Ts'oe1052142006-10-21 21:46:47 -04005549 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5550echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005551if test "${gt_cv_c_wchar_t+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554 cat >conftest.$ac_ext <<_ACEOF
5555/* confdefs.h. */
5556_ACEOF
5557cat confdefs.h >>conftest.$ac_ext
5558cat >>conftest.$ac_ext <<_ACEOF
5559/* end confdefs.h. */
5560#include <stddef.h>
5561 wchar_t foo = (wchar_t)'\0';
5562int
5563main ()
5564{
5565
5566 ;
5567 return 0;
5568}
5569_ACEOF
5570rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005571if { (ac_try="$ac_compile"
5572case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005587 gt_cv_c_wchar_t=yes
5588else
5589 echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
Theodore Ts'oe1052142006-10-21 21:46:47 -04005592 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005594
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005596fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005597{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5598echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005599 if test $gt_cv_c_wchar_t = yes; then
5600
5601cat >>confdefs.h <<\_ACEOF
5602#define HAVE_WCHAR_T 1
5603_ACEOF
5604
5605 fi
5606
5607
Theodore Ts'oe1052142006-10-21 21:46:47 -04005608 { echo "$as_me:$LINENO: checking for wint_t" >&5
5609echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005610if test "${gt_cv_c_wint_t+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613 cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h. */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h. */
5619#include <wchar.h>
5620 wint_t foo = (wchar_t)'\0';
5621int
5622main ()
5623{
5624
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005630if { (ac_try="$ac_compile"
5631case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005646 gt_cv_c_wint_t=yes
5647else
5648 echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
Theodore Ts'oe1052142006-10-21 21:46:47 -04005651 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005652fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005653
5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005655fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005656{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5657echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005658 if test $gt_cv_c_wint_t = yes; then
5659
5660cat >>confdefs.h <<\_ACEOF
5661#define HAVE_WINT_T 1
5662_ACEOF
5663
5664 fi
5665
5666
Theodore Ts'oe1052142006-10-21 21:46:47 -04005667 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5668echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005669if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672 cat >conftest.$ac_ext <<_ACEOF
5673/* confdefs.h. */
5674_ACEOF
5675cat confdefs.h >>conftest.$ac_ext
5676cat >>conftest.$ac_ext <<_ACEOF
5677/* end confdefs.h. */
5678#include <sys/types.h>
5679#include <inttypes.h>
5680int
5681main ()
5682{
5683uintmax_t i = (uintmax_t) -1;
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005689if { (ac_try="$ac_compile"
5690case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005705 jm_ac_cv_header_inttypes_h=yes
5706else
5707 echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
Theodore Ts'oe1052142006-10-21 21:46:47 -04005710 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005712
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005714fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005715{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5716echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717 if test $jm_ac_cv_header_inttypes_h = yes; then
5718
5719cat >>confdefs.h <<_ACEOF
5720#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5721_ACEOF
5722
5723 fi
5724
5725
Theodore Ts'oe1052142006-10-21 21:46:47 -04005726 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5727echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005728if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731 cat >conftest.$ac_ext <<_ACEOF
5732/* confdefs.h. */
5733_ACEOF
5734cat confdefs.h >>conftest.$ac_ext
5735cat >>conftest.$ac_ext <<_ACEOF
5736/* end confdefs.h. */
5737#include <sys/types.h>
5738#include <stdint.h>
5739int
5740main ()
5741{
5742uintmax_t i = (uintmax_t) -1;
5743 ;
5744 return 0;
5745}
5746_ACEOF
5747rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005748if { (ac_try="$ac_compile"
5749case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005764 jm_ac_cv_header_stdint_h=yes
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
Theodore Ts'oe1052142006-10-21 21:46:47 -04005769 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005771
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005773fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005774{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5775echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776 if test $jm_ac_cv_header_stdint_h = yes; then
5777
5778cat >>confdefs.h <<_ACEOF
5779#define HAVE_STDINT_H_WITH_UINTMAX 1
5780_ACEOF
5781
5782 fi
5783
5784
5785
5786
Theodore Ts'oe1052142006-10-21 21:46:47 -04005787 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5788echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005789if test "${gt_cv_c_intmax_t+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792 cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h. */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h. */
5798
5799#include <stddef.h>
5800#include <stdlib.h>
5801#if HAVE_STDINT_H_WITH_UINTMAX
5802#include <stdint.h>
5803#endif
5804#if HAVE_INTTYPES_H_WITH_UINTMAX
5805#include <inttypes.h>
5806#endif
5807
5808int
5809main ()
5810{
5811intmax_t x = -1;
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833 gt_cv_c_intmax_t=yes
5834else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
Theodore Ts'oe1052142006-10-21 21:46:47 -04005838 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005840
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005842fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005843{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5844echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005845 if test $gt_cv_c_intmax_t = yes; then
5846
5847cat >>confdefs.h <<\_ACEOF
5848#define HAVE_INTMAX_T 1
5849_ACEOF
5850
5851 fi
5852
5853
5854
Theodore Ts'oe1052142006-10-21 21:46:47 -04005855 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5856echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005857if test "${gt_cv_func_printf_posix+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859else
5860
5861 if test "$cross_compiling" = yes; then
5862
5863 cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869
5870#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5871 notposix
5872#endif
5873
5874_ACEOF
5875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5876 $EGREP "notposix" >/dev/null 2>&1; then
5877 gt_cv_func_printf_posix="guessing no"
5878else
5879 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005880fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005881rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005883
5884else
5885 cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
5891
5892#include <stdio.h>
5893#include <string.h>
5894/* The string "%2$d %1$d", with dollar characters protected from the shell's
5895 dollar expansion (possibly an autoconf bug). */
5896static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5897static char buf[100];
5898int main ()
5899{
5900 sprintf (buf, format, 33, 55);
5901 return (strcmp (buf, "55 33") != 0);
5902}
5903_ACEOF
5904rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005905if { (ac_try="$ac_link"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 gt_cv_func_printf_posix=yes
5925else
5926 echo "$as_me: program exited with status $ac_status" >&5
5927echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930( exit $ac_status )
5931gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005933rm -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 -05005934fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005935
Theodore Ts'oe1052142006-10-21 21:46:47 -04005936
5937
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005938fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005939{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5940echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005941 case $gt_cv_func_printf_posix in
5942 *yes)
5943
5944cat >>confdefs.h <<\_ACEOF
5945#define HAVE_POSIX_PRINTF 1
5946_ACEOF
5947
5948 ;;
5949 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005950
5951# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5952# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005953{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5954echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005955if test "${ac_cv_working_alloca_h+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005964#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005965int
5966main ()
5967{
5968char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005969 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005970 ;
5971 return 0;
5972}
5973_ACEOF
5974rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005975if { (ac_try="$ac_link"
5976case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest$ac_exeext &&
5991 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005992 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005993else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994 echo "$as_me: failed program was:" >&5
5995sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005996
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005999
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006001 conftest$ac_exeext conftest.$ac_ext
6002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006003{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6004echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006005if test $ac_cv_working_alloca_h = yes; then
6006
6007cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006008#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006009_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006010
6011fi
6012
Theodore Ts'oe1052142006-10-21 21:46:47 -04006013{ echo "$as_me:$LINENO: checking for alloca" >&5
6014echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006015if test "${ac_cv_func_alloca_works+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018 cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h. */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006024#ifdef __GNUC__
6025# define alloca __builtin_alloca
6026#else
6027# ifdef _MSC_VER
6028# include <malloc.h>
6029# define alloca _alloca
6030# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006031# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006032# include <alloca.h>
6033# else
6034# ifdef _AIX
6035 #pragma alloca
6036# else
6037# ifndef alloca /* predefined by HP cc +Olibcalls */
6038char *alloca ();
6039# endif
6040# endif
6041# endif
6042# endif
6043#endif
6044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045int
6046main ()
6047{
6048char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006049 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050 ;
6051 return 0;
6052}
6053_ACEOF
6054rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006055if { (ac_try="$ac_link"
6056case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest$ac_exeext &&
6071 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006072 ac_cv_func_alloca_works=yes
6073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074 echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006076
Theodore Ts'oe1052142006-10-21 21:46:47 -04006077 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006079
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081 conftest$ac_exeext conftest.$ac_ext
6082fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006083{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6084echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006086if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087
6088cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006089#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006090_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006091
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006093 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6094# that cause trouble. Some versions do not even contain alloca or
6095# contain a buggy version. If you still want to use their alloca,
6096# use ar to extract alloca.o from them instead of compiling alloca.c.
6097
Theodore Ts'oe1052142006-10-21 21:46:47 -04006098ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006099
6100cat >>confdefs.h <<\_ACEOF
6101#define C_ALLOCA 1
6102_ACEOF
6103
6104
Theodore Ts'oe1052142006-10-21 21:46:47 -04006105{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6106echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107if test "${ac_cv_os_cray+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006116#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006117webecray
6118#else
6119wenotbecray
6120#endif
6121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006124 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006125 ac_cv_os_cray=yes
6126else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006127 ac_cv_os_cray=no
6128fi
6129rm -f conftest*
6130
6131fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006132{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6133echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006134if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135 for ac_func in _getb67 GETB67 getb67; do
6136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006137{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142 cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
6148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6150#define $ac_func innocuous_$ac_func
6151
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006152/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153 which can conflict with char $ac_func (); below.
6154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155 <limits.h> exists even on freestanding compilers. */
6156
6157#ifdef __STDC__
6158# include <limits.h>
6159#else
6160# include <assert.h>
6161#endif
6162
6163#undef $ac_func
6164
Theodore Ts'oe1052142006-10-21 21:46:47 -04006165/* Override any GCC internal prototype to avoid an error.
6166 Use char because int might match the return type of a GCC
6167 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006168#ifdef __cplusplus
6169extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006172/* The GNU C library defines this for functions which it implements
6173 to always fail with ENOSYS. Some functions are actually named
6174 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006175#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006176choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006177#endif
6178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179int
6180main ()
6181{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006182return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006183 ;
6184 return 0;
6185}
6186_ACEOF
6187rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006188if { (ac_try="$ac_link"
6189case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6192esac
6193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest$ac_exeext &&
6204 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006205 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006206else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006209
Theodore Ts'oe1052142006-10-21 21:46:47 -04006210 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006212
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006214 conftest$ac_exeext conftest.$ac_ext
6215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006216ac_res=`eval echo '${'$as_ac_var'}'`
6217 { echo "$as_me:$LINENO: result: $ac_res" >&5
6218echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006219if test `eval echo '${'$as_ac_var'}'` = yes; then
6220
6221cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006222#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006223_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006225 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006226fi
6227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006228 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006229fi
6230
Theodore Ts'oe1052142006-10-21 21:46:47 -04006231{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6232echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233if test "${ac_cv_c_stack_direction+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006235else
6236 if test "$cross_compiling" = yes; then
6237 ac_cv_c_stack_direction=0
6238else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006239 cat >conftest.$ac_ext <<_ACEOF
6240/* confdefs.h. */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006245$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006246int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006247find_stack_direction ()
6248{
6249 static char *addr = 0;
6250 auto char dummy;
6251 if (addr == 0)
6252 {
6253 addr = &dummy;
6254 return find_stack_direction ();
6255 }
6256 else
6257 return (&dummy > addr) ? 1 : -1;
6258}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006259
6260int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006261main ()
6262{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006263 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006264}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006265_ACEOF
6266rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006267if { (ac_try="$ac_link"
6268case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006277 { (case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006286 ac_cv_c_stack_direction=1
6287else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006288 echo "$as_me: program exited with status $ac_status" >&5
6289echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006292( exit $ac_status )
6293ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006294fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006295rm -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 -05006296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006297
6298
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006300{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6301echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006304#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006305_ACEOF
6306
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006307
6308fi
6309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310
6311
6312for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006313do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006319 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006320fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006321ac_res=`eval echo '${'$as_ac_Header'}'`
6322 { echo "$as_me:$LINENO: result: $ac_res" >&5
6323echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006324else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006325 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006326{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006328cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h. */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h. */
6334$ac_includes_default
6335#include <$ac_header>
6336_ACEOF
6337rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006338if { (ac_try="$ac_compile"
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_compile") 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_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006354 ac_header_compiler=yes
6355else
6356 echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
Theodore Ts'oe1052142006-10-21 21:46:47 -04006359 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006361
6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006365
6366# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006367{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h. */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h. */
6375#include <$ac_header>
6376_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006377if { (ac_try="$ac_cpp conftest.$ac_ext"
6378case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381esac
6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006389 (exit $ac_status); } >/dev/null && {
6390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393 ac_header_preproc=yes
6394else
6395 echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 ac_header_preproc=no
6399fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006401rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006404
6405# So? What about this header?
6406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6407 yes:no: )
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6412 ac_header_preproc=yes
6413 ;;
6414 no:yes:* )
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6418echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6422echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006428 ;;
6429esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006430{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435 eval "$as_ac_Header=\$ac_header_preproc"
6436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006437ac_res=`eval echo '${'$as_ac_Header'}'`
6438 { echo "$as_me:$LINENO: result: $ac_res" >&5
6439echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006440
6441fi
6442if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445_ACEOF
6446
6447fi
6448
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006449done
6450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006452for ac_func in getpagesize
6453do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006455{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6457if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006460 cat >conftest.$ac_ext <<_ACEOF
6461/* confdefs.h. */
6462_ACEOF
6463cat confdefs.h >>conftest.$ac_ext
6464cat >>conftest.$ac_ext <<_ACEOF
6465/* end confdefs.h. */
6466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6468#define $ac_func innocuous_$ac_func
6469
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006470/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006471 which can conflict with char $ac_func (); below.
6472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473 <limits.h> exists even on freestanding compilers. */
6474
6475#ifdef __STDC__
6476# include <limits.h>
6477#else
6478# include <assert.h>
6479#endif
6480
6481#undef $ac_func
6482
Theodore Ts'oe1052142006-10-21 21:46:47 -04006483/* Override any GCC internal prototype to avoid an error.
6484 Use char because int might match the return type of a GCC
6485 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486#ifdef __cplusplus
6487extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006488#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006490/* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006493#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006494choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006495#endif
6496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497int
6498main ()
6499{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006500return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501 ;
6502 return 0;
6503}
6504_ACEOF
6505rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006506if { (ac_try="$ac_link"
6507case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510esac
6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513 ac_status=$?
6514 grep -v '^ *+' conftest.er1 >conftest.err
6515 rm -f conftest.er1
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest$ac_exeext &&
6522 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006523 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006524else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006525 echo "$as_me: failed program was:" >&5
6526sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006527
Theodore Ts'oe1052142006-10-21 21:46:47 -04006528 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006530
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532 conftest$ac_exeext conftest.$ac_ext
6533fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006534ac_res=`eval echo '${'$as_ac_var'}'`
6535 { echo "$as_me:$LINENO: result: $ac_res" >&5
6536echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537if test `eval echo '${'$as_ac_var'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6540_ACEOF
6541
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006542fi
6543done
6544
Theodore Ts'oe1052142006-10-21 21:46:47 -04006545{ echo "$as_me:$LINENO: checking for working mmap" >&5
6546echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006547if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006549else
6550 if test "$cross_compiling" = yes; then
6551 ac_cv_func_mmap_fixed_mapped=no
6552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553 cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h. */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h. */
6559$ac_includes_default
6560/* malloc might have been renamed as rpl_malloc. */
6561#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006562
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006563/* Thanks to Mike Haertel and Jim Avera for this test.
6564 Here is a matrix of mmap possibilities:
6565 mmap private not fixed
6566 mmap private fixed at somewhere currently unmapped
6567 mmap private fixed at somewhere already mapped
6568 mmap shared not fixed
6569 mmap shared fixed at somewhere currently unmapped
6570 mmap shared fixed at somewhere already mapped
6571 For private mappings, we should verify that changes cannot be read()
6572 back from the file, nor mmap's back from the file at a different
6573 address. (There have been systems where private was not correctly
6574 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006576 like early versions of FreeBSD and possibly contemporary NetBSD.)
6577 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006578 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006579
6580 Grep wants private fixed already mapped.
6581 The main things grep needs to know about mmap are:
6582 * does it exist and is it safe to write into the mmap'd area
6583 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006585#include <fcntl.h>
6586#include <sys/mman.h>
6587
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006588#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006589char *malloc ();
6590#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006593#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006594/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006595# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006596# define HAVE_SYS_PARAM_H 1
6597# endif
6598
6599# ifdef _SC_PAGESIZE
6600# define getpagesize() sysconf(_SC_PAGESIZE)
6601# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006602# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006603# include <sys/param.h>
6604# ifdef EXEC_PAGESIZE
6605# define getpagesize() EXEC_PAGESIZE
6606# else /* no EXEC_PAGESIZE */
6607# ifdef NBPG
6608# define getpagesize() NBPG * CLSIZE
6609# ifndef CLSIZE
6610# define CLSIZE 1
6611# endif /* no CLSIZE */
6612# else /* no NBPG */
6613# ifdef NBPC
6614# define getpagesize() NBPC
6615# else /* no NBPC */
6616# ifdef PAGESIZE
6617# define getpagesize() PAGESIZE
6618# endif /* PAGESIZE */
6619# endif /* no NBPC */
6620# endif /* no NBPG */
6621# endif /* no EXEC_PAGESIZE */
6622# else /* no HAVE_SYS_PARAM_H */
6623# define getpagesize() 8192 /* punt totally */
6624# endif /* no HAVE_SYS_PARAM_H */
6625# endif /* no _SC_PAGESIZE */
6626
6627#endif /* no HAVE_GETPAGESIZE */
6628
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006629int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006631{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006632 char *data, *data2, *data3;
6633 int i, pagesize;
6634 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638 /* First, make a file with some known garbage in it. */
6639 data = (char *) malloc (pagesize);
6640 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006641 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642 for (i = 0; i < pagesize; ++i)
6643 *(data + i) = rand ();
6644 umask (0);
6645 fd = creat ("conftest.mmap", 0600);
6646 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006647 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006648 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006649 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006650 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006651
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652 /* Next, try to mmap the file at a fixed address which already has
6653 something else allocated at it. If we can, also make sure that
6654 we see the same garbage. */
6655 fd = open ("conftest.mmap", O_RDWR);
6656 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006657 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658 data2 = (char *) malloc (2 * pagesize);
6659 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006660 return 1;
6661 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006662 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6663 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006664 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665 for (i = 0; i < pagesize; ++i)
6666 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006667 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669 /* Finally, make sure that changes to the mapped area do not
6670 percolate back to the file as seen by read(). (This is a bug on
6671 some variants of i386 svr4.0.) */
6672 for (i = 0; i < pagesize; ++i)
6673 *(data2 + i) = *(data2 + i) + 1;
6674 data3 = (char *) malloc (pagesize);
6675 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006678 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679 for (i = 0; i < pagesize; ++i)
6680 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006681 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006682 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006683 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006684}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685_ACEOF
6686rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006687if { (ac_try="$ac_link"
6688case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6691esac
6692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006697 { (case "(($ac_try" in
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6700esac
6701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006706 ac_cv_func_mmap_fixed_mapped=yes
6707else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708 echo "$as_me: program exited with status $ac_status" >&5
6709echo "$as_me: failed program was:" >&5
6710sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712( exit $ac_status )
6713ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006714fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006715rm -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 -05006716fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006717
6718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006720{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6721echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006722if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723
6724cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006725#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006727
6728fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006730
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006731
Theodore Ts'oe1052142006-10-21 21:46:47 -04006732 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6733echo $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 -05006734if test "${ac_cv_gnu_library_2_1+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006736else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737 cat >conftest.$ac_ext <<_ACEOF
6738/* confdefs.h. */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006743
6744#include <features.h>
6745#ifdef __GNU_LIBRARY__
6746 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6747 Lucky GNU user
6748 #endif
6749#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750
6751_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006754 ac_cv_gnu_library_2_1=yes
6755else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006756 ac_cv_gnu_library_2_1=no
6757fi
6758rm -f conftest*
6759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006760
6761
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006762fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006763{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6764echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006765
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006766 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006767
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006768
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769
6770
Theodore Ts'oe1052142006-10-21 21:46:47 -04006771 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6772echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006775else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006777 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006779 # Guess based on the CPU.
6780 case "$host_cpu" in
6781 alpha* | i3456786 | m68k | s390*)
6782 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6783 *)
6784 gt_cv_int_divbyzero_sigfpe="guessing no";;
6785 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006787else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788 cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006794
6795#include <stdlib.h>
6796#include <signal.h>
6797
6798static void
6799#ifdef __cplusplus
6800sigfpe_handler (int sig)
6801#else
6802sigfpe_handler (sig) int sig;
6803#endif
6804{
6805 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6806 exit (sig != SIGFPE);
6807}
6808
6809int x = 1;
6810int y = 0;
6811int z;
6812int nan;
6813
6814int main ()
6815{
6816 signal (SIGFPE, sigfpe_handler);
6817/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6818#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6819 signal (SIGTRAP, sigfpe_handler);
6820#endif
6821/* Linux/SPARC yields signal SIGILL. */
6822#if defined (__sparc__) && defined (__linux__)
6823 signal (SIGILL, sigfpe_handler);
6824#endif
6825
6826 z = x / y;
6827 nan = y / y;
6828 exit (1);
6829}
6830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831_ACEOF
6832rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006833if { (ac_try="$ac_link"
6834case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837esac
6838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006843 { (case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846esac
6847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006852 gt_cv_int_divbyzero_sigfpe=yes
6853else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006854 echo "$as_me: program exited with status $ac_status" >&5
6855echo "$as_me: failed program was:" >&5
6856sed 's/^/| /' conftest.$ac_ext >&5
6857
6858( exit $ac_status )
6859gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006860fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006861rm -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 -04006862fi
6863
Theodore Ts'oe1052142006-10-21 21:46:47 -04006864
6865
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006867{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6868echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006869 case "$gt_cv_int_divbyzero_sigfpe" in
6870 *yes) value=1;;
6871 *) value=0;;
6872 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006873
6874cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006875#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006876_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006877
6878
6879
Theodore Ts'oe1052142006-10-21 21:46:47 -04006880 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6881echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885 cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h. */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h. */
6891unsigned long long ull = 1ULL; int i = 63;
6892int
6893main ()
6894{
6895unsigned long long ullmax = (unsigned long long) -1;
6896 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6897 ;
6898 return 0;
6899}
6900_ACEOF
6901rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006902if { (ac_try="$ac_link"
6903case "(($ac_try" in
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6906esac
6907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest$ac_exeext &&
6918 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006919 ac_cv_type_unsigned_long_long=yes
6920else
6921 echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5
6923
Theodore Ts'oe1052142006-10-21 21:46:47 -04006924 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006925fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006926
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006928 conftest$ac_exeext conftest.$ac_ext
6929fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006930{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6931echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006932 if test $ac_cv_type_unsigned_long_long = yes; then
6933
6934cat >>confdefs.h <<\_ACEOF
6935#define HAVE_UNSIGNED_LONG_LONG 1
6936_ACEOF
6937
6938 fi
6939
6940
6941
6942
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006943 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 -05006944
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006945 test $ac_cv_type_unsigned_long_long = yes \
6946 && ac_type='unsigned long long' \
6947 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948
6949cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006950#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006951_ACEOF
6952
6953 else
6954
6955cat >>confdefs.h <<\_ACEOF
6956#define HAVE_UINTMAX_T 1
6957_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006958
6959 fi
6960
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006961
Theodore Ts'oe1052142006-10-21 21:46:47 -04006962 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6963echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964if test "${gt_cv_header_inttypes_h+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006966else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967
6968 cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006974#include <sys/types.h>
6975#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976int
6977main ()
6978{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980 ;
6981 return 0;
6982}
6983_ACEOF
6984rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006985if { (ac_try="$ac_compile"
6986case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989esac
6990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007001 gt_cv_header_inttypes_h=yes
7002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003 echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007005
Theodore Ts'oe1052142006-10-21 21:46:47 -04007006 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007008
7009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007010
7011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007012{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7013echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007014 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015
7016cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007017#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007019
7020 fi
7021
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007024 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007025 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7026echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030
7031 cat >conftest.$ac_ext <<_ACEOF
7032/* confdefs.h. */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007037#include <inttypes.h>
7038#ifdef PRId32
7039char *p = PRId32;
7040#endif
7041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007042int
7043main ()
7044{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046 ;
7047 return 0;
7048}
7049_ACEOF
7050rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007051if { (ac_try="$ac_compile"
7052case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055esac
7056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058 ac_status=$?
7059 grep -v '^ *+' conftest.er1 >conftest.err
7060 rm -f conftest.er1
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007067 gt_cv_inttypes_pri_broken=no
7068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007069 echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007071
Theodore Ts'oe1052142006-10-21 21:46:47 -04007072 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007074
7075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007076
7077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007078{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7079echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007080 fi
7081 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007082
7083cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007084#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007086
7087 fi
7088
7089
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007091for ac_header in stdint.h
7092do
7093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007100ac_res=`eval echo '${'$as_ac_Header'}'`
7101 { echo "$as_me:$LINENO: result: $ac_res" >&5
7102echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103else
7104 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007105{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107cat >conftest.$ac_ext <<_ACEOF
7108/* confdefs.h. */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h. */
7113$ac_includes_default
7114#include <$ac_header>
7115_ACEOF
7116rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007117if { (ac_try="$ac_compile"
7118case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121esac
7122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007133 ac_header_compiler=yes
7134else
7135 echo "$as_me: failed program was:" >&5
7136sed 's/^/| /' conftest.$ac_ext >&5
7137
Theodore Ts'oe1052142006-10-21 21:46:47 -04007138 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007140
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007144
7145# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007146{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154#include <$ac_header>
7155_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007156if { (ac_try="$ac_cpp conftest.$ac_ext"
7157case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160esac
7161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007168 (exit $ac_status); } >/dev/null && {
7169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172 ac_header_preproc=yes
7173else
7174 echo "$as_me: failed program was:" >&5
7175sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 ac_header_preproc=no
7178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007181{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183
7184# So? What about this header?
7185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186 yes:no: )
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191 ac_header_preproc=yes
7192 ;;
7193 no:yes:* )
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7201echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007207 ;;
7208esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007209{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214 eval "$as_ac_Header=\$ac_header_preproc"
7215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007216ac_res=`eval echo '${'$as_ac_Header'}'`
7217 { echo "$as_me:$LINENO: result: $ac_res" >&5
7218echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007219
7220fi
7221if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224_ACEOF
7225
7226fi
7227
7228done
7229
Theodore Ts'oe1052142006-10-21 21:46:47 -04007230 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7231echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007232 result=
7233 cat >conftest.$ac_ext <<_ACEOF
7234/* confdefs.h. */
7235_ACEOF
7236cat confdefs.h >>conftest.$ac_ext
7237cat >>conftest.$ac_ext <<_ACEOF
7238/* end confdefs.h. */
7239
7240#include <limits.h>
7241#if HAVE_STDINT_H
7242#include <stdint.h>
7243#endif
7244#ifdef SIZE_MAX
7245Found it
7246#endif
7247
7248_ACEOF
7249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250 $EGREP "Found it" >/dev/null 2>&1; then
7251 result=yes
7252fi
7253rm -f conftest*
7254
7255 if test -z "$result"; then
7256 if test "$cross_compiling" = yes; then
7257 # Depending upon the size, compute the lo and hi bounds.
7258cat >conftest.$ac_ext <<_ACEOF
7259/* confdefs.h. */
7260_ACEOF
7261cat confdefs.h >>conftest.$ac_ext
7262cat >>conftest.$ac_ext <<_ACEOF
7263/* end confdefs.h. */
7264#include <stddef.h>
7265int
7266main ()
7267{
7268static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7269test_array [0] = 0
7270
7271 ;
7272 return 0;
7273}
7274_ACEOF
7275rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007276if { (ac_try="$ac_compile"
7277case "(($ac_try" in
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7280esac
7281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007288 (exit $ac_status); } && {
7289 test -z "$ac_c_werror_flag" ||
7290 test ! -s conftest.err
7291 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292 ac_lo=0 ac_mid=0
7293 while :; do
7294 cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
7300#include <stddef.h>
7301int
7302main ()
7303{
7304static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7305test_array [0] = 0
7306
7307 ;
7308 return 0;
7309}
7310_ACEOF
7311rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007312if { (ac_try="$ac_compile"
7313case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328 ac_hi=$ac_mid; break
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
Theodore Ts'oe1052142006-10-21 21:46:47 -04007333 ac_lo=`expr $ac_mid + 1`
7334 if test $ac_lo -le $ac_mid; then
7335 ac_lo= ac_hi=
7336 break
7337 fi
7338 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007340
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007342 done
7343else
7344 echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
Theodore Ts'oe1052142006-10-21 21:46:47 -04007347 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348/* confdefs.h. */
7349_ACEOF
7350cat confdefs.h >>conftest.$ac_ext
7351cat >>conftest.$ac_ext <<_ACEOF
7352/* end confdefs.h. */
7353#include <stddef.h>
7354int
7355main ()
7356{
7357static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7358test_array [0] = 0
7359
7360 ;
7361 return 0;
7362}
7363_ACEOF
7364rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007365if { (ac_try="$ac_compile"
7366case "(($ac_try" in
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7369esac
7370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381 ac_hi=-1 ac_mid=-1
7382 while :; do
7383 cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h. */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h. */
7389#include <stddef.h>
7390int
7391main ()
7392{
7393static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7394test_array [0] = 0
7395
7396 ;
7397 return 0;
7398}
7399_ACEOF
7400rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007401if { (ac_try="$ac_compile"
7402case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405esac
7406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417 ac_lo=$ac_mid; break
7418else
7419 echo "$as_me: failed program was:" >&5
7420sed 's/^/| /' conftest.$ac_ext >&5
7421
Theodore Ts'oe1052142006-10-21 21:46:47 -04007422 ac_hi=`expr '(' $ac_mid ')' - 1`
7423 if test $ac_mid -le $ac_hi; then
7424 ac_lo= ac_hi=
7425 break
7426 fi
7427 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007429
7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007431 done
7432else
7433 echo "$as_me: failed program was:" >&5
7434sed 's/^/| /' conftest.$ac_ext >&5
7435
Theodore Ts'oe1052142006-10-21 21:46:47 -04007436 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007437fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007438
7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007440fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007441
7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443# Binary search between lo and hi bounds.
7444while test "x$ac_lo" != "x$ac_hi"; do
7445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7446 cat >conftest.$ac_ext <<_ACEOF
7447/* confdefs.h. */
7448_ACEOF
7449cat confdefs.h >>conftest.$ac_ext
7450cat >>conftest.$ac_ext <<_ACEOF
7451/* end confdefs.h. */
7452#include <stddef.h>
7453int
7454main ()
7455{
7456static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7457test_array [0] = 0
7458
7459 ;
7460 return 0;
7461}
7462_ACEOF
7463rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007464if { (ac_try="$ac_compile"
7465case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7468esac
7469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007476 (exit $ac_status); } && {
7477 test -z "$ac_c_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007480 ac_hi=$ac_mid
7481else
7482 echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
Theodore Ts'oe1052142006-10-21 21:46:47 -04007485 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007487
7488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007489done
7490case $ac_lo in
7491?*) res_hi=$ac_lo;;
7492'') result=? ;;
7493esac
7494else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495 cat >conftest.$ac_ext <<_ACEOF
7496/* confdefs.h. */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h. */
7501#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007502static long int longval () { return ~(size_t)0 / 10; }
7503static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007504#include <stdio.h>
7505#include <stdlib.h>
7506int
7507main ()
7508{
7509
7510 FILE *f = fopen ("conftest.val", "w");
7511 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007512 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513 if ((~(size_t)0 / 10) < 0)
7514 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007515 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007517 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518 fprintf (f, "%ld\n", i);
7519 }
7520 else
7521 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007522 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007524 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007525 fprintf (f, "%lu\n", i);
7526 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007527 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528
7529 ;
7530 return 0;
7531}
7532_ACEOF
7533rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007534if { (ac_try="$ac_link"
7535case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
7539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007544 { (case "(($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_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 res_hi=`cat conftest.val`
7554else
7555 echo "$as_me: program exited with status $ac_status" >&5
7556echo "$as_me: failed program was:" >&5
7557sed 's/^/| /' conftest.$ac_ext >&5
7558
7559( exit $ac_status )
7560result=?
7561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007562rm -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 -05007563fi
7564rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007566 if test "$cross_compiling" = yes; then
7567 # Depending upon the size, compute the lo and hi bounds.
7568cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
7574#include <stddef.h>
7575int
7576main ()
7577{
7578static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7579test_array [0] = 0
7580
7581 ;
7582 return 0;
7583}
7584_ACEOF
7585rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007586if { (ac_try="$ac_compile"
7587case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590esac
7591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602 ac_lo=0 ac_mid=0
7603 while :; do
7604 cat >conftest.$ac_ext <<_ACEOF
7605/* confdefs.h. */
7606_ACEOF
7607cat confdefs.h >>conftest.$ac_ext
7608cat >>conftest.$ac_ext <<_ACEOF
7609/* end confdefs.h. */
7610#include <stddef.h>
7611int
7612main ()
7613{
7614static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7615test_array [0] = 0
7616
7617 ;
7618 return 0;
7619}
7620_ACEOF
7621rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007622if { (ac_try="$ac_compile"
7623case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626esac
7627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638 ac_hi=$ac_mid; break
7639else
7640 echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
Theodore Ts'oe1052142006-10-21 21:46:47 -04007643 ac_lo=`expr $ac_mid + 1`
7644 if test $ac_lo -le $ac_mid; then
7645 ac_lo= ac_hi=
7646 break
7647 fi
7648 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007650
7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007652 done
7653else
7654 echo "$as_me: failed program was:" >&5
7655sed 's/^/| /' conftest.$ac_ext >&5
7656
Theodore Ts'oe1052142006-10-21 21:46:47 -04007657 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658/* confdefs.h. */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h. */
7663#include <stddef.h>
7664int
7665main ()
7666{
7667static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7668test_array [0] = 0
7669
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007675if { (ac_try="$ac_compile"
7676case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679esac
7680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007687 (exit $ac_status); } && {
7688 test -z "$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691 ac_hi=-1 ac_mid=-1
7692 while :; do
7693 cat >conftest.$ac_ext <<_ACEOF
7694/* confdefs.h. */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
7698/* end confdefs.h. */
7699#include <stddef.h>
7700int
7701main ()
7702{
7703static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7704test_array [0] = 0
7705
7706 ;
7707 return 0;
7708}
7709_ACEOF
7710rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007711if { (ac_try="$ac_compile"
7712case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715esac
7716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727 ac_lo=$ac_mid; break
7728else
7729 echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
Theodore Ts'oe1052142006-10-21 21:46:47 -04007732 ac_hi=`expr '(' $ac_mid ')' - 1`
7733 if test $ac_mid -le $ac_hi; then
7734 ac_lo= ac_hi=
7735 break
7736 fi
7737 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007738fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007739
7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007741 done
7742else
7743 echo "$as_me: failed program was:" >&5
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
Theodore Ts'oe1052142006-10-21 21:46:47 -04007746 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007748
7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007750fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007751
7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007753# Binary search between lo and hi bounds.
7754while test "x$ac_lo" != "x$ac_hi"; do
7755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7756 cat >conftest.$ac_ext <<_ACEOF
7757/* confdefs.h. */
7758_ACEOF
7759cat confdefs.h >>conftest.$ac_ext
7760cat >>conftest.$ac_ext <<_ACEOF
7761/* end confdefs.h. */
7762#include <stddef.h>
7763int
7764main ()
7765{
7766static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7767test_array [0] = 0
7768
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007774if { (ac_try="$ac_compile"
7775case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778esac
7779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007790 ac_hi=$ac_mid
7791else
7792 echo "$as_me: failed program was:" >&5
7793sed 's/^/| /' conftest.$ac_ext >&5
7794
Theodore Ts'oe1052142006-10-21 21:46:47 -04007795 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007797
7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007799done
7800case $ac_lo in
7801?*) res_lo=$ac_lo;;
7802'') result=? ;;
7803esac
7804else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007805 cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h. */
7811#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007812static long int longval () { return ~(size_t)0 % 10; }
7813static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007814#include <stdio.h>
7815#include <stdlib.h>
7816int
7817main ()
7818{
7819
7820 FILE *f = fopen ("conftest.val", "w");
7821 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007822 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007823 if ((~(size_t)0 % 10) < 0)
7824 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007825 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007826 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007827 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007828 fprintf (f, "%ld\n", i);
7829 }
7830 else
7831 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007832 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007833 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007834 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007835 fprintf (f, "%lu\n", i);
7836 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007837 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007838
7839 ;
7840 return 0;
7841}
7842_ACEOF
7843rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007844if { (ac_try="$ac_link"
7845case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848esac
7849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007854 { (case "(($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_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 res_lo=`cat conftest.val`
7864else
7865 echo "$as_me: program exited with status $ac_status" >&5
7866echo "$as_me: failed program was:" >&5
7867sed 's/^/| /' conftest.$ac_ext >&5
7868
7869( exit $ac_status )
7870result=?
7871fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007872rm -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 -05007873fi
7874rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007875
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007876 if test "$cross_compiling" = yes; then
7877 # Depending upon the size, compute the lo and hi bounds.
7878cat >conftest.$ac_ext <<_ACEOF
7879/* confdefs.h. */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h. */
7884#include <stddef.h>
7885int
7886main ()
7887{
7888static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7889test_array [0] = 0
7890
7891 ;
7892 return 0;
7893}
7894_ACEOF
7895rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007896if { (ac_try="$ac_compile"
7897case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900esac
7901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007912 ac_lo=0 ac_mid=0
7913 while :; do
7914 cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h. */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h. */
7920#include <stddef.h>
7921int
7922main ()
7923{
7924static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7925test_array [0] = 0
7926
7927 ;
7928 return 0;
7929}
7930_ACEOF
7931rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007932if { (ac_try="$ac_compile"
7933case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007948 ac_hi=$ac_mid; break
7949else
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
Theodore Ts'oe1052142006-10-21 21:46:47 -04007953 ac_lo=`expr $ac_mid + 1`
7954 if test $ac_lo -le $ac_mid; then
7955 ac_lo= ac_hi=
7956 break
7957 fi
7958 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007960
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007962 done
7963else
7964 echo "$as_me: failed program was:" >&5
7965sed 's/^/| /' conftest.$ac_ext >&5
7966
Theodore Ts'oe1052142006-10-21 21:46:47 -04007967 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007968/* confdefs.h. */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h. */
7973#include <stddef.h>
7974int
7975main ()
7976{
7977static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7978test_array [0] = 0
7979
7980 ;
7981 return 0;
7982}
7983_ACEOF
7984rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007985if { (ac_try="$ac_compile"
7986case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989esac
7990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007992 ac_status=$?
7993 grep -v '^ *+' conftest.er1 >conftest.err
7994 rm -f conftest.er1
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008001 ac_hi=-1 ac_mid=-1
8002 while :; do
8003 cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h. */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h. */
8009#include <stddef.h>
8010int
8011main ()
8012{
8013static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8014test_array [0] = 0
8015
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008021if { (ac_try="$ac_compile"
8022case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008037 ac_lo=$ac_mid; break
8038else
8039 echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
Theodore Ts'oe1052142006-10-21 21:46:47 -04008042 ac_hi=`expr '(' $ac_mid ')' - 1`
8043 if test $ac_mid -le $ac_hi; then
8044 ac_lo= ac_hi=
8045 break
8046 fi
8047 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008049
8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008051 done
8052else
8053 echo "$as_me: failed program was:" >&5
8054sed 's/^/| /' conftest.$ac_ext >&5
8055
Theodore Ts'oe1052142006-10-21 21:46:47 -04008056 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008057fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008058
8059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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# Binary search between lo and hi bounds.
8064while test "x$ac_lo" != "x$ac_hi"; do
8065 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8066 cat >conftest.$ac_ext <<_ACEOF
8067/* confdefs.h. */
8068_ACEOF
8069cat confdefs.h >>conftest.$ac_ext
8070cat >>conftest.$ac_ext <<_ACEOF
8071/* end confdefs.h. */
8072#include <stddef.h>
8073int
8074main ()
8075{
8076static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8077test_array [0] = 0
8078
8079 ;
8080 return 0;
8081}
8082_ACEOF
8083rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008084if { (ac_try="$ac_compile"
8085case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088esac
8089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008100 ac_hi=$ac_mid
8101else
8102 echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
Theodore Ts'oe1052142006-10-21 21:46:47 -04008105 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008106fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008107
8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008109done
8110case $ac_lo in
8111?*) fits_in_uint=$ac_lo;;
8112'') result=? ;;
8113esac
8114else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
8121#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008122static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8123static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008124#include <stdio.h>
8125#include <stdlib.h>
8126int
8127main ()
8128{
8129
8130 FILE *f = fopen ("conftest.val", "w");
8131 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008132 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008133 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8134 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008135 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008136 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008137 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008138 fprintf (f, "%ld\n", i);
8139 }
8140 else
8141 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008142 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008143 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008144 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008145 fprintf (f, "%lu\n", i);
8146 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008147 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008148
8149 ;
8150 return 0;
8151}
8152_ACEOF
8153rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008154if { (ac_try="$ac_link"
8155case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167esac
8168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 fits_in_uint=`cat conftest.val`
8174else
8175 echo "$as_me: program exited with status $ac_status" >&5
8176echo "$as_me: failed program was:" >&5
8177sed 's/^/| /' conftest.$ac_ext >&5
8178
8179( exit $ac_status )
8180result=?
8181fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008182rm -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 -05008183fi
8184rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008186 if test "$fits_in_uint" = 1; then
8187 cat >conftest.$ac_ext <<_ACEOF
8188/* confdefs.h. */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h. */
8193#include <stddef.h>
8194 extern size_t foo;
8195 extern unsigned long foo;
8196
8197int
8198main ()
8199{
8200
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008206if { (ac_try="$ac_compile"
8207case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008222 fits_in_uint=0
8223else
8224 echo "$as_me: failed program was:" >&5
8225sed 's/^/| /' conftest.$ac_ext >&5
8226
Theodore Ts'oe1052142006-10-21 21:46:47 -04008227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008229
8230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008231 fi
8232 if test -z "$result"; then
8233 if test "$fits_in_uint" = 1; then
8234 result="$res_hi$res_lo"U
8235 else
8236 result="$res_hi$res_lo"UL
8237 fi
8238 else
8239 result='~(size_t)0'
8240 fi
8241 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008242 { echo "$as_me:$LINENO: result: $result" >&5
8243echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008244 if test "$result" != yes; then
8245
8246cat >>confdefs.h <<_ACEOF
8247#define SIZE_MAX $result
8248_ACEOF
8249
8250 fi
8251
8252
8253
8254
8255for ac_header in stdint.h
8256do
8257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008264ac_res=`eval echo '${'$as_ac_Header'}'`
8265 { echo "$as_me:$LINENO: result: $ac_res" >&5
8266echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008267else
8268 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008269{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008271cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
8277$ac_includes_default
8278#include <$ac_header>
8279_ACEOF
8280rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008281if { (ac_try="$ac_compile"
8282case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285esac
8286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008297 ac_header_compiler=yes
8298else
8299 echo "$as_me: failed program was:" >&5
8300sed 's/^/| /' conftest.$ac_ext >&5
8301
Theodore Ts'oe1052142006-10-21 21:46:47 -04008302 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008304
8305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008308
8309# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008310{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008312cat >conftest.$ac_ext <<_ACEOF
8313/* confdefs.h. */
8314_ACEOF
8315cat confdefs.h >>conftest.$ac_ext
8316cat >>conftest.$ac_ext <<_ACEOF
8317/* end confdefs.h. */
8318#include <$ac_header>
8319_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008320if { (ac_try="$ac_cpp conftest.$ac_ext"
8321case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008332 (exit $ac_status); } >/dev/null && {
8333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336 ac_header_preproc=yes
8337else
8338 echo "$as_me: failed program was:" >&5
8339sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_header_preproc=no
8342fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008343
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008345{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008347
8348# So? What about this header?
8349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350 yes:no: )
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8355 ac_header_preproc=yes
8356 ;;
8357 no:yes:* )
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008370
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008371 ;;
8372esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 eval "$as_ac_Header=\$ac_header_preproc"
8379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008380ac_res=`eval echo '${'$as_ac_Header'}'`
8381 { echo "$as_me:$LINENO: result: $ac_res" >&5
8382echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008383
8384fi
8385if test `eval echo '${'$as_ac_Header'}'` = yes; then
8386 cat >>confdefs.h <<_ACEOF
8387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8388_ACEOF
8389
8390fi
8391
8392done
8393
8394
8395
8396 if test "X$prefix" = "XNONE"; then
8397 acl_final_prefix="$ac_default_prefix"
8398 else
8399 acl_final_prefix="$prefix"
8400 fi
8401 if test "X$exec_prefix" = "XNONE"; then
8402 acl_final_exec_prefix='${prefix}'
8403 else
8404 acl_final_exec_prefix="$exec_prefix"
8405 fi
8406 acl_save_prefix="$prefix"
8407 prefix="$acl_final_prefix"
8408 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8409 prefix="$acl_save_prefix"
8410
8411
Theodore Ts'oe1052142006-10-21 21:46:47 -04008412# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008413if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008414 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008415else
8416 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008417fi
8418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008419# Prepare PATH_SEPARATOR.
8420# The user is always right.
8421if test "${PATH_SEPARATOR+set}" != set; then
8422 echo "#! /bin/sh" >conf$$.sh
8423 echo "exit 0" >>conf$$.sh
8424 chmod +x conf$$.sh
8425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8426 PATH_SEPARATOR=';'
8427 else
8428 PATH_SEPARATOR=:
8429 fi
8430 rm -f conf$$.sh
8431fi
8432ac_prog=ld
8433if test "$GCC" = yes; then
8434 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008435 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8436echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008437 case $host in
8438 *-*-mingw*)
8439 # gcc leaves a trailing carriage return which upsets mingw
8440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8441 *)
8442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8443 esac
8444 case $ac_prog in
8445 # Accept absolute paths.
8446 [\\/]* | [A-Za-z]:[\\/]*)
8447 re_direlt='/[^/][^/]*/\.\./'
8448 # Canonicalize the path of ld
8449 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8451 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8452 done
8453 test -z "$LD" && LD="$ac_prog"
8454 ;;
8455 "")
8456 # If it fails, then pretend we aren't using GCC.
8457 ac_prog=ld
8458 ;;
8459 *)
8460 # If it is relative, then search for the first ld in PATH.
8461 with_gnu_ld=unknown
8462 ;;
8463 esac
8464elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008465 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8466echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008467else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008468 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8469echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008470fi
8471if test "${acl_cv_path_LD+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474 if test -z "$LD"; then
8475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8476 for ac_dir in $PATH; do
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8479 acl_cv_path_LD="$ac_dir/$ac_prog"
8480 # Check to see if the program is GNU ld. I'd rather use --version,
8481 # but apparently some GNU ld's only accept -v.
8482 # Break only if it was the GNU/non-GNU ld that we prefer.
8483 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8484 *GNU* | *'with BFD'*)
8485 test "$with_gnu_ld" != no && break ;;
8486 *)
8487 test "$with_gnu_ld" != yes && break ;;
8488 esac
8489 fi
8490 done
8491 IFS="$ac_save_ifs"
8492else
8493 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8494fi
8495fi
8496
8497LD="$acl_cv_path_LD"
8498if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008499 { echo "$as_me:$LINENO: result: $LD" >&5
8500echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008501else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008502 { echo "$as_me:$LINENO: result: no" >&5
8503echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008504fi
8505test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8506echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8507 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008508{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8509echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008510if test "${acl_cv_prog_gnu_ld+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8512else
8513 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8514case `$LD -v 2>&1 </dev/null` in
8515*GNU* | *'with BFD'*)
8516 acl_cv_prog_gnu_ld=yes ;;
8517*)
8518 acl_cv_prog_gnu_ld=no ;;
8519esac
8520fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008521{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8522echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008523with_gnu_ld=$acl_cv_prog_gnu_ld
8524
8525
8526
Theodore Ts'oe1052142006-10-21 21:46:47 -04008527 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8528echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008529if test "${acl_cv_rpath+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
8532
8533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8535 . ./conftest.sh
8536 rm -f ./conftest.sh
8537 acl_cv_rpath=done
8538
8539fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008540{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8541echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008542 wl="$acl_cv_wl"
8543 libext="$acl_cv_libext"
8544 shlibext="$acl_cv_shlibext"
8545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8547 hardcode_direct="$acl_cv_hardcode_direct"
8548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008549 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008550if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008551 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008552else
8553 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008554fi
8555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008556
8557
8558
8559
8560
8561
8562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008563 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008564
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008565 acl_save_prefix="$prefix"
8566 prefix="$acl_final_prefix"
8567 acl_save_exec_prefix="$exec_prefix"
8568 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008569
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008570 eval additional_includedir=\"$includedir\"
8571 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008572
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008573 exec_prefix="$acl_save_exec_prefix"
8574 prefix="$acl_save_prefix"
8575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008576
Theodore Ts'oe1052142006-10-21 21:46:47 -04008577# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008578if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008579 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008580 if test "X$withval" = "Xno"; then
8581 use_additional=no
8582 else
8583 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008584
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008585 acl_save_prefix="$prefix"
8586 prefix="$acl_final_prefix"
8587 acl_save_exec_prefix="$exec_prefix"
8588 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008590 eval additional_includedir=\"$includedir\"
8591 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008593 exec_prefix="$acl_save_exec_prefix"
8594 prefix="$acl_save_prefix"
8595
8596 else
8597 additional_includedir="$withval/include"
8598 additional_libdir="$withval/lib"
8599 fi
8600 fi
8601
Theodore Ts'oe1052142006-10-21 21:46:47 -04008602fi
8603
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008604 LIBICONV=
8605 LTLIBICONV=
8606 INCICONV=
8607 rpathdirs=
8608 ltrpathdirs=
8609 names_already_handled=
8610 names_next_round='iconv '
8611 while test -n "$names_next_round"; do
8612 names_this_round="$names_next_round"
8613 names_next_round=
8614 for name in $names_this_round; do
8615 already_handled=
8616 for n in $names_already_handled; do
8617 if test "$n" = "$name"; then
8618 already_handled=yes
8619 break
8620 fi
8621 done
8622 if test -z "$already_handled"; then
8623 names_already_handled="$names_already_handled $name"
8624 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8625 eval value=\"\$HAVE_LIB$uppername\"
8626 if test -n "$value"; then
8627 if test "$value" = yes; then
8628 eval value=\"\$LIB$uppername\"
8629 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8630 eval value=\"\$LTLIB$uppername\"
8631 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8632 else
8633 :
8634 fi
8635 else
8636 found_dir=
8637 found_la=
8638 found_so=
8639 found_a=
8640 if test $use_additional = yes; then
8641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8642 found_dir="$additional_libdir"
8643 found_so="$additional_libdir/lib$name.$shlibext"
8644 if test -f "$additional_libdir/lib$name.la"; then
8645 found_la="$additional_libdir/lib$name.la"
8646 fi
8647 else
8648 if test -f "$additional_libdir/lib$name.$libext"; then
8649 found_dir="$additional_libdir"
8650 found_a="$additional_libdir/lib$name.$libext"
8651 if test -f "$additional_libdir/lib$name.la"; then
8652 found_la="$additional_libdir/lib$name.la"
8653 fi
8654 fi
8655 fi
8656 fi
8657 if test "X$found_dir" = "X"; then
8658 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008659
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008660 acl_save_prefix="$prefix"
8661 prefix="$acl_final_prefix"
8662 acl_save_exec_prefix="$exec_prefix"
8663 exec_prefix="$acl_final_exec_prefix"
8664 eval x=\"$x\"
8665 exec_prefix="$acl_save_exec_prefix"
8666 prefix="$acl_save_prefix"
8667
8668 case "$x" in
8669 -L*)
8670 dir=`echo "X$x" | sed -e 's/^X-L//'`
8671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8672 found_dir="$dir"
8673 found_so="$dir/lib$name.$shlibext"
8674 if test -f "$dir/lib$name.la"; then
8675 found_la="$dir/lib$name.la"
8676 fi
8677 else
8678 if test -f "$dir/lib$name.$libext"; then
8679 found_dir="$dir"
8680 found_a="$dir/lib$name.$libext"
8681 if test -f "$dir/lib$name.la"; then
8682 found_la="$dir/lib$name.la"
8683 fi
8684 fi
8685 fi
8686 ;;
8687 esac
8688 if test "X$found_dir" != "X"; then
8689 break
8690 fi
8691 done
8692 fi
8693 if test "X$found_dir" != "X"; then
8694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8695 if test "X$found_so" != "X"; then
8696 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8698 else
8699 haveit=
8700 for x in $ltrpathdirs; do
8701 if test "X$x" = "X$found_dir"; then
8702 haveit=yes
8703 break
8704 fi
8705 done
8706 if test -z "$haveit"; then
8707 ltrpathdirs="$ltrpathdirs $found_dir"
8708 fi
8709 if test "$hardcode_direct" = yes; then
8710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8711 else
8712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8714 haveit=
8715 for x in $rpathdirs; do
8716 if test "X$x" = "X$found_dir"; then
8717 haveit=yes
8718 break
8719 fi
8720 done
8721 if test -z "$haveit"; then
8722 rpathdirs="$rpathdirs $found_dir"
8723 fi
8724 else
8725 haveit=
8726 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008727
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008728 acl_save_prefix="$prefix"
8729 prefix="$acl_final_prefix"
8730 acl_save_exec_prefix="$exec_prefix"
8731 exec_prefix="$acl_final_exec_prefix"
8732 eval x=\"$x\"
8733 exec_prefix="$acl_save_exec_prefix"
8734 prefix="$acl_save_prefix"
8735
8736 if test "X$x" = "X-L$found_dir"; then
8737 haveit=yes
8738 break
8739 fi
8740 done
8741 if test -z "$haveit"; then
8742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8743 fi
8744 if test "$hardcode_minus_L" != no; then
8745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8746 else
8747 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8748 fi
8749 fi
8750 fi
8751 fi
8752 else
8753 if test "X$found_a" != "X"; then
8754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8755 else
8756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8757 fi
8758 fi
8759 additional_includedir=
8760 case "$found_dir" in
8761 */lib | */lib/)
8762 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8763 additional_includedir="$basedir/include"
8764 ;;
8765 esac
8766 if test "X$additional_includedir" != "X"; then
8767 if test "X$additional_includedir" != "X/usr/include"; then
8768 haveit=
8769 if test "X$additional_includedir" = "X/usr/local/include"; then
8770 if test -n "$GCC"; then
8771 case $host_os in
8772 linux*) haveit=yes;;
8773 esac
8774 fi
8775 fi
8776 if test -z "$haveit"; then
8777 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008779 acl_save_prefix="$prefix"
8780 prefix="$acl_final_prefix"
8781 acl_save_exec_prefix="$exec_prefix"
8782 exec_prefix="$acl_final_exec_prefix"
8783 eval x=\"$x\"
8784 exec_prefix="$acl_save_exec_prefix"
8785 prefix="$acl_save_prefix"
8786
8787 if test "X$x" = "X-I$additional_includedir"; then
8788 haveit=yes
8789 break
8790 fi
8791 done
8792 if test -z "$haveit"; then
8793 if test -d "$additional_includedir"; then
8794 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8795 fi
8796 fi
8797 fi
8798 fi
8799 fi
8800 if test -n "$found_la"; then
8801 save_libdir="$libdir"
8802 case "$found_la" in
8803 */* | *\\*) . "$found_la" ;;
8804 *) . "./$found_la" ;;
8805 esac
8806 libdir="$save_libdir"
8807 for dep in $dependency_libs; do
8808 case "$dep" in
8809 -L*)
8810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8811 if test "X$additional_libdir" != "X/usr/lib"; then
8812 haveit=
8813 if test "X$additional_libdir" = "X/usr/local/lib"; then
8814 if test -n "$GCC"; then
8815 case $host_os in
8816 linux*) haveit=yes;;
8817 esac
8818 fi
8819 fi
8820 if test -z "$haveit"; then
8821 haveit=
8822 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008823
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008824 acl_save_prefix="$prefix"
8825 prefix="$acl_final_prefix"
8826 acl_save_exec_prefix="$exec_prefix"
8827 exec_prefix="$acl_final_exec_prefix"
8828 eval x=\"$x\"
8829 exec_prefix="$acl_save_exec_prefix"
8830 prefix="$acl_save_prefix"
8831
8832 if test "X$x" = "X-L$additional_libdir"; then
8833 haveit=yes
8834 break
8835 fi
8836 done
8837 if test -z "$haveit"; then
8838 if test -d "$additional_libdir"; then
8839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8840 fi
8841 fi
8842 haveit=
8843 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008844
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845 acl_save_prefix="$prefix"
8846 prefix="$acl_final_prefix"
8847 acl_save_exec_prefix="$exec_prefix"
8848 exec_prefix="$acl_final_exec_prefix"
8849 eval x=\"$x\"
8850 exec_prefix="$acl_save_exec_prefix"
8851 prefix="$acl_save_prefix"
8852
8853 if test "X$x" = "X-L$additional_libdir"; then
8854 haveit=yes
8855 break
8856 fi
8857 done
8858 if test -z "$haveit"; then
8859 if test -d "$additional_libdir"; then
8860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8861 fi
8862 fi
8863 fi
8864 fi
8865 ;;
8866 -R*)
8867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8868 if test "$enable_rpath" != no; then
8869 haveit=
8870 for x in $rpathdirs; do
8871 if test "X$x" = "X$dir"; then
8872 haveit=yes
8873 break
8874 fi
8875 done
8876 if test -z "$haveit"; then
8877 rpathdirs="$rpathdirs $dir"
8878 fi
8879 haveit=
8880 for x in $ltrpathdirs; do
8881 if test "X$x" = "X$dir"; then
8882 haveit=yes
8883 break
8884 fi
8885 done
8886 if test -z "$haveit"; then
8887 ltrpathdirs="$ltrpathdirs $dir"
8888 fi
8889 fi
8890 ;;
8891 -l*)
8892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8893 ;;
8894 *.la)
8895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8896 ;;
8897 *)
8898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8900 ;;
8901 esac
8902 done
8903 fi
8904 else
8905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8907 fi
8908 fi
8909 fi
8910 done
8911 done
8912 if test "X$rpathdirs" != "X"; then
8913 if test -n "$hardcode_libdir_separator"; then
8914 alldirs=
8915 for found_dir in $rpathdirs; do
8916 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8917 done
8918 acl_save_libdir="$libdir"
8919 libdir="$alldirs"
8920 eval flag=\"$hardcode_libdir_flag_spec\"
8921 libdir="$acl_save_libdir"
8922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8923 else
8924 for found_dir in $rpathdirs; do
8925 acl_save_libdir="$libdir"
8926 libdir="$found_dir"
8927 eval flag=\"$hardcode_libdir_flag_spec\"
8928 libdir="$acl_save_libdir"
8929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8930 done
8931 fi
8932 fi
8933 if test "X$ltrpathdirs" != "X"; then
8934 for found_dir in $ltrpathdirs; do
8935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8936 done
8937 fi
8938
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008939
8940
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008942
8943
8944
8945
Theodore Ts'oe1052142006-10-21 21:46:47 -04008946 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8947echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008948if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008950else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008951 cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h. */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */
8957$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008958typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008959int
8960main ()
8961{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008962if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008963 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008964if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008965 return 0;
8966 ;
8967 return 0;
8968}
8969_ACEOF
8970rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008971if { (ac_try="$ac_compile"
8972case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975esac
8976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008987 ac_cv_type_ptrdiff_t=yes
8988else
8989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
Theodore Ts'oe1052142006-10-21 21:46:47 -04008992 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008993fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008994
8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008996fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008997{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8998echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008999if test $ac_cv_type_ptrdiff_t = yes; then
9000 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009002
9003cat >>confdefs.h <<\_ACEOF
9004#define ptrdiff_t long
9005_ACEOF
9006
9007
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009008fi
9009
9010
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009011
9012
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009013
9014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009015
9016
9017
9018
9019
9020for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009021stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009022do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009028 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009030ac_res=`eval echo '${'$as_ac_Header'}'`
9031 { echo "$as_me:$LINENO: result: $ac_res" >&5
9032echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009033else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009034 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009035{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009037cat >conftest.$ac_ext <<_ACEOF
9038/* confdefs.h. */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h. */
9043$ac_includes_default
9044#include <$ac_header>
9045_ACEOF
9046rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009047if { (ac_try="$ac_compile"
9048case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051esac
9052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009063 ac_header_compiler=yes
9064else
9065 echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
Theodore Ts'oe1052142006-10-21 21:46:47 -04009068 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009070
9071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009074
9075# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009076{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9077echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009078cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h. */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h. */
9084#include <$ac_header>
9085_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009086if { (ac_try="$ac_cpp conftest.$ac_ext"
9087case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090esac
9091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009098 (exit $ac_status); } >/dev/null && {
9099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009102 ac_header_preproc=yes
9103else
9104 echo "$as_me: failed program was:" >&5
9105sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ac_header_preproc=no
9108fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009110rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009111{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9112echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009113
9114# So? What about this header?
9115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9116 yes:no: )
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9121 ac_header_preproc=yes
9122 ;;
9123 no:yes:* )
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009137 ;;
9138esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009139{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143else
9144 eval "$as_ac_Header=\$ac_header_preproc"
9145fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009146ac_res=`eval echo '${'$as_ac_Header'}'`
9147 { echo "$as_me:$LINENO: result: $ac_res" >&5
9148echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009149
9150fi
9151if test `eval echo '${'$as_ac_Header'}'` = yes; then
9152 cat >>confdefs.h <<_ACEOF
9153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9154_ACEOF
9155
9156fi
9157
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009158done
9159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9184mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9185strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9186__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009187do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009189{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009192 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009193else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009194 cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9202#define $ac_func innocuous_$ac_func
9203
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009204/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009205 which can conflict with char $ac_func (); below.
9206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9207 <limits.h> exists even on freestanding compilers. */
9208
9209#ifdef __STDC__
9210# include <limits.h>
9211#else
9212# include <assert.h>
9213#endif
9214
9215#undef $ac_func
9216
Theodore Ts'oe1052142006-10-21 21:46:47 -04009217/* Override any GCC internal prototype to avoid an error.
9218 Use char because int might match the return type of a GCC
9219 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220#ifdef __cplusplus
9221extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009222#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009224/* The GNU C library defines this for functions which it implements
9225 to always fail with ENOSYS. Some functions are actually named
9226 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009227#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009228choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009229#endif
9230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009231int
9232main ()
9233{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009234return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009235 ;
9236 return 0;
9237}
9238_ACEOF
9239rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009240if { (ac_try="$ac_link"
9241case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244esac
9245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest$ac_exeext &&
9256 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009257 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009258else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009259 echo "$as_me: failed program was:" >&5
9260sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009261
Theodore Ts'oe1052142006-10-21 21:46:47 -04009262 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009264
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266 conftest$ac_exeext conftest.$ac_ext
9267fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009268ac_res=`eval echo '${'$as_ac_var'}'`
9269 { echo "$as_me:$LINENO: result: $ac_res" >&5
9270echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009271if test `eval echo '${'$as_ac_var'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9274_ACEOF
9275
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009276fi
9277done
9278
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009280
Theodore Ts'oe1052142006-10-21 21:46:47 -04009281 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9282echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283if test "${ac_cv_have_decl__snprintf+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286 cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h. */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h. */
9292#include <stdio.h>
9293int
9294main ()
9295{
9296
9297#ifndef _snprintf
9298 char *p = (char *) _snprintf;
9299#endif
9300
9301 ;
9302 return 0;
9303}
9304_ACEOF
9305rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009306if { (ac_try="$ac_compile"
9307case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310esac
9311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009322 ac_cv_have_decl__snprintf=yes
9323else
9324 echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
Theodore Ts'oe1052142006-10-21 21:46:47 -04009327 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009328fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009329
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009331fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009332{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9333echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009334 if test $ac_cv_have_decl__snprintf = yes; then
9335 gt_value=1
9336 else
9337 gt_value=0
9338 fi
9339
9340cat >>confdefs.h <<_ACEOF
9341#define HAVE_DECL__SNPRINTF $gt_value
9342_ACEOF
9343
9344
9345
Theodore Ts'oe1052142006-10-21 21:46:47 -04009346 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9347echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009348if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350else
9351 cat >conftest.$ac_ext <<_ACEOF
9352/* confdefs.h. */
9353_ACEOF
9354cat confdefs.h >>conftest.$ac_ext
9355cat >>conftest.$ac_ext <<_ACEOF
9356/* end confdefs.h. */
9357#include <stdio.h>
9358int
9359main ()
9360{
9361
9362#ifndef _snwprintf
9363 char *p = (char *) _snwprintf;
9364#endif
9365
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009371if { (ac_try="$ac_compile"
9372case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387 ac_cv_have_decl__snwprintf=yes
9388else
9389 echo "$as_me: failed program was:" >&5
9390sed 's/^/| /' conftest.$ac_ext >&5
9391
Theodore Ts'oe1052142006-10-21 21:46:47 -04009392 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009393fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009394
9395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009396fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009397{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9398echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009399 if test $ac_cv_have_decl__snwprintf = yes; then
9400 gt_value=1
9401 else
9402 gt_value=0
9403 fi
9404
9405cat >>confdefs.h <<_ACEOF
9406#define HAVE_DECL__SNWPRINTF $gt_value
9407_ACEOF
9408
9409
9410
9411
Theodore Ts'oe1052142006-10-21 21:46:47 -04009412 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9413echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009414if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417 cat >conftest.$ac_ext <<_ACEOF
9418/* confdefs.h. */
9419_ACEOF
9420cat confdefs.h >>conftest.$ac_ext
9421cat >>conftest.$ac_ext <<_ACEOF
9422/* end confdefs.h. */
9423#include <stdio.h>
9424int
9425main ()
9426{
9427
9428#ifndef feof_unlocked
9429 char *p = (char *) feof_unlocked;
9430#endif
9431
9432 ;
9433 return 0;
9434}
9435_ACEOF
9436rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009437if { (ac_try="$ac_compile"
9438case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441esac
9442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009453 ac_cv_have_decl_feof_unlocked=yes
9454else
9455 echo "$as_me: failed program was:" >&5
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
Theodore Ts'oe1052142006-10-21 21:46:47 -04009458 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009459fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009460
9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009462fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009463{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9464echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465 if test $ac_cv_have_decl_feof_unlocked = yes; then
9466 gt_value=1
9467 else
9468 gt_value=0
9469 fi
9470
9471cat >>confdefs.h <<_ACEOF
9472#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9473_ACEOF
9474
9475
9476
Theodore Ts'oe1052142006-10-21 21:46:47 -04009477 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9478echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009479if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 cat >conftest.$ac_ext <<_ACEOF
9483/* confdefs.h. */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h. */
9488#include <stdio.h>
9489int
9490main ()
9491{
9492
9493#ifndef fgets_unlocked
9494 char *p = (char *) fgets_unlocked;
9495#endif
9496
9497 ;
9498 return 0;
9499}
9500_ACEOF
9501rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009502if { (ac_try="$ac_compile"
9503case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009518 ac_cv_have_decl_fgets_unlocked=yes
9519else
9520 echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
Theodore Ts'oe1052142006-10-21 21:46:47 -04009523 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009524fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009525
9526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009527fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009528{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9529echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009530 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9531 gt_value=1
9532 else
9533 gt_value=0
9534 fi
9535
9536cat >>confdefs.h <<_ACEOF
9537#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9538_ACEOF
9539
9540
9541
Theodore Ts'oe1052142006-10-21 21:46:47 -04009542 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9543echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009544if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547 cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h. */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
9552/* end confdefs.h. */
9553#include <stdio.h>
9554int
9555main ()
9556{
9557
9558#ifndef getc_unlocked
9559 char *p = (char *) getc_unlocked;
9560#endif
9561
9562 ;
9563 return 0;
9564}
9565_ACEOF
9566rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009567if { (ac_try="$ac_compile"
9568case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583 ac_cv_have_decl_getc_unlocked=yes
9584else
9585 echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
Theodore Ts'oe1052142006-10-21 21:46:47 -04009588 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009590
9591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009593{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9594echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009595 if test $ac_cv_have_decl_getc_unlocked = yes; then
9596 gt_value=1
9597 else
9598 gt_value=0
9599 fi
9600
9601cat >>confdefs.h <<_ACEOF
9602#define HAVE_DECL_GETC_UNLOCKED $gt_value
9603_ACEOF
9604
9605
9606
9607 case $gt_cv_func_printf_posix in
9608 *yes) HAVE_POSIX_PRINTF=1 ;;
9609 *) HAVE_POSIX_PRINTF=0 ;;
9610 esac
9611
9612 if test "$ac_cv_func_asprintf" = yes; then
9613 HAVE_ASPRINTF=1
9614 else
9615 HAVE_ASPRINTF=0
9616 fi
9617
9618 if test "$ac_cv_func_snprintf" = yes; then
9619 HAVE_SNPRINTF=1
9620 else
9621 HAVE_SNPRINTF=0
9622 fi
9623
9624 if test "$ac_cv_func_wprintf" = yes; then
9625 HAVE_WPRINTF=1
9626 else
9627 HAVE_WPRINTF=0
9628 fi
9629
9630
9631
9632
9633
9634
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009635
9636 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009637
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009638 for element in $INCICONV; do
9639 haveit=
9640 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009641
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009642 acl_save_prefix="$prefix"
9643 prefix="$acl_final_prefix"
9644 acl_save_exec_prefix="$exec_prefix"
9645 exec_prefix="$acl_final_exec_prefix"
9646 eval x=\"$x\"
9647 exec_prefix="$acl_save_exec_prefix"
9648 prefix="$acl_save_prefix"
9649
9650 if test "X$x" = "X$element"; then
9651 haveit=yes
9652 break
9653 fi
9654 done
9655 if test -z "$haveit"; then
9656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9657 fi
9658 done
9659
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009660
Theodore Ts'oe1052142006-10-21 21:46:47 -04009661 { echo "$as_me:$LINENO: checking for iconv" >&5
9662echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009663if test "${am_cv_func_iconv+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009665else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009667 am_cv_func_iconv="no, consider installing GNU libiconv"
9668 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009669 cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009675#include <stdlib.h>
9676#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677int
9678main ()
9679{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009680iconv_t cd = iconv_open("","");
9681 iconv(cd,NULL,NULL,NULL,NULL);
9682 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009683 ;
9684 return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009688if { (ac_try="$ac_link"
9689case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009705 am_cv_func_iconv=yes
9706else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009707 echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
Theodore Ts'oe1052142006-10-21 21:46:47 -04009710
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009712
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009714 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009715 if test "$am_cv_func_iconv" != yes; then
9716 am_save_LIBS="$LIBS"
9717 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009718 cat >conftest.$ac_ext <<_ACEOF
9719/* confdefs.h. */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009724#include <stdlib.h>
9725#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726int
9727main ()
9728{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009729iconv_t cd = iconv_open("","");
9730 iconv(cd,NULL,NULL,NULL,NULL);
9731 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009732 ;
9733 return 0;
9734}
9735_ACEOF
9736rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009737if { (ac_try="$ac_link"
9738case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9741esac
9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009749 (exit $ac_status); } && {
9750 test -z "$ac_c_werror_flag" ||
9751 test ! -s conftest.err
9752 } && test -s conftest$ac_exeext &&
9753 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009754 am_cv_lib_iconv=yes
9755 am_cv_func_iconv=yes
9756else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009757 echo "$as_me: failed program was:" >&5
9758sed 's/^/| /' conftest.$ac_ext >&5
9759
Theodore Ts'oe1052142006-10-21 21:46:47 -04009760
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009761fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009762
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009764 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009765 LIBS="$am_save_LIBS"
9766 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009768fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009769{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9770echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009771 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772
9773cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009774#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009775_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009776
9777 fi
9778 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009779 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9780echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9781 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9782echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009783 else
9784 CPPFLAGS="$am_save_CPPFLAGS"
9785 LIBICONV=
9786 LTLIBICONV=
9787 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009788
9789
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009790
9791 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009792 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9793echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009794 if test "${am_cv_proto_iconv+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009796else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009797
9798 cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009804
9805#include <stdlib.h>
9806#include <iconv.h>
9807extern
9808#ifdef __cplusplus
9809"C"
9810#endif
9811#if defined(__STDC__) || defined(__cplusplus)
9812size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9813#else
9814size_t iconv();
9815#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009817int
9818main ()
9819{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009821 ;
9822 return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009826if { (ac_try="$ac_compile"
9827case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009842 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009843else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
Theodore Ts'oe1052142006-10-21 21:46:47 -04009847 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009849
9850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009851 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 +00009852fi
9853
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009854 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009855 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009856 }$am_cv_proto_iconv" >&5
9857echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009858 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009859
9860cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009861#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009862_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009863
9864 fi
9865
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009866
Theodore Ts'oe1052142006-10-21 21:46:47 -04009867 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9868echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009869if test "${am_cv_langinfo_codeset+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009871else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872 cat >conftest.$ac_ext <<_ACEOF
9873/* confdefs.h. */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009878#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009879int
9880main ()
9881{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009882char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009905 am_cv_langinfo_codeset=yes
9906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009907 echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009909
Theodore Ts'oe1052142006-10-21 21:46:47 -04009910 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009911fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009912
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009914 conftest$ac_exeext conftest.$ac_ext
9915
9916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009917{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9918echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009919 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009920
9921cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009922#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009923_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009924
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009925 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009926
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009927 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009928
Theodore Ts'oe1052142006-10-21 21:46:47 -04009929 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9930echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009933else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934 cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h. */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009940#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009941int
9942main ()
9943{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009944return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009945 ;
9946 return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009950if { (ac_try="$ac_link"
9951case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954esac
9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest$ac_exeext &&
9966 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009967 am_cv_val_LC_MESSAGES=yes
9968else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009969 echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009971
Theodore Ts'oe1052142006-10-21 21:46:47 -04009972 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009973fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009974
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976 conftest$ac_exeext conftest.$ac_ext
9977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009978{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9979echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009980 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009981
9982cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009983#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009985
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009986 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009987
9988 fi
9989
9990 for ac_prog in bison
9991do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009993set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009996if test "${ac_cv_prog_INTLBISON+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009998else
9999 if test -n "$INTLBISON"; then
10000 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010008 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 -050010009 ac_cv_prog_INTLBISON="$ac_prog"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010015IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010017fi
10018fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010019INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010020if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010021 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10022echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010023else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010024 { echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010026fi
10027
Theodore Ts'oe1052142006-10-21 21:46:47 -040010028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010029 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010030done
10031
10032 if test -z "$INTLBISON"; then
10033 ac_verc_fail=yes
10034 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010035 { echo "$as_me:$LINENO: checking version of bison" >&5
10036echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010037 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10038 case $ac_prog_version in
10039 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10040 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10041 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10042 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10043 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010044 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10045echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010046 fi
10047 if test $ac_verc_fail = yes; then
10048 INTLBISON=:
10049 fi
10050
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010051
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010052
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010053
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010054
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010055
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010056
10057
10058
10059
10060
10061
10062
10063
10064
10065
Theodore Ts'oe1052142006-10-21 21:46:47 -040010066 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10067echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10068 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010069if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010070 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010071else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010072 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010073fi
10074
10075 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10076echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010077
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010078
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010079
10080
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010081 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010082 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010083
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010084 LIBINTL=
10085 LTLIBINTL=
10086 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010087
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010088 if test "$USE_NLS" = "yes"; then
10089 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010090
Theodore Ts'oe1052142006-10-21 21:46:47 -040010091 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10092echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010093
Theodore Ts'oe1052142006-10-21 21:46:47 -040010094# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010095if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010096 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010097else
10098 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010099fi
10100
10101 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10102echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010103
10104 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10105 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010107
10108
10109
10110
10111
Theodore Ts'oe1052142006-10-21 21:46:47 -040010112 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10113echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010114if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010116else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010117 cat >conftest.$ac_ext <<_ACEOF
10118/* confdefs.h. */
10119_ACEOF
10120cat confdefs.h >>conftest.$ac_ext
10121cat >>conftest.$ac_ext <<_ACEOF
10122/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010123#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010124extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010125extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126int
10127main ()
10128{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010129bindtextdomain ("", "");
10130return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010131 ;
10132 return 0;
10133}
10134_ACEOF
10135rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010136if { (ac_try="$ac_link"
10137case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140esac
10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext &&
10152 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010153 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010154else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010155 echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010157
Theodore Ts'oe1052142006-10-21 21:46:47 -040010158 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010159fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010160
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010162 conftest$ac_exeext conftest.$ac_ext
10163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010164{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10165echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010166
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010167 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010168
10169
10170
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010171 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010172
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010173 acl_save_prefix="$prefix"
10174 prefix="$acl_final_prefix"
10175 acl_save_exec_prefix="$exec_prefix"
10176 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010178 eval additional_includedir=\"$includedir\"
10179 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010180
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010181 exec_prefix="$acl_save_exec_prefix"
10182 prefix="$acl_save_prefix"
10183
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184
Theodore Ts'oe1052142006-10-21 21:46:47 -040010185# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010186if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010187 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010188 if test "X$withval" = "Xno"; then
10189 use_additional=no
10190 else
10191 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010192
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010193 acl_save_prefix="$prefix"
10194 prefix="$acl_final_prefix"
10195 acl_save_exec_prefix="$exec_prefix"
10196 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010197
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010198 eval additional_includedir=\"$includedir\"
10199 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010201 exec_prefix="$acl_save_exec_prefix"
10202 prefix="$acl_save_prefix"
10203
10204 else
10205 additional_includedir="$withval/include"
10206 additional_libdir="$withval/lib"
10207 fi
10208 fi
10209
Theodore Ts'oe1052142006-10-21 21:46:47 -040010210fi
10211
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010212 LIBINTL=
10213 LTLIBINTL=
10214 INCINTL=
10215 rpathdirs=
10216 ltrpathdirs=
10217 names_already_handled=
10218 names_next_round='intl '
10219 while test -n "$names_next_round"; do
10220 names_this_round="$names_next_round"
10221 names_next_round=
10222 for name in $names_this_round; do
10223 already_handled=
10224 for n in $names_already_handled; do
10225 if test "$n" = "$name"; then
10226 already_handled=yes
10227 break
10228 fi
10229 done
10230 if test -z "$already_handled"; then
10231 names_already_handled="$names_already_handled $name"
10232 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10233 eval value=\"\$HAVE_LIB$uppername\"
10234 if test -n "$value"; then
10235 if test "$value" = yes; then
10236 eval value=\"\$LIB$uppername\"
10237 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10238 eval value=\"\$LTLIB$uppername\"
10239 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10240 else
10241 :
10242 fi
10243 else
10244 found_dir=
10245 found_la=
10246 found_so=
10247 found_a=
10248 if test $use_additional = yes; then
10249 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10250 found_dir="$additional_libdir"
10251 found_so="$additional_libdir/lib$name.$shlibext"
10252 if test -f "$additional_libdir/lib$name.la"; then
10253 found_la="$additional_libdir/lib$name.la"
10254 fi
10255 else
10256 if test -f "$additional_libdir/lib$name.$libext"; then
10257 found_dir="$additional_libdir"
10258 found_a="$additional_libdir/lib$name.$libext"
10259 if test -f "$additional_libdir/lib$name.la"; then
10260 found_la="$additional_libdir/lib$name.la"
10261 fi
10262 fi
10263 fi
10264 fi
10265 if test "X$found_dir" = "X"; then
10266 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10272 eval x=\"$x\"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010275
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010276 case "$x" in
10277 -L*)
10278 dir=`echo "X$x" | sed -e 's/^X-L//'`
10279 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10280 found_dir="$dir"
10281 found_so="$dir/lib$name.$shlibext"
10282 if test -f "$dir/lib$name.la"; then
10283 found_la="$dir/lib$name.la"
10284 fi
10285 else
10286 if test -f "$dir/lib$name.$libext"; then
10287 found_dir="$dir"
10288 found_a="$dir/lib$name.$libext"
10289 if test -f "$dir/lib$name.la"; then
10290 found_la="$dir/lib$name.la"
10291 fi
10292 fi
10293 fi
10294 ;;
10295 esac
10296 if test "X$found_dir" != "X"; then
10297 break
10298 fi
10299 done
10300 fi
10301 if test "X$found_dir" != "X"; then
10302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10303 if test "X$found_so" != "X"; then
10304 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10305 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10306 else
10307 haveit=
10308 for x in $ltrpathdirs; do
10309 if test "X$x" = "X$found_dir"; then
10310 haveit=yes
10311 break
10312 fi
10313 done
10314 if test -z "$haveit"; then
10315 ltrpathdirs="$ltrpathdirs $found_dir"
10316 fi
10317 if test "$hardcode_direct" = yes; then
10318 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10319 else
10320 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10321 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10322 haveit=
10323 for x in $rpathdirs; do
10324 if test "X$x" = "X$found_dir"; then
10325 haveit=yes
10326 break
10327 fi
10328 done
10329 if test -z "$haveit"; then
10330 rpathdirs="$rpathdirs $found_dir"
10331 fi
10332 else
10333 haveit=
10334 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010335
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010336 acl_save_prefix="$prefix"
10337 prefix="$acl_final_prefix"
10338 acl_save_exec_prefix="$exec_prefix"
10339 exec_prefix="$acl_final_exec_prefix"
10340 eval x=\"$x\"
10341 exec_prefix="$acl_save_exec_prefix"
10342 prefix="$acl_save_prefix"
10343
10344 if test "X$x" = "X-L$found_dir"; then
10345 haveit=yes
10346 break
10347 fi
10348 done
10349 if test -z "$haveit"; then
10350 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10351 fi
10352 if test "$hardcode_minus_L" != no; then
10353 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10354 else
10355 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10356 fi
10357 fi
10358 fi
10359 fi
10360 else
10361 if test "X$found_a" != "X"; then
10362 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10363 else
10364 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10365 fi
10366 fi
10367 additional_includedir=
10368 case "$found_dir" in
10369 */lib | */lib/)
10370 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10371 additional_includedir="$basedir/include"
10372 ;;
10373 esac
10374 if test "X$additional_includedir" != "X"; then
10375 if test "X$additional_includedir" != "X/usr/include"; then
10376 haveit=
10377 if test "X$additional_includedir" = "X/usr/local/include"; then
10378 if test -n "$GCC"; then
10379 case $host_os in
10380 linux*) haveit=yes;;
10381 esac
10382 fi
10383 fi
10384 if test -z "$haveit"; then
10385 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010386
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010387 acl_save_prefix="$prefix"
10388 prefix="$acl_final_prefix"
10389 acl_save_exec_prefix="$exec_prefix"
10390 exec_prefix="$acl_final_exec_prefix"
10391 eval x=\"$x\"
10392 exec_prefix="$acl_save_exec_prefix"
10393 prefix="$acl_save_prefix"
10394
10395 if test "X$x" = "X-I$additional_includedir"; then
10396 haveit=yes
10397 break
10398 fi
10399 done
10400 if test -z "$haveit"; then
10401 if test -d "$additional_includedir"; then
10402 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10403 fi
10404 fi
10405 fi
10406 fi
10407 fi
10408 if test -n "$found_la"; then
10409 save_libdir="$libdir"
10410 case "$found_la" in
10411 */* | *\\*) . "$found_la" ;;
10412 *) . "./$found_la" ;;
10413 esac
10414 libdir="$save_libdir"
10415 for dep in $dependency_libs; do
10416 case "$dep" in
10417 -L*)
10418 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10419 if test "X$additional_libdir" != "X/usr/lib"; then
10420 haveit=
10421 if test "X$additional_libdir" = "X/usr/local/lib"; then
10422 if test -n "$GCC"; then
10423 case $host_os in
10424 linux*) haveit=yes;;
10425 esac
10426 fi
10427 fi
10428 if test -z "$haveit"; then
10429 haveit=
10430 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010431
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010432 acl_save_prefix="$prefix"
10433 prefix="$acl_final_prefix"
10434 acl_save_exec_prefix="$exec_prefix"
10435 exec_prefix="$acl_final_exec_prefix"
10436 eval x=\"$x\"
10437 exec_prefix="$acl_save_exec_prefix"
10438 prefix="$acl_save_prefix"
10439
10440 if test "X$x" = "X-L$additional_libdir"; then
10441 haveit=yes
10442 break
10443 fi
10444 done
10445 if test -z "$haveit"; then
10446 if test -d "$additional_libdir"; then
10447 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10448 fi
10449 fi
10450 haveit=
10451 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010452
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010453 acl_save_prefix="$prefix"
10454 prefix="$acl_final_prefix"
10455 acl_save_exec_prefix="$exec_prefix"
10456 exec_prefix="$acl_final_exec_prefix"
10457 eval x=\"$x\"
10458 exec_prefix="$acl_save_exec_prefix"
10459 prefix="$acl_save_prefix"
10460
10461 if test "X$x" = "X-L$additional_libdir"; then
10462 haveit=yes
10463 break
10464 fi
10465 done
10466 if test -z "$haveit"; then
10467 if test -d "$additional_libdir"; then
10468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10469 fi
10470 fi
10471 fi
10472 fi
10473 ;;
10474 -R*)
10475 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10476 if test "$enable_rpath" != no; then
10477 haveit=
10478 for x in $rpathdirs; do
10479 if test "X$x" = "X$dir"; then
10480 haveit=yes
10481 break
10482 fi
10483 done
10484 if test -z "$haveit"; then
10485 rpathdirs="$rpathdirs $dir"
10486 fi
10487 haveit=
10488 for x in $ltrpathdirs; do
10489 if test "X$x" = "X$dir"; then
10490 haveit=yes
10491 break
10492 fi
10493 done
10494 if test -z "$haveit"; then
10495 ltrpathdirs="$ltrpathdirs $dir"
10496 fi
10497 fi
10498 ;;
10499 -l*)
10500 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10501 ;;
10502 *.la)
10503 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10504 ;;
10505 *)
10506 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10508 ;;
10509 esac
10510 done
10511 fi
10512 else
10513 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10515 fi
10516 fi
10517 fi
10518 done
10519 done
10520 if test "X$rpathdirs" != "X"; then
10521 if test -n "$hardcode_libdir_separator"; then
10522 alldirs=
10523 for found_dir in $rpathdirs; do
10524 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10525 done
10526 acl_save_libdir="$libdir"
10527 libdir="$alldirs"
10528 eval flag=\"$hardcode_libdir_flag_spec\"
10529 libdir="$acl_save_libdir"
10530 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10531 else
10532 for found_dir in $rpathdirs; do
10533 acl_save_libdir="$libdir"
10534 libdir="$found_dir"
10535 eval flag=\"$hardcode_libdir_flag_spec\"
10536 libdir="$acl_save_libdir"
10537 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10538 done
10539 fi
10540 fi
10541 if test "X$ltrpathdirs" != "X"; then
10542 for found_dir in $ltrpathdirs; do
10543 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10544 done
10545 fi
10546
Theodore Ts'oe1052142006-10-21 21:46:47 -040010547 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10548echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010549if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010551else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010552 gt_save_CPPFLAGS="$CPPFLAGS"
10553 CPPFLAGS="$CPPFLAGS $INCINTL"
10554 gt_save_LIBS="$LIBS"
10555 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010556 cat >conftest.$ac_ext <<_ACEOF
10557/* confdefs.h. */
10558_ACEOF
10559cat confdefs.h >>conftest.$ac_ext
10560cat >>conftest.$ac_ext <<_ACEOF
10561/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010562#include <libintl.h>
10563extern int _nl_msg_cat_cntr;
10564extern
10565#ifdef __cplusplus
10566"C"
10567#endif
10568const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010569int
10570main ()
10571{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010572bindtextdomain ("", "");
10573return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010579if { (ac_try="$ac_link"
10580case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583esac
10584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest$ac_exeext &&
10595 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010596 gt_cv_func_gnugettext1_libintl=yes
10597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010598 echo "$as_me: failed program was:" >&5
10599sed 's/^/| /' conftest.$ac_ext >&5
10600
Theodore Ts'oe1052142006-10-21 21:46:47 -040010601 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010603
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010605 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010606 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10607 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608 cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010614#include <libintl.h>
10615extern int _nl_msg_cat_cntr;
10616extern
10617#ifdef __cplusplus
10618"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010619#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010620const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621int
10622main ()
10623{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010624bindtextdomain ("", "");
10625return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626 ;
10627 return 0;
10628}
10629_ACEOF
10630rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010631if { (ac_try="$ac_link"
10632case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635esac
10636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010648 LIBINTL="$LIBINTL $LIBICONV"
10649 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10650 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010651
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010652else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010653 echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
Theodore Ts'oe1052142006-10-21 21:46:47 -040010656
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010658
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010660 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010661 fi
10662 CPPFLAGS="$gt_save_CPPFLAGS"
10663 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010665{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10666echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010667 fi
10668
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010669 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10670 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010671 && test "$PACKAGE" != gettext-runtime \
10672 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010673 gt_use_preinstalled_gnugettext=yes
10674 else
10675 LIBINTL=
10676 LTLIBINTL=
10677 INCINTL=
10678 fi
10679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010681 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10682 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010683 fi
10684 fi
10685
10686 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010687 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010688 USE_INCLUDED_LIBINTL=yes
10689 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10690 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10691 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010692 fi
10693
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010694 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10695 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10696 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010697 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010698
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010699
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010700 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10701 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010702
10703cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010704#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010705_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010706
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010707 else
10708 USE_NLS=no
10709 fi
10710 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010711
Theodore Ts'oe1052142006-10-21 21:46:47 -040010712 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10713echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10714 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10715echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010717 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10718echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010719 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10720 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10721 gt_source="external libintl"
10722 else
10723 gt_source="libc"
10724 fi
10725 else
10726 gt_source="included intl directory"
10727 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010728 { echo "$as_me:$LINENO: result: $gt_source" >&5
10729echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730 fi
10731
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010732 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010733
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010734 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10735 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010736 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10737echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10738 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10739echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010740
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010741 for element in $INCINTL; do
10742 haveit=
10743 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010745 acl_save_prefix="$prefix"
10746 prefix="$acl_final_prefix"
10747 acl_save_exec_prefix="$exec_prefix"
10748 exec_prefix="$acl_final_exec_prefix"
10749 eval x=\"$x\"
10750 exec_prefix="$acl_save_exec_prefix"
10751 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010752
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010753 if test "X$x" = "X$element"; then
10754 haveit=yes
10755 break
10756 fi
10757 done
10758 if test -z "$haveit"; then
10759 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10760 fi
10761 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010762
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010764
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010766cat >>confdefs.h <<\_ACEOF
10767#define HAVE_GETTEXT 1
10768_ACEOF
10769
10770
10771cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010772#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010773_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010774
10775 fi
10776
10777 POSUB=po
10778 fi
10779
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010780
10781 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010782 BUILD_INCLUDED_LIBINTL=yes
10783 fi
10784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010785
10786
10787
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010788
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010789 nls_cv_header_intl=
10790 nls_cv_header_libgt=
10791
10792 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010793
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010794
10795 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010796
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010797
10798 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010799
10800
10801 if test "$USE_INCLUDED_LIBINTL" = yes; then
10802 INTLOBJS="\$(GETTOBJS)"
10803 fi
10804
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010805
10806 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010807
10808
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010809
10810 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010811
10812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010813
10814
10815
10816
10817
Theodore Ts'oe1052142006-10-21 21:46:47 -040010818{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10819echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10820set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10821if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010822 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010823else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010824 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010825SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010826all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010827 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010828_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010829# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010830case `${MAKE-make} -f conftest.make 2>/dev/null` in
10831 *@@@%%%=?*=@@@%%%*)
10832 eval ac_cv_prog_make_${ac_make}_set=yes;;
10833 *)
10834 eval ac_cv_prog_make_${ac_make}_set=no;;
10835esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010836rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010837fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10839 { echo "$as_me:$LINENO: result: yes" >&5
10840echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010841 SET_MAKE=
10842else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010843 { echo "$as_me:$LINENO: result: no" >&5
10844echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010845 SET_MAKE="MAKE=${MAKE-make}"
10846fi
10847
10848# Extract the first word of "ln", so it can be a program name with args.
10849set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010852if test "${ac_cv_path_LN+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010854else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855 case $LN in
10856 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010857 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10858 ;;
10859 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861for as_dir in $PATH
10862do
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010866 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 -050010867 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10870 fi
10871done
10872done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010873IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010874
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010875 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10876 ;;
10877esac
10878fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010879LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010880if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010881 { echo "$as_me:$LINENO: result: $LN" >&5
10882echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010883else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010884 { echo "$as_me:$LINENO: result: no" >&5
10885echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010886fi
10887
Theodore Ts'oe1052142006-10-21 21:46:47 -040010888
10889{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10890echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010891LN_S=$as_ln_s
10892if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010893 { echo "$as_me:$LINENO: result: yes" >&5
10894echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010895else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010896 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10897echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010898fi
10899
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010900# Extract the first word of "mv", so it can be a program name with args.
10901set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010904if test "${ac_cv_path_MV+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010907 case $MV in
10908 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10910 ;;
10911 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010918 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 -050010919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10922 fi
10923done
10924done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010925IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010926
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10928 ;;
10929esac
10930fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010931MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010932if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933 { echo "$as_me:$LINENO: result: $MV" >&5
10934echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010935else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010936 { echo "$as_me:$LINENO: result: no" >&5
10937echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010938fi
10939
Theodore Ts'oe1052142006-10-21 21:46:47 -040010940
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010941# Extract the first word of "cp", so it can be a program name with args.
10942set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010945if test "${ac_cv_path_CP+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010947else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010948 case $CP in
10949 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010950 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10951 ;;
10952 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954for as_dir in $PATH
10955do
10956 IFS=$as_save_IFS
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010959 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 -050010960 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 break 2
10963 fi
10964done
10965done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010966IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010967
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010968 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10969 ;;
10970esac
10971fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010972CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010973if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010974 { echo "$as_me:$LINENO: result: $CP" >&5
10975echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010976else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010977 { echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010979fi
10980
Theodore Ts'oe1052142006-10-21 21:46:47 -040010981
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010982# Extract the first word of "rm", so it can be a program name with args.
10983set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010986if test "${ac_cv_path_RM+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010988else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010989 case $RM in
10990 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010991 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10992 ;;
10993 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011000 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 -050011001 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11004 fi
11005done
11006done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011007IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011008
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011009 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11010 ;;
11011esac
11012fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011013RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011014if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011015 { echo "$as_me:$LINENO: result: $RM" >&5
11016echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011017else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011018 { echo "$as_me:$LINENO: result: no" >&5
11019echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011020fi
11021
Theodore Ts'oe1052142006-10-21 21:46:47 -040011022
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011023# Extract the first word of "chmod", so it can be a program name with args.
11024set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011027if test "${ac_cv_path_CHMOD+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011030 case $CHMOD in
11031 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011032 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11033 ;;
11034 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $PATH
11037do
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011041 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 -050011042 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11045 fi
11046done
11047done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011048IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011049
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011050 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11051 ;;
11052esac
11053fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011054CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011055if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011056 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11057echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011058else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011059 { echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011061fi
11062
Theodore Ts'oe1052142006-10-21 21:46:47 -040011063
Theodore Ts'o32237012005-01-17 19:13:39 -050011064for ac_prog in gawk mawk nawk awk
11065do
11066 # Extract the first word of "$ac_prog", so it can be a program name with args.
11067set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011070if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011071 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011072else
Theodore Ts'o32237012005-01-17 19:13:39 -050011073 if test -n "$AWK"; then
11074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011077for as_dir in $PATH
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011082 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 -050011083 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087done
11088done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011089IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011090
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011091fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011092fi
11093AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011094if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011095 { echo "$as_me:$LINENO: result: $AWK" >&5
11096echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011097else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011098 { echo "$as_me:$LINENO: result: no" >&5
11099echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011100fi
11101
Theodore Ts'oe1052142006-10-21 21:46:47 -040011102
Theodore Ts'o32237012005-01-17 19:13:39 -050011103 test -n "$AWK" && break
11104done
11105
Theodore Ts'oe1052142006-10-21 21:46:47 -040011106{ echo "$as_me:$LINENO: checking for egrep" >&5
11107echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11108if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11112 then ac_cv_path_EGREP="$GREP -E"
11113 else
11114 # Extract the first word of "egrep" to use in msg output
11115if test -z "$EGREP"; then
11116set dummy egrep; ac_prog_name=$2
11117if test "${ac_cv_path_EGREP+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120 ac_path_EGREP_found=false
11121# Loop through the user's path and test for each of PROGNAME-LIST
11122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11124do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_prog in egrep; do
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011130 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011131 # Check for GNU ac_path_EGREP and select it if it is found.
11132 # Check for GNU $ac_path_EGREP
11133case `"$ac_path_EGREP" --version 2>&1` in
11134*GNU*)
11135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11136*)
11137 ac_count=0
11138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11139 while :
11140 do
11141 cat "conftest.in" "conftest.in" >"conftest.tmp"
11142 mv "conftest.tmp" "conftest.in"
11143 cp "conftest.in" "conftest.nl"
11144 echo 'EGREP' >> "conftest.nl"
11145 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11147 ac_count=`expr $ac_count + 1`
11148 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11149 # Best one so far, save it but keep looking for a better one
11150 ac_cv_path_EGREP="$ac_path_EGREP"
11151 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011152 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011153 # 10*(2^10) chars as input seems more than enough
11154 test $ac_count -gt 10 && break
11155 done
11156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11157esac
11158
11159
11160 $ac_path_EGREP_found && break 3
11161 done
11162done
11163
11164done
11165IFS=$as_save_IFS
11166
11167
Theodore Ts'o32237012005-01-17 19:13:39 -050011168fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011169
11170EGREP="$ac_cv_path_EGREP"
11171if test -z "$EGREP"; then
11172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11173echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11174 { (exit 1); exit 1; }; }
11175fi
11176
11177else
11178 ac_cv_path_EGREP=$EGREP
11179fi
11180
11181
11182 fi
11183fi
11184{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11185echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11186 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011187
11188
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011189# Extract the first word of "sed", so it can be a program name with args.
11190set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011193if test "${ac_cv_path_SED+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011195else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011196 case $SED in
11197 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011198 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11199 ;;
11200 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011207 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 -050011208 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212done
11213done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011214IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011215
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011216 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11217 ;;
11218esac
11219fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011220SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011221if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011222 { echo "$as_me:$LINENO: result: $SED" >&5
11223echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011224else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011225 { echo "$as_me:$LINENO: result: no" >&5
11226echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011227fi
11228
Theodore Ts'oe1052142006-10-21 21:46:47 -040011229
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011230# Extract the first word of "perl", so it can be a program name with args.
11231set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011234if test "${ac_cv_path_PERL+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011236else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011237 case $PERL in
11238 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011239 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11240 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011241 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $PATH
11244do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011248 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 -050011249 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253done
11254done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011255IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011256
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011257 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11258 ;;
11259esac
11260fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011261PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011262if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011263 { echo "$as_me:$LINENO: result: $PERL" >&5
11264echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011265else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011266 { echo "$as_me:$LINENO: result: no" >&5
11267echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011268fi
11269
Theodore Ts'oe1052142006-10-21 21:46:47 -040011270
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011271# Extract the first word of "ldconfig", so it can be a program name with args.
11272set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011275if test "${ac_cv_path_LDCONFIG+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011277else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011278 case $LDCONFIG in
11279 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011280 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11281 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011282 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284for as_dir in $PATH
11285do
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011289 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 -050011290 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11293 fi
11294done
11295done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011296IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011297
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011298 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11299 ;;
11300esac
11301fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011302LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011303if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011304 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11305echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011306else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011307 { echo "$as_me:$LINENO: result: no" >&5
11308echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011309fi
11310
Theodore Ts'oe1052142006-10-21 21:46:47 -040011311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011312if test -n "$ac_tool_prefix"; then
11313 # 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 +000011314set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011317if test "${ac_cv_prog_AR+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011319else
11320 if test -n "$AR"; then
11321 ac_cv_prog_AR="$AR" # Let the user override the test.
11322else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011329 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 -050011330 ac_cv_prog_AR="${ac_tool_prefix}ar"
11331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334done
11335done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011336IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011337
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011338fi
11339fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011341if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011342 { echo "$as_me:$LINENO: result: $AR" >&5
11343echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011344else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011345 { echo "$as_me:$LINENO: result: no" >&5
11346echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011347fi
11348
Theodore Ts'oe1052142006-10-21 21:46:47 -040011349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011350fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011351if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011352 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011353 # Extract the first word of "ar", so it can be a program name with args.
11354set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011357if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011359else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011360 if test -n "$ac_ct_AR"; then
11361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011362else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364for as_dir in $PATH
11365do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011369 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 -050011370 ac_cv_prog_ac_ct_AR="ar"
11371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374done
11375done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011376IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011377
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011378fi
11379fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380ac_ct_AR=$ac_cv_prog_ac_ct_AR
11381if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011382 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11383echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011384else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011385 { echo "$as_me:$LINENO: result: no" >&5
11386echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011387fi
11388
Theodore Ts'oe1052142006-10-21 21:46:47 -040011389 if test "x$ac_ct_AR" = x; then
11390 AR="ar"
11391 else
11392 case $cross_compiling:$ac_tool_warned in
11393yes:)
11394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11395whose name does not start with the host triplet. If you think this
11396configuration is useful to you, please write to autoconf@gnu.org." >&5
11397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11398whose name does not start with the host triplet. If you think this
11399configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11400ac_tool_warned=yes ;;
11401esac
11402 AR=$ac_ct_AR
11403 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011404else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011405 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011406fi
11407
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408if test -n "$ac_tool_prefix"; then
11409 # 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 +000011410set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413if test "${ac_cv_prog_RANLIB+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011415else
11416 if test -n "$RANLIB"; then
11417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11418else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011425 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 -050011426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 break 2
11429 fi
11430done
11431done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011432IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011434fi
11435fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011437if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011438 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11439echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011440else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011441 { echo "$as_me:$LINENO: result: no" >&5
11442echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011443fi
11444
Theodore Ts'oe1052142006-10-21 21:46:47 -040011445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011447if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011448 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011449 # Extract the first word of "ranlib", so it can be a program name with args.
11450set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011453if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011455else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456 if test -n "$ac_ct_RANLIB"; then
11457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011458else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460for as_dir in $PATH
11461do
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011465 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 -050011466 ac_cv_prog_ac_ct_RANLIB="ranlib"
11467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 break 2
11469 fi
11470done
11471done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011472IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011474fi
11475fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11477if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011478 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11479echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011480else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011481 { echo "$as_me:$LINENO: result: no" >&5
11482echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011483fi
11484
Theodore Ts'oe1052142006-10-21 21:46:47 -040011485 if test "x$ac_ct_RANLIB" = x; then
11486 RANLIB=":"
11487 else
11488 case $cross_compiling:$ac_tool_warned in
11489yes:)
11490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11491whose name does not start with the host triplet. If you think this
11492configuration is useful to you, please write to autoconf@gnu.org." >&5
11493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11494whose name does not start with the host triplet. If you think this
11495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11496ac_tool_warned=yes ;;
11497esac
11498 RANLIB=$ac_ct_RANLIB
11499 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011500else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011502fi
11503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504if test -n "$ac_tool_prefix"; then
11505 # 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 +000011506set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011509if test "${ac_cv_prog_STRIP+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511else
11512 if test -n "$STRIP"; then
11513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11514else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011521 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 -050011522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11525 fi
11526done
11527done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011528IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011529
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530fi
11531fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011532STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011533if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011534 { echo "$as_me:$LINENO: result: $STRIP" >&5
11535echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011536else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011537 { echo "$as_me:$LINENO: result: no" >&5
11538echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011539fi
11540
Theodore Ts'oe1052142006-10-21 21:46:47 -040011541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011543if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011545 # Extract the first word of "strip", so it can be a program name with args.
11546set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011549if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552 if test -n "$ac_ct_STRIP"; then
11553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011554else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011561 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 -050011562 ac_cv_prog_ac_ct_STRIP="strip"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566done
11567done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011568IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011570fi
11571fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11573if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011574 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11575echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011576else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011577 { echo "$as_me:$LINENO: result: no" >&5
11578echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011579fi
11580
Theodore Ts'oe1052142006-10-21 21:46:47 -040011581 if test "x$ac_ct_STRIP" = x; then
11582 STRIP=":"
11583 else
11584 case $cross_compiling:$ac_tool_warned in
11585yes:)
11586{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11587whose name does not start with the host triplet. If you think this
11588configuration is useful to you, please write to autoconf@gnu.org." >&5
11589echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11590whose name does not start with the host triplet. If you think this
11591configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11592ac_tool_warned=yes ;;
11593esac
11594 STRIP=$ac_ct_STRIP
11595 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011596else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011597 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011598fi
11599
Manish Katiyar7321d942008-04-14 17:20:03 +053011600# Extract the first word of "makeinfo", so it can be a program name with args.
11601set dummy makeinfo; ac_word=$2
11602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11604if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606else
11607 if test -n "$MAKEINFO"; then
11608 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11609else
11610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617 ac_cv_prog_MAKEINFO="makeinfo"
11618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11620 fi
11621done
11622done
11623IFS=$as_save_IFS
11624
11625fi
11626fi
11627MAKEINFO=$ac_cv_prog_MAKEINFO
11628if test -n "$MAKEINFO"; then
11629 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11630echo "${ECHO_T}$MAKEINFO" >&6; }
11631else
11632 { echo "$as_me:$LINENO: result: no" >&5
11633echo "${ECHO_T}no" >&6; }
11634fi
11635
11636
11637if test "_$MAKEINFO" = "_"; then
11638 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11639else
11640 case "$MAKEINFO" in
11641 */missing.*)
11642 { echo "$as_me:$LINENO: WARNING:
11643*** Makeinfo is missing. Info documentation will not be built." >&5
11644echo "$as_me: WARNING:
11645*** Makeinfo is missing. Info documentation will not be built." >&2;}
11646 ;;
11647 *)
11648 ;;
11649 esac
11650fi
11651
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011652# Find a good install program. We prefer a C program (faster),
11653# so one script is as good as another. But avoid the broken or
11654# incompatible versions:
11655# SysV /etc/install, /usr/sbin/install
11656# SunOS /usr/etc/install
11657# IRIX /sbin/install
11658# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011664# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011665{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11666echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011667if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668if test "${ac_cv_path_install+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011670else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 # Account for people who put trailing slashes in PATH elements.
11677case $as_dir/ in
11678 ./ | .// | /cC/* | \
11679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11681 /usr/ucb/* ) ;;
11682 *)
11683 # OSF1 and SCO ODT 3.0 have their own names for install.
11684 # Don't use installbsd from OSF since it installs stuff as root
11685 # by default.
11686 for ac_prog in ginstall scoinst install; do
11687 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011688 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 +000011689 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011691 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693 elif test $ac_prog = install &&
11694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11695 # program-specific install script used by HP pwplus--don't use.
11696 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011697 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11699 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011700 fi
11701 fi
11702 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703 done
11704 ;;
11705esac
11706done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011707IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011708
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011709
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011710fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011711 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011712 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011713 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011714 # As a last resort, use the slow shell script. Don't cache a
11715 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011716 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011717 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011718 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011719 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011721{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11722echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011723
11724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11725# It thinks the first close brace ends the variable substitution.
11726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011729
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11731
Theodore Ts'o6c133521999-07-03 20:37:03 +000011732# See if we need a separate native compiler.
11733if test $cross_compiling = no; then
11734 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011735
Theodore Ts'o6c133521999-07-03 20:37:03 +000011736else
11737 for ac_prog in gcc cc
11738do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011740set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011743if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011745else
11746 if test -n "$BUILD_CC"; then
11747 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11748else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011751do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011755 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 -050011756 ac_cv_prog_BUILD_CC="$ac_prog"
11757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11759 fi
11760done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011761done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011762IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011763
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011764fi
11765fi
11766BUILD_CC=$ac_cv_prog_BUILD_CC
11767if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11769echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011770else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011771 { echo "$as_me:$LINENO: result: no" >&5
11772echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011773fi
11774
Theodore Ts'oe1052142006-10-21 21:46:47 -040011775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011776 test -n "$BUILD_CC" && break
11777done
11778
11779fi
11780
Theodore Ts'o740837d2007-12-16 17:21:38 -050011781
11782
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011811
Theodore Ts'o106ad962007-04-04 21:26:37 -040011812
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011813
11814
11815for 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 unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.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 -050011816do
11817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011824ac_res=`eval echo '${'$as_ac_Header'}'`
11825 { echo "$as_me:$LINENO: result: $ac_res" >&5
11826echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011827else
11828 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011829{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837$ac_includes_default
11838#include <$ac_header>
11839_ACEOF
11840rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841if { (ac_try="$ac_compile"
11842case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845esac
11846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857 ac_header_compiler=yes
11858else
11859 echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
Theodore Ts'oe1052142006-10-21 21:46:47 -040011862 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011863fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011864
11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868
11869# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878#include <$ac_header>
11879_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011880if { (ac_try="$ac_cpp conftest.$ac_ext"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011892 (exit $ac_status); } >/dev/null && {
11893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896 ac_header_preproc=yes
11897else
11898 echo "$as_me: failed program was:" >&5
11899sed 's/^/| /' conftest.$ac_ext >&5
11900
11901 ac_header_preproc=no
11902fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011904rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011907
11908# So? What about this header?
11909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910 yes:no: )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc=yes
11916 ;;
11917 no:yes:* )
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011930
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011931 ;;
11932esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011933{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 eval "$as_ac_Header=\$ac_header_preproc"
11939fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011940ac_res=`eval echo '${'$as_ac_Header'}'`
11941 { echo "$as_me:$LINENO: result: $ac_res" >&5
11942echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943
11944fi
11945if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11948_ACEOF
11949
11950fi
11951
11952done
11953
11954
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011955
11956for ac_header in sys/disk.h sys/mount.h
11957do
11958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011959{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963else
11964 cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970
11971#if HAVE_SYS_QUEUE_H
11972#include <sys/queue.h>
11973#endif
11974
11975
11976#include <$ac_header>
11977_ACEOF
11978rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011979if { (ac_try="$ac_compile"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011995 eval "$as_ac_Header=yes"
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
Theodore Ts'oe1052142006-10-21 21:46:47 -040012000 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012002
12003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012005ac_res=`eval echo '${'$as_ac_Header'}'`
12006 { echo "$as_me:$LINENO: result: $ac_res" >&5
12007echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012008if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011_ACEOF
12012
12013fi
12014
12015done
12016
12017
12018for ac_header in net/if.h
12019do
12020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012021{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026 cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032
12033#if HAVE_SYS_TYPES_H
12034#include <sys/types.h>
12035#endif
12036#if HAVE_SYS_SOCKET
12037#include <sys/socket.h>
12038#endif
12039
12040
12041#include <$ac_header>
12042_ACEOF
12043rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012044if { (ac_try="$ac_compile"
12045case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048esac
12049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012060 eval "$as_ac_Header=yes"
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
Theodore Ts'oe1052142006-10-21 21:46:47 -040012065 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012067
12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012070ac_res=`eval echo '${'$as_ac_Header'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012073if test `eval echo '${'$as_ac_Header'}'` = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12076_ACEOF
12077
12078fi
12079
12080done
12081
12082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083for ac_func in vprintf
12084do
12085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090else
12091 cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h. */
12097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12099#define $ac_func innocuous_$ac_func
12100
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012101/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12105
12106#ifdef __STDC__
12107# include <limits.h>
12108#else
12109# include <assert.h>
12110#endif
12111
12112#undef $ac_func
12113
Theodore Ts'oe1052142006-10-21 21:46:47 -040012114/* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117#ifdef __cplusplus
12118extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012121/* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012124#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012125choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012126#endif
12127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012128int
12129main ()
12130{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012131return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132 ;
12133 return 0;
12134}
12135_ACEOF
12136rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137if { (ac_try="$ac_link"
12138case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141esac
12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156 echo "$as_me: failed program was:" >&5
12157sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012158
Theodore Ts'oe1052142006-10-21 21:46:47 -040012159 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012161
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163 conftest$ac_exeext conftest.$ac_ext
12164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012165ac_res=`eval echo '${'$as_ac_var'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168if test `eval echo '${'$as_ac_var'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12171_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012172
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12174echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012175if test "${ac_cv_func__doprnt+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012177else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012178 cat >conftest.$ac_ext <<_ACEOF
12179/* confdefs.h. */
12180_ACEOF
12181cat confdefs.h >>conftest.$ac_ext
12182cat >>conftest.$ac_ext <<_ACEOF
12183/* end confdefs.h. */
12184/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12186#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012187
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012188/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189 which can conflict with char _doprnt (); below.
12190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191 <limits.h> exists even on freestanding compilers. */
12192
12193#ifdef __STDC__
12194# include <limits.h>
12195#else
12196# include <assert.h>
12197#endif
12198
12199#undef _doprnt
12200
Theodore Ts'oe1052142006-10-21 21:46:47 -040012201/* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204#ifdef __cplusplus
12205extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012207char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012208/* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012211#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012212choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012213#endif
12214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215int
12216main ()
12217{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012218return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012219 ;
12220 return 0;
12221}
12222_ACEOF
12223rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012224if { (ac_try="$ac_link"
12225case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228esac
12229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012236 (exit $ac_status); } && {
12237 test -z "$ac_c_werror_flag" ||
12238 test ! -s conftest.err
12239 } && test -s conftest$ac_exeext &&
12240 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012241 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012242else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243 echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012245
Theodore Ts'oe1052142006-10-21 21:46:47 -040012246 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012247fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012248
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012250 conftest$ac_exeext conftest.$ac_ext
12251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012252{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12253echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012254if test $ac_cv_func__doprnt = yes; then
12255
12256cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012257#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012258_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012259
12260fi
12261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262fi
12263done
12264
12265
Theodore Ts'oe1052142006-10-21 21:46:47 -040012266{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12267echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012268if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012269 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012271 cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012277#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012279int
12280main ()
12281{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012282static struct dirent ac_aggr;
12283if (ac_aggr.d_reclen)
12284return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012285 ;
12286 return 0;
12287}
12288_ACEOF
12289rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012290if { (ac_try="$ac_compile"
12291case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012306 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012307else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012308 echo "$as_me: failed program was:" >&5
12309sed 's/^/| /' conftest.$ac_ext >&5
12310
Theodore Ts'oe1052142006-10-21 21:46:47 -040012311 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012312/* confdefs.h. */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h. */
12317#include <dirent.h>
12318
12319int
12320main ()
12321{
12322static struct dirent ac_aggr;
12323if (sizeof ac_aggr.d_reclen)
12324return 0;
12325 ;
12326 return 0;
12327}
12328_ACEOF
12329rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012330if { (ac_try="$ac_compile"
12331case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334esac
12335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012346 ac_cv_member_struct_dirent_d_reclen=yes
12347else
12348 echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
Theodore Ts'oe1052142006-10-21 21:46:47 -040012351 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012352fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012353
12354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012356
12357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012358fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012359{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12360echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012361if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12362 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012363#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012365
12366fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012367
Theodore Ts'oe1052142006-10-21 21:46:47 -040012368{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12369echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012370if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012371 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012372else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012373 cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h. */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012379#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012380
Theodore Ts'oe1052142006-10-21 21:46:47 -040012381typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012382int
12383main ()
12384{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012385if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012386 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012387if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012388 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012389 ;
12390 return 0;
12391}
12392_ACEOF
12393rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012394if { (ac_try="$ac_compile"
12395case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012410 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012411else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
Theodore Ts'oe1052142006-10-21 21:46:47 -040012415 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012416fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012417
12418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012419fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012420{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12421echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012422if test $ac_cv_type_ssize_t = yes; then
12423 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012424#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012425_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012426
12427fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012428
Theodore Ts'oe1052142006-10-21 21:46:47 -040012429{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12430echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012431if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012432 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012433else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012434 cat >conftest.$ac_ext <<_ACEOF
12435/* confdefs.h. */
12436_ACEOF
12437cat confdefs.h >>conftest.$ac_ext
12438cat >>conftest.$ac_ext <<_ACEOF
12439/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012440#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012442int
12443main ()
12444{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012445#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012446 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012447#endif
12448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012449 ;
12450 return 0;
12451}
12452_ACEOF
12453rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012454if { (ac_try="$ac_compile"
12455case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458esac
12459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012470 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012471else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012472 echo "$as_me: failed program was:" >&5
12473sed 's/^/| /' conftest.$ac_ext >&5
12474
Theodore Ts'oe1052142006-10-21 21:46:47 -040012475 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012477
12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012479fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012480{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12481echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012482if test $ac_cv_have_decl_llseek = yes; then
12483 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012484#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012485_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012486
12487fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012488
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12490echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012491if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012492 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012493else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012494 cat >conftest.$ac_ext <<_ACEOF
12495/* confdefs.h. */
12496_ACEOF
12497cat confdefs.h >>conftest.$ac_ext
12498cat >>conftest.$ac_ext <<_ACEOF
12499/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012500#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012501 #define _LARGEFILE64_SOURCE
12502 #include <unistd.h>
12503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012504int
12505main ()
12506{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012507#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012508 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012509#endif
12510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511 ;
12512 return 0;
12513}
12514_ACEOF
12515rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012516if { (ac_try="$ac_compile"
12517case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520esac
12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012528 (exit $ac_status); } && {
12529 test -z "$ac_c_werror_flag" ||
12530 test ! -s conftest.err
12531 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012532 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012533else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534 echo "$as_me: failed program was:" >&5
12535sed 's/^/| /' conftest.$ac_ext >&5
12536
Theodore Ts'oe1052142006-10-21 21:46:47 -040012537 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012539
12540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012541fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012542{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12543echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012544if test $ac_cv_have_decl_lseek64 = yes; then
12545 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012546#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012547_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012548
12549fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012550
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012551if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012553 ac_cv_sizeof_short=2
12554 ac_cv_sizeof_int=4
12555 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012556 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12558echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012559fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012560{ echo "$as_me:$LINENO: checking for short" >&5
12561echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012562if test "${ac_cv_type_short+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565 cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012572typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012573int
12574main ()
12575{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012576if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012577 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012578if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012579 return 0;
12580 ;
12581 return 0;
12582}
12583_ACEOF
12584rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012585if { (ac_try="$ac_compile"
12586case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589esac
12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012601 ac_cv_type_short=yes
12602else
12603 echo "$as_me: failed program was:" >&5
12604sed 's/^/| /' conftest.$ac_ext >&5
12605
Theodore Ts'oe1052142006-10-21 21:46:47 -040012606 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012608
Theodore Ts'oe1052142006-10-21 21:46:47 -040012609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610fi
12611{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12612echo "${ECHO_T}$ac_cv_type_short" >&6; }
12613
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012614# The cast to long int works around a bug in the HP C Compiler
12615# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12616# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12617# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012618{ echo "$as_me:$LINENO: checking size of short" >&5
12619echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620if test "${ac_cv_sizeof_short+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012623 if test "$cross_compiling" = yes; then
12624 # Depending upon the size, compute the lo and hi bounds.
12625cat >conftest.$ac_ext <<_ACEOF
12626/* confdefs.h. */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h. */
12631$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012632 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012633int
12634main ()
12635{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637test_array [0] = 0
12638
12639 ;
12640 return 0;
12641}
12642_ACEOF
12643rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012644if { (ac_try="$ac_compile"
12645case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648esac
12649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012660 ac_lo=0 ac_mid=0
12661 while :; do
12662 cat >conftest.$ac_ext <<_ACEOF
12663/* confdefs.h. */
12664_ACEOF
12665cat confdefs.h >>conftest.$ac_ext
12666cat >>conftest.$ac_ext <<_ACEOF
12667/* end confdefs.h. */
12668$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012669 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012670int
12671main ()
12672{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012673static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012674test_array [0] = 0
12675
12676 ;
12677 return 0;
12678}
12679_ACEOF
12680rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012681if { (ac_try="$ac_compile"
12682case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685esac
12686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012697 ac_hi=$ac_mid; break
12698else
12699 echo "$as_me: failed program was:" >&5
12700sed 's/^/| /' conftest.$ac_ext >&5
12701
Theodore Ts'oe1052142006-10-21 21:46:47 -040012702 ac_lo=`expr $ac_mid + 1`
12703 if test $ac_lo -le $ac_mid; then
12704 ac_lo= ac_hi=
12705 break
12706 fi
12707 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012708fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012709
12710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012711 done
12712else
12713 echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
Theodore Ts'oe1052142006-10-21 21:46:47 -040012716 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012717/* confdefs.h. */
12718_ACEOF
12719cat confdefs.h >>conftest.$ac_ext
12720cat >>conftest.$ac_ext <<_ACEOF
12721/* end confdefs.h. */
12722$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012723 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012724int
12725main ()
12726{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012727static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012728test_array [0] = 0
12729
12730 ;
12731 return 0;
12732}
12733_ACEOF
12734rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012735if { (ac_try="$ac_compile"
12736case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012747 (exit $ac_status); } && {
12748 test -z "$ac_c_werror_flag" ||
12749 test ! -s conftest.err
12750 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012751 ac_hi=-1 ac_mid=-1
12752 while :; do
12753 cat >conftest.$ac_ext <<_ACEOF
12754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
12759$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012760 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012761int
12762main ()
12763{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012764static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012765test_array [0] = 0
12766
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012772if { (ac_try="$ac_compile"
12773case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776esac
12777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012788 ac_lo=$ac_mid; break
12789else
12790 echo "$as_me: failed program was:" >&5
12791sed 's/^/| /' conftest.$ac_ext >&5
12792
Theodore Ts'oe1052142006-10-21 21:46:47 -040012793 ac_hi=`expr '(' $ac_mid ')' - 1`
12794 if test $ac_mid -le $ac_hi; then
12795 ac_lo= ac_hi=
12796 break
12797 fi
12798 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012800
12801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012802 done
12803else
12804 echo "$as_me: failed program was:" >&5
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
Theodore Ts'oe1052142006-10-21 21:46:47 -040012807 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012809
12810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012812
12813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012814# Binary search between lo and hi bounds.
12815while test "x$ac_lo" != "x$ac_hi"; do
12816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12817 cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
12823$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012824 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012825int
12826main ()
12827{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012828static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012829test_array [0] = 0
12830
12831 ;
12832 return 0;
12833}
12834_ACEOF
12835rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012836if { (ac_try="$ac_compile"
12837case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840esac
12841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012852 ac_hi=$ac_mid
12853else
12854 echo "$as_me: failed program was:" >&5
12855sed 's/^/| /' conftest.$ac_ext >&5
12856
Theodore Ts'oe1052142006-10-21 21:46:47 -040012857 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012858fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012859
12860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012861done
12862case $ac_lo in
12863?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012864'') if test "$ac_cv_type_short" = yes; then
12865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012866See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012867echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012868See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012869 { (exit 77); exit 77; }; }
12870 else
12871 ac_cv_sizeof_short=0
12872 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012874else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012875 cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012882 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012883static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12884static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012885#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012886#include <stdlib.h>
12887int
12888main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012889{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012890
12891 FILE *f = fopen ("conftest.val", "w");
12892 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012893 return 1;
12894 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012895 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012896 long int i = longval ();
12897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12898 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012899 fprintf (f, "%ld\n", i);
12900 }
12901 else
12902 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012903 unsigned long int i = ulongval ();
12904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12905 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906 fprintf (f, "%lu\n", i);
12907 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012908 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012909
12910 ;
12911 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012912}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012913_ACEOF
12914rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012915if { (ac_try="$ac_link"
12916case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919esac
12920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928esac
12929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012936 echo "$as_me: program exited with status $ac_status" >&5
12937echo "$as_me: failed program was:" >&5
12938sed 's/^/| /' conftest.$ac_ext >&5
12939
12940( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012941if test "$ac_cv_type_short" = yes; then
12942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012944echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012945See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012946 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012947 else
12948 ac_cv_sizeof_short=0
12949 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012951rm -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 -050012952fi
12953rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012954fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012955{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12956echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012957
12958
12959
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012960cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012961#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012962_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012963
12964
Theodore Ts'oe1052142006-10-21 21:46:47 -040012965{ echo "$as_me:$LINENO: checking for int" >&5
12966echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012967if test "${ac_cv_type_int+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969else
12970 cat >conftest.$ac_ext <<_ACEOF
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
12976$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012977typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012978int
12979main ()
12980{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012981if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012982 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012983if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012984 return 0;
12985 ;
12986 return 0;
12987}
12988_ACEOF
12989rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012990if { (ac_try="$ac_compile"
12991case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994esac
12995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013006 ac_cv_type_int=yes
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
Theodore Ts'oe1052142006-10-21 21:46:47 -040013011 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013013
Theodore Ts'oe1052142006-10-21 21:46:47 -040013014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015fi
13016{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13017echo "${ECHO_T}$ac_cv_type_int" >&6; }
13018
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013019# The cast to long int works around a bug in the HP C Compiler
13020# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13021# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13022# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013023{ echo "$as_me:$LINENO: checking size of int" >&5
13024echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013025if test "${ac_cv_sizeof_int+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013028 if test "$cross_compiling" = yes; then
13029 # Depending upon the size, compute the lo and hi bounds.
13030cat >conftest.$ac_ext <<_ACEOF
13031/* confdefs.h. */
13032_ACEOF
13033cat confdefs.h >>conftest.$ac_ext
13034cat >>conftest.$ac_ext <<_ACEOF
13035/* end confdefs.h. */
13036$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013037 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013038int
13039main ()
13040{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013041static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013042test_array [0] = 0
13043
13044 ;
13045 return 0;
13046}
13047_ACEOF
13048rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013049if { (ac_try="$ac_compile"
13050case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053esac
13054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013065 ac_lo=0 ac_mid=0
13066 while :; do
13067 cat >conftest.$ac_ext <<_ACEOF
13068/* confdefs.h. */
13069_ACEOF
13070cat confdefs.h >>conftest.$ac_ext
13071cat >>conftest.$ac_ext <<_ACEOF
13072/* end confdefs.h. */
13073$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013074 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013075int
13076main ()
13077{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013078static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013079test_array [0] = 0
13080
13081 ;
13082 return 0;
13083}
13084_ACEOF
13085rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013086if { (ac_try="$ac_compile"
13087case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013102 ac_hi=$ac_mid; break
13103else
13104 echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
Theodore Ts'oe1052142006-10-21 21:46:47 -040013107 ac_lo=`expr $ac_mid + 1`
13108 if test $ac_lo -le $ac_mid; then
13109 ac_lo= ac_hi=
13110 break
13111 fi
13112 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013113fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013114
13115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013116 done
13117else
13118 echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
Theodore Ts'oe1052142006-10-21 21:46:47 -040013121 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013122/* confdefs.h. */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h. */
13127$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013128 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013129int
13130main ()
13131{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013132static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013133test_array [0] = 0
13134
13135 ;
13136 return 0;
13137}
13138_ACEOF
13139rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013140if { (ac_try="$ac_compile"
13141case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144esac
13145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013156 ac_hi=-1 ac_mid=-1
13157 while :; do
13158 cat >conftest.$ac_ext <<_ACEOF
13159/* confdefs.h. */
13160_ACEOF
13161cat confdefs.h >>conftest.$ac_ext
13162cat >>conftest.$ac_ext <<_ACEOF
13163/* end confdefs.h. */
13164$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013165 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013166int
13167main ()
13168{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013169static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013170test_array [0] = 0
13171
13172 ;
13173 return 0;
13174}
13175_ACEOF
13176rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013177if { (ac_try="$ac_compile"
13178case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181esac
13182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013193 ac_lo=$ac_mid; break
13194else
13195 echo "$as_me: failed program was:" >&5
13196sed 's/^/| /' conftest.$ac_ext >&5
13197
Theodore Ts'oe1052142006-10-21 21:46:47 -040013198 ac_hi=`expr '(' $ac_mid ')' - 1`
13199 if test $ac_mid -le $ac_hi; then
13200 ac_lo= ac_hi=
13201 break
13202 fi
13203 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013204fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013205
13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013207 done
13208else
13209 echo "$as_me: failed program was:" >&5
13210sed 's/^/| /' conftest.$ac_ext >&5
13211
Theodore Ts'oe1052142006-10-21 21:46:47 -040013212 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013213fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013214
13215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013216fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013217
13218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013219# Binary search between lo and hi bounds.
13220while test "x$ac_lo" != "x$ac_hi"; do
13221 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13222 cat >conftest.$ac_ext <<_ACEOF
13223/* confdefs.h. */
13224_ACEOF
13225cat confdefs.h >>conftest.$ac_ext
13226cat >>conftest.$ac_ext <<_ACEOF
13227/* end confdefs.h. */
13228$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013229 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013230int
13231main ()
13232{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013233static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013234test_array [0] = 0
13235
13236 ;
13237 return 0;
13238}
13239_ACEOF
13240rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013241if { (ac_try="$ac_compile"
13242case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245esac
13246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013253 (exit $ac_status); } && {
13254 test -z "$ac_c_werror_flag" ||
13255 test ! -s conftest.err
13256 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013257 ac_hi=$ac_mid
13258else
13259 echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
Theodore Ts'oe1052142006-10-21 21:46:47 -040013262 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013264
13265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013266done
13267case $ac_lo in
13268?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013269'') if test "$ac_cv_type_int" = yes; then
13270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013271See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013272echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013273See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013274 { (exit 77); exit 77; }; }
13275 else
13276 ac_cv_sizeof_int=0
13277 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013278esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013279else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013280 cat >conftest.$ac_ext <<_ACEOF
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
13286$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013287 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013288static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13289static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013290#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013291#include <stdlib.h>
13292int
13293main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013294{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013295
13296 FILE *f = fopen ("conftest.val", "w");
13297 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013298 return 1;
13299 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013300 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013301 long int i = longval ();
13302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13303 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013304 fprintf (f, "%ld\n", i);
13305 }
13306 else
13307 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013308 unsigned long int i = ulongval ();
13309 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13310 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013311 fprintf (f, "%lu\n", i);
13312 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013313 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013314
13315 ;
13316 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013317}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013318_ACEOF
13319rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013320if { (ac_try="$ac_link"
13321case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324esac
13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333esac
13334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013340else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013341 echo "$as_me: program exited with status $ac_status" >&5
13342echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013346if test "$ac_cv_type_int" = yes; then
13347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013348See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013349echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013350See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013351 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013352 else
13353 ac_cv_sizeof_int=0
13354 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013356rm -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 -050013357fi
13358rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013360{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13361echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013362
13363
13364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013365cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013366#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013367_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013368
13369
Theodore Ts'oe1052142006-10-21 21:46:47 -040013370{ echo "$as_me:$LINENO: checking for long" >&5
13371echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013372if test "${ac_cv_type_long+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374else
13375 cat >conftest.$ac_ext <<_ACEOF
13376/* confdefs.h. */
13377_ACEOF
13378cat confdefs.h >>conftest.$ac_ext
13379cat >>conftest.$ac_ext <<_ACEOF
13380/* end confdefs.h. */
13381$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013382typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013383int
13384main ()
13385{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013386if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013387 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013388if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013389 return 0;
13390 ;
13391 return 0;
13392}
13393_ACEOF
13394rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013395if { (ac_try="$ac_compile"
13396case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399esac
13400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013407 (exit $ac_status); } && {
13408 test -z "$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013411 ac_cv_type_long=yes
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
Theodore Ts'oe1052142006-10-21 21:46:47 -040013416 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013417fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013418
Theodore Ts'oe1052142006-10-21 21:46:47 -040013419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420fi
13421{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13422echo "${ECHO_T}$ac_cv_type_long" >&6; }
13423
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013424# The cast to long int works around a bug in the HP C Compiler
13425# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13426# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13427# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013428{ echo "$as_me:$LINENO: checking size of long" >&5
13429echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013430if test "${ac_cv_sizeof_long+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013433 if test "$cross_compiling" = yes; then
13434 # Depending upon the size, compute the lo and hi bounds.
13435cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h. */
13441$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013442 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013443int
13444main ()
13445{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013446static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013447test_array [0] = 0
13448
13449 ;
13450 return 0;
13451}
13452_ACEOF
13453rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013454if { (ac_try="$ac_compile"
13455case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458esac
13459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013466 (exit $ac_status); } && {
13467 test -z "$ac_c_werror_flag" ||
13468 test ! -s conftest.err
13469 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013470 ac_lo=0 ac_mid=0
13471 while :; do
13472 cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
13477/* end confdefs.h. */
13478$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013479 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013480int
13481main ()
13482{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013483static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013484test_array [0] = 0
13485
13486 ;
13487 return 0;
13488}
13489_ACEOF
13490rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013491if { (ac_try="$ac_compile"
13492case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013507 ac_hi=$ac_mid; break
13508else
13509 echo "$as_me: failed program was:" >&5
13510sed 's/^/| /' conftest.$ac_ext >&5
13511
Theodore Ts'oe1052142006-10-21 21:46:47 -040013512 ac_lo=`expr $ac_mid + 1`
13513 if test $ac_lo -le $ac_mid; then
13514 ac_lo= ac_hi=
13515 break
13516 fi
13517 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013518fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013519
13520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013521 done
13522else
13523 echo "$as_me: failed program was:" >&5
13524sed 's/^/| /' conftest.$ac_ext >&5
13525
Theodore Ts'oe1052142006-10-21 21:46:47 -040013526 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013527/* confdefs.h. */
13528_ACEOF
13529cat confdefs.h >>conftest.$ac_ext
13530cat >>conftest.$ac_ext <<_ACEOF
13531/* end confdefs.h. */
13532$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013533 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013534int
13535main ()
13536{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013537static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013538test_array [0] = 0
13539
13540 ;
13541 return 0;
13542}
13543_ACEOF
13544rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013545if { (ac_try="$ac_compile"
13546case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549esac
13550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013561 ac_hi=-1 ac_mid=-1
13562 while :; do
13563 cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
13568/* end confdefs.h. */
13569$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013570 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013571int
13572main ()
13573{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013574static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013575test_array [0] = 0
13576
13577 ;
13578 return 0;
13579}
13580_ACEOF
13581rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013582if { (ac_try="$ac_compile"
13583case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013594 (exit $ac_status); } && {
13595 test -z "$ac_c_werror_flag" ||
13596 test ! -s conftest.err
13597 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013598 ac_lo=$ac_mid; break
13599else
13600 echo "$as_me: failed program was:" >&5
13601sed 's/^/| /' conftest.$ac_ext >&5
13602
Theodore Ts'oe1052142006-10-21 21:46:47 -040013603 ac_hi=`expr '(' $ac_mid ')' - 1`
13604 if test $ac_mid -le $ac_hi; then
13605 ac_lo= ac_hi=
13606 break
13607 fi
13608 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013610
13611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013612 done
13613else
13614 echo "$as_me: failed program was:" >&5
13615sed 's/^/| /' conftest.$ac_ext >&5
13616
Theodore Ts'oe1052142006-10-21 21:46:47 -040013617 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013618fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013619
13620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013621fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013622
13623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013624# Binary search between lo and hi bounds.
13625while test "x$ac_lo" != "x$ac_hi"; do
13626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13627 cat >conftest.$ac_ext <<_ACEOF
13628/* confdefs.h. */
13629_ACEOF
13630cat confdefs.h >>conftest.$ac_ext
13631cat >>conftest.$ac_ext <<_ACEOF
13632/* end confdefs.h. */
13633$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013634 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013635int
13636main ()
13637{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013638static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013639test_array [0] = 0
13640
13641 ;
13642 return 0;
13643}
13644_ACEOF
13645rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013646if { (ac_try="$ac_compile"
13647case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13650esac
13651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013658 (exit $ac_status); } && {
13659 test -z "$ac_c_werror_flag" ||
13660 test ! -s conftest.err
13661 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013662 ac_hi=$ac_mid
13663else
13664 echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
Theodore Ts'oe1052142006-10-21 21:46:47 -040013667 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013668fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013669
13670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013671done
13672case $ac_lo in
13673?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013674'') if test "$ac_cv_type_long" = yes; then
13675 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013676See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013677echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013678See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013679 { (exit 77); exit 77; }; }
13680 else
13681 ac_cv_sizeof_long=0
13682 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013683esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013684else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013685 cat >conftest.$ac_ext <<_ACEOF
13686/* confdefs.h. */
13687_ACEOF
13688cat confdefs.h >>conftest.$ac_ext
13689cat >>conftest.$ac_ext <<_ACEOF
13690/* end confdefs.h. */
13691$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013692 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013693static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13694static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013695#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013696#include <stdlib.h>
13697int
13698main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013699{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013700
13701 FILE *f = fopen ("conftest.val", "w");
13702 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013703 return 1;
13704 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013705 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013706 long int i = longval ();
13707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13708 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013709 fprintf (f, "%ld\n", i);
13710 }
13711 else
13712 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013713 unsigned long int i = ulongval ();
13714 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13715 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013716 fprintf (f, "%lu\n", i);
13717 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013718 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013719
13720 ;
13721 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013722}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013723_ACEOF
13724rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013725if { (ac_try="$ac_link"
13726case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729esac
13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738esac
13739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013745else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013746 echo "$as_me: program exited with status $ac_status" >&5
13747echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
13749
13750( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013751if test "$ac_cv_type_long" = yes; then
13752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013753See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013754echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013755See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013756 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013757 else
13758 ac_cv_sizeof_long=0
13759 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013760fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013761rm -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 -050013762fi
13763rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013764fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013765{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13766echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013767
13768
13769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013770cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013771#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013772_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013773
13774
Theodore Ts'oe1052142006-10-21 21:46:47 -040013775{ echo "$as_me:$LINENO: checking for long long" >&5
13776echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013777if test "${ac_cv_type_long_long+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779else
13780 cat >conftest.$ac_ext <<_ACEOF
13781/* confdefs.h. */
13782_ACEOF
13783cat confdefs.h >>conftest.$ac_ext
13784cat >>conftest.$ac_ext <<_ACEOF
13785/* end confdefs.h. */
13786$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013787typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013788int
13789main ()
13790{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013791if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013792 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013793if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013794 return 0;
13795 ;
13796 return 0;
13797}
13798_ACEOF
13799rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013800if { (ac_try="$ac_compile"
13801case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804esac
13805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013816 ac_cv_type_long_long=yes
13817else
13818 echo "$as_me: failed program was:" >&5
13819sed 's/^/| /' conftest.$ac_ext >&5
13820
Theodore Ts'oe1052142006-10-21 21:46:47 -040013821 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013823
Theodore Ts'oe1052142006-10-21 21:46:47 -040013824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825fi
13826{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13827echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13828
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013829# The cast to long int works around a bug in the HP C Compiler
13830# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13831# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13832# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013833{ echo "$as_me:$LINENO: checking size of long long" >&5
13834echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013835if test "${ac_cv_sizeof_long_long+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013838 if test "$cross_compiling" = yes; then
13839 # Depending upon the size, compute the lo and hi bounds.
13840cat >conftest.$ac_ext <<_ACEOF
13841/* confdefs.h. */
13842_ACEOF
13843cat confdefs.h >>conftest.$ac_ext
13844cat >>conftest.$ac_ext <<_ACEOF
13845/* end confdefs.h. */
13846$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013847 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013848int
13849main ()
13850{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013851static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013852test_array [0] = 0
13853
13854 ;
13855 return 0;
13856}
13857_ACEOF
13858rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013859if { (ac_try="$ac_compile"
13860case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13863esac
13864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013875 ac_lo=0 ac_mid=0
13876 while :; do
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
13883$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013884 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013885int
13886main ()
13887{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013888static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013889test_array [0] = 0
13890
13891 ;
13892 return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013896if { (ac_try="$ac_compile"
13897case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900esac
13901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013903 ac_status=$?
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013908 (exit $ac_status); } && {
13909 test -z "$ac_c_werror_flag" ||
13910 test ! -s conftest.err
13911 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013912 ac_hi=$ac_mid; break
13913else
13914 echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
Theodore Ts'oe1052142006-10-21 21:46:47 -040013917 ac_lo=`expr $ac_mid + 1`
13918 if test $ac_lo -le $ac_mid; then
13919 ac_lo= ac_hi=
13920 break
13921 fi
13922 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013923fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013924
13925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013926 done
13927else
13928 echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
Theodore Ts'oe1052142006-10-21 21:46:47 -040013931 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013932/* confdefs.h. */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h. */
13937$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013938 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939int
13940main ()
13941{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013942static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013943test_array [0] = 0
13944
13945 ;
13946 return 0;
13947}
13948_ACEOF
13949rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013950if { (ac_try="$ac_compile"
13951case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13954esac
13955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013957 ac_status=$?
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013966 ac_hi=-1 ac_mid=-1
13967 while :; do
13968 cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
13974$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013975 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976int
13977main ()
13978{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013979static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013980test_array [0] = 0
13981
13982 ;
13983 return 0;
13984}
13985_ACEOF
13986rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013987if { (ac_try="$ac_compile"
13988case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991esac
13992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014003 ac_lo=$ac_mid; break
14004else
14005 echo "$as_me: failed program was:" >&5
14006sed 's/^/| /' conftest.$ac_ext >&5
14007
Theodore Ts'oe1052142006-10-21 21:46:47 -040014008 ac_hi=`expr '(' $ac_mid ')' - 1`
14009 if test $ac_mid -le $ac_hi; then
14010 ac_lo= ac_hi=
14011 break
14012 fi
14013 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014014fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015
14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014017 done
14018else
14019 echo "$as_me: failed program was:" >&5
14020sed 's/^/| /' conftest.$ac_ext >&5
14021
Theodore Ts'oe1052142006-10-21 21:46:47 -040014022 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014023fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014024
14025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014026fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014027
14028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014029# Binary search between lo and hi bounds.
14030while test "x$ac_lo" != "x$ac_hi"; do
14031 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14032 cat >conftest.$ac_ext <<_ACEOF
14033/* confdefs.h. */
14034_ACEOF
14035cat confdefs.h >>conftest.$ac_ext
14036cat >>conftest.$ac_ext <<_ACEOF
14037/* end confdefs.h. */
14038$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014039 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014040int
14041main ()
14042{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014043static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014044test_array [0] = 0
14045
14046 ;
14047 return 0;
14048}
14049_ACEOF
14050rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014051if { (ac_try="$ac_compile"
14052case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055esac
14056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014067 ac_hi=$ac_mid
14068else
14069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
Theodore Ts'oe1052142006-10-21 21:46:47 -040014072 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014073fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014074
14075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076done
14077case $ac_lo in
14078?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014079'') if test "$ac_cv_type_long_long" = yes; then
14080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014081See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014082echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014083See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014084 { (exit 77); exit 77; }; }
14085 else
14086 ac_cv_sizeof_long_long=0
14087 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014088esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014089else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014097 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014098static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14099static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014100#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014101#include <stdlib.h>
14102int
14103main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014104{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014105
14106 FILE *f = fopen ("conftest.val", "w");
14107 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014108 return 1;
14109 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014110 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014111 long int i = longval ();
14112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14113 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014114 fprintf (f, "%ld\n", i);
14115 }
14116 else
14117 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118 unsigned long int i = ulongval ();
14119 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14120 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121 fprintf (f, "%lu\n", i);
14122 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014123 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014124
14125 ;
14126 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014127}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014128_ACEOF
14129rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014130if { (ac_try="$ac_link"
14131case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14134esac
14135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014140 { (case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14143esac
14144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014150else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014151 echo "$as_me: program exited with status $ac_status" >&5
14152echo "$as_me: failed program was:" >&5
14153sed 's/^/| /' conftest.$ac_ext >&5
14154
14155( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014156if test "$ac_cv_type_long_long" = yes; then
14157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014158See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014159echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014160See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014161 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014162 else
14163 ac_cv_sizeof_long_long=0
14164 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014166rm -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 -050014167fi
14168rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014169fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014170{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14171echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014172
14173
14174
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014175cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014176#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014177_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014178
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014179
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014180SIZEOF_SHORT=$ac_cv_sizeof_short
14181SIZEOF_INT=$ac_cv_sizeof_int
14182SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014183SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14184
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014185
14186
14187
Theodore Ts'oe1052142006-10-21 21:46:47 -040014188{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14189echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014190if test "${ac_cv_c_bigendian+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014192else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014193 # See if sys/param.h defines the BYTE_ORDER macro.
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014200#include <sys/types.h>
14201#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014202
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014203int
14204main ()
14205{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014206#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14207 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014208 bogus endian macros
14209#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210
14211 ;
14212 return 0;
14213}
14214_ACEOF
14215rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014216if { (ac_try="$ac_compile"
14217case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014223 ac_status=$?
14224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014228 (exit $ac_status); } && {
14229 test -z "$ac_c_werror_flag" ||
14230 test ! -s conftest.err
14231 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014232 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014233cat >conftest.$ac_ext <<_ACEOF
14234/* confdefs.h. */
14235_ACEOF
14236cat confdefs.h >>conftest.$ac_ext
14237cat >>conftest.$ac_ext <<_ACEOF
14238/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014239#include <sys/types.h>
14240#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014241
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014242int
14243main ()
14244{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014245#if BYTE_ORDER != BIG_ENDIAN
14246 not big endian
14247#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014248
14249 ;
14250 return 0;
14251}
14252_ACEOF
14253rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014254if { (ac_try="$ac_compile"
14255case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258esac
14259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014270 ac_cv_c_bigendian=yes
14271else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272 echo "$as_me: failed program was:" >&5
14273sed 's/^/| /' conftest.$ac_ext >&5
14274
Theodore Ts'oe1052142006-10-21 21:46:47 -040014275 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014276fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014277
14278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014279else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014280 echo "$as_me: failed program was:" >&5
14281sed 's/^/| /' conftest.$ac_ext >&5
14282
Theodore Ts'oe1052142006-10-21 21:46:47 -040014283 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014284if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014285 # try to guess the endianness by grepping values into an object file
14286 ac_cv_c_bigendian=unknown
14287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014293short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14294short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014295void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014296short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14297short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014298void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14299int
14300main ()
14301{
14302 _ascii (); _ebcdic ();
14303 ;
14304 return 0;
14305}
14306_ACEOF
14307rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014308if { (ac_try="$ac_compile"
14309case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312esac
14313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014324 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14325 ac_cv_c_bigendian=yes
14326fi
14327if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14328 if test "$ac_cv_c_bigendian" = unknown; then
14329 ac_cv_c_bigendian=no
14330 else
14331 # finding both strings is unlikely to happen, but who knows?
14332 ac_cv_c_bigendian=unknown
14333 fi
14334fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014335else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014336 echo "$as_me: failed program was:" >&5
14337sed 's/^/| /' conftest.$ac_ext >&5
14338
Theodore Ts'oe1052142006-10-21 21:46:47 -040014339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014340fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014341
14342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014343else
14344 cat >conftest.$ac_ext <<_ACEOF
14345/* confdefs.h. */
14346_ACEOF
14347cat confdefs.h >>conftest.$ac_ext
14348cat >>conftest.$ac_ext <<_ACEOF
14349/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014350$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351int
14352main ()
14353{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014354
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014355 /* Are we little or big endian? From Harbison&Steele. */
14356 union
14357 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014358 long int l;
14359 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014360 } u;
14361 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014362 return u.c[sizeof (long int) - 1] == 1;
14363
14364 ;
14365 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014366}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014367_ACEOF
14368rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014369if { (ac_try="$ac_link"
14370case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014379 { (case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382esac
14383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014388 ac_cv_c_bigendian=no
14389else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014390 echo "$as_me: program exited with status $ac_status" >&5
14391echo "$as_me: failed program was:" >&5
14392sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014393
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014394( exit $ac_status )
14395ac_cv_c_bigendian=yes
14396fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014397rm -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 -040014398fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014399
14400
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014401fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014402
14403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014405{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14406echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014407case $ac_cv_c_bigendian in
14408 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014411#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014412_ACEOF
14413 ;;
14414 no)
14415 ;;
14416 *)
14417 { { echo "$as_me:$LINENO: error: unknown endianness
14418presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14419echo "$as_me: error: unknown endianness
14420presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14421 { (exit 1); exit 1; }; } ;;
14422esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014423
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014424BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014425ASM_TYPES_HEADER=./asm_types.h
14426
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014428for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014429do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014435 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014437ac_res=`eval echo '${'$as_ac_Header'}'`
14438 { echo "$as_me:$LINENO: result: $ac_res" >&5
14439echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014440else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014441 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014444cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450$ac_includes_default
14451#include <$ac_header>
14452_ACEOF
14453rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014454if { (ac_try="$ac_compile"
14455case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014470 ac_header_compiler=yes
14471else
14472 echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
Theodore Ts'oe1052142006-10-21 21:46:47 -040014475 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014477
14478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14480echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014481
14482# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014483{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014485cat >conftest.$ac_ext <<_ACEOF
14486/* confdefs.h. */
14487_ACEOF
14488cat confdefs.h >>conftest.$ac_ext
14489cat >>conftest.$ac_ext <<_ACEOF
14490/* end confdefs.h. */
14491#include <$ac_header>
14492_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014493if { (ac_try="$ac_cpp conftest.$ac_ext"
14494case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497esac
14498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014505 (exit $ac_status); } >/dev/null && {
14506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014509 ac_header_preproc=yes
14510else
14511 echo "$as_me: failed program was:" >&5
14512sed 's/^/| /' conftest.$ac_ext >&5
14513
14514 ac_header_preproc=no
14515fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014516
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014517rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014520
14521# So? What about this header?
14522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14523 yes:no: )
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14528 ac_header_preproc=yes
14529 ;;
14530 no:yes:* )
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014544 ;;
14545esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550else
14551 eval "$as_ac_Header=\$ac_header_preproc"
14552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014553ac_res=`eval echo '${'$as_ac_Header'}'`
14554 { echo "$as_me:$LINENO: result: $ac_res" >&5
14555echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014556
14557fi
14558if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14561_ACEOF
14562
14563fi
14564
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014565done
14566
Theodore Ts'oe1052142006-10-21 21:46:47 -040014567{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14568echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014569if test "${ac_cv_type_intptr_t+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014571else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014572 cat >conftest.$ac_ext <<_ACEOF
14573/* confdefs.h. */
14574_ACEOF
14575cat confdefs.h >>conftest.$ac_ext
14576cat >>conftest.$ac_ext <<_ACEOF
14577/* end confdefs.h. */
14578$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014579typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014580int
14581main ()
14582{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014583if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014584 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014585if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014586 return 0;
14587 ;
14588 return 0;
14589}
14590_ACEOF
14591rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014592if { (ac_try="$ac_compile"
14593case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596esac
14597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014604 (exit $ac_status); } && {
14605 test -z "$ac_c_werror_flag" ||
14606 test ! -s conftest.err
14607 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014608 ac_cv_type_intptr_t=yes
14609else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014610 echo "$as_me: failed program was:" >&5
14611sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014612
Theodore Ts'oe1052142006-10-21 21:46:47 -040014613 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014614fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014615
14616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014617fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014618{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14619echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014620if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014621
14622cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014623#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014624_ACEOF
14625
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014627fi
14628
Theodore Ts'oe1052142006-10-21 21:46:47 -040014629{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14630echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014631if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633else
14634 cat >conftest.$ac_ext <<_ACEOF
14635/* confdefs.h. */
14636_ACEOF
14637cat confdefs.h >>conftest.$ac_ext
14638cat >>conftest.$ac_ext <<_ACEOF
14639/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014640#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014641int
14642main ()
14643{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014644struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014645 ;
14646 return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014650if { (ac_try="$ac_compile"
14651case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654esac
14655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014666 e2fsprogs_cv_struct_st_flags=yes
14667else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014668 echo "$as_me: failed program was:" >&5
14669sed 's/^/| /' conftest.$ac_ext >&5
14670
Theodore Ts'oe1052142006-10-21 21:46:47 -040014671 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014672fi
14673
Theodore Ts'oe1052142006-10-21 21:46:47 -040014674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14675fi
14676
14677{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14678echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014679if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014680 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14681echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014682 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014684else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014685 cat >conftest.$ac_ext <<_ACEOF
14686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014691#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014692int
14693main ()
14694{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014695struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014696 ;
14697 return 0;
14698}
14699_ACEOF
14700rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014701if { (ac_try="$ac_compile"
14702case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705esac
14706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014717 e2fsprogs_cv_struct_st_flags_immut=yes
14718else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014719 echo "$as_me: failed program was:" >&5
14720sed 's/^/| /' conftest.$ac_ext >&5
14721
Theodore Ts'oe1052142006-10-21 21:46:47 -040014722 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014723fi
14724
Theodore Ts'oe1052142006-10-21 21:46:47 -040014725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726fi
14727
14728 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14729echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014730 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014731 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014732#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014733_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014734
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014735 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014736fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014737{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14738echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014739if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014740 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014741else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014742 cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014748#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014749 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014750
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014751int
14752main ()
14753{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014754static struct sockaddr ac_aggr;
14755if (ac_aggr.sa_len)
14756return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014757 ;
14758 return 0;
14759}
14760_ACEOF
14761rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014762if { (ac_try="$ac_compile"
14763case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14766esac
14767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014778 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014779else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
Theodore Ts'oe1052142006-10-21 21:46:47 -040014783 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
14789#include <sys/types.h>
14790 #include <sys/socket.h>
14791
14792int
14793main ()
14794{
14795static struct sockaddr ac_aggr;
14796if (sizeof ac_aggr.sa_len)
14797return 0;
14798 ;
14799 return 0;
14800}
14801_ACEOF
14802rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014803if { (ac_try="$ac_compile"
14804case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807esac
14808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014810 ac_status=$?
14811 grep -v '^ *+' conftest.er1 >conftest.err
14812 rm -f conftest.er1
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014819 ac_cv_member_struct_sockaddr_sa_len=yes
14820else
14821 echo "$as_me: failed program was:" >&5
14822sed 's/^/| /' conftest.$ac_ext >&5
14823
Theodore Ts'oe1052142006-10-21 21:46:47 -040014824 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014825fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014826
14827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014828fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014829
14830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014832{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14833echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014834if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014835
14836cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014837#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014838_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014839
14840fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014860
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014861
14862
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014863
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014864
Theodore Ts'o106ad962007-04-04 21:26:37 -040014865
14866
14867
Theodore Ts'o740837d2007-12-16 17:21:38 -050014868
14869
Theodore Ts'o261cd392008-01-21 13:45:00 -050014870
14871for 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014872do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014874{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014877 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014878else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014879 cat >conftest.$ac_ext <<_ACEOF
14880/* confdefs.h. */
14881_ACEOF
14882cat confdefs.h >>conftest.$ac_ext
14883cat >>conftest.$ac_ext <<_ACEOF
14884/* end confdefs.h. */
14885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14887#define $ac_func innocuous_$ac_func
14888
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014889/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014890 which can conflict with char $ac_func (); below.
14891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14892 <limits.h> exists even on freestanding compilers. */
14893
14894#ifdef __STDC__
14895# include <limits.h>
14896#else
14897# include <assert.h>
14898#endif
14899
14900#undef $ac_func
14901
Theodore Ts'oe1052142006-10-21 21:46:47 -040014902/* Override any GCC internal prototype to avoid an error.
14903 Use char because int might match the return type of a GCC
14904 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014905#ifdef __cplusplus
14906extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014907#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014908char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014909/* The GNU C library defines this for functions which it implements
14910 to always fail with ENOSYS. Some functions are actually named
14911 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014912#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014913choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014914#endif
14915
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014916int
14917main ()
14918{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014919return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014920 ;
14921 return 0;
14922}
14923_ACEOF
14924rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014925if { (ac_try="$ac_link"
14926case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14929esac
14930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014937 (exit $ac_status); } && {
14938 test -z "$ac_c_werror_flag" ||
14939 test ! -s conftest.err
14940 } && test -s conftest$ac_exeext &&
14941 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014942 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014943else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014944 echo "$as_me: failed program was:" >&5
14945sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014946
Theodore Ts'oe1052142006-10-21 21:46:47 -040014947 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014948fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014949
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951 conftest$ac_exeext conftest.$ac_ext
14952fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014953ac_res=`eval echo '${'$as_ac_var'}'`
14954 { echo "$as_me:$LINENO: result: $ac_res" >&5
14955echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014956if test `eval echo '${'$as_ac_var'}'` = yes; then
14957 cat >>confdefs.h <<_ACEOF
14958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14959_ACEOF
14960
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014961fi
14962done
14963
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014964SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014965{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14966echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014967if test "${ac_cv_lib_socket_socket+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014969else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014970 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014971LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014972cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978
Theodore Ts'oe1052142006-10-21 21:46:47 -040014979/* Override any GCC internal prototype to avoid an error.
14980 Use char because int might match the return type of a GCC
14981 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014982#ifdef __cplusplus
14983extern "C"
14984#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014985char socket ();
14986int
14987main ()
14988{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014989return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014990 ;
14991 return 0;
14992}
14993_ACEOF
14994rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014995if { (ac_try="$ac_link"
14996case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
14999esac
15000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015007 (exit $ac_status); } && {
15008 test -z "$ac_c_werror_flag" ||
15009 test ! -s conftest.err
15010 } && test -s conftest$ac_exeext &&
15011 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015012 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015013else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015014 echo "$as_me: failed program was:" >&5
15015sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015016
Theodore Ts'oe1052142006-10-21 21:46:47 -040015017 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015018fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015019
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021 conftest$ac_exeext conftest.$ac_ext
15022LIBS=$ac_check_lib_save_LIBS
15023fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015024{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15025echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015026if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015027 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015028fi
15029
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015030
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015031DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015032{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15033echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015034if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015036else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015037 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015038LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015039cat >conftest.$ac_ext <<_ACEOF
15040/* confdefs.h. */
15041_ACEOF
15042cat confdefs.h >>conftest.$ac_ext
15043cat >>conftest.$ac_ext <<_ACEOF
15044/* end confdefs.h. */
15045
Theodore Ts'oe1052142006-10-21 21:46:47 -040015046/* Override any GCC internal prototype to avoid an error.
15047 Use char because int might match the return type of a GCC
15048 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015049#ifdef __cplusplus
15050extern "C"
15051#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015052char dlopen ();
15053int
15054main ()
15055{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015056return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015057 ;
15058 return 0;
15059}
15060_ACEOF
15061rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015062if { (ac_try="$ac_link"
15063case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066esac
15067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest$ac_exeext &&
15078 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015079 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015080else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015083
Theodore Ts'oe1052142006-10-21 21:46:47 -040015084 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015086
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015088 conftest$ac_exeext conftest.$ac_ext
15089LIBS=$ac_check_lib_save_LIBS
15090fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015091{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15092echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015093if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015094 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015095cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015096#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015097_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015098
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015099fi
15100
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015101
Theodore Ts'oe1052142006-10-21 21:46:47 -040015102{ echo "$as_me:$LINENO: checking for optreset" >&5
15103echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015104if test "${ac_cv_have_optreset+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015106else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015107 cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015113#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015114
15115_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015117 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015118 ac_cv_have_optreset=yes
15119else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015120 ac_cv_have_optreset=no
15121fi
15122rm -f conftest*
15123
15124fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015125{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15126echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015127if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015128 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015129#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015130_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015131
15132fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015133{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15134echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015135if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015136 UNI_DIFF_OPTS=-u
15137else
15138 UNI_DIFF_OPTS=-c
15139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015140{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15141echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015142
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015143case "$host_os" in
15144linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015145 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015146#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015147_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015148
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015149 ;;
15150esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015151LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015152CYGWIN_CMT="#"
15153UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015154case "$host_os" in
15155linux*)
15156 LINUX_CMT=
15157 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015158cygwin)
15159 CYGWIN_CMT=
15160 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015161 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015162esac
15163
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015164
15165
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015166case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015167linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015168 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15169 root_prefix="";
15170 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015171 fi
15172 ;;
15173esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015174case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015175linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015176 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015177 prefix="/usr";
15178 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015179 if test "$mandir" = '${prefix}/man' ; then
15180 echo "...and mandir defaults to /usr/share/man"
15181 mandir=/usr/share/man
15182 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015183 fi
15184;;
15185esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015186if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015187 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015188 root_prefix="$ac_default_prefix"
15189 else
15190 root_prefix="$prefix"
15191 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015192 root_bindir=$bindir
15193 root_sbindir=$sbindir
15194 root_libdir=$libdir
15195 root_sysconfdir=$sysconfdir
15196else
15197 root_bindir='${root_prefix}/bin'
15198 root_sbindir='${root_prefix}/sbin'
15199 root_libdir='${root_prefix}/lib'
15200 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015201fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015202if test "$bindir" != '${exec_prefix}/bin'; then
15203 root_bindir=$bindir
15204 echo "Setting root_bindir to $root_bindir"
15205fi
15206if test "$sbindir" != '${exec_prefix}/sbin'; then
15207 root_sbindir=$sbindir
15208 echo "Setting root_sbindir to $root_sbindir"
15209fi
15210if test "$libdir" != '${exec_prefix}/lib'; then
15211 root_libdir=$libdir
15212 echo "Setting root_libdir to $root_libdir"
15213fi
15214if test "$sysconfdir" != '${prefix}/etc'; then
15215 root_sysconfdir=$sysconfdir
15216 echo "Setting root_sysconfdir to $root_sysconfdir"
15217fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015218
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015219
15220
15221
15222
Theodore Ts'oe1052142006-10-21 21:46:47 -040015223{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15224echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015225if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015227else
15228 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015229cat >conftest.$ac_ext <<_ACEOF
15230/* confdefs.h. */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015235#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015236int
15237main ()
15238{
Theodore Ts'oae851481997-04-29 18:13:24 +000015239fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015240 ;
15241 return 0;
15242}
15243_ACEOF
15244rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015245if { (ac_try="$ac_link"
15246case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249esac
15250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015252 ac_status=$?
15253 grep -v '^ *+' conftest.er1 >conftest.err
15254 rm -f conftest.er1
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015257 (exit $ac_status); } && {
15258 test -z "$ac_c_werror_flag" ||
15259 test ! -s conftest.err
15260 } && test -s conftest$ac_exeext &&
15261 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015262 ac_cv_e2fsprogs_use_static=yes
15263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015264 echo "$as_me: failed program was:" >&5
15265sed 's/^/| /' conftest.$ac_ext >&5
15266
Theodore Ts'oe1052142006-10-21 21:46:47 -040015267 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015269
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015271 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015272LDFLAGS=$SAVE_LDFLAGS
15273fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015274
Theodore Ts'odefde781999-01-04 07:39:19 +000015275case "$host_os" in
15276solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015277 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015278;;
15279esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015280{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15281echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015282LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015283if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015284 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015285fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015286
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015287case "$host_os" in
15288darwin*)
15289 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015290 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015291#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015292_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015293
15294 ;;
15295esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015296SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15297ET_DIR=`cd ${srcdir}/lib/et; pwd`
15298
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015299
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015300if test "$cross_compiling" = yes ; then
15301 DO_TEST_SUITE=
15302else
15303 DO_TEST_SUITE=check
15304fi
15305
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015306INTL_FLAGS=
15307if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15308 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15309fi
15310
Theodore Ts'odd947da2005-11-09 18:37:07 -040015311if test $cross_compiling = no; then
15312 BUILD_CFLAGS="$CFLAGS"
15313 BUILD_LDFLAGS="$LDFLAGS"
15314else
15315 BUILD_CFLAGS=
15316 BUILD_LDFLAGS=
15317fi
15318
15319
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015320test -d lib || mkdir lib
15321test -d include || mkdir include
15322test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015323test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015324for i in MCONFIG Makefile e2fsprogs.spec \
15325 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015326 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15327 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015328 lib/uuid/Makefile lib/uuid/uuid_types.h \
15329 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015330 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15331 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015332 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015333 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15334 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15335 if test -d `dirname ${srcdir}/$i` ; then
15336 outlist="$outlist $i"
15337 fi
15338done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015339ac_config_files="$ac_config_files $outlist"
15340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015341cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015342# This file is a shell script that caches the results of configure
15343# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015344# scripts and configure runs, see configure's option --config-cache.
15345# It is not useful on other systems. If it contains results you don't
15346# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015347#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015348# config.status only pays attention to the cache file if you give it
15349# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015350#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015351# `ac_cv_env_foo' variables (set or unset) will be overridden when
15352# loading this file, other *unset* `ac_cv_foo' will be assigned the
15353# following values.
15354
15355_ACEOF
15356
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015357# The following way of writing the cache mishandles newlines in values,
15358# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015359# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015360# Ultrix sh set writes to stderr and can't be redirected directly,
15361# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015362(
15363 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15364 eval ac_val=\$$ac_var
15365 case $ac_val in #(
15366 *${as_nl}*)
15367 case $ac_var in #(
15368 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15369echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15370 esac
15371 case $ac_var in #(
15372 _ | IFS | as_nl) ;; #(
15373 *) $as_unset $ac_var ;;
15374 esac ;;
15375 esac
15376 done
15377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015378 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015379 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15380 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015381 # `set' does not quote correctly, so add quotes (double-quote
15382 # substitution turns \\\\ into \\, and sed turns \\ into \).
15383 sed -n \
15384 "s/'/'\\\\''/g;
15385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015386 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015387 *)
15388 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015390 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015391 esac |
15392 sort
15393) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015394 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015395 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015396 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015397 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15399 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015400 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15401 :end' >>confcache
15402if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15403 if test -w "$cache_file"; then
15404 test "x$cache_file" != "x/dev/null" &&
15405 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15406echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015407 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015408 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015409 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15410echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015411 fi
15412fi
15413rm -f confcache
15414
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015415test "x$prefix" = xNONE && prefix=$ac_default_prefix
15416# Let make expand exec_prefix.
15417test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15418
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015419# Transform confdefs.h into DEFS.
15420# Protect against shell expansion while executing Makefile rules.
15421# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015422#
15423# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015424# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015425# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015426ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015428:clear
15429s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015430t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015431s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015432t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015433b any
15434:quote
15435s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15436s/\[/\\&/g
15437s/\]/\\&/g
15438s/\$/$$/g
15439H
15440:any
15441${
15442 g
15443 s/^\n//
15444 s/\n/ /g
15445 p
15446}
15447'
15448DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015449
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015451ac_libobjs=
15452ac_ltlibobjs=
15453for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15454 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015455 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15456 ac_i=`echo "$ac_i" | sed "$ac_script"`
15457 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15458 # will be set to the directory where LIBOBJS objects are built.
15459 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15460 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015461done
15462LIBOBJS=$ac_libobjs
15463
15464LTLIBOBJS=$ac_ltlibobjs
15465
15466
15467
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015468: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015469ac_clean_files_save=$ac_clean_files
15470ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15471{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15472echo "$as_me: creating $CONFIG_STATUS" >&6;}
15473cat >$CONFIG_STATUS <<_ACEOF
15474#! $SHELL
15475# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015476# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015477# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015478# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015480debug=false
15481ac_cs_recheck=false
15482ac_cs_silent=false
15483SHELL=\${CONFIG_SHELL-$SHELL}
15484_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015486cat >>$CONFIG_STATUS <<\_ACEOF
15487## --------------------- ##
15488## M4sh Initialization. ##
15489## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015490
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015491# Be more Bourne compatible
15492DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015493if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15494 emulate sh
15495 NULLCMD=:
15496 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15497 # is contrary to our usage. Disable this feature.
15498 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015499 setopt NO_GLOB_SUBST
15500else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015501 case `(set -o) 2>/dev/null` in
15502 *posix*) set -o posix ;;
15503esac
15504
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015505fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015506
15507
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015508
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015509
Theodore Ts'oe1052142006-10-21 21:46:47 -040015510# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015511# Avoid depending upon Character Ranges.
15512as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15513as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15514as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15515as_cr_digits='0123456789'
15516as_cr_alnum=$as_cr_Letters$as_cr_digits
15517
15518# The user is always right.
15519if test "${PATH_SEPARATOR+set}" != set; then
15520 echo "#! /bin/sh" >conf$$.sh
15521 echo "exit 0" >>conf$$.sh
15522 chmod +x conf$$.sh
15523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15524 PATH_SEPARATOR=';'
15525 else
15526 PATH_SEPARATOR=:
15527 fi
15528 rm -f conf$$.sh
15529fi
15530
Theodore Ts'oe1052142006-10-21 21:46:47 -040015531# Support unset when possible.
15532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15533 as_unset=unset
15534else
15535 as_unset=false
15536fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015537
Theodore Ts'oe1052142006-10-21 21:46:47 -040015538
15539# IFS
15540# We need space, tab and new line, in precisely that order. Quoting is
15541# there to prevent editors from complaining about space-tab.
15542# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15543# splitting by setting IFS to empty value.)
15544as_nl='
15545'
15546IFS=" "" $as_nl"
15547
15548# Find who we are. Look in the path if we contain no directory separator.
15549case $0 in
15550 *[\\/]* ) as_myself=$0 ;;
15551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015552for as_dir in $PATH
15553do
15554 IFS=$as_save_IFS
15555 test -z "$as_dir" && as_dir=.
15556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15557done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015558IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015559
Theodore Ts'oe1052142006-10-21 21:46:47 -040015560 ;;
15561esac
15562# We did not find ourselves, most probably we were run as `sh COMMAND'
15563# in which case we are not to be found in the path.
15564if test "x$as_myself" = x; then
15565 as_myself=$0
15566fi
15567if test ! -f "$as_myself"; then
15568 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15569 { (exit 1); exit 1; }
15570fi
15571
15572# Work around bugs in pre-3.0 UWIN ksh.
15573for as_var in ENV MAIL MAILPATH
15574do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15575done
15576PS1='$ '
15577PS2='> '
15578PS4='+ '
15579
15580# NLS nuisances.
15581for as_var in \
15582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15584 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015585do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15587 eval $as_var=C; export $as_var
15588 else
15589 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15590 fi
15591done
15592
15593# Required to use basename.
15594if expr a : '\(a\)' >/dev/null 2>&1 &&
15595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15596 as_expr=expr
15597else
15598 as_expr=false
15599fi
15600
15601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15602 as_basename=basename
15603else
15604 as_basename=false
15605fi
15606
15607
15608# Name of the executable.
15609as_me=`$as_basename -- "$0" ||
15610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15611 X"$0" : 'X\(//\)$' \| \
15612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15613echo X/"$0" |
15614 sed '/^.*\/\([^/][^/]*\)\/*$/{
15615 s//\1/
15616 q
15617 }
15618 /^X\/\(\/\/\)$/{
15619 s//\1/
15620 q
15621 }
15622 /^X\/\(\/\).*/{
15623 s//\1/
15624 q
15625 }
15626 s/.*/./; q'`
15627
15628# CDPATH.
15629$as_unset CDPATH
15630
15631
15632
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015633 as_lineno_1=$LINENO
15634 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015635 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015636 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15639 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015640 # line-number line after each line using $LINENO; the second 'sed'
15641 # does the real work. The second script uses 'N' to pair each
15642 # line-number line with the line containing $LINENO, and appends
15643 # trailing '-' during substitution so that $LINENO is not a special
15644 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015646 # scripts with optimization help from Paolo Bonzini. Blame Lee
15647 # E. McMahon (1931-1989) for sed's syntax. :-)
15648 sed -n '
15649 p
15650 /[$]LINENO/=
15651 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015652 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015653 s/[$]LINENO.*/&-/
15654 t lineno
15655 b
15656 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015657 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015658 :loop
15659 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015660 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015661 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015662 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015663 chmod +x "$as_me.lineno" ||
15664 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015665 { (exit 1); exit 1; }; }
15666
15667 # Don't try to exec as it changes $[0], causing all sort of problems
15668 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015669 # original and so on. Autoconf is especially sensitive to this).
15670 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015671 # Exit status is that of the last command.
15672 exit
15673}
15674
15675
Theodore Ts'oe1052142006-10-21 21:46:47 -040015676if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15677 as_dirname=dirname
15678else
15679 as_dirname=false
15680fi
15681
15682ECHO_C= ECHO_N= ECHO_T=
15683case `echo -n x` in
15684-n*)
15685 case `echo 'x\c'` in
15686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15687 *) ECHO_C='\c';;
15688 esac;;
15689*)
15690 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015691esac
15692
Theodore Ts'oe1052142006-10-21 21:46:47 -040015693if expr a : '\(a\)' >/dev/null 2>&1 &&
15694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015695 as_expr=expr
15696else
15697 as_expr=false
15698fi
15699
15700rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015701if test -d conf$$.dir; then
15702 rm -f conf$$.dir/conf$$.file
15703else
15704 rm -f conf$$.dir
15705 mkdir conf$$.dir
15706fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015707echo >conf$$.file
15708if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015709 as_ln_s='ln -s'
15710 # ... but there are two gotchas:
15711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15713 # In both cases, we have to default to `cp -p'.
15714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015715 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015716elif ln conf$$.file conf$$ 2>/dev/null; then
15717 as_ln_s=ln
15718else
15719 as_ln_s='cp -p'
15720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015721rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15722rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015723
15724if mkdir -p . 2>/dev/null; then
15725 as_mkdir_p=:
15726else
15727 test -d ./-p && rmdir ./-p
15728 as_mkdir_p=false
15729fi
15730
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015731if test -x / >/dev/null 2>&1; then
15732 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015733else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015734 if ls -dL / >/dev/null 2>&1; then
15735 as_ls_L_option=L
15736 else
15737 as_ls_L_option=
15738 fi
15739 as_test_x='
15740 eval sh -c '\''
15741 if test -d "$1"; then
15742 test -d "$1/.";
15743 else
15744 case $1 in
15745 -*)set "./$1";;
15746 esac;
15747 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15748 ???[sx]*):;;*)false;;esac;fi
15749 '\'' sh
15750 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015751fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015752as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015753
15754# Sed expression to map a string onto a valid CPP name.
15755as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15756
15757# Sed expression to map a string onto a valid variable name.
15758as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15759
15760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015761exec 6>&1
15762
Theodore Ts'oe1052142006-10-21 21:46:47 -040015763# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015764# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015765# values after options handling.
15766ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015767This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015768generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015769
15770 CONFIG_FILES = $CONFIG_FILES
15771 CONFIG_HEADERS = $CONFIG_HEADERS
15772 CONFIG_LINKS = $CONFIG_LINKS
15773 CONFIG_COMMANDS = $CONFIG_COMMANDS
15774 $ $0 $@
15775
Theodore Ts'oe1052142006-10-21 21:46:47 -040015776on `(hostname || uname -n) 2>/dev/null | sed 1q`
15777"
15778
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015779_ACEOF
15780
Theodore Ts'oe1052142006-10-21 21:46:47 -040015781cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015782# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015783config_files="$ac_config_files"
15784config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015785
Theodore Ts'oe1052142006-10-21 21:46:47 -040015786_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015787
15788cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015789ac_cs_usage="\
15790\`$as_me' instantiates files from templates according to the
15791current configuration.
15792
15793Usage: $0 [OPTIONS] [FILE]...
15794
15795 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015796 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015797 -q, --quiet do not print progress messages
15798 -d, --debug don't remove temporary files
15799 --recheck update $as_me by reconfiguring in the same conditions
15800 --file=FILE[:TEMPLATE]
15801 instantiate the configuration file FILE
15802
15803Configuration files:
15804$config_files
15805
15806Configuration commands:
15807$config_commands
15808
15809Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015810
Theodore Ts'oe1052142006-10-21 21:46:47 -040015811_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015812cat >>$CONFIG_STATUS <<_ACEOF
15813ac_cs_version="\\
15814config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015815configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015816 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015817
Theodore Ts'oe1052142006-10-21 21:46:47 -040015818Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015819This config.status script is free software; the Free Software Foundation
15820gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015821
15822ac_pwd='$ac_pwd'
15823srcdir='$srcdir'
15824INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015825_ACEOF
15826
15827cat >>$CONFIG_STATUS <<\_ACEOF
15828# If no file are specified by the user, then we need to provide default
15829# value. By we need to know if files were specified by the user.
15830ac_need_defaults=:
15831while test $# != 0
15832do
15833 case $1 in
15834 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15836 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015837 ac_shift=:
15838 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015839 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015840 ac_option=$1
15841 ac_optarg=$2
15842 ac_shift=shift
15843 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015844 esac
15845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015846 case $ac_option in
15847 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15849 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15851 echo "$ac_cs_version"; exit ;;
15852 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015853 debug=: ;;
15854 --file | --fil | --fi | --f )
15855 $ac_shift
15856 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15857 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015858 --he | --h | --help | --hel | -h )
15859 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15862 ac_cs_silent=: ;;
15863
15864 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015865 -*) { echo "$as_me: error: unrecognized option: $1
15866Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015867 { (exit 1); exit 1; }; } ;;
15868
Theodore Ts'oe1052142006-10-21 21:46:47 -040015869 *) ac_config_targets="$ac_config_targets $1"
15870 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015871
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015872 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015873 shift
15874done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015875
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015876ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015878if $ac_cs_silent; then
15879 exec 6>/dev/null
15880 ac_configure_extra_args="$ac_configure_extra_args --silent"
15881fi
15882
15883_ACEOF
15884cat >>$CONFIG_STATUS <<_ACEOF
15885if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015886 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15887 CONFIG_SHELL=$SHELL
15888 export CONFIG_SHELL
15889 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015890fi
15891
15892_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015893cat >>$CONFIG_STATUS <<\_ACEOF
15894exec 5>>config.log
15895{
15896 echo
15897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15898## Running $as_me. ##
15899_ASBOX
15900 echo "$ac_log"
15901} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015902
Theodore Ts'oe1052142006-10-21 21:46:47 -040015903_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015904cat >>$CONFIG_STATUS <<_ACEOF
15905#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015906# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015907#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015908# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015909 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015910 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015911 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015912 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15913 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015914
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015915
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015916_ACEOF
15917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015918cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015919
15920# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015921for ac_config_target in $ac_config_targets
15922do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015923 case $ac_config_target in
15924 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15925 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15926
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15928echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15929 { (exit 1); exit 1; }; };;
15930 esac
15931done
15932
Theodore Ts'oe1052142006-10-21 21:46:47 -040015933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015934# If the user did not use the arguments to specify the items to instantiate,
15935# then the envvar interface is used. Set only those that are not.
15936# We use the long form for the default assignment because of an extremely
15937# bizarre bug on SunOS 4.1.3.
15938if $ac_need_defaults; then
15939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15941fi
15942
15943# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015944# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015945# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015946# Hook for its removal unless debugging.
15947# Note that there is a small window in which the directory will not be cleaned:
15948# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015949$debug ||
15950{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015951 tmp=
15952 trap 'exit_status=$?
15953 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15954' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015955 trap '{ (exit 1); exit 1; }' 1 2 13 15
15956}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015957# Create a (secure) tmp directory for tmp files.
15958
15959{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015960 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015961 test -n "$tmp" && test -d "$tmp"
15962} ||
15963{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015964 tmp=./conf$$-$RANDOM
15965 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015966} ||
15967{
15968 echo "$me: cannot create a temporary directory in ." >&2
15969 { (exit 1); exit 1; }
15970}
15971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015972#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015973# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015974#
15975
15976# No need to generate the scripts if there are no CONFIG_FILES.
15977# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015978if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015979
15980_ACEOF
15981
Theodore Ts'oe1052142006-10-21 21:46:47 -040015982# Create sed commands to just substitute file output variables.
15983
15984# Remaining file output variables are in a fragment that also has non-file
15985# output varibles.
15986
15987
15988
15989ac_delim='%!_!# '
15990for ac_last_try in false false false false false :; do
15991 cat >conf$$subs.sed <<_ACEOF
15992SHELL!$SHELL$ac_delim
15993PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15994PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15995PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15996PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15997PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15998PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15999exec_prefix!$exec_prefix$ac_delim
16000prefix!$prefix$ac_delim
16001program_transform_name!$program_transform_name$ac_delim
16002bindir!$bindir$ac_delim
16003sbindir!$sbindir$ac_delim
16004libexecdir!$libexecdir$ac_delim
16005datarootdir!$datarootdir$ac_delim
16006datadir!$datadir$ac_delim
16007sysconfdir!$sysconfdir$ac_delim
16008sharedstatedir!$sharedstatedir$ac_delim
16009localstatedir!$localstatedir$ac_delim
16010includedir!$includedir$ac_delim
16011oldincludedir!$oldincludedir$ac_delim
16012docdir!$docdir$ac_delim
16013infodir!$infodir$ac_delim
16014htmldir!$htmldir$ac_delim
16015dvidir!$dvidir$ac_delim
16016pdfdir!$pdfdir$ac_delim
16017psdir!$psdir$ac_delim
16018libdir!$libdir$ac_delim
16019localedir!$localedir$ac_delim
16020mandir!$mandir$ac_delim
16021DEFS!$DEFS$ac_delim
16022ECHO_C!$ECHO_C$ac_delim
16023ECHO_N!$ECHO_N$ac_delim
16024ECHO_T!$ECHO_T$ac_delim
16025LIBS!$LIBS$ac_delim
16026build_alias!$build_alias$ac_delim
16027host_alias!$host_alias$ac_delim
16028target_alias!$target_alias$ac_delim
16029E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16030E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16031E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16032E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016033E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016034build!$build$ac_delim
16035build_cpu!$build_cpu$ac_delim
16036build_vendor!$build_vendor$ac_delim
16037build_os!$build_os$ac_delim
16038host!$host$ac_delim
16039host_cpu!$host_cpu$ac_delim
16040host_vendor!$host_vendor$ac_delim
16041host_os!$host_os$ac_delim
16042CC!$CC$ac_delim
16043CFLAGS!$CFLAGS$ac_delim
16044LDFLAGS!$LDFLAGS$ac_delim
16045CPPFLAGS!$CPPFLAGS$ac_delim
16046ac_ct_CC!$ac_ct_CC$ac_delim
16047EXEEXT!$EXEEXT$ac_delim
16048OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016049CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016050LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016051GREP!$GREP$ac_delim
16052EGREP!$EGREP$ac_delim
16053LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16054MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16055HTREE_CMT!$HTREE_CMT$ac_delim
16056ELF_CMT!$ELF_CMT$ac_delim
16057BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16058PROFILE_CMT!$PROFILE_CMT$ac_delim
16059CHECKER_CMT!$CHECKER_CMT$ac_delim
16060LIB_EXT!$LIB_EXT$ac_delim
16061STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16062PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016063DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16064IMAGER_CMT!$IMAGER_CMT$ac_delim
16065RESIZER_CMT!$RESIZER_CMT$ac_delim
Theodore Ts'oa5dda052007-08-11 03:11:12 -040016066FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'o428f6b32008-01-27 20:09:05 -050016067FSCK_MAN!$FSCK_MAN$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016068_ACEOF
16069
16070 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16071 break
16072 elif $ac_last_try; then
16073 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16074echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16075 { (exit 1); exit 1; }; }
16076 else
16077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016078 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016079done
16080
16081ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16082if test -n "$ac_eof"; then
16083 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16084 ac_eof=`expr $ac_eof + 1`
16085fi
16086
16087cat >>$CONFIG_STATUS <<_ACEOF
16088cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16089/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16090/^[ ]*@MCONFIG@[ ]*$/{
16091r $MCONFIG
16092d
16093}
16094/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16095r $MAKEFILE_ELF
16096d
16097}
16098/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16099r $MAKEFILE_BSDLIB
16100d
16101}
16102/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16103r $MAKEFILE_PROFILE
16104d
16105}
16106/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16107r $MAKEFILE_CHECKER
16108d
16109}
16110/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16111r $MAKEFILE_LIBRARY
16112d
16113}
16114/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16115r $ASM_TYPES_HEADER
16116d
16117}
16118_ACEOF
16119sed '
16120s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16121s/^/s,@/; s/!/@,|#_!!_#|/
16122:n
16123t n
16124s/'"$ac_delim"'$/,g/; t
16125s/$/\\/; p
16126N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16127' >>$CONFIG_STATUS <conf$$subs.sed
16128rm -f conf$$subs.sed
16129cat >>$CONFIG_STATUS <<_ACEOF
16130CEOF$ac_eof
16131_ACEOF
16132
16133
16134ac_delim='%!_!# '
16135for ac_last_try in false false false false false :; do
16136 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016137E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16138E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016139PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016140DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16141DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16142DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16143STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016144STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016145UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016146GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16147PACKAGE!$PACKAGE$ac_delim
16148VERSION!$VERSION$ac_delim
16149SET_MAKE!$SET_MAKE$ac_delim
16150INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16151INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16152INSTALL_DATA!$INSTALL_DATA$ac_delim
16153MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16154USE_NLS!$USE_NLS$ac_delim
16155MSGFMT!$MSGFMT$ac_delim
16156GMSGFMT!$GMSGFMT$ac_delim
16157XGETTEXT!$XGETTEXT$ac_delim
16158MSGMERGE!$MSGMERGE$ac_delim
16159RANLIB!$RANLIB$ac_delim
16160ALLOCA!$ALLOCA$ac_delim
16161GLIBC21!$GLIBC21$ac_delim
16162HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16163HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16164HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16165HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16166LIBICONV!$LIBICONV$ac_delim
16167LTLIBICONV!$LTLIBICONV$ac_delim
16168INTLBISON!$INTLBISON$ac_delim
16169BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16170USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16171CATOBJEXT!$CATOBJEXT$ac_delim
16172DATADIRNAME!$DATADIRNAME$ac_delim
16173INSTOBJEXT!$INSTOBJEXT$ac_delim
16174GENCAT!$GENCAT$ac_delim
16175INTLOBJS!$INTLOBJS$ac_delim
16176INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16177INTLLIBS!$INTLLIBS$ac_delim
16178LIBINTL!$LIBINTL$ac_delim
16179LTLIBINTL!$LTLIBINTL$ac_delim
16180POSUB!$POSUB$ac_delim
16181BINARY_TYPE!$BINARY_TYPE$ac_delim
16182LN!$LN$ac_delim
16183LN_S!$LN_S$ac_delim
16184MV!$MV$ac_delim
16185CP!$CP$ac_delim
16186RM!$RM$ac_delim
16187CHMOD!$CHMOD$ac_delim
16188AWK!$AWK$ac_delim
16189SED!$SED$ac_delim
16190PERL!$PERL$ac_delim
16191LDCONFIG!$LDCONFIG$ac_delim
16192AR!$AR$ac_delim
16193STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016194MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016195BUILD_CC!$BUILD_CC$ac_delim
16196SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16197SIZEOF_INT!$SIZEOF_INT$ac_delim
16198SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16199SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16200SOCKET_LIB!$SOCKET_LIB$ac_delim
16201DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16202UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16203LINUX_CMT!$LINUX_CMT$ac_delim
16204CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16205UNIX_CMT!$UNIX_CMT$ac_delim
16206root_prefix!$root_prefix$ac_delim
16207root_bindir!$root_bindir$ac_delim
16208root_sbindir!$root_sbindir$ac_delim
16209root_libdir!$root_libdir$ac_delim
16210root_sysconfdir!$root_sysconfdir$ac_delim
16211LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16212SS_DIR!$SS_DIR$ac_delim
16213ET_DIR!$ET_DIR$ac_delim
16214DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16215INTL_FLAGS!$INTL_FLAGS$ac_delim
16216BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16217BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16218LIBOBJS!$LIBOBJS$ac_delim
16219LTLIBOBJS!$LTLIBOBJS$ac_delim
16220_ACEOF
16221
Theodore Ts'o44761052008-04-21 21:35:44 -040016222 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 -040016223 break
16224 elif $ac_last_try; then
16225 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16226echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16227 { (exit 1); exit 1; }; }
16228 else
16229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16230 fi
16231done
16232
16233ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16234if test -n "$ac_eof"; then
16235 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16236 ac_eof=`expr $ac_eof + 1`
16237fi
16238
16239cat >>$CONFIG_STATUS <<_ACEOF
16240cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16242_ACEOF
16243sed '
16244s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16245s/^/s,@/; s/!/@,|#_!!_#|/
16246:n
16247t n
16248s/'"$ac_delim"'$/,g/; t
16249s/$/\\/; p
16250N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16251' >>$CONFIG_STATUS <conf$$subs.sed
16252rm -f conf$$subs.sed
16253cat >>$CONFIG_STATUS <<_ACEOF
16254:end
16255s/|#_!!_#|//g
16256CEOF$ac_eof
16257_ACEOF
16258
16259
16260# VPATH may cause trouble with some makes, so we remove $(srcdir),
16261# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16262# trailing colons and then remove the whole line if VPATH becomes empty
16263# (actually we leave an empty line to preserve line numbers).
16264if test "x$srcdir" = x.; then
16265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16266s/:*\$(srcdir):*/:/
16267s/:*\${srcdir}:*/:/
16268s/:*@srcdir@:*/:/
16269s/^\([^=]*=[ ]*\):*/\1/
16270s/:*$//
16271s/^[^=]*=[ ]*$//
16272}'
16273fi
16274
16275cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016276fi # test -n "$CONFIG_FILES"
16277
Theodore Ts'oe1052142006-10-21 21:46:47 -040016278
16279for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16280do
16281 case $ac_tag in
16282 :[FHLC]) ac_mode=$ac_tag; continue;;
16283 esac
16284 case $ac_mode$ac_tag in
16285 :[FHL]*:*);;
16286 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16287echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16288 { (exit 1); exit 1; }; };;
16289 :[FH]-) ac_tag=-:-;;
16290 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16291 esac
16292 ac_save_IFS=$IFS
16293 IFS=:
16294 set x $ac_tag
16295 IFS=$ac_save_IFS
16296 shift
16297 ac_file=$1
16298 shift
16299
16300 case $ac_mode in
16301 :L) ac_source=$1;;
16302 :[FH])
16303 ac_file_inputs=
16304 for ac_f
16305 do
16306 case $ac_f in
16307 -) ac_f="$tmp/stdin";;
16308 *) # Look for the file first in the build tree, then in the source tree
16309 # (if the path is not absolute). The absolute path cannot be DOS-style,
16310 # because $ac_f cannot contain `:'.
16311 test -f "$ac_f" ||
16312 case $ac_f in
16313 [\\/$]*) false;;
16314 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16315 esac ||
16316 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16317echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16318 { (exit 1); exit 1; }; };;
16319 esac
16320 ac_file_inputs="$ac_file_inputs $ac_f"
16321 done
16322
16323 # Let's still pretend it is `configure' which instantiates (i.e., don't
16324 # use $as_me), people would be surprised to read:
16325 # /* config.h. Generated by config.status. */
16326 configure_input="Generated from "`IFS=:
16327 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16328 if test x"$ac_file" != x-; then
16329 configure_input="$ac_file. $configure_input"
16330 { echo "$as_me:$LINENO: creating $ac_file" >&5
16331echo "$as_me: creating $ac_file" >&6;}
16332 fi
16333
16334 case $ac_tag in
16335 *:-:* | *:-) cat >"$tmp/stdin";;
16336 esac
16337 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016338 esac
16339
Theodore Ts'oe1052142006-10-21 21:46:47 -040016340 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016341$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16342 X"$ac_file" : 'X\(//\)[^/]' \| \
16343 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016345echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16347 s//\1/
16348 q
16349 }
16350 /^X\(\/\/\)[^/].*/{
16351 s//\1/
16352 q
16353 }
16354 /^X\(\/\/\)$/{
16355 s//\1/
16356 q
16357 }
16358 /^X\(\/\).*/{
16359 s//\1/
16360 q
16361 }
16362 s/.*/./; q'`
16363 { as_dir="$ac_dir"
16364 case $as_dir in #(
16365 -*) as_dir=./$as_dir;;
16366 esac
16367 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016368 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016369 while :; do
16370 case $as_dir in #(
16371 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16372 *) as_qdir=$as_dir;;
16373 esac
16374 as_dirs="'$as_qdir' $as_dirs"
16375 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016376$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16377 X"$as_dir" : 'X\(//\)[^/]' \| \
16378 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016379 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016380echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16382 s//\1/
16383 q
16384 }
16385 /^X\(\/\/\)[^/].*/{
16386 s//\1/
16387 q
16388 }
16389 /^X\(\/\/\)$/{
16390 s//\1/
16391 q
16392 }
16393 /^X\(\/\).*/{
16394 s//\1/
16395 q
16396 }
16397 s/.*/./; q'`
16398 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016399 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016400 test -z "$as_dirs" || eval "mkdir $as_dirs"
16401 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16402echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016403 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016404 ac_builddir=.
16405
Theodore Ts'oe1052142006-10-21 21:46:47 -040016406case "$ac_dir" in
16407.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16408*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016410 # A ".." for each directory in $ac_dir_suffix.
16411 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16412 case $ac_top_builddir_sub in
16413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16415 esac ;;
16416esac
16417ac_abs_top_builddir=$ac_pwd
16418ac_abs_builddir=$ac_pwd$ac_dir_suffix
16419# for backward compatibility:
16420ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016421
16422case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016423 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016424 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016425 ac_top_srcdir=$ac_top_builddir_sub
16426 ac_abs_top_srcdir=$ac_pwd ;;
16427 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016428 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016429 ac_top_srcdir=$srcdir
16430 ac_abs_top_srcdir=$srcdir ;;
16431 *) # Relative name.
16432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16433 ac_top_srcdir=$ac_top_build_prefix$srcdir
16434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016435esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016436ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016438
Theodore Ts'oe1052142006-10-21 21:46:47 -040016439 case $ac_mode in
16440 :F)
16441 #
16442 # CONFIG_FILE
16443 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016444
16445 case $INSTALL in
16446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016447 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016448 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016449_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016450
16451cat >>$CONFIG_STATUS <<\_ACEOF
16452# If the template does not know about datarootdir, expand it.
16453# FIXME: This hack should be removed a few years after 2.60.
16454ac_datarootdir_hack=; ac_datarootdir_seen=
16455
16456case `sed -n '/datarootdir/ {
16457 p
16458 q
16459}
16460/@datadir@/p
16461/@docdir@/p
16462/@infodir@/p
16463/@localedir@/p
16464/@mandir@/p
16465' $ac_file_inputs` in
16466*datarootdir*) ac_datarootdir_seen=yes;;
16467*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16468 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16469echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16470_ACEOF
16471cat >>$CONFIG_STATUS <<_ACEOF
16472 ac_datarootdir_hack='
16473 s&@datadir@&$datadir&g
16474 s&@docdir@&$docdir&g
16475 s&@infodir@&$infodir&g
16476 s&@localedir@&$localedir&g
16477 s&@mandir@&$mandir&g
16478 s&\\\${datarootdir}&$datarootdir&g' ;;
16479esac
16480_ACEOF
16481
16482# Neutralize VPATH when `$srcdir' = `.'.
16483# Shell code in configure.ac might set extrasub.
16484# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016485cat >>$CONFIG_STATUS <<_ACEOF
16486 sed "$ac_vpsub
16487$extrasub
16488_ACEOF
16489cat >>$CONFIG_STATUS <<\_ACEOF
16490:t
16491/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016492s&@configure_input@&$configure_input&;t t
16493s&@top_builddir@&$ac_top_builddir_sub&;t t
16494s&@srcdir@&$ac_srcdir&;t t
16495s&@abs_srcdir@&$ac_abs_srcdir&;t t
16496s&@top_srcdir@&$ac_top_srcdir&;t t
16497s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16498s&@builddir@&$ac_builddir&;t t
16499s&@abs_builddir@&$ac_abs_builddir&;t t
16500s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16501s&@INSTALL@&$ac_INSTALL&;t t
16502$ac_datarootdir_hack
16503" $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 -050016504
Theodore Ts'oe1052142006-10-21 21:46:47 -040016505test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16506 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16507 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16508 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16509which seems to be undefined. Please make sure it is defined." >&5
16510echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16511which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016512
Theodore Ts'oe1052142006-10-21 21:46:47 -040016513 rm -f "$tmp/stdin"
16514 case $ac_file in
16515 -) cat "$tmp/out"; rm -f "$tmp/out";;
16516 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16517 esac
16518 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016519
16520
Theodore Ts'oe1052142006-10-21 21:46:47 -040016521 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16522echo "$as_me: executing $ac_file commands" >&6;}
16523 ;;
16524 esac
16525
16526
16527 case $ac_file$ac_mode in
16528 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016529 for ac_file in $CONFIG_FILES; do
16530 # Support "outfile[:infile[:infile...]]"
16531 case "$ac_file" in
16532 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016533 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016534 # PO directories have a Makefile.in generated from Makefile.in.in.
16535 case "$ac_file" in */Makefile.in)
16536 # Adjust a relative srcdir.
16537 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16538 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16539 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16540 # In autoconf-2.13 it is called $ac_given_srcdir.
16541 # In autoconf-2.50 it is called $srcdir.
16542 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16543 case "$ac_given_srcdir" in
16544 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16545 /*) top_srcdir="$ac_given_srcdir" ;;
16546 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16547 esac
16548 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16549 rm -f "$ac_dir/POTFILES"
16550 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16551 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 -050016552 POMAKEFILEDEPS="POTFILES.in"
16553 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016554 # on $ac_dir but don't depend on user-specified configuration
16555 # parameters.
16556 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16557 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016558 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016559 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16560 fi
16561 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16562 # Hide the ALL_LINGUAS assigment from automake.
16563 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016564 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16565 else
16566 # The set of available languages was given in configure.in.
16567 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016568 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016569 # Compute POFILES
16570 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16571 # Compute UPDATEPOFILES
16572 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16573 # Compute DUMMYPOFILES
16574 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16575 # Compute GMOFILES
16576 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016577 case "$ac_given_srcdir" in
16578 .) srcdirpre= ;;
16579 *) srcdirpre='$(srcdir)/' ;;
16580 esac
16581 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016582 UPDATEPOFILES=
16583 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016584 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016585 for lang in $ALL_LINGUAS; do
16586 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016587 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16588 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016589 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016590 done
16591 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16592 # environment variable.
16593 INST_LINGUAS=
16594 if test -n "$ALL_LINGUAS"; then
16595 for presentlang in $ALL_LINGUAS; do
16596 useit=no
16597 if test "%UNSET%" != "$LINGUAS"; then
16598 desiredlanguages="$LINGUAS"
16599 else
16600 desiredlanguages="$ALL_LINGUAS"
16601 fi
16602 for desiredlang in $desiredlanguages; do
16603 # Use the presentlang catalog if desiredlang is
16604 # a. equal to presentlang, or
16605 # b. a variant of presentlang (because in this case,
16606 # presentlang can be used as a fallback for messages
16607 # which are not translated in the desiredlang catalog).
16608 case "$desiredlang" in
16609 "$presentlang"*) useit=yes;;
16610 esac
16611 done
16612 if test $useit = yes; then
16613 INST_LINGUAS="$INST_LINGUAS $presentlang"
16614 fi
16615 done
16616 fi
16617 CATALOGS=
16618 if test -n "$INST_LINGUAS"; then
16619 for lang in $INST_LINGUAS; do
16620 CATALOGS="$CATALOGS $lang.gmo"
16621 done
16622 fi
16623 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016624 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 -040016625 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16626 if test -f "$f"; then
16627 case "$f" in
16628 *.orig | *.bak | *~) ;;
16629 *) cat "$f" >> "$ac_dir/Makefile" ;;
16630 esac
16631 fi
16632 done
16633 fi
16634 ;;
16635 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016636 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016637
Theodore Ts'oe1052142006-10-21 21:46:47 -040016638 esac
16639done # for ac_tag
16640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016641
16642{ (exit 0); exit 0; }
16643_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016644chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016645ac_clean_files=$ac_clean_files_save
16646
16647
16648# configure is writing to config.log, and then calls config.status.
16649# config.status does its own redirection, appending to config.log.
16650# Unfortunately, on DOS this fails, as config.log is still kept open
16651# by configure, so config.status won't be able to write to it; its
16652# output is simply discarded. So we exec the FD to /dev/null,
16653# effectively closing config.log, so it can be properly (re)opened and
16654# appended to by config.status. When coming back to configure, we
16655# need to make the FD available again.
16656if test "$no_create" != yes; then
16657 ac_cs_success=:
16658 ac_config_status_args=
16659 test "$silent" = yes &&
16660 ac_config_status_args="$ac_config_status_args --quiet"
16661 exec 5>/dev/null
16662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16663 exec 5>>config.log
16664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16665 # would make configure fail if this is the last instruction.
16666 $ac_cs_success || { (exit 1); exit 1; }
16667fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016668
Theodore Ts'oee683a12005-02-05 15:53:56 -050016669if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16670