blob: 41f4f4bfdc4ff7ac26a9e040eaef5b23d486756f [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
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400781ASM_TYPES_HEADER
782PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400783 ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400789LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400790CPPFLAGS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500791CPP
792PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400793
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000794
795# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500796ac_init_help=
797ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000798# The variables have the same names as the options, with
799# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500800cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000801exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000802no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000811verbose=
812x_includes=NONE
813x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400820# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000829includedir='${prefix}/include'
830oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400831docdir='${datarootdir}/doc/${PACKAGE}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000843for ac_option
844do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400847 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000848 ac_prev=
849 continue
850 fi
851
Theodore Ts'oe1052142006-10-21 21:46:47 -0400852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
Theodore Ts'oe1052142006-10-21 21:46:47 -0400859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000862
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500866 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867
868 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500869 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500871 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882
Theodore Ts'oe1052142006-10-21 21:46:47 -0400883 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000884 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500886 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000887
Theodore Ts'oe1052142006-10-21 21:46:47 -0400888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000897 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902 eval enable_$ac_feature=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000913
914 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400921 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500930 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942
943 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500944 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000945 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500946 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000947
Theodore Ts'oe1052142006-10-21 21:46:47 -0400948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500959 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500964 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500969 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500976 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000977
Theodore Ts'oe1052142006-10-21 21:46:47 -0400978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400984 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500993 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000994
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001000 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001014 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001015
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001019 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001033 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001050 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001051
Theodore Ts'oe1052142006-10-21 21:46:47 -04001052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001081 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001082
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001092
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001100 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001110
1111 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119
1120 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001122 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001127 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001138 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 ;;
1151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001158 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001159 export $ac_envvar ;;
1160
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001161 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176fi
1177
Theodore Ts'oe1052142006-10-21 21:46:47 -04001178# Be sure to have absolute directory names.
1179for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001185 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001191done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001193# There might be people who depend on the old broken behavior: `$host'
1194# used to hold the argument of --host etc.
1195# FIXME: To remove some day.
1196build=$build_alias
1197host=$host_alias
1198target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001200# FIXME: To remove some day.
1201if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209fi
1210
1211ac_tool_prefix=
1212test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214test "$silent" = yes && exec 6>/dev/null
1215
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001216
Theodore Ts'oe1052142006-10-21 21:46:47 -04001217ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218ac_ls_di=`ls -di .` &&
1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1225
1226
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001236echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001255 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256 srcdir=..
1257 fi
1258else
1259 ac_srcdir_defaulted=no
1260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001261if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001264 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001265fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001269 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001270 pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295\`configure' configures this package to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001348_ACEOF
1349
1350 cat <<\_ACEOF
1351
1352System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359
1360 cat <<\_ACEOF
1361
1362Optional Features:
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001365 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001375 --disable-debugfs disable support of debugfs program
1376 --disable-imager disable support of e2image program
1377 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001378 --enable-fsck build fsck wrapper program
1379 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001380 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001381 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001382 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001383 --disable-nls do not use Native Language Support
1384 --disable-rpath do not hardcode runtime library paths
1385
1386Optional Packages:
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001389 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001390 --with-cc=COMPILER select compiler to use
1391 --with-linker=LINKER select linker to use
1392 --with-ccopts=CCOPTS select compiler command line options
1393 --with-ldopts=LDOPTS select linker command line options
1394 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1396 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1397 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1398 --with-included-gettext use the GNU gettext library included here
1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1400 --without-libintl-prefix don't search for libintl in includedir and libdir
1401
1402Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001407 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001410 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001411 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
1416_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001417ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424 ac_builddir=.
1425
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426case "$ac_dir" in
1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436esac
1437ac_abs_top_builddir=$ac_pwd
1438ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439# for backward compatibility:
1440ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001441
1442case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001443 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001455esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457
Theodore Ts'oe1052142006-10-21 21:46:47 -04001458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466 else
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 done
1471fi
1472
Theodore Ts'oe1052142006-10-21 21:46:47 -04001473test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474if $ac_init_version; then
1475 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001476configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001477generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478
Theodore Ts'oe1052142006-10-21 21:46:47 -04001479Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001484 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001486cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487This file contains any messages produced by compilers while
1488running configure, to aid debugging if configure makes a mistake.
1489
1490It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001491generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492
1493 $ $0 $@
1494
1495_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001496exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001497{
1498cat <<_ASUNAME
1499## --------- ##
1500## Platform. ##
1501## --------- ##
1502
1503hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511
1512/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001515/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001516/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519
1520_ASUNAME
1521
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1528done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001529IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001530
1531} >&5
1532
1533cat >&5 <<_ACEOF
1534
1535
1536## ----------- ##
1537## Core tests. ##
1538## ----------- ##
1539
1540_ACEOF
1541
1542
1543# Keep a trace of the command line.
1544# Strip out --no-create and --no-recursion so they do not pile up.
1545# Strip out --silent because we don't want to record it for future runs.
1546# Also quote any args containing shell meta-characters.
1547# Make two passes to allow for proper duplicate-argument suppression.
1548ac_configure_args=
1549ac_configure_args0=
1550ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551ac_must_keep_next=false
1552for ac_pass in 1 2
1553do
1554 for ac_arg
1555 do
1556 case $ac_arg in
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001561 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 esac
1564 case $ac_pass in
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 2)
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1570 else
1571 case $ac_arg in
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 esac
1579 ;;
1580 -* ) ac_must_keep_next=true ;;
1581 esac
1582 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001583 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584 ;;
1585 esac
1586 done
1587done
1588$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590
1591# When interrupted or exit'd, cleanup temporary files, and complete
1592# config.log. We remove comments because anyway the quotes in there
1593# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001594# WARNING: Use '\'' to represent an apostrophe within the trap.
1595# 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 -05001596trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1598 {
1599 echo
1600
1601 cat <<\_ASBOX
1602## ---------------- ##
1603## Cache variables. ##
1604## ---------------- ##
1605_ASBOX
1606 echo
1607 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001608(
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in #(
1612 *${as_nl}*)
1613 case $ac_var in #(
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 esac
1617 case $ac_var in #(
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1620 esac ;;
1621 esac
1622 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001623 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001630 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 esac |
1634 sort
1635)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636 echo
1637
1638 cat <<\_ASBOX
1639## ----------------- ##
1640## Output variables. ##
1641## ----------------- ##
1642_ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1645 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651 done | sort
1652 echo
1653
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656## ------------------- ##
1657## File substitutions. ##
1658## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659_ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1662 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001663 eval ac_val=\$$ac_var
1664 case $ac_val in
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 esac
1667 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001668 done | sort
1669 echo
1670 fi
1671
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674## ----------- ##
1675## confdefs.h. ##
1676## ----------- ##
1677_ASBOX
1678 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001679 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001680 echo
1681 fi
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1685 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001688 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001689' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692done
1693ac_signal=0
1694
1695# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001696rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001697
1698# Predefined preprocessor variables.
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_NAME "$PACKAGE_NAME"
1702_ACEOF
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_VERSION "$PACKAGE_VERSION"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_STRING "$PACKAGE_STRING"
1717_ACEOF
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722_ACEOF
1723
1724
1725# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001726# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001727if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731else
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001735shift
1736for ac_site_file
1737do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001738 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001742 . "$ac_site_file"
1743 fi
1744done
1745
1746if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751echo "$as_me: loading cache $cache_file" >&6;}
1752 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001755 esac
1756 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759echo "$as_me: creating cache $cache_file" >&6;}
1760 >$cache_file
1761fi
1762
1763# Check that the precious variables saved in the cache have kept the same
1764# value.
1765ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001766for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001771 case $ac_old_set,$ac_new_set in
1772 set,)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,set)
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1780 ,);;
1781 *)
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1790 fi;;
1791 esac
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1794 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001796 *) ac_arg=$ac_var=$ac_new_val ;;
1797 esac
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801 esac
1802 fi
1803done
1804if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001810fi
1811
Theodore Ts'oe1052142006-10-21 21:46:47 -04001812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001828ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001829ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001834
1835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001836ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001837for ac_dir in config "$srcdir"/config; do
1838 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001839 ac_aux_dir=$ac_dir
1840 ac_install_sh="$ac_aux_dir/install-sh -c"
1841 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001842 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001843 ac_aux_dir=$ac_dir
1844 ac_install_sh="$ac_aux_dir/install.sh -c"
1845 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001846 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001847 ac_aux_dir=$ac_dir
1848 ac_install_sh="$ac_aux_dir/shtool install -c"
1849 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001850 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001851done
1852if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001855 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001857
1858# These three variables are undocumented and unsupported,
1859# and are intended to be withdrawn in a future Autoconf release.
1860# They can cause serious problems if a builder's source tree is in a directory
1861# whose full name contains unusual characters.
1862ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1863ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1864ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1865
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001866
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001867MCONFIG=./MCONFIG
1868
Theodore Ts'o74becf31997-04-26 14:37:06 +00001869BINARY_TYPE=bin
1870E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1871 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1873 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001874E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001875MONTH=`echo $DATE | awk -F- '{print $2}'`
1876YEAR=`echo $DATE | awk -F- '{print $3}'`
1877
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001878if expr $YEAR ">" 1900 > /dev/null ; then
1879 E2FSPROGS_YEAR=$YEAR
1880elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001881 E2FSPROGS_YEAR=19$YEAR
1882else
1883 E2FSPROGS_YEAR=20$YEAR
1884fi
1885
1886case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001887Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001899*) echo "Unknown month $MONTH??" ;;
1900esac
1901
Andreas Dilger927566a2006-11-12 19:41:25 -05001902base_ver=`echo $E2FSPROGS_VERSION | \
1903 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001904
1905date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1906
1907case $E2FSPROGS_VERSION in
1908*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04001909 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05001910 ;;
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'oeafba6c2008-07-10 10:21:42 -04002007WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002008
Theodore Ts'oe1052142006-10-21 21:46:47 -04002009# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002010if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002011 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002012WITH_DIET_LIBC=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04002013{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2014echo "${ECHO_T}CC=$CC" >&6; }
2015fi
2016
2017# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002018if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002019 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2020echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002021CC=$withval
2022else
2023 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002024{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2025echo "${ECHO_T}CC defaults to $CC" >&6; }
2026fi
2027export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002029ac_ext=c
2030ac_cpp='$CPP $CPPFLAGS'
2031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002039if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002041else
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002051 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 -05002052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2055 fi
2056done
2057done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002059
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002060fi
2061fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002062CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002063if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002064 { echo "$as_me:$LINENO: result: $CC" >&5
2065echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002066else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002067 { echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002069fi
2070
Theodore Ts'oe1052142006-10-21 21:46:47 -04002071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002072fi
2073if test -z "$ac_cv_prog_CC"; then
2074 ac_ct_CC=$CC
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002091 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 -05002092 ac_cv_prog_ac_ct_CC="gcc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096done
2097done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002098IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002099
2100fi
2101fi
2102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002106else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002107 { echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002109fi
2110
Theodore Ts'oe1052142006-10-21 21:46:47 -04002111 if test "x$ac_ct_CC" = x; then
2112 CC=""
2113 else
2114 case $cross_compiling:$ac_tool_warned in
2115yes:)
2116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2117whose name does not start with the host triplet. If you think this
2118configuration is useful to you, please write to autoconf@gnu.org." >&5
2119echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2120whose name does not start with the host triplet. If you think this
2121configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2122ac_tool_warned=yes ;;
2123esac
2124 CC=$ac_ct_CC
2125 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002126else
2127 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002128fi
2129
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002130if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002131 if test -n "$ac_tool_prefix"; then
2132 # 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 -05002133set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002136if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002138else
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002148 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 -05002149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2152 fi
2153done
2154done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002155IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002156
2157fi
2158fi
2159CC=$ac_cv_prog_CC
2160if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002161 { echo "$as_me:$LINENO: result: $CC" >&5
2162echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002163else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002164 { echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002166fi
2167
Theodore Ts'oe1052142006-10-21 21:46:47 -04002168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002169 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002170fi
2171if test -z "$CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002176if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2181else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002182 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002189 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 -05002190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191 ac_prog_rejected=yes
2192 continue
2193 fi
2194 ac_cv_prog_CC="cc"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198done
2199done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002200IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002201
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002202if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2205 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002206 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2210 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002212 fi
2213fi
2214fi
2215fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002216CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002217if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002218 { echo "$as_me:$LINENO: result: $CC" >&5
2219echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002220else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002221 { echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002223fi
2224
Theodore Ts'oe1052142006-10-21 21:46:47 -04002225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002226fi
2227if test -z "$CC"; then
2228 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002229 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002230 do
2231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002235if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002237else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242for as_dir in $PATH
2243do
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002247 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 -05002248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2251 fi
2252done
2253done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002254IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002255
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002256fi
2257fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002258CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002259if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002260 { echo "$as_me:$LINENO: result: $CC" >&5
2261echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002262else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002263 { echo "$as_me:$LINENO: result: no" >&5
2264echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002265fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002266
Theodore Ts'oe1052142006-10-21 21:46:47 -04002267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002268 test -n "$CC" && break
2269 done
2270fi
2271if test -z "$CC"; then
2272 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002273 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002274do
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002279if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284else
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002291 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 -05002292 ac_cv_prog_ac_ct_CC="$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002295 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002296done
2297done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002298IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002299
2300fi
2301fi
2302ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002307 { echo "$as_me:$LINENO: result: no" >&5
2308echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002309fi
2310
Theodore Ts'oe1052142006-10-21 21:46:47 -04002311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002312 test -n "$ac_ct_CC" && break
2313done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002314
Theodore Ts'oe1052142006-10-21 21:46:47 -04002315 if test "x$ac_ct_CC" = x; then
2316 CC=""
2317 else
2318 case $cross_compiling:$ac_tool_warned in
2319yes:)
2320{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321whose name does not start with the host triplet. If you think this
2322configuration is useful to you, please write to autoconf@gnu.org." >&5
2323echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324whose name does not start with the host triplet. If you think this
2325configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326ac_tool_warned=yes ;;
2327esac
2328 CC=$ac_ct_CC
2329 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002330fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002332fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002333
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002334
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002335test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2336See \`config.log' for more details." >&5
2337echo "$as_me: error: no acceptable C compiler found in \$PATH
2338See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2340
2341# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002342echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002343ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002344{ (ac_try="$ac_compiler --version >&5"
2345case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348esac
2349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002354{ (ac_try="$ac_compiler -v >&5"
2355case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358esac
2359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002364{ (ac_try="$ac_compiler -V >&5"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2374
2375cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381
2382int
2383main ()
2384{
2385
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390ac_clean_files_save=$ac_clean_files
2391ac_clean_files="$ac_clean_files a.out a.exe b.out"
2392# Try to create an executable without -o first, disregard a.out.
2393# It will help us diagnose broken compilers, and finding out an intuition
2394# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2396echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002397ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002398#
2399# List of possible output files, starting from the most likely.
2400# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2401# only as a last resort. b.out is created by i960 compilers.
2402ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2403#
2404# The IRIX 6 linker writes into existing files which may not be
2405# executable, retaining their permissions. Remove them first so a
2406# subsequent execution test works.
2407ac_rmfiles=
2408for ac_file in $ac_files
2409do
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2413 esac
2414done
2415rm -f $ac_rmfiles
2416
2417if { (ac_try="$ac_link_default"
2418case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421esac
2422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2428# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2429# in a Makefile. We should not override ac_cv_exeext if it was cached,
2430# so that the user can short-circuit this test for compilers unknown to
2431# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002432for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433do
2434 test -f "$ac_file" || continue
2435 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002437 ;;
2438 [ab].out )
2439 # We found the default executable, but exeext='' is most
2440 # certainly right.
2441 break;;
2442 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2444 then :; else
2445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2446 fi
2447 # We set ac_cv_exeext here because the later test for it is not
2448 # safe: cross compilers may not add the suffix if given an `-o'
2449 # argument, so we may need to know it at that point already.
2450 # Even if this section looks crufty: it has the advantage of
2451 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452 break;;
2453 * )
2454 break;;
2455 esac
2456done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002457test "$ac_cv_exeext" = no && ac_cv_exeext=
2458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002460 ac_file=''
2461fi
2462
2463{ echo "$as_me:$LINENO: result: $ac_file" >&5
2464echo "${ECHO_T}$ac_file" >&6; }
2465if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466 echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470See \`config.log' for more details." >&5
2471echo "$as_me: error: C compiler cannot create executables
2472See \`config.log' for more details." >&2;}
2473 { (exit 77); exit 77; }; }
2474fi
2475
2476ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477
Theodore Ts'oe1052142006-10-21 21:46:47 -04002478# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2481echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2483# If not cross compiling, check that we can run a simple program.
2484if test "$cross_compiling" != yes; then
2485 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002496 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497 if test "$cross_compiling" = maybe; then
2498 cross_compiling=yes
2499 else
2500 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2501If you meant to cross compile, use \`--host'.
2502See \`config.log' for more details." >&5
2503echo "$as_me: error: cannot run C compiled programs.
2504If you meant to cross compile, use \`--host'.
2505See \`config.log' for more details." >&2;}
2506 { (exit 1); exit 1; }; }
2507 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002508 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510{ echo "$as_me:$LINENO: result: yes" >&5
2511echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513rm -f a.out a.exe conftest$ac_cv_exeext b.out
2514ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002517{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2518echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2519{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2520echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002521
Theodore Ts'oe1052142006-10-21 21:46:47 -04002522{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2523echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2524if { (ac_try="$ac_link"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2536# work properly (i.e., refer to `conftest.exe'), while it won't with
2537# `rm'.
2538for ac_file in conftest.exe conftest conftest.*; do
2539 test -f "$ac_file" || continue
2540 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 break;;
2544 * ) break;;
2545 esac
2546done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002547else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2549See \`config.log' for more details." >&5
2550echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2551See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }
2553fi
2554
2555rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2557echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558
2559rm -f conftest.$ac_ext
2560EXEEXT=$ac_cv_exeext
2561ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002562{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2563echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564if test "${ac_cv_objext+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 cat >conftest.$ac_ext <<_ACEOF
2568/* confdefs.h. */
2569_ACEOF
2570cat confdefs.h >>conftest.$ac_ext
2571cat >>conftest.$ac_ext <<_ACEOF
2572/* end confdefs.h. */
2573
2574int
2575main ()
2576{
2577
2578 ;
2579 return 0;
2580}
2581_ACEOF
2582rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002583if { (ac_try="$ac_compile"
2584case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002593 for ac_file in conftest.o conftest.obj conftest.*; do
2594 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598 break;;
2599 esac
2600done
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606See \`config.log' for more details." >&5
2607echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610fi
2611
2612rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002614{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002616OBJEXT=$ac_cv_objext
2617ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002618{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002620if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623 cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
2629
2630int
2631main ()
2632{
2633#ifndef __GNUC__
2634 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002635#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 ;
2638 return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002642if { (ac_try="$ac_compile"
2643case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646esac
2647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002659else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660 echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
Theodore Ts'oe1052142006-10-21 21:46:47 -04002663 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002665
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002670{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2671echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672GCC=`test $ac_compiler_gnu = yes && echo yes`
2673ac_test_CFLAGS=${CFLAGS+set}
2674ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002675{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002677if test "${ac_cv_prog_cc_g+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002679else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002680 ac_save_c_werror_flag=$ac_c_werror_flag
2681 ac_c_werror_flag=yes
2682 ac_cv_prog_cc_g=no
2683 CFLAGS="-g"
2684 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002685/* confdefs.h. */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h. */
2690
2691int
2692main ()
2693{
2694
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002700if { (ac_try="$ac_compile"
2701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707 ac_status=$?
2708 grep -v '^ *+' conftest.er1 >conftest.err
2709 rm -f conftest.er1
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002712 (exit $ac_status); } && {
2713 test -z "$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002716 ac_cv_prog_cc_g=yes
2717else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002718 echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002720
Theodore Ts'oe1052142006-10-21 21:46:47 -04002721 CFLAGS=""
2722 cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h. */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h. */
2728
2729int
2730main ()
2731{
2732
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (ac_try="$ac_compile"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002754 :
2755else
2756 echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 ac_c_werror_flag=$ac_save_c_werror_flag
2760 CFLAGS="-g"
2761 cat >conftest.$ac_ext <<_ACEOF
2762/* confdefs.h. */
2763_ACEOF
2764cat confdefs.h >>conftest.$ac_ext
2765cat >>conftest.$ac_ext <<_ACEOF
2766/* end confdefs.h. */
2767
2768int
2769main ()
2770{
2771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext
2777if { (ac_try="$ac_compile"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002793 ac_cv_prog_cc_g=yes
2794else
2795 echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002800
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002803
2804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805fi
2806
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_c_werror_flag=$ac_save_c_werror_flag
2809fi
2810{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002812if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002813 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002814elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2816 CFLAGS="-g -O2"
2817 else
2818 CFLAGS="-g"
2819 fi
2820else
2821 if test "$GCC" = yes; then
2822 CFLAGS="-O2"
2823 else
2824 CFLAGS=
2825 fi
2826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2828echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2829if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002832 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002833ac_save_CC=$CC
2834cat >conftest.$ac_ext <<_ACEOF
2835/* confdefs.h. */
2836_ACEOF
2837cat confdefs.h >>conftest.$ac_ext
2838cat >>conftest.$ac_ext <<_ACEOF
2839/* end confdefs.h. */
2840#include <stdarg.h>
2841#include <stdio.h>
2842#include <sys/types.h>
2843#include <sys/stat.h>
2844/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845struct buf { int x; };
2846FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847static char *e (p, i)
2848 char **p;
2849 int i;
2850{
2851 return p[i];
2852}
2853static char *f (char * (*g) (char **, int), char **p, ...)
2854{
2855 char *s;
2856 va_list v;
2857 va_start (v,p);
2858 s = g (p, va_arg (v,int));
2859 va_end (v);
2860 return s;
2861}
2862
2863/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002870int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871
Theodore Ts'oe1052142006-10-21 21:46:47 -04002872/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2873 inside strings and character constants. */
2874#define FOO(x) 'x'
2875int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002877int test (int i, double x);
2878struct s1 {int (*f) (int a);};
2879struct s2 {int (*f) (double a);};
2880int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881int argc;
2882char **argv;
2883int
2884main ()
2885{
2886return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2887 ;
2888 return 0;
2889}
2890_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002891for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002893do
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002896if { (ac_try="$ac_compile"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002903 ac_status=$?
2904 grep -v '^ *+' conftest.er1 >conftest.err
2905 rm -f conftest.er1
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002908 (exit $ac_status); } && {
2909 test -z "$ac_c_werror_flag" ||
2910 test ! -s conftest.err
2911 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002912 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913else
2914 echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002919
2920rm -f core conftest.err conftest.$ac_objext
2921 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002923rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002924CC=$ac_save_CC
2925
2926fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002927# AC_CACHE_VAL
2928case "x$ac_cv_prog_cc_c89" in
2929 x)
2930 { echo "$as_me:$LINENO: result: none needed" >&5
2931echo "${ECHO_T}none needed" >&6; } ;;
2932 xno)
2933 { echo "$as_me:$LINENO: result: unsupported" >&5
2934echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002936 CC="$CC $ac_cv_prog_cc_c89"
2937 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2938echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939esac
2940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948ac_ext=c
2949ac_cpp='$CPP $CPPFLAGS'
2950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002953{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2954echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002955# On Suns, sometimes $CPP names a directory.
2956if test -n "$CPP" && test -d "$CPP"; then
2957 CPP=
2958fi
2959if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960 if test "${ac_cv_prog_CPP+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963 # Double quotes because CPP needs to be expanded
2964 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2965 do
2966 ac_preproc_ok=false
2967for ac_c_preproc_warn_flag in '' yes
2968do
2969 # Use a header file that comes with gcc, so configuring glibc
2970 # with a fresh cross-compiler works.
2971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002973 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002974 # not just through cpp. "Syntax error" is here to catch this case.
2975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h. */
2981#ifdef __STDC__
2982# include <limits.h>
2983#else
2984# include <assert.h>
2985#endif
2986 Syntax error
2987_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002988if { (ac_try="$ac_cpp conftest.$ac_ext"
2989case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003000 (exit $ac_status); } >/dev/null && {
3001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003004 :
3005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003008
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003009 # Broken: fails on valid input.
3010continue
3011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003012
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013rm -f conftest.err conftest.$ac_ext
3014
Theodore Ts'oe1052142006-10-21 21:46:47 -04003015 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016 # can be detected and how.
3017 cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
3023#include <ac_nonexistent.h>
3024_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003025if { (ac_try="$ac_cpp conftest.$ac_ext"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003037 (exit $ac_status); } >/dev/null && {
3038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 # Broken: success on invalid input.
3042continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044 echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 # Passes both tests.
3048ac_preproc_ok=:
3049break
3050fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003052rm -f conftest.err conftest.$ac_ext
3053
3054done
3055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056rm -f conftest.err conftest.$ac_ext
3057if $ac_preproc_ok; then
3058 break
3059fi
3060
3061 done
3062 ac_cv_prog_CPP=$CPP
3063
3064fi
3065 CPP=$ac_cv_prog_CPP
3066else
3067 ac_cv_prog_CPP=$CPP
3068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003069{ echo "$as_me:$LINENO: result: $CPP" >&5
3070echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071ac_preproc_ok=false
3072for ac_c_preproc_warn_flag in '' yes
3073do
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086#ifdef __STDC__
3087# include <limits.h>
3088#else
3089# include <assert.h>
3090#endif
3091 Syntax error
3092_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003093if { (ac_try="$ac_cpp conftest.$ac_ext"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109 :
3110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 # Broken: fails on valid input.
3115continue
3116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118rm -f conftest.err conftest.$ac_ext
3119
Theodore Ts'oe1052142006-10-21 21:46:47 -04003120 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#include <ac_nonexistent.h>
3129_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003130if { (ac_try="$ac_cpp conftest.$ac_ext"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003146 # Broken: success on invalid input.
3147continue
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Passes both tests.
3153ac_preproc_ok=:
3154break
3155fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157rm -f conftest.err conftest.$ac_ext
3158
3159done
3160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161rm -f conftest.err conftest.$ac_ext
3162if $ac_preproc_ok; then
3163 :
3164else
3165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166See \`config.log' for more details." >&5
3167echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3170fi
3171
3172ac_ext=c
3173ac_cpp='$CPP $CPPFLAGS'
3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003179# Check whether --with-linker was given.
3180if test "${with_linker+set}" = set; then
3181 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3182echo "${ECHO_T}LD=$withval" >&6; }
3183LD=$withval
3184else
3185 if test -z "$LD" ; then LD=$CC; fi
3186{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3187echo "${ECHO_T}LD defaults to $LD" >&6; }
3188fi
3189export LD
3190
3191
3192# Check whether --with-ccopts was given.
3193if test "${with_ccopts+set}" = set; then
3194 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3195echo "${ECHO_T}CCOPTS is $withval" >&6; }
3196CFLAGS=$withval
3197fi
3198
3199
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3201echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3202if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003205 # Extract the first word of "grep ggrep" to use in msg output
3206if test -z "$GREP"; then
3207set dummy grep ggrep; ac_prog_name=$2
3208if test "${ac_cv_path_GREP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 ac_path_GREP_found=false
3212# Loop through the user's path and test for each of PROGNAME-LIST
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_prog in grep ggrep; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003222 # Check for GNU ac_path_GREP and select it if it is found.
3223 # Check for GNU $ac_path_GREP
3224case `"$ac_path_GREP" --version 2>&1` in
3225*GNU*)
3226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227*)
3228 ac_count=0
3229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230 while :
3231 do
3232 cat "conftest.in" "conftest.in" >"conftest.tmp"
3233 mv "conftest.tmp" "conftest.in"
3234 cp "conftest.in" "conftest.nl"
3235 echo 'GREP' >> "conftest.nl"
3236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3238 ac_count=`expr $ac_count + 1`
3239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3240 # Best one so far, save it but keep looking for a better one
3241 ac_cv_path_GREP="$ac_path_GREP"
3242 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003243 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003244 # 10*(2^10) chars as input seems more than enough
3245 test $ac_count -gt 10 && break
3246 done
3247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248esac
3249
3250
3251 $ac_path_GREP_found && break 3
3252 done
3253done
3254
3255done
3256IFS=$as_save_IFS
3257
3258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003259fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260
3261GREP="$ac_cv_path_GREP"
3262if test -z "$GREP"; then
3263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3264echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3265 { (exit 1); exit 1; }; }
3266fi
3267
3268else
3269 ac_cv_path_GREP=$GREP
3270fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271
3272
Theodore Ts'oe1052142006-10-21 21:46:47 -04003273fi
3274{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3275echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3276 GREP="$ac_cv_path_GREP"
3277
3278
3279{ echo "$as_me:$LINENO: checking for egrep" >&5
3280echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3281if test "${ac_cv_path_EGREP+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285 then ac_cv_path_EGREP="$GREP -E"
3286 else
3287 # Extract the first word of "egrep" to use in msg output
3288if test -z "$EGREP"; then
3289set dummy egrep; ac_prog_name=$2
3290if test "${ac_cv_path_EGREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293 ac_path_EGREP_found=false
3294# Loop through the user's path and test for each of PROGNAME-LIST
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_prog in egrep; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003304 # Check for GNU ac_path_EGREP and select it if it is found.
3305 # Check for GNU $ac_path_EGREP
3306case `"$ac_path_EGREP" --version 2>&1` in
3307*GNU*)
3308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309*)
3310 ac_count=0
3311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312 while :
3313 do
3314 cat "conftest.in" "conftest.in" >"conftest.tmp"
3315 mv "conftest.tmp" "conftest.in"
3316 cp "conftest.in" "conftest.nl"
3317 echo 'EGREP' >> "conftest.nl"
3318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320 ac_count=`expr $ac_count + 1`
3321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3322 # Best one so far, save it but keep looking for a better one
3323 ac_cv_path_EGREP="$ac_path_EGREP"
3324 ac_path_EGREP_max=$ac_count
3325 fi
3326 # 10*(2^10) chars as input seems more than enough
3327 test $ac_count -gt 10 && break
3328 done
3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330esac
3331
3332
3333 $ac_path_EGREP_found && break 3
3334 done
3335done
3336
3337done
3338IFS=$as_save_IFS
3339
3340
3341fi
3342
3343EGREP="$ac_cv_path_EGREP"
3344if test -z "$EGREP"; then
3345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347 { (exit 1); exit 1; }; }
3348fi
3349
3350else
3351 ac_cv_path_EGREP=$EGREP
3352fi
3353
3354
3355 fi
3356fi
3357{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3358echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3359 EGREP="$ac_cv_path_EGREP"
3360
3361
3362{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3363echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003364if test "${ac_cv_header_stdc+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367 cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
3373#include <stdlib.h>
3374#include <stdarg.h>
3375#include <string.h>
3376#include <float.h>
3377
3378int
3379main ()
3380{
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003387if { (ac_try="$ac_compile"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003403 ac_cv_header_stdc=yes
3404else
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
Theodore Ts'oe1052142006-10-21 21:46:47 -04003408 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003409fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003410
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003412
3413if test $ac_cv_header_stdc = yes; then
3414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421#include <string.h>
3422
3423_ACEOF
3424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "memchr" >/dev/null 2>&1; then
3426 :
3427else
3428 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003429fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003430rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003432fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433
3434if test $ac_cv_header_stdc = yes; then
3435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#include <stdlib.h>
3443
3444_ACEOF
3445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "free" >/dev/null 2>&1; then
3447 :
3448else
3449 ac_cv_header_stdc=no
3450fi
3451rm -f conftest*
3452
3453fi
3454
3455if test $ac_cv_header_stdc = yes; then
3456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457 if test "$cross_compiling" = yes; then
3458 :
3459else
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003467#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468#if ((' ' & 0x0FF) == 0x020)
3469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3471#else
3472# define ISLOWER(c) \
3473 (('a' <= (c) && (c) <= 'i') \
3474 || ('j' <= (c) && (c) <= 'r') \
3475 || ('s' <= (c) && (c) <= 'z'))
3476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477#endif
3478
3479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480int
3481main ()
3482{
3483 int i;
3484 for (i = 0; i < 256; i++)
3485 if (XOR (islower (i), ISLOWER (i))
3486 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003487 return 2;
3488 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003489}
3490_ACEOF
3491rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003492if { (ac_try="$ac_link"
3493case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
3497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003502 { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 :
3512else
3513 echo "$as_me: program exited with status $ac_status" >&5
3514echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517( exit $ac_status )
3518ac_cv_header_stdc=no
3519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521fi
3522
3523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003524fi
3525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003526{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3527echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528if test $ac_cv_header_stdc = yes; then
3529
3530cat >>confdefs.h <<\_ACEOF
3531#define STDC_HEADERS 1
3532_ACEOF
3533
3534fi
3535
3536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3547 inttypes.h stdint.h unistd.h
3548do
3549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555 cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h. */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h. */
3561$ac_includes_default
3562
3563#include <$ac_header>
3564_ACEOF
3565rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003566if { (ac_try="$ac_compile"
3567case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003578 (exit $ac_status); } && {
3579 test -z "$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582 eval "$as_ac_Header=yes"
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003589
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003592ac_res=`eval echo '${'$as_ac_Header'}'`
3593 { echo "$as_me:$LINENO: result: $ac_res" >&5
3594echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003595if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598_ACEOF
3599
3600fi
3601
3602done
3603
3604
3605if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003606 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3607echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003611{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3612echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003613else
3614 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003615{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3616echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003617cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h. */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h. */
3623$ac_includes_default
3624#include <linux/fs.h>
3625_ACEOF
3626rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003627if { (ac_try="$ac_compile"
3628case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631esac
3632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003639 (exit $ac_status); } && {
3640 test -z "$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003643 ac_header_compiler=yes
3644else
3645 echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
Theodore Ts'oe1052142006-10-21 21:46:47 -04003648 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3653echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003654
3655# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3657echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003658cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
3664#include <linux/fs.h>
3665_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003666if { (ac_try="$ac_cpp conftest.$ac_ext"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003678 (exit $ac_status); } >/dev/null && {
3679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003682 ac_header_preproc=yes
3683else
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 ac_header_preproc=no
3688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003690rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003691{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3692echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003693
3694# So? What about this header?
3695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3696 yes:no: )
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3698echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3700echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3701 ac_header_preproc=yes
3702 ;;
3703 no:yes:* )
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3705echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3707echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3709echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3711echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3713echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3715echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003716
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003717 ;;
3718esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003719{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3720echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003721if test "${ac_cv_header_linux_fs_h+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724 ac_cv_header_linux_fs_h=$ac_header_preproc
3725fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003726{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3727echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003728
3729fi
3730if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003731 linux_headers=yes
3732else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003733 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003734fi
3735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003736
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003737if test "$linux_headers" != yes; then
3738 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003739fi
3740
Theodore Ts'oe1052142006-10-21 21:46:47 -04003741{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3742echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003743if test "$GCC" = yes
3744then
3745 case "$host_cpu" in
3746 alpha) addcflags="-mieee" ;;
3747 esac
3748fi
3749if test "x$addcflags" != x
3750then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003751 { echo "$as_me:$LINENO: result: $addcflags" >&5
3752echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003753 CFLAGS="$addcflags $CFLAGS"
3754else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003755 { echo "$as_me:$LINENO: result: (none)" >&5
3756echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003757fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003758LIB_EXT=.a
3759STATIC_LIB_EXT=.a
3760PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003761
Theodore Ts'oe1052142006-10-21 21:46:47 -04003762# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003763if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003764 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3765echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003766LDFLAGS=$withval
3767else
3768 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003770
Theodore Ts'oe1052142006-10-21 21:46:47 -04003771
3772# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003773if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003774 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003775else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003776 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003777fi
3778# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003779if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003780 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003781then
3782 MAINTAINER_CMT=#
3783 echo "Disabling maintainer mode"
3784else
3785 MAINTAINER_CMT=
3786 echo "Enabling maintainer mode"
3787fi
3788
3789else
3790 MAINTAINER_CMT=#
3791echo "Disabling maintainer mode by default"
3792
Theodore Ts'oe1052142006-10-21 21:46:47 -04003793fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003794
Theodore Ts'oe1052142006-10-21 21:46:47 -04003795
3796# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003797if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003798 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003799then
3800 echo "Disabling compression support"
3801else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003802 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003803#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003804_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003805
3806 echo "Enabling compression support"
3807 echo "WARNING: Compression support is experimental"
3808fi
3809
3810else
3811 echo "Disabling compression support by default"
3812
Theodore Ts'oe1052142006-10-21 21:46:47 -04003813fi
3814
3815# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003816if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003817 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003818then
3819 HTREE_CMT=#
3820 echo "Disabling htree directory support"
3821else
3822 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003823 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003824#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003825_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003826
3827 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003828fi
3829
3830else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003831 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003832cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003833#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003834_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003835
3836echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003837
Theodore Ts'oe1052142006-10-21 21:46:47 -04003838fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003839
Theodore Ts'oe1052142006-10-21 21:46:47 -04003840
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003841E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003842# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003843if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003844 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003845then
3846 ELF_CMT=#
3847 MAKEFILE_ELF=/dev/null
3848 echo "Disabling ELF shared libraries"
3849else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003850 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003851 ELF_CMT=
3852 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003853 case "$host_os" in
3854 solaris2.*)
3855 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3856 ;;
3857 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003858 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003859 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003860 echo "Enabling ELF shared libraries"
3861fi
3862
3863else
3864 MAKEFILE_ELF=/dev/null
3865ELF_CMT=#
3866echo "Disabling ELF shared libraries by default"
3867
Theodore Ts'oe1052142006-10-21 21:46:47 -04003868fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003869
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003870
Theodore Ts'oe1052142006-10-21 21:46:47 -04003871
3872# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003873if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003874 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003875then
3876 BSDLIB_CMT=#
3877 MAKEFILE_BSDLIB=/dev/null
3878 echo "Disabling BSD shared libraries"
3879else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003880 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003881 BSDLIB_CMT=
3882 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003883 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003884 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003885 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003886 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3887 LIB_EXT=.dylib
3888 ;;
3889 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003890 echo "Enabling BSD shared libraries"
3891fi
3892
3893else
3894 MAKEFILE_BSDLIB=/dev/null
3895BSDLIB_CMT=#
3896echo "Disabling BSD shared libraries by default"
3897
Theodore Ts'oe1052142006-10-21 21:46:47 -04003898fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003899
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003900
Theodore Ts'oe1052142006-10-21 21:46:47 -04003901
3902# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003903if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003904 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003905then
3906 PROFILE_CMT=#
3907 MAKEFILE_PROFILE=/dev/null
3908 echo "Disabling profiling libraries"
3909else
3910 PROFILE_CMT=
3911 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3912 PROFILED_LIB_EXT=_p.a
3913 echo "Building profiling libraries"
3914fi
3915
3916else
3917 PROFILE_CMT=#
3918MAKEFILE_PROFILE=/dev/null
3919echo "Disabling profiling libraries by default"
3920
Theodore Ts'oe1052142006-10-21 21:46:47 -04003921fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003922
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003923
Theodore Ts'oe1052142006-10-21 21:46:47 -04003924
3925# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003926if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003927 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003928then
3929 CHECKER_CMT=#
3930 MAKEFILE_CHECKER=/dev/null
3931 echo "Disabling checker libraries"
3932else
3933 CHECKER_CMT=
3934 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3935 echo "Building checker libraries"
3936fi
3937
3938else
3939 CHECKER_CMT=#
3940MAKEFILE_CHECKER=/dev/null
3941echo "Disabling checker libraries by default"
3942
Theodore Ts'oe1052142006-10-21 21:46:47 -04003943fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003944
3945
3946
3947
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003948
Theodore Ts'oe1052142006-10-21 21:46:47 -04003949
3950# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003951if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003952 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003953then
3954 echo "Disabling journal debugging"
3955else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003956 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003957#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003958_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003959
3960 echo "Enabling journal debugging"
3961fi
3962
3963else
3964 echo "Disabling journal debugging by default"
3965
Theodore Ts'oe1052142006-10-21 21:46:47 -04003966fi
3967
3968# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003969if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003970 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003971then
3972 echo "Disabling blkid debugging"
3973else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003974 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003975#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003976_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003977
3978 echo "Enabling blkid debugging"
3979fi
3980
3981else
3982 echo "Disabling blkid debugging by default"
3983
Theodore Ts'oe1052142006-10-21 21:46:47 -04003984fi
3985
3986# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003987if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003988 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003989then
3990 echo "Disabling testio debugging"
3991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003992 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003993#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003994_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003995
3996 echo "Enabling testio debugging"
3997fi
3998
3999else
4000 echo "Disabling testio debugging by default"
4001
Theodore Ts'oe1052142006-10-21 21:46:47 -04004002fi
4003
Theodore Ts'oe1052142006-10-21 21:46:47 -04004004# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004005if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004006 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004007then
4008 echo "Disabling debugfs support"
4009 DEBUGFS_CMT="#"
4010else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004011 DEBUGFS_CMT=
4012 echo "Enabling debugfs support"
4013fi
4014
4015else
4016 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004017DEBUGFS_CMT=
4018
Theodore Ts'oe1052142006-10-21 21:46:47 -04004019fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004020
Theodore Ts'oe1052142006-10-21 21:46:47 -04004021
4022# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004023if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004024 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004025then
4026 echo "Disabling e2image support"
4027 IMAGER_CMT="#"
4028else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004029 IMAGER_CMT=
4030 echo "Enabling e2image support"
4031fi
4032
4033else
4034 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004035IMAGER_CMT=
4036
Theodore Ts'oe1052142006-10-21 21:46:47 -04004037fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004038
Theodore Ts'oe1052142006-10-21 21:46:47 -04004039
4040# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004041if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004042 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004043then
4044 echo "Disabling e2resize support"
4045 RESIZER_CMT="#"
4046else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004047 RESIZER_CMT=
4048 echo "Enabling e2resize support"
4049fi
4050
4051else
4052 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004053RESIZER_CMT=
4054
Theodore Ts'oe1052142006-10-21 21:46:47 -04004055fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004056
Theodore Ts'oe1052142006-10-21 21:46:47 -04004057
Theodore Ts'oe1052142006-10-21 21:46:47 -04004058# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004059if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004060 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004061then
4062 FSCK_PROG='' FSCK_MAN=''
4063 echo "Not building fsck wrapper"
4064else
4065 FSCK_PROG=fsck FSCK_MAN=fsck.8
4066 echo "Building fsck wrapper"
4067fi
4068
4069else
4070 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004071 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004072 FSCK_PROG='' FSCK_MAN=''
4073 echo "Not building fsck wrapper by default"
4074 ;;
4075 *)
4076 FSCK_PROG=fsck FSCK_MAN=fsck.8
4077 echo "Building fsck wrapper by default"
4078esac
4079
Theodore Ts'oe1052142006-10-21 21:46:47 -04004080fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004081
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004082
Theodore Ts'oe1052142006-10-21 21:46:47 -04004083
4084# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004085if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004086 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004087then
4088 E2INITRD_PROG='' E2INITRD_MAN=''
4089 echo "Not building e2initrd helper"
4090else
4091 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4092 echo "Building e2initrd helper"
4093fi
4094
4095else
4096 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4097echo "Building e2initrd helper by default"
4098
Theodore Ts'oe1052142006-10-21 21:46:47 -04004099fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004100
4101
Theodore Ts'oe1052142006-10-21 21:46:47 -04004102
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004103STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004104# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004105if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004106 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004107then
4108 echo "Disabling device-mapper support"
4109 DEVMAPPER_REQ=''
4110 DEVMAPPER_LIBS=''
4111 STATIC_DEVMAPPER_LIBS=''
4112else
4113 cat >>confdefs.h <<\_ACEOF
4114#define HAVE_DEVMAPPER 1
4115_ACEOF
4116
4117 echo "Enabling device-mapper support"
4118
Karel Zak4db2f592006-03-08 14:17:28 -05004119
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004120
4121if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4122 if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4124set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129else
4130 case $PKG_CONFIG in
4131 [\\/]* | ?:[\\/]*)
4132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4133 ;;
4134 *)
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146done
4147done
4148IFS=$as_save_IFS
4149
4150 ;;
4151esac
4152fi
4153PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4154if test -n "$PKG_CONFIG"; then
4155 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4156echo "${ECHO_T}$PKG_CONFIG" >&6; }
4157else
4158 { echo "$as_me:$LINENO: result: no" >&5
4159echo "${ECHO_T}no" >&6; }
4160fi
4161
4162
4163fi
4164if test -z "$ac_cv_path_PKG_CONFIG"; then
4165 ac_pt_PKG_CONFIG=$PKG_CONFIG
4166 # Extract the first word of "pkg-config", so it can be a program name with args.
4167set dummy pkg-config; ac_word=$2
4168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173 case $ac_pt_PKG_CONFIG in
4174 [\\/]* | ?:[\\/]*)
4175 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4176 ;;
4177 *)
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4188 fi
4189done
4190done
4191IFS=$as_save_IFS
4192
4193 ;;
4194esac
4195fi
4196ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4197if test -n "$ac_pt_PKG_CONFIG"; then
4198 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4199echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4200else
4201 { echo "$as_me:$LINENO: result: no" >&5
4202echo "${ECHO_T}no" >&6; }
4203fi
4204
4205 if test "x$ac_pt_PKG_CONFIG" = x; then
4206 PKG_CONFIG=""
4207 else
4208 case $cross_compiling:$ac_tool_warned in
4209yes:)
4210{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4211whose name does not start with the host triplet. If you think this
4212configuration is useful to you, please write to autoconf@gnu.org." >&5
4213echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4214whose name does not start with the host triplet. If you think this
4215configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4216ac_tool_warned=yes ;;
4217esac
4218 PKG_CONFIG=$ac_pt_PKG_CONFIG
4219 fi
4220else
4221 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4222fi
4223
4224fi
4225if test -n "$PKG_CONFIG"; then
4226 _pkg_min_version=0.9.0
4227 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4228echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4230 { echo "$as_me:$LINENO: result: yes" >&5
4231echo "${ECHO_T}yes" >&6; }
4232 else
4233 { echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6; }
4235 PKG_CONFIG=""
4236 fi
4237
4238fi
4239
4240 if test -z "$PKG_CONFIG"; then
4241 echo "pkg-config not installed; please install it."
4242 exit 1;
4243 fi
4244
4245 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4246echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4247if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 ac_check_lib_save_LIBS=$LIBS
4251LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4252cat >conftest.$ac_ext <<_ACEOF
4253/* confdefs.h. */
4254_ACEOF
4255cat confdefs.h >>conftest.$ac_ext
4256cat >>conftest.$ac_ext <<_ACEOF
4257/* end confdefs.h. */
4258
4259/* Override any GCC internal prototype to avoid an error.
4260 Use char because int might match the return type of a GCC
4261 builtin and then its argument prototype would still apply. */
4262#ifdef __cplusplus
4263extern "C"
4264#endif
4265char dm_tree_create ();
4266int
4267main ()
4268{
4269return dm_tree_create ();
4270 ;
4271 return 0;
4272}
4273_ACEOF
4274rm -f conftest.$ac_objext conftest$ac_exeext
4275if { (ac_try="$ac_link"
4276case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279esac
4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_link") 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && {
4288 test -z "$ac_c_werror_flag" ||
4289 test ! -s conftest.err
4290 } && test -s conftest$ac_exeext &&
4291 $as_test_x conftest$ac_exeext; then
4292 ac_cv_lib_devmapper_dm_tree_create=yes
4293else
4294 echo "$as_me: failed program was:" >&5
4295sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 ac_cv_lib_devmapper_dm_tree_create=no
4298fi
4299
4300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4301 conftest$ac_exeext conftest.$ac_ext
4302LIBS=$ac_check_lib_save_LIBS
4303fi
4304{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4305echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4306if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4307 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4308 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4309 DEVMAPPER_REQ="devmapper";
4310 DEVMAPPER_PC_LIBS="-ldevmapper"
4311else
4312 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4313echo "$as_me: error: device-mapper library not found" >&2;}
4314 { (exit 1); exit 1; }; }
4315fi
4316
4317 # work around stupid devmapper.pc bug in Debian
4318 case "$STATIC_DEVMAPPER_LIBS" in
4319 *pthread*)
4320 ;;
4321 *)
4322 echo "Working around Debian bug #390243..."
4323 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4324 ;;
4325 esac
4326 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4327 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4328 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4329 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004330fi
4331
4332else
4333 echo "Disabling device-mapper support by default"
4334
Theodore Ts'oe1052142006-10-21 21:46:47 -04004335fi
4336
Karel Zak4db2f592006-03-08 14:17:28 -05004337
4338
4339
4340
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004341
Theodore Ts'o32493942007-12-31 10:45:01 -05004342# Check whether --enable-tls was given.
4343if test "${enable_tls+set}" = set; then
4344 enableval=$enable_tls; if test "$enableval" = "no"
4345then
4346 try_tls=""
4347 echo "Disabling thread local support"
4348else
4349 try_tls="yes"
4350 echo "Enabling thread local support"
4351fi
4352
4353else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004354 if test -n "$WITH_DIET_LIBC"
4355then
4356 try_tls=""
4357 echo "Diet libc does not support thread local support"
4358else
4359 try_tls="yes"
4360 echo "Try using thread local support by default"
4361fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004362
4363fi
4364
4365if test "$try_tls" = "yes"
4366then
4367
4368 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4369echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4370 if test "${ac_cv_tls+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373
4374 ax_tls_keywords="__thread __declspec(thread) none"
4375 for ax_tls_keyword in $ax_tls_keywords; do
4376 case $ax_tls_keyword in
4377 none) ac_cv_tls=none ; break ;;
4378 *)
4379 cat >conftest.$ac_ext <<_ACEOF
4380/* confdefs.h. */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h. */
4385#include <stdlib.h>
4386 static void
4387 foo(void) {
4388 static $ax_tls_keyword int bar;
4389 exit(1);
4390 }
4391int
4392main ()
4393{
4394
4395 ;
4396 return 0;
4397}
4398_ACEOF
4399rm -f conftest.$ac_objext
4400if { (ac_try="$ac_compile"
4401case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404esac
4405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } && {
4413 test -z "$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4415 } && test -s conftest.$ac_objext; then
4416 ac_cv_tls=$ax_tls_keyword ; break
4417else
4418 echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421 ac_cv_tls=none
4422
4423fi
4424
4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 esac
4427 done
4428
4429fi
4430
4431
4432 if test "$ac_cv_tls" != "none"; then
4433
4434cat >>confdefs.h <<_ACEOF
4435#define TLS $ac_cv_tls
4436_ACEOF
4437
4438 fi
4439 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4440echo "${ECHO_T}$ac_cv_tls" >&6; }
4441
4442fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004443# Check whether --enable-uuidd was given.
4444if test "${enable_uuidd+set}" = set; then
4445 enableval=$enable_uuidd; if test "$enableval" = "no"
4446then
4447 echo "Not building uuidd"
4448 UUIDD_CMT="#"
4449else
4450 cat >>confdefs.h <<\_ACEOF
4451#define USE_UUIDD 1
4452_ACEOF
4453
4454 UUIDD_CMT=""
4455 echo "Building uuidd"
4456fi
4457
4458else
4459 cat >>confdefs.h <<\_ACEOF
4460#define USE_UUIDD 1
4461_ACEOF
4462
4463UUIDD_CMT=""
4464echo "Building uuidd by default"
4465
4466fi
4467
4468
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004469MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004471GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004472PACKAGE=e2fsprogs
4473VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004474VERSION=0.14.1
4475cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004476#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004477_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004479cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004480#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004481_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004482
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004483
4484
4485
4486
Theodore Ts'oe1052142006-10-21 21:46:47 -04004487{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4488echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4489set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4490if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004491 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004492else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004493 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004494SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004495all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004496 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004497_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004498# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004499case `${MAKE-make} -f conftest.make 2>/dev/null` in
4500 *@@@%%%=?*=@@@%%%*)
4501 eval ac_cv_prog_make_${ac_make}_set=yes;;
4502 *)
4503 eval ac_cv_prog_make_${ac_make}_set=no;;
4504esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004505rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004507if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4508 { echo "$as_me:$LINENO: result: yes" >&5
4509echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004510 SET_MAKE=
4511else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004512 { echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004514 SET_MAKE="MAKE=${MAKE-make}"
4515fi
4516
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004517# Find a good install program. We prefer a C program (faster),
4518# so one script is as good as another. But avoid the broken or
4519# incompatible versions:
4520# SysV /etc/install, /usr/sbin/install
4521# SunOS /usr/etc/install
4522# IRIX /sbin/install
4523# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004524# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004528# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004529# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004530{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4531echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004532if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004533if test "${ac_cv_path_install+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004535else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 # Account for people who put trailing slashes in PATH elements.
4542case $as_dir/ in
4543 ./ | .// | /cC/* | \
4544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4545 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4546 /usr/ucb/* ) ;;
4547 *)
4548 # OSF1 and SCO ODT 3.0 have their own names for install.
4549 # Don't use installbsd from OSF since it installs stuff as root
4550 # by default.
4551 for ac_prog in ginstall scoinst install; do
4552 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004553 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 -04004554 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004556 # AIX install. It has an incompatible calling convention.
4557 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004558 elif test $ac_prog = install &&
4559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4560 # program-specific install script used by HP pwplus--don't use.
4561 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004562 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004563 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4564 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004565 fi
4566 fi
4567 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004568 done
4569 ;;
4570esac
4571done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004572IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004573
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004574
4575fi
4576 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004577 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004578 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004579 # As a last resort, use the slow shell script. Don't cache a
4580 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004581 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004582 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004583 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004584 fi
4585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004586{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4587echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004588
4589# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4590# It thinks the first close brace ends the variable substitution.
4591test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004593test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004594
4595test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4596
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004597
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004598 MKINSTALLDIRS=
4599 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004600 case "$ac_aux_dir" in
4601 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4602 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4603 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004604 fi
4605 if test -z "$MKINSTALLDIRS"; then
4606 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4607 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004609
4610
Theodore Ts'oe1052142006-10-21 21:46:47 -04004611 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4612echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4613 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004614if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004615 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004616else
4617 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004618fi
4619
4620 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4621echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004622
4623
4624
4625
4626
4627
4628# Prepare PATH_SEPARATOR.
4629# The user is always right.
4630if test "${PATH_SEPARATOR+set}" != set; then
4631 echo "#! /bin/sh" >conf$$.sh
4632 echo "exit 0" >>conf$$.sh
4633 chmod +x conf$$.sh
4634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4635 PATH_SEPARATOR=';'
4636 else
4637 PATH_SEPARATOR=:
4638 fi
4639 rm -f conf$$.sh
4640fi
4641
4642# Find out how to test for executable files. Don't use a zero-byte file,
4643# as systems may use methods other than mode bits to determine executability.
4644cat >conf$$.file <<_ASEOF
4645#! /bin/sh
4646exit 0
4647_ASEOF
4648chmod +x conf$$.file
4649if test -x conf$$.file >/dev/null 2>&1; then
4650 ac_executable_p="test -x"
4651else
4652 ac_executable_p="test -f"
4653fi
4654rm -f conf$$.file
4655
4656# Extract the first word of "msgfmt", so it can be a program name with args.
4657set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004660if test "${ac_cv_path_MSGFMT+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663 case "$MSGFMT" in
4664 [\\/]* | ?:[\\/]*)
4665 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4666 ;;
4667 *)
4668 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4669 for ac_dir in $PATH; do
4670 IFS="$ac_save_IFS"
4671 test -z "$ac_dir" && ac_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4674 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4675 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4676 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4677 break 2
4678 fi
4679 fi
4680 done
4681 done
4682 IFS="$ac_save_IFS"
4683 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4684 ;;
4685esac
4686fi
4687MSGFMT="$ac_cv_path_MSGFMT"
4688if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004689 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4690echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004691else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004692 { echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004694fi
4695
4696 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4697set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004700if test "${ac_cv_path_GMSGFMT+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702else
4703 case $GMSGFMT in
4704 [\\/]* | ?:[\\/]*)
4705 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4706 ;;
4707 *)
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004714 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 -05004715 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719done
4720done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004721IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004722
4723 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4724 ;;
4725esac
4726fi
4727GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004728if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004729 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4730echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004731else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004732 { echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004734fi
4735
4736
4737
Theodore Ts'oe1052142006-10-21 21:46:47 -04004738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004739# Prepare PATH_SEPARATOR.
4740# The user is always right.
4741if test "${PATH_SEPARATOR+set}" != set; then
4742 echo "#! /bin/sh" >conf$$.sh
4743 echo "exit 0" >>conf$$.sh
4744 chmod +x conf$$.sh
4745 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4746 PATH_SEPARATOR=';'
4747 else
4748 PATH_SEPARATOR=:
4749 fi
4750 rm -f conf$$.sh
4751fi
4752
4753# Find out how to test for executable files. Don't use a zero-byte file,
4754# as systems may use methods other than mode bits to determine executability.
4755cat >conf$$.file <<_ASEOF
4756#! /bin/sh
4757exit 0
4758_ASEOF
4759chmod +x conf$$.file
4760if test -x conf$$.file >/dev/null 2>&1; then
4761 ac_executable_p="test -x"
4762else
4763 ac_executable_p="test -f"
4764fi
4765rm -f conf$$.file
4766
4767# Extract the first word of "xgettext", so it can be a program name with args.
4768set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004771if test "${ac_cv_path_XGETTEXT+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774 case "$XGETTEXT" in
4775 [\\/]* | ?:[\\/]*)
4776 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4777 ;;
4778 *)
4779 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4780 for ac_dir in $PATH; do
4781 IFS="$ac_save_IFS"
4782 test -z "$ac_dir" && ac_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4785 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4786 (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
4787 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4788 break 2
4789 fi
4790 fi
4791 done
4792 done
4793 IFS="$ac_save_IFS"
4794 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4795 ;;
4796esac
4797fi
4798XGETTEXT="$ac_cv_path_XGETTEXT"
4799if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004800 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4801echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004802else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004803 { echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004805fi
4806
4807 rm -f messages.po
4808
4809
4810# Prepare PATH_SEPARATOR.
4811# The user is always right.
4812if test "${PATH_SEPARATOR+set}" != set; then
4813 echo "#! /bin/sh" >conf$$.sh
4814 echo "exit 0" >>conf$$.sh
4815 chmod +x conf$$.sh
4816 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4817 PATH_SEPARATOR=';'
4818 else
4819 PATH_SEPARATOR=:
4820 fi
4821 rm -f conf$$.sh
4822fi
4823
4824# Find out how to test for executable files. Don't use a zero-byte file,
4825# as systems may use methods other than mode bits to determine executability.
4826cat >conf$$.file <<_ASEOF
4827#! /bin/sh
4828exit 0
4829_ASEOF
4830chmod +x conf$$.file
4831if test -x conf$$.file >/dev/null 2>&1; then
4832 ac_executable_p="test -x"
4833else
4834 ac_executable_p="test -f"
4835fi
4836rm -f conf$$.file
4837
4838# Extract the first word of "msgmerge", so it can be a program name with args.
4839set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004842if test "${ac_cv_path_MSGMERGE+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844else
4845 case "$MSGMERGE" in
4846 [\\/]* | ?:[\\/]*)
4847 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4848 ;;
4849 *)
4850 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4851 for ac_dir in $PATH; do
4852 IFS="$ac_save_IFS"
4853 test -z "$ac_dir" && ac_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4856 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4857 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4858 break 2
4859 fi
4860 fi
4861 done
4862 done
4863 IFS="$ac_save_IFS"
4864 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4865 ;;
4866esac
4867fi
4868MSGMERGE="$ac_cv_path_MSGMERGE"
4869if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004870 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4871echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004872else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004873 { echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004875fi
4876
4877
4878 if test "$GMSGFMT" != ":"; then
4879 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4880 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4881 : ;
4882 else
4883 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004884 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4885echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004886 GMSGFMT=":"
4887 fi
4888 fi
4889
4890 if test "$XGETTEXT" != ":"; then
4891 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4892 (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
4893 : ;
4894 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004895 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4896echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004897 XGETTEXT=":"
4898 fi
4899 rm -f messages.po
4900 fi
4901
Theodore Ts'oe1052142006-10-21 21:46:47 -04004902 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004903
4904
4905if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4907set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004910if test "${ac_cv_prog_RANLIB+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004912else
4913 if test -n "$RANLIB"; then
4914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4915else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917for as_dir in $PATH
4918do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004922 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 -05004923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004928done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004929IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004930
4931fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004932fi
4933RANLIB=$ac_cv_prog_RANLIB
4934if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004935 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4936echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004937else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004938 { echo "$as_me:$LINENO: result: no" >&5
4939echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004940fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004941
Theodore Ts'oe1052142006-10-21 21:46:47 -04004942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004943fi
4944if test -z "$ac_cv_prog_RANLIB"; then
4945 ac_ct_RANLIB=$RANLIB
4946 # Extract the first word of "ranlib", so it can be a program name with args.
4947set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004950if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953 if test -n "$ac_ct_RANLIB"; then
4954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4955else
4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004962 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 -05004963 ac_cv_prog_ac_ct_RANLIB="ranlib"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967done
4968done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004969IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004970
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971fi
4972fi
4973ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4974if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004975 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4976echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004977else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004978 { echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004980fi
4981
Theodore Ts'oe1052142006-10-21 21:46:47 -04004982 if test "x$ac_ct_RANLIB" = x; then
4983 RANLIB=":"
4984 else
4985 case $cross_compiling:$ac_tool_warned in
4986yes:)
4987{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4988whose name does not start with the host triplet. If you think this
4989configuration is useful to you, please write to autoconf@gnu.org." >&5
4990echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4991whose name does not start with the host triplet. If you think this
4992configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4993ac_tool_warned=yes ;;
4994esac
4995 RANLIB=$ac_ct_RANLIB
4996 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004997else
4998 RANLIB="$ac_cv_prog_RANLIB"
4999fi
5000
5001
Theodore Ts'oe1052142006-10-21 21:46:47 -04005002 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5003echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005004if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
5007 ac_check_lib_save_LIBS=$LIBS
5008LIBS="-lcposix $LIBS"
5009cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015
Theodore Ts'oe1052142006-10-21 21:46:47 -04005016/* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005019#ifdef __cplusplus
5020extern "C"
5021#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005022char strerror ();
5023int
5024main ()
5025{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005026return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005027 ;
5028 return 0;
5029}
5030_ACEOF
5031rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005032if { (ac_try="$ac_link"
5033case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036esac
5037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005044 (exit $ac_status); } && {
5045 test -z "$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5047 } && test -s conftest$ac_exeext &&
5048 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005049 ac_cv_lib_cposix_strerror=yes
5050else
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
Theodore Ts'oe1052142006-10-21 21:46:47 -04005054 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005055fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005056
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005058 conftest$ac_exeext conftest.$ac_ext
5059LIBS=$ac_check_lib_save_LIBS
5060fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005061{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5062echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005063if test $ac_cv_lib_cposix_strerror = yes; then
5064 LIBS="$LIBS -lcposix"
5065fi
5066
5067
5068
Theodore Ts'oe1052142006-10-21 21:46:47 -04005069{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5070echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005071if test "${ac_cv_c_const+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080
5081int
5082main ()
5083{
5084/* FIXME: Include the comments suggested by Paul. */
5085#ifndef __cplusplus
5086 /* Ultrix mips cc rejects this. */
5087 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005088 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005089 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005090 char const *const *pcpcc;
5091 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005092 /* NEC SVR4.0.2 mips cc rejects this. */
5093 struct point {int x, y;};
5094 static struct point const zero = {0,0};
5095 /* AIX XL C 1.02.0.0 rejects this.
5096 It does not let you subtract one const X* pointer from another in
5097 an arm of an if-expression whose if-part is not a constant
5098 expression */
5099 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005100 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005101 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005102 ++pcpcc;
5103 ppc = (char**) pcpcc;
5104 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005105 { /* SCO 3.2v4 cc rejects this. */
5106 char *t;
5107 char const *s = 0 ? (char *) 0 : (char const *) 0;
5108
5109 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005110 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005111 }
5112 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5113 int x[] = {25, 17};
5114 const int *foo = &x[0];
5115 ++foo;
5116 }
5117 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5118 typedef const int *iptr;
5119 iptr p = 0;
5120 ++p;
5121 }
5122 { /* AIX XL C 1.02.0.0 rejects this saying
5123 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5124 struct s { int j; const int *ap[3]; };
5125 struct s *b; b->j = 5;
5126 }
5127 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5128 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005129 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005130 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005131 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005132#endif
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005139if { (ac_try="$ac_compile"
5140case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
5144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005155 ac_cv_c_const=yes
5156else
5157 echo "$as_me: failed program was:" >&5
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
Theodore Ts'oe1052142006-10-21 21:46:47 -04005160 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005161fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005162
5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005165{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5166echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005167if test $ac_cv_c_const = no; then
5168
5169cat >>confdefs.h <<\_ACEOF
5170#define const
5171_ACEOF
5172
5173fi
5174
5175
Theodore Ts'oe1052142006-10-21 21:46:47 -04005176 { echo "$as_me:$LINENO: checking for signed" >&5
5177echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005178if test "${bh_cv_c_signed+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187
5188int
5189main ()
5190{
5191signed char x;
5192 ;
5193 return 0;
5194}
5195_ACEOF
5196rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005197if { (ac_try="$ac_compile"
5198case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201esac
5202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005209 (exit $ac_status); } && {
5210 test -z "$ac_c_werror_flag" ||
5211 test ! -s conftest.err
5212 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005213 bh_cv_c_signed=yes
5214else
5215 echo "$as_me: failed program was:" >&5
5216sed 's/^/| /' conftest.$ac_ext >&5
5217
Theodore Ts'oe1052142006-10-21 21:46:47 -04005218 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005219fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005220
5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005222fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005223{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5224echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005225 if test $bh_cv_c_signed = no; then
5226
5227cat >>confdefs.h <<\_ACEOF
5228#define signed
5229_ACEOF
5230
5231 fi
5232
Theodore Ts'oe1052142006-10-21 21:46:47 -04005233{ echo "$as_me:$LINENO: checking for inline" >&5
5234echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005235if test "${ac_cv_c_inline+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 ac_cv_c_inline=no
5239for ac_kw in inline __inline__ __inline; do
5240 cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h. */
5246#ifndef __cplusplus
5247typedef int foo_t;
5248static $ac_kw foo_t static_foo () {return 0; }
5249$ac_kw foo_t foo () {return 0; }
5250#endif
5251
5252_ACEOF
5253rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005254if { (ac_try="$ac_compile"
5255case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258esac
5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005261 ac_status=$?
5262 grep -v '^ *+' conftest.er1 >conftest.err
5263 rm -f conftest.er1
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005266 (exit $ac_status); } && {
5267 test -z "$ac_c_werror_flag" ||
5268 test ! -s conftest.err
5269 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005270 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005271else
5272 echo "$as_me: failed program was:" >&5
5273sed 's/^/| /' conftest.$ac_ext >&5
5274
Theodore Ts'oe1052142006-10-21 21:46:47 -04005275
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005276fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005277
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005280done
5281
5282fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005283{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5284echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005285
5286
5287case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005288 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005289 *)
5290 case $ac_cv_c_inline in
5291 no) ac_val=;;
5292 *) ac_val=$ac_cv_c_inline;;
5293 esac
5294 cat >>confdefs.h <<_ACEOF
5295#ifndef __cplusplus
5296#define inline $ac_val
5297#endif
5298_ACEOF
5299 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005300esac
5301
Theodore Ts'oe1052142006-10-21 21:46:47 -04005302{ echo "$as_me:$LINENO: checking for off_t" >&5
5303echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005304if test "${ac_cv_type_off_t+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005306else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005307 cat >conftest.$ac_ext <<_ACEOF
5308/* confdefs.h. */
5309_ACEOF
5310cat confdefs.h >>conftest.$ac_ext
5311cat >>conftest.$ac_ext <<_ACEOF
5312/* end confdefs.h. */
5313$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005314typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005315int
5316main ()
5317{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005318if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005319 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005320if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005321 return 0;
5322 ;
5323 return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005327if { (ac_try="$ac_compile"
5328case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331esac
5332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005339 (exit $ac_status); } && {
5340 test -z "$ac_c_werror_flag" ||
5341 test ! -s conftest.err
5342 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005343 ac_cv_type_off_t=yes
5344else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005345 echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005347
Theodore Ts'oe1052142006-10-21 21:46:47 -04005348 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005350
5351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005352fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005353{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5354echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005355if test $ac_cv_type_off_t = yes; then
5356 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005357else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005358
5359cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005360#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005361_ACEOF
5362
5363fi
5364
Theodore Ts'oe1052142006-10-21 21:46:47 -04005365{ echo "$as_me:$LINENO: checking for size_t" >&5
5366echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005367if test "${ac_cv_type_size_t+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370 cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h. */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h. */
5376$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005377typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005378int
5379main ()
5380{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005381if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005382 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005383if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005384 return 0;
5385 ;
5386 return 0;
5387}
5388_ACEOF
5389rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005390if { (ac_try="$ac_compile"
5391case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394esac
5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005406 ac_cv_type_size_t=yes
5407else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005408 echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
Theodore Ts'oe1052142006-10-21 21:46:47 -04005411 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005412fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005413
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005415fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005416{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5417echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005418if test $ac_cv_type_size_t = yes; then
5419 :
5420else
5421
5422cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005423#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005424_ACEOF
5425
5426fi
5427
5428
Theodore Ts'oe1052142006-10-21 21:46:47 -04005429 { echo "$as_me:$LINENO: checking for long long" >&5
5430echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005431if test "${ac_cv_type_long_long+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434 cat >conftest.$ac_ext <<_ACEOF
5435/* confdefs.h. */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h. */
5440long long ll = 1LL; int i = 63;
5441int
5442main ()
5443{
5444long long llmax = (long long) -1;
5445 return ll << i | ll >> i | llmax / ll | llmax % ll;
5446 ;
5447 return 0;
5448}
5449_ACEOF
5450rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005451if { (ac_try="$ac_link"
5452case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455esac
5456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005463 (exit $ac_status); } && {
5464 test -z "$ac_c_werror_flag" ||
5465 test ! -s conftest.err
5466 } && test -s conftest$ac_exeext &&
5467 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005468 ac_cv_type_long_long=yes
5469else
5470 echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
Theodore Ts'oe1052142006-10-21 21:46:47 -04005473 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005474fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005475
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005477 conftest$ac_exeext conftest.$ac_ext
5478fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005479{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5480echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005481 if test $ac_cv_type_long_long = yes; then
5482
5483cat >>confdefs.h <<\_ACEOF
5484#define HAVE_LONG_LONG 1
5485_ACEOF
5486
5487 fi
5488
5489
Theodore Ts'oe1052142006-10-21 21:46:47 -04005490 { echo "$as_me:$LINENO: checking for long double" >&5
5491echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005492if test "${gt_cv_c_long_double+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495 if test "$GCC" = yes; then
5496 gt_cv_c_long_double=yes
5497 else
5498 cat >conftest.$ac_ext <<_ACEOF
5499/* confdefs.h. */
5500_ACEOF
5501cat confdefs.h >>conftest.$ac_ext
5502cat >>conftest.$ac_ext <<_ACEOF
5503/* end confdefs.h. */
5504
5505 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5506 long double foo = 0.0;
5507 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5508 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5509
5510int
5511main ()
5512{
5513
5514 ;
5515 return 0;
5516}
5517_ACEOF
5518rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005519if { (ac_try="$ac_compile"
5520case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523esac
5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005535 gt_cv_c_long_double=yes
5536else
5537 echo "$as_me: failed program was:" >&5
5538sed 's/^/| /' conftest.$ac_ext >&5
5539
Theodore Ts'oe1052142006-10-21 21:46:47 -04005540 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005541fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005542
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005544 fi
5545fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005546{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5547echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005548 if test $gt_cv_c_long_double = yes; then
5549
5550cat >>confdefs.h <<\_ACEOF
5551#define HAVE_LONG_DOUBLE 1
5552_ACEOF
5553
5554 fi
5555
5556
Theodore Ts'oe1052142006-10-21 21:46:47 -04005557 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5558echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005559if test "${gt_cv_c_wchar_t+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562 cat >conftest.$ac_ext <<_ACEOF
5563/* confdefs.h. */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h. */
5568#include <stddef.h>
5569 wchar_t foo = (wchar_t)'\0';
5570int
5571main ()
5572{
5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
5578rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005579if { (ac_try="$ac_compile"
5580case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005591 (exit $ac_status); } && {
5592 test -z "$ac_c_werror_flag" ||
5593 test ! -s conftest.err
5594 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005595 gt_cv_c_wchar_t=yes
5596else
5597 echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
Theodore Ts'oe1052142006-10-21 21:46:47 -04005600 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005601fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005602
5603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005604fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005605{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5606echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005607 if test $gt_cv_c_wchar_t = yes; then
5608
5609cat >>confdefs.h <<\_ACEOF
5610#define HAVE_WCHAR_T 1
5611_ACEOF
5612
5613 fi
5614
5615
Theodore Ts'oe1052142006-10-21 21:46:47 -04005616 { echo "$as_me:$LINENO: checking for wint_t" >&5
5617echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005618if test "${gt_cv_c_wint_t+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 cat >conftest.$ac_ext <<_ACEOF
5622/* confdefs.h. */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h. */
5627#include <wchar.h>
5628 wint_t foo = (wchar_t)'\0';
5629int
5630main ()
5631{
5632
5633 ;
5634 return 0;
5635}
5636_ACEOF
5637rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005638if { (ac_try="$ac_compile"
5639case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642esac
5643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005650 (exit $ac_status); } && {
5651 test -z "$ac_c_werror_flag" ||
5652 test ! -s conftest.err
5653 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005654 gt_cv_c_wint_t=yes
5655else
5656 echo "$as_me: failed program was:" >&5
5657sed 's/^/| /' conftest.$ac_ext >&5
5658
Theodore Ts'oe1052142006-10-21 21:46:47 -04005659 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005660fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005661
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005664{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5665echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005666 if test $gt_cv_c_wint_t = yes; then
5667
5668cat >>confdefs.h <<\_ACEOF
5669#define HAVE_WINT_T 1
5670_ACEOF
5671
5672 fi
5673
5674
Theodore Ts'oe1052142006-10-21 21:46:47 -04005675 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5676echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005677if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h. */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h. */
5686#include <sys/types.h>
5687#include <inttypes.h>
5688int
5689main ()
5690{
5691uintmax_t i = (uintmax_t) -1;
5692 ;
5693 return 0;
5694}
5695_ACEOF
5696rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005697if { (ac_try="$ac_compile"
5698case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005713 jm_ac_cv_header_inttypes_h=yes
5714else
5715 echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
Theodore Ts'oe1052142006-10-21 21:46:47 -04005718 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005720
5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005722fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005723{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5724echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725 if test $jm_ac_cv_header_inttypes_h = yes; then
5726
5727cat >>confdefs.h <<_ACEOF
5728#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5729_ACEOF
5730
5731 fi
5732
5733
Theodore Ts'oe1052142006-10-21 21:46:47 -04005734 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5735echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005736if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739 cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */
5745#include <sys/types.h>
5746#include <stdint.h>
5747int
5748main ()
5749{
5750uintmax_t i = (uintmax_t) -1;
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005756if { (ac_try="$ac_compile"
5757case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005772 jm_ac_cv_header_stdint_h=yes
5773else
5774 echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
Theodore Ts'oe1052142006-10-21 21:46:47 -04005777 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005778fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005781fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5783echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005784 if test $jm_ac_cv_header_stdint_h = yes; then
5785
5786cat >>confdefs.h <<_ACEOF
5787#define HAVE_STDINT_H_WITH_UINTMAX 1
5788_ACEOF
5789
5790 fi
5791
5792
5793
5794
Theodore Ts'oe1052142006-10-21 21:46:47 -04005795 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5796echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005797if test "${gt_cv_c_intmax_t+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800 cat >conftest.$ac_ext <<_ACEOF
5801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
5806
5807#include <stddef.h>
5808#include <stdlib.h>
5809#if HAVE_STDINT_H_WITH_UINTMAX
5810#include <stdint.h>
5811#endif
5812#if HAVE_INTTYPES_H_WITH_UINTMAX
5813#include <inttypes.h>
5814#endif
5815
5816int
5817main ()
5818{
5819intmax_t x = -1;
5820 ;
5821 return 0;
5822}
5823_ACEOF
5824rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005825if { (ac_try="$ac_compile"
5826case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829esac
5830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005841 gt_cv_c_intmax_t=yes
5842else
5843 echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
5845
Theodore Ts'oe1052142006-10-21 21:46:47 -04005846 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005847fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005848
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005851{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5852echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005853 if test $gt_cv_c_intmax_t = yes; then
5854
5855cat >>confdefs.h <<\_ACEOF
5856#define HAVE_INTMAX_T 1
5857_ACEOF
5858
5859 fi
5860
5861
5862
Theodore Ts'oe1052142006-10-21 21:46:47 -04005863 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5864echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005865if test "${gt_cv_func_printf_posix+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868
5869 if test "$cross_compiling" = yes; then
5870
5871 cat >conftest.$ac_ext <<_ACEOF
5872/* confdefs.h. */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
5876/* end confdefs.h. */
5877
5878#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5879 notposix
5880#endif
5881
5882_ACEOF
5883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "notposix" >/dev/null 2>&1; then
5885 gt_cv_func_printf_posix="guessing no"
5886else
5887 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005888fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005889rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005890
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005891
5892else
5893 cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h. */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
5898/* end confdefs.h. */
5899
5900#include <stdio.h>
5901#include <string.h>
5902/* The string "%2$d %1$d", with dollar characters protected from the shell's
5903 dollar expansion (possibly an autoconf bug). */
5904static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5905static char buf[100];
5906int main ()
5907{
5908 sprintf (buf, format, 33, 55);
5909 return (strcmp (buf, "55 33") != 0);
5910}
5911_ACEOF
5912rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005913if { (ac_try="$ac_link"
5914case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917esac
5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 gt_cv_func_printf_posix=yes
5933else
5934 echo "$as_me: program exited with status $ac_status" >&5
5935echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938( exit $ac_status )
5939gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005940fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005941rm -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 -05005942fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005943
Theodore Ts'oe1052142006-10-21 21:46:47 -04005944
5945
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005946fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005947{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5948echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005949 case $gt_cv_func_printf_posix in
5950 *yes)
5951
5952cat >>confdefs.h <<\_ACEOF
5953#define HAVE_POSIX_PRINTF 1
5954_ACEOF
5955
5956 ;;
5957 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005958
5959# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5960# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005961{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5962echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005963if test "${ac_cv_working_alloca_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005965else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005966 cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005972#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005973int
5974main ()
5975{
5976char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005977 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005978 ;
5979 return 0;
5980}
5981_ACEOF
5982rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005983if { (ac_try="$ac_link"
5984case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005995 (exit $ac_status); } && {
5996 test -z "$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest$ac_exeext &&
5999 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006002 echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006004
Theodore Ts'oe1052142006-10-21 21:46:47 -04006005 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006006fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006007
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006009 conftest$ac_exeext conftest.$ac_ext
6010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006011{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6012echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006013if test $ac_cv_working_alloca_h = yes; then
6014
6015cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006016#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006017_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006018
6019fi
6020
Theodore Ts'oe1052142006-10-21 21:46:47 -04006021{ echo "$as_me:$LINENO: checking for alloca" >&5
6022echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006023if test "${ac_cv_func_alloca_works+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006025else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006026 cat >conftest.$ac_ext <<_ACEOF
6027/* confdefs.h. */
6028_ACEOF
6029cat confdefs.h >>conftest.$ac_ext
6030cat >>conftest.$ac_ext <<_ACEOF
6031/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006032#ifdef __GNUC__
6033# define alloca __builtin_alloca
6034#else
6035# ifdef _MSC_VER
6036# include <malloc.h>
6037# define alloca _alloca
6038# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006039# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006040# include <alloca.h>
6041# else
6042# ifdef _AIX
6043 #pragma alloca
6044# else
6045# ifndef alloca /* predefined by HP cc +Olibcalls */
6046char *alloca ();
6047# endif
6048# endif
6049# endif
6050# endif
6051#endif
6052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006053int
6054main ()
6055{
6056char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006057 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058 ;
6059 return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006063if { (ac_try="$ac_link"
6064case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067esac
6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext &&
6079 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006080 ac_cv_func_alloca_works=yes
6081else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006082 echo "$as_me: failed program was:" >&5
6083sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006084
Theodore Ts'oe1052142006-10-21 21:46:47 -04006085 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006087
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089 conftest$ac_exeext conftest.$ac_ext
6090fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006091{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6092echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006093
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006094if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006095
6096cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006097#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006099
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6102# that cause trouble. Some versions do not even contain alloca or
6103# contain a buggy version. If you still want to use their alloca,
6104# use ar to extract alloca.o from them instead of compiling alloca.c.
6105
Theodore Ts'oe1052142006-10-21 21:46:47 -04006106ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107
6108cat >>confdefs.h <<\_ACEOF
6109#define C_ALLOCA 1
6110_ACEOF
6111
6112
Theodore Ts'oe1052142006-10-21 21:46:47 -04006113{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6114echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115if test "${ac_cv_os_cray+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118 cat >conftest.$ac_ext <<_ACEOF
6119/* confdefs.h. */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006124#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006125webecray
6126#else
6127wenotbecray
6128#endif
6129
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006130_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006133 ac_cv_os_cray=yes
6134else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006135 ac_cv_os_cray=no
6136fi
6137rm -f conftest*
6138
6139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006140{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6141echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006142if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143 for ac_func in _getb67 GETB67 getb67; do
6144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006148 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006149else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150 cat >conftest.$ac_ext <<_ACEOF
6151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
6156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6158#define $ac_func innocuous_$ac_func
6159
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006160/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161 which can conflict with char $ac_func (); below.
6162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6163 <limits.h> exists even on freestanding compilers. */
6164
6165#ifdef __STDC__
6166# include <limits.h>
6167#else
6168# include <assert.h>
6169#endif
6170
6171#undef $ac_func
6172
Theodore Ts'oe1052142006-10-21 21:46:47 -04006173/* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006176#ifdef __cplusplus
6177extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006178#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006180/* The GNU C library defines this for functions which it implements
6181 to always fail with ENOSYS. Some functions are actually named
6182 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006183#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006184choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006185#endif
6186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006187int
6188main ()
6189{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006190return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006191 ;
6192 return 0;
6193}
6194_ACEOF
6195rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006196if { (ac_try="$ac_link"
6197case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200esac
6201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest$ac_exeext &&
6212 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006213 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006214else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006215 echo "$as_me: failed program was:" >&5
6216sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006217
Theodore Ts'oe1052142006-10-21 21:46:47 -04006218 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006219fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006220
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006222 conftest$ac_exeext conftest.$ac_ext
6223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006224ac_res=`eval echo '${'$as_ac_var'}'`
6225 { echo "$as_me:$LINENO: result: $ac_res" >&5
6226echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006227if test `eval echo '${'$as_ac_var'}'` = yes; then
6228
6229cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006230#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006231_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006234fi
6235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006236 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006237fi
6238
Theodore Ts'oe1052142006-10-21 21:46:47 -04006239{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6240echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006241if test "${ac_cv_c_stack_direction+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006243else
6244 if test "$cross_compiling" = yes; then
6245 ac_cv_c_stack_direction=0
6246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006247 cat >conftest.$ac_ext <<_ACEOF
6248/* confdefs.h. */
6249_ACEOF
6250cat confdefs.h >>conftest.$ac_ext
6251cat >>conftest.$ac_ext <<_ACEOF
6252/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006253$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006254int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006255find_stack_direction ()
6256{
6257 static char *addr = 0;
6258 auto char dummy;
6259 if (addr == 0)
6260 {
6261 addr = &dummy;
6262 return find_stack_direction ();
6263 }
6264 else
6265 return (&dummy > addr) ? 1 : -1;
6266}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006267
6268int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006269main ()
6270{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006271 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006272}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273_ACEOF
6274rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006275if { (ac_try="$ac_link"
6276case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
6280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006285 { (case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288esac
6289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006294 ac_cv_c_stack_direction=1
6295else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006296 echo "$as_me: program exited with status $ac_status" >&5
6297echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006299
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006300( exit $ac_status )
6301ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006303rm -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 -05006304fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006305
6306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006307fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006308{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6309echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006311cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006312#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006313_ACEOF
6314
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006315
6316fi
6317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006318
6319
6320for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006321do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006328fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006329ac_res=`eval echo '${'$as_ac_Header'}'`
6330 { echo "$as_me:$LINENO: result: $ac_res" >&5
6331echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006334{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006336cat >conftest.$ac_ext <<_ACEOF
6337/* confdefs.h. */
6338_ACEOF
6339cat confdefs.h >>conftest.$ac_ext
6340cat >>conftest.$ac_ext <<_ACEOF
6341/* end confdefs.h. */
6342$ac_includes_default
6343#include <$ac_header>
6344_ACEOF
6345rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006346if { (ac_try="$ac_compile"
6347case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362 ac_header_compiler=yes
6363else
6364 echo "$as_me: failed program was:" >&5
6365sed 's/^/| /' conftest.$ac_ext >&5
6366
Theodore Ts'oe1052142006-10-21 21:46:47 -04006367 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006368fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006369
6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6372echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373
6374# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006375{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006377cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
6383#include <$ac_header>
6384_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006385if { (ac_try="$ac_cpp conftest.$ac_ext"
6386case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389esac
6390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006397 (exit $ac_status); } >/dev/null && {
6398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006401 ac_header_preproc=yes
6402else
6403 echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 ac_header_preproc=no
6407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006408
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006409rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006410{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6411echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006412
6413# So? What about this header?
6414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6415 yes:no: )
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6420 ac_header_preproc=yes
6421 ;;
6422 no:yes:* )
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6430echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006436 ;;
6437esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006438{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 eval "$as_ac_Header=\$ac_header_preproc"
6444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006445ac_res=`eval echo '${'$as_ac_Header'}'`
6446 { echo "$as_me:$LINENO: result: $ac_res" >&5
6447echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006448
6449fi
6450if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h <<_ACEOF
6452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453_ACEOF
6454
6455fi
6456
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006457done
6458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006459
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006460for ac_func in getpagesize
6461do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006463{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6465if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006467else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468 cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h. */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h. */
6474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6476#define $ac_func innocuous_$ac_func
6477
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006478/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479 which can conflict with char $ac_func (); below.
6480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6481 <limits.h> exists even on freestanding compilers. */
6482
6483#ifdef __STDC__
6484# include <limits.h>
6485#else
6486# include <assert.h>
6487#endif
6488
6489#undef $ac_func
6490
Theodore Ts'oe1052142006-10-21 21:46:47 -04006491/* Override any GCC internal prototype to avoid an error.
6492 Use char because int might match the return type of a GCC
6493 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006494#ifdef __cplusplus
6495extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006496#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006498/* The GNU C library defines this for functions which it implements
6499 to always fail with ENOSYS. Some functions are actually named
6500 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006501#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006502choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006503#endif
6504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006505int
6506main ()
6507{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006508return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509 ;
6510 return 0;
6511}
6512_ACEOF
6513rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006514if { (ac_try="$ac_link"
6515case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006526 (exit $ac_status); } && {
6527 test -z "$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 } && test -s conftest$ac_exeext &&
6530 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006531 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006532else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533 echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006535
Theodore Ts'oe1052142006-10-21 21:46:47 -04006536 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006538
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006540 conftest$ac_exeext conftest.$ac_ext
6541fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006542ac_res=`eval echo '${'$as_ac_var'}'`
6543 { echo "$as_me:$LINENO: result: $ac_res" >&5
6544echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545if test `eval echo '${'$as_ac_var'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6548_ACEOF
6549
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006550fi
6551done
6552
Theodore Ts'oe1052142006-10-21 21:46:47 -04006553{ echo "$as_me:$LINENO: checking for working mmap" >&5
6554echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006555if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006557else
6558 if test "$cross_compiling" = yes; then
6559 ac_cv_func_mmap_fixed_mapped=no
6560else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561 cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h. */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h. */
6567$ac_includes_default
6568/* malloc might have been renamed as rpl_malloc. */
6569#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006570
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006571/* Thanks to Mike Haertel and Jim Avera for this test.
6572 Here is a matrix of mmap possibilities:
6573 mmap private not fixed
6574 mmap private fixed at somewhere currently unmapped
6575 mmap private fixed at somewhere already mapped
6576 mmap shared not fixed
6577 mmap shared fixed at somewhere currently unmapped
6578 mmap shared fixed at somewhere already mapped
6579 For private mappings, we should verify that changes cannot be read()
6580 back from the file, nor mmap's back from the file at a different
6581 address. (There have been systems where private was not correctly
6582 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006584 like early versions of FreeBSD and possibly contemporary NetBSD.)
6585 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006586 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006587
6588 Grep wants private fixed already mapped.
6589 The main things grep needs to know about mmap are:
6590 * does it exist and is it safe to write into the mmap'd area
6591 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006593#include <fcntl.h>
6594#include <sys/mman.h>
6595
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006596#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597char *malloc ();
6598#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006600/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006601#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006602/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006603# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006604# define HAVE_SYS_PARAM_H 1
6605# endif
6606
6607# ifdef _SC_PAGESIZE
6608# define getpagesize() sysconf(_SC_PAGESIZE)
6609# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006610# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006611# include <sys/param.h>
6612# ifdef EXEC_PAGESIZE
6613# define getpagesize() EXEC_PAGESIZE
6614# else /* no EXEC_PAGESIZE */
6615# ifdef NBPG
6616# define getpagesize() NBPG * CLSIZE
6617# ifndef CLSIZE
6618# define CLSIZE 1
6619# endif /* no CLSIZE */
6620# else /* no NBPG */
6621# ifdef NBPC
6622# define getpagesize() NBPC
6623# else /* no NBPC */
6624# ifdef PAGESIZE
6625# define getpagesize() PAGESIZE
6626# endif /* PAGESIZE */
6627# endif /* no NBPC */
6628# endif /* no NBPG */
6629# endif /* no EXEC_PAGESIZE */
6630# else /* no HAVE_SYS_PARAM_H */
6631# define getpagesize() 8192 /* punt totally */
6632# endif /* no HAVE_SYS_PARAM_H */
6633# endif /* no _SC_PAGESIZE */
6634
6635#endif /* no HAVE_GETPAGESIZE */
6636
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006637int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006639{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006640 char *data, *data2, *data3;
6641 int i, pagesize;
6642 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646 /* First, make a file with some known garbage in it. */
6647 data = (char *) malloc (pagesize);
6648 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006649 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006650 for (i = 0; i < pagesize; ++i)
6651 *(data + i) = rand ();
6652 umask (0);
6653 fd = creat ("conftest.mmap", 0600);
6654 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006655 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006657 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006659
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006660 /* Next, try to mmap the file at a fixed address which already has
6661 something else allocated at it. If we can, also make sure that
6662 we see the same garbage. */
6663 fd = open ("conftest.mmap", O_RDWR);
6664 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006665 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666 data2 = (char *) malloc (2 * pagesize);
6667 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006668 return 1;
6669 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6671 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006672 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673 for (i = 0; i < pagesize; ++i)
6674 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006675 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006676
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677 /* Finally, make sure that changes to the mapped area do not
6678 percolate back to the file as seen by read(). (This is a bug on
6679 some variants of i386 svr4.0.) */
6680 for (i = 0; i < pagesize; ++i)
6681 *(data2 + i) = *(data2 + i) + 1;
6682 data3 = (char *) malloc (pagesize);
6683 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006684 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006686 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006687 for (i = 0; i < pagesize; ++i)
6688 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006689 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006691 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006692}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693_ACEOF
6694rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006695if { (ac_try="$ac_link"
6696case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699esac
6700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006705 { (case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708esac
6709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006714 ac_cv_func_mmap_fixed_mapped=yes
6715else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006716 echo "$as_me: program exited with status $ac_status" >&5
6717echo "$as_me: failed program was:" >&5
6718sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720( exit $ac_status )
6721ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006722fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006723rm -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 -05006724fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006725
6726
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006728{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6729echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006730if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731
6732cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006733#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006735
6736fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006738
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006739
Theodore Ts'oe1052142006-10-21 21:46:47 -04006740 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6741echo $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 -05006742if test "${ac_cv_gnu_library_2_1+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006744else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006745 cat >conftest.$ac_ext <<_ACEOF
6746/* confdefs.h. */
6747_ACEOF
6748cat confdefs.h >>conftest.$ac_ext
6749cat >>conftest.$ac_ext <<_ACEOF
6750/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006751
6752#include <features.h>
6753#ifdef __GNU_LIBRARY__
6754 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6755 Lucky GNU user
6756 #endif
6757#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758
6759_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006762 ac_cv_gnu_library_2_1=yes
6763else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006764 ac_cv_gnu_library_2_1=no
6765fi
6766rm -f conftest*
6767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006768
6769
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006771{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6772echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006773
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006774 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006775
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006776
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777
6778
Theodore Ts'oe1052142006-10-21 21:46:47 -04006779 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6780echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006783else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006785 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006787 # Guess based on the CPU.
6788 case "$host_cpu" in
6789 alpha* | i3456786 | m68k | s390*)
6790 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6791 *)
6792 gt_cv_int_divbyzero_sigfpe="guessing no";;
6793 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006795else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796 cat >conftest.$ac_ext <<_ACEOF
6797/* confdefs.h. */
6798_ACEOF
6799cat confdefs.h >>conftest.$ac_ext
6800cat >>conftest.$ac_ext <<_ACEOF
6801/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006802
6803#include <stdlib.h>
6804#include <signal.h>
6805
6806static void
6807#ifdef __cplusplus
6808sigfpe_handler (int sig)
6809#else
6810sigfpe_handler (sig) int sig;
6811#endif
6812{
6813 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6814 exit (sig != SIGFPE);
6815}
6816
6817int x = 1;
6818int y = 0;
6819int z;
6820int nan;
6821
6822int main ()
6823{
6824 signal (SIGFPE, sigfpe_handler);
6825/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6826#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6827 signal (SIGTRAP, sigfpe_handler);
6828#endif
6829/* Linux/SPARC yields signal SIGILL. */
6830#if defined (__sparc__) && defined (__linux__)
6831 signal (SIGILL, sigfpe_handler);
6832#endif
6833
6834 z = x / y;
6835 nan = y / y;
6836 exit (1);
6837}
6838
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839_ACEOF
6840rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006841if { (ac_try="$ac_link"
6842case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845esac
6846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006851 { (case "(($ac_try" in
6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853 *) ac_try_echo=$ac_try;;
6854esac
6855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6856 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006860 gt_cv_int_divbyzero_sigfpe=yes
6861else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862 echo "$as_me: program exited with status $ac_status" >&5
6863echo "$as_me: failed program was:" >&5
6864sed 's/^/| /' conftest.$ac_ext >&5
6865
6866( exit $ac_status )
6867gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006868fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006869rm -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 -04006870fi
6871
Theodore Ts'oe1052142006-10-21 21:46:47 -04006872
6873
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006874fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006875{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6876echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006877 case "$gt_cv_int_divbyzero_sigfpe" in
6878 *yes) value=1;;
6879 *) value=0;;
6880 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881
6882cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006883#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006885
6886
6887
Theodore Ts'oe1052142006-10-21 21:46:47 -04006888 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6889echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006890if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893 cat >conftest.$ac_ext <<_ACEOF
6894/* confdefs.h. */
6895_ACEOF
6896cat confdefs.h >>conftest.$ac_ext
6897cat >>conftest.$ac_ext <<_ACEOF
6898/* end confdefs.h. */
6899unsigned long long ull = 1ULL; int i = 63;
6900int
6901main ()
6902{
6903unsigned long long ullmax = (unsigned long long) -1;
6904 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6905 ;
6906 return 0;
6907}
6908_ACEOF
6909rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006910if { (ac_try="$ac_link"
6911case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914esac
6915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest$ac_exeext &&
6926 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927 ac_cv_type_unsigned_long_long=yes
6928else
6929 echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
Theodore Ts'oe1052142006-10-21 21:46:47 -04006932 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006934
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936 conftest$ac_exeext conftest.$ac_ext
6937fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006938{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6939echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940 if test $ac_cv_type_unsigned_long_long = yes; then
6941
6942cat >>confdefs.h <<\_ACEOF
6943#define HAVE_UNSIGNED_LONG_LONG 1
6944_ACEOF
6945
6946 fi
6947
6948
6949
6950
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006951 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 -05006952
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006953 test $ac_cv_type_unsigned_long_long = yes \
6954 && ac_type='unsigned long long' \
6955 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956
6957cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006958#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006959_ACEOF
6960
6961 else
6962
6963cat >>confdefs.h <<\_ACEOF
6964#define HAVE_UINTMAX_T 1
6965_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006966
6967 fi
6968
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006969
Theodore Ts'oe1052142006-10-21 21:46:47 -04006970 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6971echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972if test "${gt_cv_header_inttypes_h+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975
6976 cat >conftest.$ac_ext <<_ACEOF
6977/* confdefs.h. */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6981/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006982#include <sys/types.h>
6983#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984int
6985main ()
6986{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988 ;
6989 return 0;
6990}
6991_ACEOF
6992rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006993if { (ac_try="$ac_compile"
6994case "(($ac_try" in
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6997esac
6998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007000 ac_status=$?
7001 grep -v '^ *+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007009 gt_cv_header_inttypes_h=yes
7010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011 echo "$as_me: failed program was:" >&5
7012sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007013
Theodore Ts'oe1052142006-10-21 21:46:47 -04007014 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007016
7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018
7019fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007020{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7021echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007022 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023
7024cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007025#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007026_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007027
7028 fi
7029
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007032 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007033 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7034echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007037else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007038
7039 cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h. */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007045#include <inttypes.h>
7046#ifdef PRId32
7047char *p = PRId32;
7048#endif
7049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050int
7051main ()
7052{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054 ;
7055 return 0;
7056}
7057_ACEOF
7058rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007059if { (ac_try="$ac_compile"
7060case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063esac
7064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007071 (exit $ac_status); } && {
7072 test -z "$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007075 gt_cv_inttypes_pri_broken=no
7076else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007077 echo "$as_me: failed program was:" >&5
7078sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007079
Theodore Ts'oe1052142006-10-21 21:46:47 -04007080 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007081fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007082
7083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007084
7085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007086{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7087echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007088 fi
7089 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007090
7091cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007092#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007093_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007094
7095 fi
7096
7097
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007098
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007099for ac_header in stdint.h
7100do
7101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007108ac_res=`eval echo '${'$as_ac_Header'}'`
7109 { echo "$as_me:$LINENO: result: $ac_res" >&5
7110echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111else
7112 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h. */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h. */
7121$ac_includes_default
7122#include <$ac_header>
7123_ACEOF
7124rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007125if { (ac_try="$ac_compile"
7126case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129esac
7130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132 ac_status=$?
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007141 ac_header_compiler=yes
7142else
7143 echo "$as_me: failed program was:" >&5
7144sed 's/^/| /' conftest.$ac_ext >&5
7145
Theodore Ts'oe1052142006-10-21 21:46:47 -04007146 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007147fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007148
7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7151echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152
7153# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007156cat >conftest.$ac_ext <<_ACEOF
7157/* confdefs.h. */
7158_ACEOF
7159cat confdefs.h >>conftest.$ac_ext
7160cat >>conftest.$ac_ext <<_ACEOF
7161/* end confdefs.h. */
7162#include <$ac_header>
7163_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007164if { (ac_try="$ac_cpp conftest.$ac_ext"
7165case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168esac
7169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007176 (exit $ac_status); } >/dev/null && {
7177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180 ac_header_preproc=yes
7181else
7182 echo "$as_me: failed program was:" >&5
7183sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 ac_header_preproc=no
7186fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007187
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007188rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007189{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7190echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191
7192# So? What about this header?
7193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7194 yes:no: )
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7199 ac_header_preproc=yes
7200 ;;
7201 no:yes:* )
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007215 ;;
7216esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007217{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222 eval "$as_ac_Header=\$ac_header_preproc"
7223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007224ac_res=`eval echo '${'$as_ac_Header'}'`
7225 { echo "$as_me:$LINENO: result: $ac_res" >&5
7226echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007227
7228fi
7229if test `eval echo '${'$as_ac_Header'}'` = yes; then
7230 cat >>confdefs.h <<_ACEOF
7231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7232_ACEOF
7233
7234fi
7235
7236done
7237
Theodore Ts'oe1052142006-10-21 21:46:47 -04007238 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7239echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240 result=
7241 cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h. */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h. */
7247
7248#include <limits.h>
7249#if HAVE_STDINT_H
7250#include <stdint.h>
7251#endif
7252#ifdef SIZE_MAX
7253Found it
7254#endif
7255
7256_ACEOF
7257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7258 $EGREP "Found it" >/dev/null 2>&1; then
7259 result=yes
7260fi
7261rm -f conftest*
7262
7263 if test -z "$result"; then
7264 if test "$cross_compiling" = yes; then
7265 # Depending upon the size, compute the lo and hi bounds.
7266cat >conftest.$ac_ext <<_ACEOF
7267/* confdefs.h. */
7268_ACEOF
7269cat confdefs.h >>conftest.$ac_ext
7270cat >>conftest.$ac_ext <<_ACEOF
7271/* end confdefs.h. */
7272#include <stddef.h>
7273int
7274main ()
7275{
7276static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7277test_array [0] = 0
7278
7279 ;
7280 return 0;
7281}
7282_ACEOF
7283rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007284if { (ac_try="$ac_compile"
7285case "(($ac_try" in
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7288esac
7289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291 ac_status=$?
7292 grep -v '^ *+' conftest.er1 >conftest.err
7293 rm -f conftest.er1
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007300 ac_lo=0 ac_mid=0
7301 while :; do
7302 cat >conftest.$ac_ext <<_ACEOF
7303/* confdefs.h. */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h. */
7308#include <stddef.h>
7309int
7310main ()
7311{
7312static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7313test_array [0] = 0
7314
7315 ;
7316 return 0;
7317}
7318_ACEOF
7319rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007320if { (ac_try="$ac_compile"
7321case "(($ac_try" in
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7324esac
7325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007336 ac_hi=$ac_mid; break
7337else
7338 echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
Theodore Ts'oe1052142006-10-21 21:46:47 -04007341 ac_lo=`expr $ac_mid + 1`
7342 if test $ac_lo -le $ac_mid; then
7343 ac_lo= ac_hi=
7344 break
7345 fi
7346 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007348
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350 done
7351else
7352 echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5
7354
Theodore Ts'oe1052142006-10-21 21:46:47 -04007355 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007356/* confdefs.h. */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h. */
7361#include <stddef.h>
7362int
7363main ()
7364{
7365static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7366test_array [0] = 0
7367
7368 ;
7369 return 0;
7370}
7371_ACEOF
7372rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007373if { (ac_try="$ac_compile"
7374case "(($ac_try" in
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7377esac
7378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007380 ac_status=$?
7381 grep -v '^ *+' conftest.er1 >conftest.err
7382 rm -f conftest.er1
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007389 ac_hi=-1 ac_mid=-1
7390 while :; do
7391 cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h. */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h. */
7397#include <stddef.h>
7398int
7399main ()
7400{
7401static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7402test_array [0] = 0
7403
7404 ;
7405 return 0;
7406}
7407_ACEOF
7408rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007409if { (ac_try="$ac_compile"
7410case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413esac
7414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007425 ac_lo=$ac_mid; break
7426else
7427 echo "$as_me: failed program was:" >&5
7428sed 's/^/| /' conftest.$ac_ext >&5
7429
Theodore Ts'oe1052142006-10-21 21:46:47 -04007430 ac_hi=`expr '(' $ac_mid ')' - 1`
7431 if test $ac_mid -le $ac_hi; then
7432 ac_lo= ac_hi=
7433 break
7434 fi
7435 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007437
7438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007439 done
7440else
7441 echo "$as_me: failed program was:" >&5
7442sed 's/^/| /' conftest.$ac_ext >&5
7443
Theodore Ts'oe1052142006-10-21 21:46:47 -04007444 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007446
7447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007449
7450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007451# Binary search between lo and hi bounds.
7452while test "x$ac_lo" != "x$ac_hi"; do
7453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7454 cat >conftest.$ac_ext <<_ACEOF
7455/* confdefs.h. */
7456_ACEOF
7457cat confdefs.h >>conftest.$ac_ext
7458cat >>conftest.$ac_ext <<_ACEOF
7459/* end confdefs.h. */
7460#include <stddef.h>
7461int
7462main ()
7463{
7464static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7465test_array [0] = 0
7466
7467 ;
7468 return 0;
7469}
7470_ACEOF
7471rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007472if { (ac_try="$ac_compile"
7473case "(($ac_try" in
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7476esac
7477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488 ac_hi=$ac_mid
7489else
7490 echo "$as_me: failed program was:" >&5
7491sed 's/^/| /' conftest.$ac_ext >&5
7492
Theodore Ts'oe1052142006-10-21 21:46:47 -04007493 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007494fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007495
7496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007497done
7498case $ac_lo in
7499?*) res_hi=$ac_lo;;
7500'') result=? ;;
7501esac
7502else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007503 cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h. */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h. */
7509#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007510static long int longval () { return ~(size_t)0 / 10; }
7511static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007512#include <stdio.h>
7513#include <stdlib.h>
7514int
7515main ()
7516{
7517
7518 FILE *f = fopen ("conftest.val", "w");
7519 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007520 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007521 if ((~(size_t)0 / 10) < 0)
7522 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007523 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007525 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007526 fprintf (f, "%ld\n", i);
7527 }
7528 else
7529 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007530 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007532 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007533 fprintf (f, "%lu\n", i);
7534 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007535 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536
7537 ;
7538 return 0;
7539}
7540_ACEOF
7541rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007542if { (ac_try="$ac_link"
7543case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546esac
7547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007552 { (case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555esac
7556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 res_hi=`cat conftest.val`
7562else
7563 echo "$as_me: program exited with status $ac_status" >&5
7564echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567( exit $ac_status )
7568result=?
7569fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007570rm -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 -05007571fi
7572rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007574 if test "$cross_compiling" = yes; then
7575 # Depending upon the size, compute the lo and hi bounds.
7576cat >conftest.$ac_ext <<_ACEOF
7577/* confdefs.h. */
7578_ACEOF
7579cat confdefs.h >>conftest.$ac_ext
7580cat >>conftest.$ac_ext <<_ACEOF
7581/* end confdefs.h. */
7582#include <stddef.h>
7583int
7584main ()
7585{
7586static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7587test_array [0] = 0
7588
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007594if { (ac_try="$ac_compile"
7595case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598esac
7599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007601 ac_status=$?
7602 grep -v '^ *+' conftest.er1 >conftest.err
7603 rm -f conftest.er1
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007606 (exit $ac_status); } && {
7607 test -z "$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007610 ac_lo=0 ac_mid=0
7611 while :; do
7612 cat >conftest.$ac_ext <<_ACEOF
7613/* confdefs.h. */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h. */
7618#include <stddef.h>
7619int
7620main ()
7621{
7622static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7623test_array [0] = 0
7624
7625 ;
7626 return 0;
7627}
7628_ACEOF
7629rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007630if { (ac_try="$ac_compile"
7631case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634esac
7635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007646 ac_hi=$ac_mid; break
7647else
7648 echo "$as_me: failed program was:" >&5
7649sed 's/^/| /' conftest.$ac_ext >&5
7650
Theodore Ts'oe1052142006-10-21 21:46:47 -04007651 ac_lo=`expr $ac_mid + 1`
7652 if test $ac_lo -le $ac_mid; then
7653 ac_lo= ac_hi=
7654 break
7655 fi
7656 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007658
7659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660 done
7661else
7662 echo "$as_me: failed program was:" >&5
7663sed 's/^/| /' conftest.$ac_ext >&5
7664
Theodore Ts'oe1052142006-10-21 21:46:47 -04007665 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666/* confdefs.h. */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
7670/* end confdefs.h. */
7671#include <stddef.h>
7672int
7673main ()
7674{
7675static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7676test_array [0] = 0
7677
7678 ;
7679 return 0;
7680}
7681_ACEOF
7682rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007683if { (ac_try="$ac_compile"
7684case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687esac
7688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007699 ac_hi=-1 ac_mid=-1
7700 while :; do
7701 cat >conftest.$ac_ext <<_ACEOF
7702/* confdefs.h. */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h. */
7707#include <stddef.h>
7708int
7709main ()
7710{
7711static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7712test_array [0] = 0
7713
7714 ;
7715 return 0;
7716}
7717_ACEOF
7718rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007719if { (ac_try="$ac_compile"
7720case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723esac
7724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007731 (exit $ac_status); } && {
7732 test -z "$ac_c_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735 ac_lo=$ac_mid; break
7736else
7737 echo "$as_me: failed program was:" >&5
7738sed 's/^/| /' conftest.$ac_ext >&5
7739
Theodore Ts'oe1052142006-10-21 21:46:47 -04007740 ac_hi=`expr '(' $ac_mid ')' - 1`
7741 if test $ac_mid -le $ac_hi; then
7742 ac_lo= ac_hi=
7743 break
7744 fi
7745 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007747
7748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007749 done
7750else
7751 echo "$as_me: failed program was:" >&5
7752sed 's/^/| /' conftest.$ac_ext >&5
7753
Theodore Ts'oe1052142006-10-21 21:46:47 -04007754 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007755fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007756
7757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007758fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007759
7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007761# Binary search between lo and hi bounds.
7762while test "x$ac_lo" != "x$ac_hi"; do
7763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7764 cat >conftest.$ac_ext <<_ACEOF
7765/* confdefs.h. */
7766_ACEOF
7767cat confdefs.h >>conftest.$ac_ext
7768cat >>conftest.$ac_ext <<_ACEOF
7769/* end confdefs.h. */
7770#include <stddef.h>
7771int
7772main ()
7773{
7774static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7775test_array [0] = 0
7776
7777 ;
7778 return 0;
7779}
7780_ACEOF
7781rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007782if { (ac_try="$ac_compile"
7783case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786esac
7787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007798 ac_hi=$ac_mid
7799else
7800 echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
Theodore Ts'oe1052142006-10-21 21:46:47 -04007803 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007804fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007805
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007807done
7808case $ac_lo in
7809?*) res_lo=$ac_lo;;
7810'') result=? ;;
7811esac
7812else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007813 cat >conftest.$ac_ext <<_ACEOF
7814/* confdefs.h. */
7815_ACEOF
7816cat confdefs.h >>conftest.$ac_ext
7817cat >>conftest.$ac_ext <<_ACEOF
7818/* end confdefs.h. */
7819#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007820static long int longval () { return ~(size_t)0 % 10; }
7821static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007822#include <stdio.h>
7823#include <stdlib.h>
7824int
7825main ()
7826{
7827
7828 FILE *f = fopen ("conftest.val", "w");
7829 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007830 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007831 if ((~(size_t)0 % 10) < 0)
7832 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007833 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007835 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007836 fprintf (f, "%ld\n", i);
7837 }
7838 else
7839 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007840 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007841 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007842 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007843 fprintf (f, "%lu\n", i);
7844 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007845 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007846
7847 ;
7848 return 0;
7849}
7850_ACEOF
7851rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007852if { (ac_try="$ac_link"
7853case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007862 { (case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865esac
7866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 res_lo=`cat conftest.val`
7872else
7873 echo "$as_me: program exited with status $ac_status" >&5
7874echo "$as_me: failed program was:" >&5
7875sed 's/^/| /' conftest.$ac_ext >&5
7876
7877( exit $ac_status )
7878result=?
7879fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007880rm -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 -05007881fi
7882rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007883
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007884 if test "$cross_compiling" = yes; then
7885 # Depending upon the size, compute the lo and hi bounds.
7886cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h. */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h. */
7892#include <stddef.h>
7893int
7894main ()
7895{
7896static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7897test_array [0] = 0
7898
7899 ;
7900 return 0;
7901}
7902_ACEOF
7903rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007904if { (ac_try="$ac_compile"
7905case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908esac
7909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007920 ac_lo=0 ac_mid=0
7921 while :; do
7922 cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928#include <stddef.h>
7929int
7930main ()
7931{
7932static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7933test_array [0] = 0
7934
7935 ;
7936 return 0;
7937}
7938_ACEOF
7939rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007940if { (ac_try="$ac_compile"
7941case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944esac
7945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007956 ac_hi=$ac_mid; break
7957else
7958 echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
Theodore Ts'oe1052142006-10-21 21:46:47 -04007961 ac_lo=`expr $ac_mid + 1`
7962 if test $ac_lo -le $ac_mid; then
7963 ac_lo= ac_hi=
7964 break
7965 fi
7966 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007968
7969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007970 done
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
Theodore Ts'oe1052142006-10-21 21:46:47 -04007975 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007976/* confdefs.h. */
7977_ACEOF
7978cat confdefs.h >>conftest.$ac_ext
7979cat >>conftest.$ac_ext <<_ACEOF
7980/* end confdefs.h. */
7981#include <stddef.h>
7982int
7983main ()
7984{
7985static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7986test_array [0] = 0
7987
7988 ;
7989 return 0;
7990}
7991_ACEOF
7992rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007993if { (ac_try="$ac_compile"
7994case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997esac
7998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008009 ac_hi=-1 ac_mid=-1
8010 while :; do
8011 cat >conftest.$ac_ext <<_ACEOF
8012/* confdefs.h. */
8013_ACEOF
8014cat confdefs.h >>conftest.$ac_ext
8015cat >>conftest.$ac_ext <<_ACEOF
8016/* end confdefs.h. */
8017#include <stddef.h>
8018int
8019main ()
8020{
8021static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8022test_array [0] = 0
8023
8024 ;
8025 return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008029if { (ac_try="$ac_compile"
8030case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033esac
8034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008045 ac_lo=$ac_mid; break
8046else
8047 echo "$as_me: failed program was:" >&5
8048sed 's/^/| /' conftest.$ac_ext >&5
8049
Theodore Ts'oe1052142006-10-21 21:46:47 -04008050 ac_hi=`expr '(' $ac_mid ')' - 1`
8051 if test $ac_mid -le $ac_hi; then
8052 ac_lo= ac_hi=
8053 break
8054 fi
8055 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008056fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008057
8058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008059 done
8060else
8061 echo "$as_me: failed program was:" >&5
8062sed 's/^/| /' conftest.$ac_ext >&5
8063
Theodore Ts'oe1052142006-10-21 21:46:47 -04008064 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008065fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008066
8067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008069
8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008071# Binary search between lo and hi bounds.
8072while test "x$ac_lo" != "x$ac_hi"; do
8073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8074 cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h. */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h. */
8080#include <stddef.h>
8081int
8082main ()
8083{
8084static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8085test_array [0] = 0
8086
8087 ;
8088 return 0;
8089}
8090_ACEOF
8091rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008092if { (ac_try="$ac_compile"
8093case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096esac
8097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008108 ac_hi=$ac_mid
8109else
8110 echo "$as_me: failed program was:" >&5
8111sed 's/^/| /' conftest.$ac_ext >&5
8112
Theodore Ts'oe1052142006-10-21 21:46:47 -04008113 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008114fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008115
8116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008117done
8118case $ac_lo in
8119?*) fits_in_uint=$ac_lo;;
8120'') result=? ;;
8121esac
8122else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008123 cat >conftest.$ac_ext <<_ACEOF
8124/* confdefs.h. */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h. */
8129#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008130static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8131static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008132#include <stdio.h>
8133#include <stdlib.h>
8134int
8135main ()
8136{
8137
8138 FILE *f = fopen ("conftest.val", "w");
8139 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008140 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008141 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8142 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008143 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008144 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008145 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008146 fprintf (f, "%ld\n", i);
8147 }
8148 else
8149 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008150 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008152 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008153 fprintf (f, "%lu\n", i);
8154 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008155 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008156
8157 ;
8158 return 0;
8159}
8160_ACEOF
8161rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008162if { (ac_try="$ac_link"
8163case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175esac
8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 fits_in_uint=`cat conftest.val`
8182else
8183 echo "$as_me: program exited with status $ac_status" >&5
8184echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187( exit $ac_status )
8188result=?
8189fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008190rm -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 -05008191fi
8192rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008194 if test "$fits_in_uint" = 1; then
8195 cat >conftest.$ac_ext <<_ACEOF
8196/* confdefs.h. */
8197_ACEOF
8198cat confdefs.h >>conftest.$ac_ext
8199cat >>conftest.$ac_ext <<_ACEOF
8200/* end confdefs.h. */
8201#include <stddef.h>
8202 extern size_t foo;
8203 extern unsigned long foo;
8204
8205int
8206main ()
8207{
8208
8209 ;
8210 return 0;
8211}
8212_ACEOF
8213rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008214if { (ac_try="$ac_compile"
8215case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008226 (exit $ac_status); } && {
8227 test -z "$ac_c_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008230 fits_in_uint=0
8231else
8232 echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
Theodore Ts'oe1052142006-10-21 21:46:47 -04008235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008236fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008237
8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008239 fi
8240 if test -z "$result"; then
8241 if test "$fits_in_uint" = 1; then
8242 result="$res_hi$res_lo"U
8243 else
8244 result="$res_hi$res_lo"UL
8245 fi
8246 else
8247 result='~(size_t)0'
8248 fi
8249 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008250 { echo "$as_me:$LINENO: result: $result" >&5
8251echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008252 if test "$result" != yes; then
8253
8254cat >>confdefs.h <<_ACEOF
8255#define SIZE_MAX $result
8256_ACEOF
8257
8258 fi
8259
8260
8261
8262
8263for ac_header in stdint.h
8264do
8265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008272ac_res=`eval echo '${'$as_ac_Header'}'`
8273 { echo "$as_me:$LINENO: result: $ac_res" >&5
8274echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008275else
8276 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008277{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008279cat >conftest.$ac_ext <<_ACEOF
8280/* confdefs.h. */
8281_ACEOF
8282cat confdefs.h >>conftest.$ac_ext
8283cat >>conftest.$ac_ext <<_ACEOF
8284/* end confdefs.h. */
8285$ac_includes_default
8286#include <$ac_header>
8287_ACEOF
8288rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008289if { (ac_try="$ac_compile"
8290case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008301 (exit $ac_status); } && {
8302 test -z "$ac_c_werror_flag" ||
8303 test ! -s conftest.err
8304 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305 ac_header_compiler=yes
8306else
8307 echo "$as_me: failed program was:" >&5
8308sed 's/^/| /' conftest.$ac_ext >&5
8309
Theodore Ts'oe1052142006-10-21 21:46:47 -04008310 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008311fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008312
8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8315echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008316
8317# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008318{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8319echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008320cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h. */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h. */
8326#include <$ac_header>
8327_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008328if { (ac_try="$ac_cpp conftest.$ac_ext"
8329case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332esac
8333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008340 (exit $ac_status); } >/dev/null && {
8341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344 ac_header_preproc=yes
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 ac_header_preproc=no
8350fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008352rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8354echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355
8356# So? What about this header?
8357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8358 yes:no: )
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8363 ac_header_preproc=yes
8364 ;;
8365 no:yes:* )
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008378
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008379 ;;
8380esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386 eval "$as_ac_Header=\$ac_header_preproc"
8387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008388ac_res=`eval echo '${'$as_ac_Header'}'`
8389 { echo "$as_me:$LINENO: result: $ac_res" >&5
8390echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008391
8392fi
8393if test `eval echo '${'$as_ac_Header'}'` = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396_ACEOF
8397
8398fi
8399
8400done
8401
8402
8403
8404 if test "X$prefix" = "XNONE"; then
8405 acl_final_prefix="$ac_default_prefix"
8406 else
8407 acl_final_prefix="$prefix"
8408 fi
8409 if test "X$exec_prefix" = "XNONE"; then
8410 acl_final_exec_prefix='${prefix}'
8411 else
8412 acl_final_exec_prefix="$exec_prefix"
8413 fi
8414 acl_save_prefix="$prefix"
8415 prefix="$acl_final_prefix"
8416 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8417 prefix="$acl_save_prefix"
8418
8419
Theodore Ts'oe1052142006-10-21 21:46:47 -04008420# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008421if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008423else
8424 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008425fi
8426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008427# Prepare PATH_SEPARATOR.
8428# The user is always right.
8429if test "${PATH_SEPARATOR+set}" != set; then
8430 echo "#! /bin/sh" >conf$$.sh
8431 echo "exit 0" >>conf$$.sh
8432 chmod +x conf$$.sh
8433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8434 PATH_SEPARATOR=';'
8435 else
8436 PATH_SEPARATOR=:
8437 fi
8438 rm -f conf$$.sh
8439fi
8440ac_prog=ld
8441if test "$GCC" = yes; then
8442 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008443 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8444echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008445 case $host in
8446 *-*-mingw*)
8447 # gcc leaves a trailing carriage return which upsets mingw
8448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8449 *)
8450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8451 esac
8452 case $ac_prog in
8453 # Accept absolute paths.
8454 [\\/]* | [A-Za-z]:[\\/]*)
8455 re_direlt='/[^/][^/]*/\.\./'
8456 # Canonicalize the path of ld
8457 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8458 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8459 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8460 done
8461 test -z "$LD" && LD="$ac_prog"
8462 ;;
8463 "")
8464 # If it fails, then pretend we aren't using GCC.
8465 ac_prog=ld
8466 ;;
8467 *)
8468 # If it is relative, then search for the first ld in PATH.
8469 with_gnu_ld=unknown
8470 ;;
8471 esac
8472elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008473 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8474echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008475else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008476 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8477echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008478fi
8479if test "${acl_cv_path_LD+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482 if test -z "$LD"; then
8483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8484 for ac_dir in $PATH; do
8485 test -z "$ac_dir" && ac_dir=.
8486 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8487 acl_cv_path_LD="$ac_dir/$ac_prog"
8488 # Check to see if the program is GNU ld. I'd rather use --version,
8489 # but apparently some GNU ld's only accept -v.
8490 # Break only if it was the GNU/non-GNU ld that we prefer.
8491 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8492 *GNU* | *'with BFD'*)
8493 test "$with_gnu_ld" != no && break ;;
8494 *)
8495 test "$with_gnu_ld" != yes && break ;;
8496 esac
8497 fi
8498 done
8499 IFS="$ac_save_ifs"
8500else
8501 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8502fi
8503fi
8504
8505LD="$acl_cv_path_LD"
8506if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008507 { echo "$as_me:$LINENO: result: $LD" >&5
8508echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008509else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008510 { echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008512fi
8513test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8514echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8515 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008516{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8517echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008518if test "${acl_cv_prog_gnu_ld+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520else
8521 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8522case `$LD -v 2>&1 </dev/null` in
8523*GNU* | *'with BFD'*)
8524 acl_cv_prog_gnu_ld=yes ;;
8525*)
8526 acl_cv_prog_gnu_ld=no ;;
8527esac
8528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008529{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8530echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008531with_gnu_ld=$acl_cv_prog_gnu_ld
8532
8533
8534
Theodore Ts'oe1052142006-10-21 21:46:47 -04008535 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8536echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008537if test "${acl_cv_rpath+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539else
8540
8541 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8542 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8543 . ./conftest.sh
8544 rm -f ./conftest.sh
8545 acl_cv_rpath=done
8546
8547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008548{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8549echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008550 wl="$acl_cv_wl"
8551 libext="$acl_cv_libext"
8552 shlibext="$acl_cv_shlibext"
8553 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8554 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8555 hardcode_direct="$acl_cv_hardcode_direct"
8556 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008557 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008558if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008559 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008560else
8561 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008562fi
8563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008564
8565
8566
8567
8568
8569
8570
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008571 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008572
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008573 acl_save_prefix="$prefix"
8574 prefix="$acl_final_prefix"
8575 acl_save_exec_prefix="$exec_prefix"
8576 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008577
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008578 eval additional_includedir=\"$includedir\"
8579 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008580
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008581 exec_prefix="$acl_save_exec_prefix"
8582 prefix="$acl_save_prefix"
8583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008584
Theodore Ts'oe1052142006-10-21 21:46:47 -04008585# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008586if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008587 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008588 if test "X$withval" = "Xno"; then
8589 use_additional=no
8590 else
8591 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 acl_save_exec_prefix="$exec_prefix"
8596 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008597
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008598 eval additional_includedir=\"$includedir\"
8599 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008600
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008601 exec_prefix="$acl_save_exec_prefix"
8602 prefix="$acl_save_prefix"
8603
8604 else
8605 additional_includedir="$withval/include"
8606 additional_libdir="$withval/lib"
8607 fi
8608 fi
8609
Theodore Ts'oe1052142006-10-21 21:46:47 -04008610fi
8611
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008612 LIBICONV=
8613 LTLIBICONV=
8614 INCICONV=
8615 rpathdirs=
8616 ltrpathdirs=
8617 names_already_handled=
8618 names_next_round='iconv '
8619 while test -n "$names_next_round"; do
8620 names_this_round="$names_next_round"
8621 names_next_round=
8622 for name in $names_this_round; do
8623 already_handled=
8624 for n in $names_already_handled; do
8625 if test "$n" = "$name"; then
8626 already_handled=yes
8627 break
8628 fi
8629 done
8630 if test -z "$already_handled"; then
8631 names_already_handled="$names_already_handled $name"
8632 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8633 eval value=\"\$HAVE_LIB$uppername\"
8634 if test -n "$value"; then
8635 if test "$value" = yes; then
8636 eval value=\"\$LIB$uppername\"
8637 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8638 eval value=\"\$LTLIB$uppername\"
8639 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8640 else
8641 :
8642 fi
8643 else
8644 found_dir=
8645 found_la=
8646 found_so=
8647 found_a=
8648 if test $use_additional = yes; then
8649 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8650 found_dir="$additional_libdir"
8651 found_so="$additional_libdir/lib$name.$shlibext"
8652 if test -f "$additional_libdir/lib$name.la"; then
8653 found_la="$additional_libdir/lib$name.la"
8654 fi
8655 else
8656 if test -f "$additional_libdir/lib$name.$libext"; then
8657 found_dir="$additional_libdir"
8658 found_a="$additional_libdir/lib$name.$libext"
8659 if test -f "$additional_libdir/lib$name.la"; then
8660 found_la="$additional_libdir/lib$name.la"
8661 fi
8662 fi
8663 fi
8664 fi
8665 if test "X$found_dir" = "X"; then
8666 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008667
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008668 acl_save_prefix="$prefix"
8669 prefix="$acl_final_prefix"
8670 acl_save_exec_prefix="$exec_prefix"
8671 exec_prefix="$acl_final_exec_prefix"
8672 eval x=\"$x\"
8673 exec_prefix="$acl_save_exec_prefix"
8674 prefix="$acl_save_prefix"
8675
8676 case "$x" in
8677 -L*)
8678 dir=`echo "X$x" | sed -e 's/^X-L//'`
8679 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8680 found_dir="$dir"
8681 found_so="$dir/lib$name.$shlibext"
8682 if test -f "$dir/lib$name.la"; then
8683 found_la="$dir/lib$name.la"
8684 fi
8685 else
8686 if test -f "$dir/lib$name.$libext"; then
8687 found_dir="$dir"
8688 found_a="$dir/lib$name.$libext"
8689 if test -f "$dir/lib$name.la"; then
8690 found_la="$dir/lib$name.la"
8691 fi
8692 fi
8693 fi
8694 ;;
8695 esac
8696 if test "X$found_dir" != "X"; then
8697 break
8698 fi
8699 done
8700 fi
8701 if test "X$found_dir" != "X"; then
8702 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8703 if test "X$found_so" != "X"; then
8704 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8705 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8706 else
8707 haveit=
8708 for x in $ltrpathdirs; do
8709 if test "X$x" = "X$found_dir"; then
8710 haveit=yes
8711 break
8712 fi
8713 done
8714 if test -z "$haveit"; then
8715 ltrpathdirs="$ltrpathdirs $found_dir"
8716 fi
8717 if test "$hardcode_direct" = yes; then
8718 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8719 else
8720 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8721 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8722 haveit=
8723 for x in $rpathdirs; do
8724 if test "X$x" = "X$found_dir"; then
8725 haveit=yes
8726 break
8727 fi
8728 done
8729 if test -z "$haveit"; then
8730 rpathdirs="$rpathdirs $found_dir"
8731 fi
8732 else
8733 haveit=
8734 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008735
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008736 acl_save_prefix="$prefix"
8737 prefix="$acl_final_prefix"
8738 acl_save_exec_prefix="$exec_prefix"
8739 exec_prefix="$acl_final_exec_prefix"
8740 eval x=\"$x\"
8741 exec_prefix="$acl_save_exec_prefix"
8742 prefix="$acl_save_prefix"
8743
8744 if test "X$x" = "X-L$found_dir"; then
8745 haveit=yes
8746 break
8747 fi
8748 done
8749 if test -z "$haveit"; then
8750 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8751 fi
8752 if test "$hardcode_minus_L" != no; then
8753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8754 else
8755 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8756 fi
8757 fi
8758 fi
8759 fi
8760 else
8761 if test "X$found_a" != "X"; then
8762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8763 else
8764 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8765 fi
8766 fi
8767 additional_includedir=
8768 case "$found_dir" in
8769 */lib | */lib/)
8770 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8771 additional_includedir="$basedir/include"
8772 ;;
8773 esac
8774 if test "X$additional_includedir" != "X"; then
8775 if test "X$additional_includedir" != "X/usr/include"; then
8776 haveit=
8777 if test "X$additional_includedir" = "X/usr/local/include"; then
8778 if test -n "$GCC"; then
8779 case $host_os in
8780 linux*) haveit=yes;;
8781 esac
8782 fi
8783 fi
8784 if test -z "$haveit"; then
8785 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008786
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008787 acl_save_prefix="$prefix"
8788 prefix="$acl_final_prefix"
8789 acl_save_exec_prefix="$exec_prefix"
8790 exec_prefix="$acl_final_exec_prefix"
8791 eval x=\"$x\"
8792 exec_prefix="$acl_save_exec_prefix"
8793 prefix="$acl_save_prefix"
8794
8795 if test "X$x" = "X-I$additional_includedir"; then
8796 haveit=yes
8797 break
8798 fi
8799 done
8800 if test -z "$haveit"; then
8801 if test -d "$additional_includedir"; then
8802 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8803 fi
8804 fi
8805 fi
8806 fi
8807 fi
8808 if test -n "$found_la"; then
8809 save_libdir="$libdir"
8810 case "$found_la" in
8811 */* | *\\*) . "$found_la" ;;
8812 *) . "./$found_la" ;;
8813 esac
8814 libdir="$save_libdir"
8815 for dep in $dependency_libs; do
8816 case "$dep" in
8817 -L*)
8818 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8819 if test "X$additional_libdir" != "X/usr/lib"; then
8820 haveit=
8821 if test "X$additional_libdir" = "X/usr/local/lib"; then
8822 if test -n "$GCC"; then
8823 case $host_os in
8824 linux*) haveit=yes;;
8825 esac
8826 fi
8827 fi
8828 if test -z "$haveit"; then
8829 haveit=
8830 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008831
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008832 acl_save_prefix="$prefix"
8833 prefix="$acl_final_prefix"
8834 acl_save_exec_prefix="$exec_prefix"
8835 exec_prefix="$acl_final_exec_prefix"
8836 eval x=\"$x\"
8837 exec_prefix="$acl_save_exec_prefix"
8838 prefix="$acl_save_prefix"
8839
8840 if test "X$x" = "X-L$additional_libdir"; then
8841 haveit=yes
8842 break
8843 fi
8844 done
8845 if test -z "$haveit"; then
8846 if test -d "$additional_libdir"; then
8847 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8848 fi
8849 fi
8850 haveit=
8851 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008852
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008853 acl_save_prefix="$prefix"
8854 prefix="$acl_final_prefix"
8855 acl_save_exec_prefix="$exec_prefix"
8856 exec_prefix="$acl_final_exec_prefix"
8857 eval x=\"$x\"
8858 exec_prefix="$acl_save_exec_prefix"
8859 prefix="$acl_save_prefix"
8860
8861 if test "X$x" = "X-L$additional_libdir"; then
8862 haveit=yes
8863 break
8864 fi
8865 done
8866 if test -z "$haveit"; then
8867 if test -d "$additional_libdir"; then
8868 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8869 fi
8870 fi
8871 fi
8872 fi
8873 ;;
8874 -R*)
8875 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8876 if test "$enable_rpath" != no; then
8877 haveit=
8878 for x in $rpathdirs; do
8879 if test "X$x" = "X$dir"; then
8880 haveit=yes
8881 break
8882 fi
8883 done
8884 if test -z "$haveit"; then
8885 rpathdirs="$rpathdirs $dir"
8886 fi
8887 haveit=
8888 for x in $ltrpathdirs; do
8889 if test "X$x" = "X$dir"; then
8890 haveit=yes
8891 break
8892 fi
8893 done
8894 if test -z "$haveit"; then
8895 ltrpathdirs="$ltrpathdirs $dir"
8896 fi
8897 fi
8898 ;;
8899 -l*)
8900 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8901 ;;
8902 *.la)
8903 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8904 ;;
8905 *)
8906 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8908 ;;
8909 esac
8910 done
8911 fi
8912 else
8913 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8914 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8915 fi
8916 fi
8917 fi
8918 done
8919 done
8920 if test "X$rpathdirs" != "X"; then
8921 if test -n "$hardcode_libdir_separator"; then
8922 alldirs=
8923 for found_dir in $rpathdirs; do
8924 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8925 done
8926 acl_save_libdir="$libdir"
8927 libdir="$alldirs"
8928 eval flag=\"$hardcode_libdir_flag_spec\"
8929 libdir="$acl_save_libdir"
8930 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8931 else
8932 for found_dir in $rpathdirs; do
8933 acl_save_libdir="$libdir"
8934 libdir="$found_dir"
8935 eval flag=\"$hardcode_libdir_flag_spec\"
8936 libdir="$acl_save_libdir"
8937 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8938 done
8939 fi
8940 fi
8941 if test "X$ltrpathdirs" != "X"; then
8942 for found_dir in $ltrpathdirs; do
8943 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8944 done
8945 fi
8946
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008947
8948
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008949
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008950
8951
8952
8953
Theodore Ts'oe1052142006-10-21 21:46:47 -04008954 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8955echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008956if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008958else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008959 cat >conftest.$ac_ext <<_ACEOF
8960/* confdefs.h. */
8961_ACEOF
8962cat confdefs.h >>conftest.$ac_ext
8963cat >>conftest.$ac_ext <<_ACEOF
8964/* end confdefs.h. */
8965$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008966typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008967int
8968main ()
8969{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008970if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008971 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008972if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008973 return 0;
8974 ;
8975 return 0;
8976}
8977_ACEOF
8978rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008979if { (ac_try="$ac_compile"
8980case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983esac
8984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008986 ac_status=$?
8987 grep -v '^ *+' conftest.er1 >conftest.err
8988 rm -f conftest.er1
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008991 (exit $ac_status); } && {
8992 test -z "$ac_c_werror_flag" ||
8993 test ! -s conftest.err
8994 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008995 ac_cv_type_ptrdiff_t=yes
8996else
8997 echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
Theodore Ts'oe1052142006-10-21 21:46:47 -04009000 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009002
9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009005{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9006echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009007if test $ac_cv_type_ptrdiff_t = yes; then
9008 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009009else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009010
9011cat >>confdefs.h <<\_ACEOF
9012#define ptrdiff_t long
9013_ACEOF
9014
9015
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009016fi
9017
9018
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009019
9020
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009021
9022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009023
9024
9025
9026
9027
9028for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009029stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009030do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009036 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009037fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009038ac_res=`eval echo '${'$as_ac_Header'}'`
9039 { echo "$as_me:$LINENO: result: $ac_res" >&5
9040echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009042 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009043{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009045cat >conftest.$ac_ext <<_ACEOF
9046/* confdefs.h. */
9047_ACEOF
9048cat confdefs.h >>conftest.$ac_ext
9049cat >>conftest.$ac_ext <<_ACEOF
9050/* end confdefs.h. */
9051$ac_includes_default
9052#include <$ac_header>
9053_ACEOF
9054rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009055if { (ac_try="$ac_compile"
9056case "(($ac_try" in
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9059esac
9060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009071 ac_header_compiler=yes
9072else
9073 echo "$as_me: failed program was:" >&5
9074sed 's/^/| /' conftest.$ac_ext >&5
9075
Theodore Ts'oe1052142006-10-21 21:46:47 -04009076 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009078
9079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9081echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082
9083# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009084{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009086cat >conftest.$ac_ext <<_ACEOF
9087/* confdefs.h. */
9088_ACEOF
9089cat confdefs.h >>conftest.$ac_ext
9090cat >>conftest.$ac_ext <<_ACEOF
9091/* end confdefs.h. */
9092#include <$ac_header>
9093_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009094if { (ac_try="$ac_cpp conftest.$ac_ext"
9095case "(($ac_try" in
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9098esac
9099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009106 (exit $ac_status); } >/dev/null && {
9107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009110 ac_header_preproc=yes
9111else
9112 echo "$as_me: failed program was:" >&5
9113sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ac_header_preproc=no
9116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009118rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009119{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9120echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009121
9122# So? What about this header?
9123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9124 yes:no: )
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9128echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9129 ac_header_preproc=yes
9130 ;;
9131 no:yes:* )
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9133echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9135echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9137echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9139echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9143echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009145 ;;
9146esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009147{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151else
9152 eval "$as_ac_Header=\$ac_header_preproc"
9153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009154ac_res=`eval echo '${'$as_ac_Header'}'`
9155 { echo "$as_me:$LINENO: result: $ac_res" >&5
9156echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009157
9158fi
9159if test `eval echo '${'$as_ac_Header'}'` = yes; then
9160 cat >>confdefs.h <<_ACEOF
9161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9162_ACEOF
9163
9164fi
9165
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009166done
9167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9192mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9193strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9194__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009195do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009197{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9199if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009200 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009201else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009202 cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h. */
9208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9210#define $ac_func innocuous_$ac_func
9211
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009212/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009213 which can conflict with char $ac_func (); below.
9214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9215 <limits.h> exists even on freestanding compilers. */
9216
9217#ifdef __STDC__
9218# include <limits.h>
9219#else
9220# include <assert.h>
9221#endif
9222
9223#undef $ac_func
9224
Theodore Ts'oe1052142006-10-21 21:46:47 -04009225/* Override any GCC internal prototype to avoid an error.
9226 Use char because int might match the return type of a GCC
9227 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009228#ifdef __cplusplus
9229extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009230#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009231char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009232/* The GNU C library defines this for functions which it implements
9233 to always fail with ENOSYS. Some functions are actually named
9234 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009235#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009236choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009237#endif
9238
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009239int
9240main ()
9241{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009242return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009243 ;
9244 return 0;
9245}
9246_ACEOF
9247rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009248if { (ac_try="$ac_link"
9249case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9252esac
9253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009260 (exit $ac_status); } && {
9261 test -z "$ac_c_werror_flag" ||
9262 test ! -s conftest.err
9263 } && test -s conftest$ac_exeext &&
9264 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009265 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009269
Theodore Ts'oe1052142006-10-21 21:46:47 -04009270 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009271fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009272
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009274 conftest$ac_exeext conftest.$ac_ext
9275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009276ac_res=`eval echo '${'$as_ac_var'}'`
9277 { echo "$as_me:$LINENO: result: $ac_res" >&5
9278echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009279if test `eval echo '${'$as_ac_var'}'` = yes; then
9280 cat >>confdefs.h <<_ACEOF
9281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9282_ACEOF
9283
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009284fi
9285done
9286
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288
Theodore Ts'oe1052142006-10-21 21:46:47 -04009289 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9290echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009291if test "${ac_cv_have_decl__snprintf+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9293else
9294 cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h. */
9300#include <stdio.h>
9301int
9302main ()
9303{
9304
9305#ifndef _snprintf
9306 char *p = (char *) _snprintf;
9307#endif
9308
9309 ;
9310 return 0;
9311}
9312_ACEOF
9313rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009314if { (ac_try="$ac_compile"
9315case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9318esac
9319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009330 ac_cv_have_decl__snprintf=yes
9331else
9332 echo "$as_me: failed program was:" >&5
9333sed 's/^/| /' conftest.$ac_ext >&5
9334
Theodore Ts'oe1052142006-10-21 21:46:47 -04009335 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009336fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009337
9338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009340{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9341echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342 if test $ac_cv_have_decl__snprintf = yes; then
9343 gt_value=1
9344 else
9345 gt_value=0
9346 fi
9347
9348cat >>confdefs.h <<_ACEOF
9349#define HAVE_DECL__SNPRINTF $gt_value
9350_ACEOF
9351
9352
9353
Theodore Ts'oe1052142006-10-21 21:46:47 -04009354 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9355echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009356if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358else
9359 cat >conftest.$ac_ext <<_ACEOF
9360/* confdefs.h. */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
9364/* end confdefs.h. */
9365#include <stdio.h>
9366int
9367main ()
9368{
9369
9370#ifndef _snwprintf
9371 char *p = (char *) _snwprintf;
9372#endif
9373
9374 ;
9375 return 0;
9376}
9377_ACEOF
9378rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009379if { (ac_try="$ac_compile"
9380case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383esac
9384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009395 ac_cv_have_decl__snwprintf=yes
9396else
9397 echo "$as_me: failed program was:" >&5
9398sed 's/^/| /' conftest.$ac_ext >&5
9399
Theodore Ts'oe1052142006-10-21 21:46:47 -04009400 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009401fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009402
9403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009405{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9406echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009407 if test $ac_cv_have_decl__snwprintf = yes; then
9408 gt_value=1
9409 else
9410 gt_value=0
9411 fi
9412
9413cat >>confdefs.h <<_ACEOF
9414#define HAVE_DECL__SNWPRINTF $gt_value
9415_ACEOF
9416
9417
9418
9419
Theodore Ts'oe1052142006-10-21 21:46:47 -04009420 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9421echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009422if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425 cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h. */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h. */
9431#include <stdio.h>
9432int
9433main ()
9434{
9435
9436#ifndef feof_unlocked
9437 char *p = (char *) feof_unlocked;
9438#endif
9439
9440 ;
9441 return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009445if { (ac_try="$ac_compile"
9446case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449esac
9450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009461 ac_cv_have_decl_feof_unlocked=yes
9462else
9463 echo "$as_me: failed program was:" >&5
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
Theodore Ts'oe1052142006-10-21 21:46:47 -04009466 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009468
9469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009471{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9472echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009473 if test $ac_cv_have_decl_feof_unlocked = yes; then
9474 gt_value=1
9475 else
9476 gt_value=0
9477 fi
9478
9479cat >>confdefs.h <<_ACEOF
9480#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9481_ACEOF
9482
9483
9484
Theodore Ts'oe1052142006-10-21 21:46:47 -04009485 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9486echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009487if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489else
9490 cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h. */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h. */
9496#include <stdio.h>
9497int
9498main ()
9499{
9500
9501#ifndef fgets_unlocked
9502 char *p = (char *) fgets_unlocked;
9503#endif
9504
9505 ;
9506 return 0;
9507}
9508_ACEOF
9509rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009510if { (ac_try="$ac_compile"
9511case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514esac
9515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009522 (exit $ac_status); } && {
9523 test -z "$ac_c_werror_flag" ||
9524 test ! -s conftest.err
9525 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009526 ac_cv_have_decl_fgets_unlocked=yes
9527else
9528 echo "$as_me: failed program was:" >&5
9529sed 's/^/| /' conftest.$ac_ext >&5
9530
Theodore Ts'oe1052142006-10-21 21:46:47 -04009531 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009533
9534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009535fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009536{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9537echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009538 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9539 gt_value=1
9540 else
9541 gt_value=0
9542 fi
9543
9544cat >>confdefs.h <<_ACEOF
9545#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9546_ACEOF
9547
9548
9549
Theodore Ts'oe1052142006-10-21 21:46:47 -04009550 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9551echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009552if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555 cat >conftest.$ac_ext <<_ACEOF
9556/* confdefs.h. */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h. */
9561#include <stdio.h>
9562int
9563main ()
9564{
9565
9566#ifndef getc_unlocked
9567 char *p = (char *) getc_unlocked;
9568#endif
9569
9570 ;
9571 return 0;
9572}
9573_ACEOF
9574rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009575if { (ac_try="$ac_compile"
9576case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009591 ac_cv_have_decl_getc_unlocked=yes
9592else
9593 echo "$as_me: failed program was:" >&5
9594sed 's/^/| /' conftest.$ac_ext >&5
9595
Theodore Ts'oe1052142006-10-21 21:46:47 -04009596 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009598
9599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009600fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009601{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9602echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603 if test $ac_cv_have_decl_getc_unlocked = yes; then
9604 gt_value=1
9605 else
9606 gt_value=0
9607 fi
9608
9609cat >>confdefs.h <<_ACEOF
9610#define HAVE_DECL_GETC_UNLOCKED $gt_value
9611_ACEOF
9612
9613
9614
9615 case $gt_cv_func_printf_posix in
9616 *yes) HAVE_POSIX_PRINTF=1 ;;
9617 *) HAVE_POSIX_PRINTF=0 ;;
9618 esac
9619
9620 if test "$ac_cv_func_asprintf" = yes; then
9621 HAVE_ASPRINTF=1
9622 else
9623 HAVE_ASPRINTF=0
9624 fi
9625
9626 if test "$ac_cv_func_snprintf" = yes; then
9627 HAVE_SNPRINTF=1
9628 else
9629 HAVE_SNPRINTF=0
9630 fi
9631
9632 if test "$ac_cv_func_wprintf" = yes; then
9633 HAVE_WPRINTF=1
9634 else
9635 HAVE_WPRINTF=0
9636 fi
9637
9638
9639
9640
9641
9642
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009643
9644 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009645
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009646 for element in $INCICONV; do
9647 haveit=
9648 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009650 acl_save_prefix="$prefix"
9651 prefix="$acl_final_prefix"
9652 acl_save_exec_prefix="$exec_prefix"
9653 exec_prefix="$acl_final_exec_prefix"
9654 eval x=\"$x\"
9655 exec_prefix="$acl_save_exec_prefix"
9656 prefix="$acl_save_prefix"
9657
9658 if test "X$x" = "X$element"; then
9659 haveit=yes
9660 break
9661 fi
9662 done
9663 if test -z "$haveit"; then
9664 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9665 fi
9666 done
9667
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009668
Theodore Ts'oe1052142006-10-21 21:46:47 -04009669 { echo "$as_me:$LINENO: checking for iconv" >&5
9670echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009671if test "${am_cv_func_iconv+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009673else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009674
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009675 am_cv_func_iconv="no, consider installing GNU libiconv"
9676 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677 cat >conftest.$ac_ext <<_ACEOF
9678/* confdefs.h. */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009683#include <stdlib.h>
9684#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009685int
9686main ()
9687{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009688iconv_t cd = iconv_open("","");
9689 iconv(cd,NULL,NULL,NULL,NULL);
9690 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009691 ;
9692 return 0;
9693}
9694_ACEOF
9695rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009696if { (ac_try="$ac_link"
9697case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9700esac
9701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009708 (exit $ac_status); } && {
9709 test -z "$ac_c_werror_flag" ||
9710 test ! -s conftest.err
9711 } && test -s conftest$ac_exeext &&
9712 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009713 am_cv_func_iconv=yes
9714else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009715 echo "$as_me: failed program was:" >&5
9716sed 's/^/| /' conftest.$ac_ext >&5
9717
Theodore Ts'oe1052142006-10-21 21:46:47 -04009718
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009720
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009722 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009723 if test "$am_cv_func_iconv" != yes; then
9724 am_save_LIBS="$LIBS"
9725 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726 cat >conftest.$ac_ext <<_ACEOF
9727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009732#include <stdlib.h>
9733#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009734int
9735main ()
9736{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009737iconv_t cd = iconv_open("","");
9738 iconv(cd,NULL,NULL,NULL,NULL);
9739 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009740 ;
9741 return 0;
9742}
9743_ACEOF
9744rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009745if { (ac_try="$ac_link"
9746case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749esac
9750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009752 ac_status=$?
9753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009762 am_cv_lib_iconv=yes
9763 am_cv_func_iconv=yes
9764else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009765 echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
Theodore Ts'oe1052142006-10-21 21:46:47 -04009768
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009769fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009770
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009773 LIBS="$am_save_LIBS"
9774 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009776fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009777{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9778echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009779 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009780
9781cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009782#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009783_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009784
9785 fi
9786 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009787 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9788echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9789 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9790echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009791 else
9792 CPPFLAGS="$am_save_CPPFLAGS"
9793 LIBICONV=
9794 LTLIBICONV=
9795 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009796
9797
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009798
9799 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009800 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9801echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009802 if test "${am_cv_proto_iconv+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009804else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009805
9806 cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009812
9813#include <stdlib.h>
9814#include <iconv.h>
9815extern
9816#ifdef __cplusplus
9817"C"
9818#endif
9819#if defined(__STDC__) || defined(__cplusplus)
9820size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9821#else
9822size_t iconv();
9823#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009824
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825int
9826main ()
9827{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009829 ;
9830 return 0;
9831}
9832_ACEOF
9833rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009834if { (ac_try="$ac_compile"
9835case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009850 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009851else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009852 echo "$as_me: failed program was:" >&5
9853sed 's/^/| /' conftest.$ac_ext >&5
9854
Theodore Ts'oe1052142006-10-21 21:46:47 -04009855 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009857
9858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009859 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 +00009860fi
9861
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009862 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009863 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009864 }$am_cv_proto_iconv" >&5
9865echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009866 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867
9868cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009869#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009870_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009871
9872 fi
9873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009874
Theodore Ts'oe1052142006-10-21 21:46:47 -04009875 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9876echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009877if test "${am_cv_langinfo_codeset+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009879else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880 cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009886#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009887int
9888main ()
9889{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009890char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009891 ;
9892 return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009896if { (ac_try="$ac_link"
9897case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest$ac_exeext &&
9912 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009913 am_cv_langinfo_codeset=yes
9914else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009915 echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009917
Theodore Ts'oe1052142006-10-21 21:46:47 -04009918 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009919fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009920
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922 conftest$ac_exeext conftest.$ac_ext
9923
9924fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009925{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9926echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009927 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009928
9929cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009930#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009932
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009933 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009934
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009935 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009936
Theodore Ts'oe1052142006-10-21 21:46:47 -04009937 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9938echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009941else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942 cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009948#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949int
9950main ()
9951{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009952return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009953 ;
9954 return 0;
9955}
9956_ACEOF
9957rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009958if { (ac_try="$ac_link"
9959case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962esac
9963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009970 (exit $ac_status); } && {
9971 test -z "$ac_c_werror_flag" ||
9972 test ! -s conftest.err
9973 } && test -s conftest$ac_exeext &&
9974 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009975 am_cv_val_LC_MESSAGES=yes
9976else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009977 echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009979
Theodore Ts'oe1052142006-10-21 21:46:47 -04009980 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009981fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009982
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984 conftest$ac_exeext conftest.$ac_ext
9985fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009986{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9987echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009988 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009989
9990cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009991#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009993
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009994 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009995
9996 fi
9997
9998 for ac_prog in bison
9999do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010000 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010001set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004if test "${ac_cv_prog_INTLBISON+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010006else
10007 if test -n "$INTLBISON"; then
10008 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10009else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010016 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 -050010017 ac_cv_prog_INTLBISON="$ac_prog"
10018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021done
10022done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010023IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010025fi
10026fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010027INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010028if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010029 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10030echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010031else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010032 { echo "$as_me:$LINENO: result: no" >&5
10033echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010034fi
10035
Theodore Ts'oe1052142006-10-21 21:46:47 -040010036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010037 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010038done
10039
10040 if test -z "$INTLBISON"; then
10041 ac_verc_fail=yes
10042 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010043 { echo "$as_me:$LINENO: checking version of bison" >&5
10044echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010045 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10046 case $ac_prog_version in
10047 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10048 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10049 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10050 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10051 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010052 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10053echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010054 fi
10055 if test $ac_verc_fail = yes; then
10056 INTLBISON=:
10057 fi
10058
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010059
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010060
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010061
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010062
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010064
10065
10066
10067
10068
10069
10070
10071
10072
10073
Theodore Ts'oe1052142006-10-21 21:46:47 -040010074 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10075echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10076 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010077if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010078 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010079else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010080 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010081fi
10082
10083 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10084echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010085
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010086
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010087
10088
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010089 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010090 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010091
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010092 LIBINTL=
10093 LTLIBINTL=
10094 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010095
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010096 if test "$USE_NLS" = "yes"; then
10097 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010098
Theodore Ts'oe1052142006-10-21 21:46:47 -040010099 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10100echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010101
Theodore Ts'oe1052142006-10-21 21:46:47 -040010102# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010103if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010104 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010105else
10106 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010107fi
10108
10109 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10110echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010111
10112 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10113 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010115
10116
10117
10118
10119
Theodore Ts'oe1052142006-10-21 21:46:47 -040010120 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10121echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010122if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010124else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010125 cat >conftest.$ac_ext <<_ACEOF
10126/* confdefs.h. */
10127_ACEOF
10128cat confdefs.h >>conftest.$ac_ext
10129cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010131#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010132extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010133extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010134int
10135main ()
10136{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010137bindtextdomain ("", "");
10138return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010144if { (ac_try="$ac_link"
10145case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148esac
10149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010156 (exit $ac_status); } && {
10157 test -z "$ac_c_werror_flag" ||
10158 test ! -s conftest.err
10159 } && test -s conftest$ac_exeext &&
10160 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010161 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010163 echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010165
Theodore Ts'oe1052142006-10-21 21:46:47 -040010166 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010168
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010170 conftest$ac_exeext conftest.$ac_ext
10171fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010172{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10173echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010174
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010175 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010176
10177
10178
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010179 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010180
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 acl_save_exec_prefix="$exec_prefix"
10184 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010185
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010186 eval additional_includedir=\"$includedir\"
10187 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010188
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010189 exec_prefix="$acl_save_exec_prefix"
10190 prefix="$acl_save_prefix"
10191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010192
Theodore Ts'oe1052142006-10-21 21:46:47 -040010193# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010194if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010195 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010196 if test "X$withval" = "Xno"; then
10197 use_additional=no
10198 else
10199 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010201 acl_save_prefix="$prefix"
10202 prefix="$acl_final_prefix"
10203 acl_save_exec_prefix="$exec_prefix"
10204 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010205
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010206 eval additional_includedir=\"$includedir\"
10207 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010208
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010209 exec_prefix="$acl_save_exec_prefix"
10210 prefix="$acl_save_prefix"
10211
10212 else
10213 additional_includedir="$withval/include"
10214 additional_libdir="$withval/lib"
10215 fi
10216 fi
10217
Theodore Ts'oe1052142006-10-21 21:46:47 -040010218fi
10219
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010220 LIBINTL=
10221 LTLIBINTL=
10222 INCINTL=
10223 rpathdirs=
10224 ltrpathdirs=
10225 names_already_handled=
10226 names_next_round='intl '
10227 while test -n "$names_next_round"; do
10228 names_this_round="$names_next_round"
10229 names_next_round=
10230 for name in $names_this_round; do
10231 already_handled=
10232 for n in $names_already_handled; do
10233 if test "$n" = "$name"; then
10234 already_handled=yes
10235 break
10236 fi
10237 done
10238 if test -z "$already_handled"; then
10239 names_already_handled="$names_already_handled $name"
10240 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10241 eval value=\"\$HAVE_LIB$uppername\"
10242 if test -n "$value"; then
10243 if test "$value" = yes; then
10244 eval value=\"\$LIB$uppername\"
10245 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10246 eval value=\"\$LTLIB$uppername\"
10247 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10248 else
10249 :
10250 fi
10251 else
10252 found_dir=
10253 found_la=
10254 found_so=
10255 found_a=
10256 if test $use_additional = yes; then
10257 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10258 found_dir="$additional_libdir"
10259 found_so="$additional_libdir/lib$name.$shlibext"
10260 if test -f "$additional_libdir/lib$name.la"; then
10261 found_la="$additional_libdir/lib$name.la"
10262 fi
10263 else
10264 if test -f "$additional_libdir/lib$name.$libext"; then
10265 found_dir="$additional_libdir"
10266 found_a="$additional_libdir/lib$name.$libext"
10267 if test -f "$additional_libdir/lib$name.la"; then
10268 found_la="$additional_libdir/lib$name.la"
10269 fi
10270 fi
10271 fi
10272 fi
10273 if test "X$found_dir" = "X"; then
10274 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010275
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010276 acl_save_prefix="$prefix"
10277 prefix="$acl_final_prefix"
10278 acl_save_exec_prefix="$exec_prefix"
10279 exec_prefix="$acl_final_exec_prefix"
10280 eval x=\"$x\"
10281 exec_prefix="$acl_save_exec_prefix"
10282 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010283
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010284 case "$x" in
10285 -L*)
10286 dir=`echo "X$x" | sed -e 's/^X-L//'`
10287 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10288 found_dir="$dir"
10289 found_so="$dir/lib$name.$shlibext"
10290 if test -f "$dir/lib$name.la"; then
10291 found_la="$dir/lib$name.la"
10292 fi
10293 else
10294 if test -f "$dir/lib$name.$libext"; then
10295 found_dir="$dir"
10296 found_a="$dir/lib$name.$libext"
10297 if test -f "$dir/lib$name.la"; then
10298 found_la="$dir/lib$name.la"
10299 fi
10300 fi
10301 fi
10302 ;;
10303 esac
10304 if test "X$found_dir" != "X"; then
10305 break
10306 fi
10307 done
10308 fi
10309 if test "X$found_dir" != "X"; then
10310 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10311 if test "X$found_so" != "X"; then
10312 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10313 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10314 else
10315 haveit=
10316 for x in $ltrpathdirs; do
10317 if test "X$x" = "X$found_dir"; then
10318 haveit=yes
10319 break
10320 fi
10321 done
10322 if test -z "$haveit"; then
10323 ltrpathdirs="$ltrpathdirs $found_dir"
10324 fi
10325 if test "$hardcode_direct" = yes; then
10326 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10327 else
10328 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10330 haveit=
10331 for x in $rpathdirs; do
10332 if test "X$x" = "X$found_dir"; then
10333 haveit=yes
10334 break
10335 fi
10336 done
10337 if test -z "$haveit"; then
10338 rpathdirs="$rpathdirs $found_dir"
10339 fi
10340 else
10341 haveit=
10342 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010343
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010344 acl_save_prefix="$prefix"
10345 prefix="$acl_final_prefix"
10346 acl_save_exec_prefix="$exec_prefix"
10347 exec_prefix="$acl_final_exec_prefix"
10348 eval x=\"$x\"
10349 exec_prefix="$acl_save_exec_prefix"
10350 prefix="$acl_save_prefix"
10351
10352 if test "X$x" = "X-L$found_dir"; then
10353 haveit=yes
10354 break
10355 fi
10356 done
10357 if test -z "$haveit"; then
10358 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10359 fi
10360 if test "$hardcode_minus_L" != no; then
10361 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10362 else
10363 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10364 fi
10365 fi
10366 fi
10367 fi
10368 else
10369 if test "X$found_a" != "X"; then
10370 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10371 else
10372 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10373 fi
10374 fi
10375 additional_includedir=
10376 case "$found_dir" in
10377 */lib | */lib/)
10378 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10379 additional_includedir="$basedir/include"
10380 ;;
10381 esac
10382 if test "X$additional_includedir" != "X"; then
10383 if test "X$additional_includedir" != "X/usr/include"; then
10384 haveit=
10385 if test "X$additional_includedir" = "X/usr/local/include"; then
10386 if test -n "$GCC"; then
10387 case $host_os in
10388 linux*) haveit=yes;;
10389 esac
10390 fi
10391 fi
10392 if test -z "$haveit"; then
10393 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010394
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010395 acl_save_prefix="$prefix"
10396 prefix="$acl_final_prefix"
10397 acl_save_exec_prefix="$exec_prefix"
10398 exec_prefix="$acl_final_exec_prefix"
10399 eval x=\"$x\"
10400 exec_prefix="$acl_save_exec_prefix"
10401 prefix="$acl_save_prefix"
10402
10403 if test "X$x" = "X-I$additional_includedir"; then
10404 haveit=yes
10405 break
10406 fi
10407 done
10408 if test -z "$haveit"; then
10409 if test -d "$additional_includedir"; then
10410 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10411 fi
10412 fi
10413 fi
10414 fi
10415 fi
10416 if test -n "$found_la"; then
10417 save_libdir="$libdir"
10418 case "$found_la" in
10419 */* | *\\*) . "$found_la" ;;
10420 *) . "./$found_la" ;;
10421 esac
10422 libdir="$save_libdir"
10423 for dep in $dependency_libs; do
10424 case "$dep" in
10425 -L*)
10426 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10427 if test "X$additional_libdir" != "X/usr/lib"; then
10428 haveit=
10429 if test "X$additional_libdir" = "X/usr/local/lib"; then
10430 if test -n "$GCC"; then
10431 case $host_os in
10432 linux*) haveit=yes;;
10433 esac
10434 fi
10435 fi
10436 if test -z "$haveit"; then
10437 haveit=
10438 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010439
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010440 acl_save_prefix="$prefix"
10441 prefix="$acl_final_prefix"
10442 acl_save_exec_prefix="$exec_prefix"
10443 exec_prefix="$acl_final_exec_prefix"
10444 eval x=\"$x\"
10445 exec_prefix="$acl_save_exec_prefix"
10446 prefix="$acl_save_prefix"
10447
10448 if test "X$x" = "X-L$additional_libdir"; then
10449 haveit=yes
10450 break
10451 fi
10452 done
10453 if test -z "$haveit"; then
10454 if test -d "$additional_libdir"; then
10455 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10456 fi
10457 fi
10458 haveit=
10459 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010460
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010461 acl_save_prefix="$prefix"
10462 prefix="$acl_final_prefix"
10463 acl_save_exec_prefix="$exec_prefix"
10464 exec_prefix="$acl_final_exec_prefix"
10465 eval x=\"$x\"
10466 exec_prefix="$acl_save_exec_prefix"
10467 prefix="$acl_save_prefix"
10468
10469 if test "X$x" = "X-L$additional_libdir"; then
10470 haveit=yes
10471 break
10472 fi
10473 done
10474 if test -z "$haveit"; then
10475 if test -d "$additional_libdir"; then
10476 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10477 fi
10478 fi
10479 fi
10480 fi
10481 ;;
10482 -R*)
10483 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10484 if test "$enable_rpath" != no; then
10485 haveit=
10486 for x in $rpathdirs; do
10487 if test "X$x" = "X$dir"; then
10488 haveit=yes
10489 break
10490 fi
10491 done
10492 if test -z "$haveit"; then
10493 rpathdirs="$rpathdirs $dir"
10494 fi
10495 haveit=
10496 for x in $ltrpathdirs; do
10497 if test "X$x" = "X$dir"; then
10498 haveit=yes
10499 break
10500 fi
10501 done
10502 if test -z "$haveit"; then
10503 ltrpathdirs="$ltrpathdirs $dir"
10504 fi
10505 fi
10506 ;;
10507 -l*)
10508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10509 ;;
10510 *.la)
10511 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10512 ;;
10513 *)
10514 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10516 ;;
10517 esac
10518 done
10519 fi
10520 else
10521 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10522 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10523 fi
10524 fi
10525 fi
10526 done
10527 done
10528 if test "X$rpathdirs" != "X"; then
10529 if test -n "$hardcode_libdir_separator"; then
10530 alldirs=
10531 for found_dir in $rpathdirs; do
10532 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10533 done
10534 acl_save_libdir="$libdir"
10535 libdir="$alldirs"
10536 eval flag=\"$hardcode_libdir_flag_spec\"
10537 libdir="$acl_save_libdir"
10538 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10539 else
10540 for found_dir in $rpathdirs; do
10541 acl_save_libdir="$libdir"
10542 libdir="$found_dir"
10543 eval flag=\"$hardcode_libdir_flag_spec\"
10544 libdir="$acl_save_libdir"
10545 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10546 done
10547 fi
10548 fi
10549 if test "X$ltrpathdirs" != "X"; then
10550 for found_dir in $ltrpathdirs; do
10551 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10552 done
10553 fi
10554
Theodore Ts'oe1052142006-10-21 21:46:47 -040010555 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10556echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010557if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010559else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010560 gt_save_CPPFLAGS="$CPPFLAGS"
10561 CPPFLAGS="$CPPFLAGS $INCINTL"
10562 gt_save_LIBS="$LIBS"
10563 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010564 cat >conftest.$ac_ext <<_ACEOF
10565/* confdefs.h. */
10566_ACEOF
10567cat confdefs.h >>conftest.$ac_ext
10568cat >>conftest.$ac_ext <<_ACEOF
10569/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010570#include <libintl.h>
10571extern int _nl_msg_cat_cntr;
10572extern
10573#ifdef __cplusplus
10574"C"
10575#endif
10576const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577int
10578main ()
10579{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010580bindtextdomain ("", "");
10581return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010582 ;
10583 return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010587if { (ac_try="$ac_link"
10588case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591esac
10592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010599 (exit $ac_status); } && {
10600 test -z "$ac_c_werror_flag" ||
10601 test ! -s conftest.err
10602 } && test -s conftest$ac_exeext &&
10603 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010604 gt_cv_func_gnugettext1_libintl=yes
10605else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010606 echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
Theodore Ts'oe1052142006-10-21 21:46:47 -040010609 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010611
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010613 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010614 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10615 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010616 cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h. */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010622#include <libintl.h>
10623extern int _nl_msg_cat_cntr;
10624extern
10625#ifdef __cplusplus
10626"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010627#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010628const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010629int
10630main ()
10631{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010632bindtextdomain ("", "");
10633return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010634 ;
10635 return 0;
10636}
10637_ACEOF
10638rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010639if { (ac_try="$ac_link"
10640case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10643esac
10644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest$ac_exeext &&
10655 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010656 LIBINTL="$LIBINTL $LIBICONV"
10657 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10658 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010659
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010660else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661 echo "$as_me: failed program was:" >&5
10662sed 's/^/| /' conftest.$ac_ext >&5
10663
Theodore Ts'oe1052142006-10-21 21:46:47 -040010664
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010665fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010666
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010669 fi
10670 CPPFLAGS="$gt_save_CPPFLAGS"
10671 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010672fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010673{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10674echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010675 fi
10676
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010677 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10678 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010679 && test "$PACKAGE" != gettext-runtime \
10680 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010681 gt_use_preinstalled_gnugettext=yes
10682 else
10683 LIBINTL=
10684 LTLIBINTL=
10685 INCINTL=
10686 fi
10687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010688
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010689 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10690 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010691 fi
10692 fi
10693
10694 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010695 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010696 USE_INCLUDED_LIBINTL=yes
10697 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10698 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10699 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010700 fi
10701
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010702 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10703 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10704 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010705 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010706
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010707
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010708 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10709 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010710
10711cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010712#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010713_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010714
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010715 else
10716 USE_NLS=no
10717 fi
10718 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010719
Theodore Ts'oe1052142006-10-21 21:46:47 -040010720 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10721echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10722 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10723echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010724 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010725 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10726echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010727 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10728 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10729 gt_source="external libintl"
10730 else
10731 gt_source="libc"
10732 fi
10733 else
10734 gt_source="included intl directory"
10735 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010736 { echo "$as_me:$LINENO: result: $gt_source" >&5
10737echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010738 fi
10739
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010740 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010741
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010742 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10743 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010744 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10745echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10746 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10747echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010749 for element in $INCINTL; do
10750 haveit=
10751 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010753 acl_save_prefix="$prefix"
10754 prefix="$acl_final_prefix"
10755 acl_save_exec_prefix="$exec_prefix"
10756 exec_prefix="$acl_final_exec_prefix"
10757 eval x=\"$x\"
10758 exec_prefix="$acl_save_exec_prefix"
10759 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010760
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010761 if test "X$x" = "X$element"; then
10762 haveit=yes
10763 break
10764 fi
10765 done
10766 if test -z "$haveit"; then
10767 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10768 fi
10769 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010770
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010771 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010772
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010773
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010774cat >>confdefs.h <<\_ACEOF
10775#define HAVE_GETTEXT 1
10776_ACEOF
10777
10778
10779cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010780#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010782
10783 fi
10784
10785 POSUB=po
10786 fi
10787
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010788
10789 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010790 BUILD_INCLUDED_LIBINTL=yes
10791 fi
10792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010793
10794
10795
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010796
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010797 nls_cv_header_intl=
10798 nls_cv_header_libgt=
10799
10800 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010801
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010802
10803 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010804
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010805
10806 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010807
10808
10809 if test "$USE_INCLUDED_LIBINTL" = yes; then
10810 INTLOBJS="\$(GETTOBJS)"
10811 fi
10812
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010813
10814 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010815
10816
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010817
10818 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010819
10820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821
10822
10823
10824
10825
Theodore Ts'oe1052142006-10-21 21:46:47 -040010826{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10827echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10828set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10829if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010830 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010831else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010832 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010833SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010834all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010835 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010836_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010837# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010838case `${MAKE-make} -f conftest.make 2>/dev/null` in
10839 *@@@%%%=?*=@@@%%%*)
10840 eval ac_cv_prog_make_${ac_make}_set=yes;;
10841 *)
10842 eval ac_cv_prog_make_${ac_make}_set=no;;
10843esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010844rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010845fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010846if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10847 { echo "$as_me:$LINENO: result: yes" >&5
10848echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010849 SET_MAKE=
10850else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010851 { echo "$as_me:$LINENO: result: no" >&5
10852echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010853 SET_MAKE="MAKE=${MAKE-make}"
10854fi
10855
10856# Extract the first word of "ln", so it can be a program name with args.
10857set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010860if test "${ac_cv_path_LN+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010862else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010863 case $LN in
10864 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010865 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10866 ;;
10867 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $PATH
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010874 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 -050010875 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10878 fi
10879done
10880done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010881IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010882
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010883 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10884 ;;
10885esac
10886fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010887LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010888if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010889 { echo "$as_me:$LINENO: result: $LN" >&5
10890echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010891else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010892 { echo "$as_me:$LINENO: result: no" >&5
10893echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010894fi
10895
Theodore Ts'oe1052142006-10-21 21:46:47 -040010896
10897{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10898echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010899LN_S=$as_ln_s
10900if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010901 { echo "$as_me:$LINENO: result: yes" >&5
10902echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010903else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010904 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10905echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010906fi
10907
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010908# Extract the first word of "mv", so it can be a program name with args.
10909set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010912if test "${ac_cv_path_MV+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010914else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010915 case $MV in
10916 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010917 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10918 ;;
10919 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010926 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 -050010927 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 break 2
10930 fi
10931done
10932done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010934
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010935 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10936 ;;
10937esac
10938fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010939MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010940if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010941 { echo "$as_me:$LINENO: result: $MV" >&5
10942echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010943else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010944 { echo "$as_me:$LINENO: result: no" >&5
10945echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010946fi
10947
Theodore Ts'oe1052142006-10-21 21:46:47 -040010948
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010949# Extract the first word of "cp", so it can be a program name with args.
10950set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010953if test "${ac_cv_path_CP+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010955else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010956 case $CP in
10957 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010958 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10959 ;;
10960 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962for as_dir in $PATH
10963do
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010967 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 -050010968 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10970 break 2
10971 fi
10972done
10973done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010974IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010975
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010976 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10977 ;;
10978esac
10979fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010980CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010981if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010982 { echo "$as_me:$LINENO: result: $CP" >&5
10983echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010984else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010985 { echo "$as_me:$LINENO: result: no" >&5
10986echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010987fi
10988
Theodore Ts'oe1052142006-10-21 21:46:47 -040010989
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010990# Extract the first word of "rm", so it can be a program name with args.
10991set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010994if test "${ac_cv_path_RM+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010996else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010997 case $RM in
10998 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010999 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11000 ;;
11001 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011008 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 -050011009 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11012 fi
11013done
11014done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011015IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011016
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011017 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11018 ;;
11019esac
11020fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011021RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011022if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011023 { echo "$as_me:$LINENO: result: $RM" >&5
11024echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011025else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011026 { echo "$as_me:$LINENO: result: no" >&5
11027echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011028fi
11029
Theodore Ts'oe1052142006-10-21 21:46:47 -040011030
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011031# Extract the first word of "chmod", so it can be a program name with args.
11032set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011035if test "${ac_cv_path_CHMOD+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011037else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011038 case $CHMOD in
11039 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011040 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11041 ;;
11042 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044for as_dir in $PATH
11045do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011049 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 -050011050 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054done
11055done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011056IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011057
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011058 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11059 ;;
11060esac
11061fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011062CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011063if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011064 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11065echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011066else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011067 { echo "$as_me:$LINENO: result: no" >&5
11068echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011069fi
11070
Theodore Ts'oe1052142006-10-21 21:46:47 -040011071
Theodore Ts'o32237012005-01-17 19:13:39 -050011072for ac_prog in gawk mawk nawk awk
11073do
11074 # Extract the first word of "$ac_prog", so it can be a program name with args.
11075set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011078if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011079 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011080else
Theodore Ts'o32237012005-01-17 19:13:39 -050011081 if test -n "$AWK"; then
11082 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11083else
11084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011085for as_dir in $PATH
11086do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011090 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 -050011091 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 break 2
11094 fi
11095done
11096done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011097IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011098
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011099fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011100fi
11101AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011102if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011103 { echo "$as_me:$LINENO: result: $AWK" >&5
11104echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011105else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011106 { echo "$as_me:$LINENO: result: no" >&5
11107echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011108fi
11109
Theodore Ts'oe1052142006-10-21 21:46:47 -040011110
Theodore Ts'o32237012005-01-17 19:13:39 -050011111 test -n "$AWK" && break
11112done
11113
Theodore Ts'oe1052142006-10-21 21:46:47 -040011114{ echo "$as_me:$LINENO: checking for egrep" >&5
11115echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11116if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011119 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11120 then ac_cv_path_EGREP="$GREP -E"
11121 else
11122 # Extract the first word of "egrep" to use in msg output
11123if test -z "$EGREP"; then
11124set dummy egrep; ac_prog_name=$2
11125if test "${ac_cv_path_EGREP+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127else
11128 ac_path_EGREP_found=false
11129# Loop through the user's path and test for each of PROGNAME-LIST
11130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11132do
11133 IFS=$as_save_IFS
11134 test -z "$as_dir" && as_dir=.
11135 for ac_prog in egrep; do
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011138 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011139 # Check for GNU ac_path_EGREP and select it if it is found.
11140 # Check for GNU $ac_path_EGREP
11141case `"$ac_path_EGREP" --version 2>&1` in
11142*GNU*)
11143 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11144*)
11145 ac_count=0
11146 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11147 while :
11148 do
11149 cat "conftest.in" "conftest.in" >"conftest.tmp"
11150 mv "conftest.tmp" "conftest.in"
11151 cp "conftest.in" "conftest.nl"
11152 echo 'EGREP' >> "conftest.nl"
11153 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11155 ac_count=`expr $ac_count + 1`
11156 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11157 # Best one so far, save it but keep looking for a better one
11158 ac_cv_path_EGREP="$ac_path_EGREP"
11159 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011160 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011161 # 10*(2^10) chars as input seems more than enough
11162 test $ac_count -gt 10 && break
11163 done
11164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11165esac
11166
11167
11168 $ac_path_EGREP_found && break 3
11169 done
11170done
11171
11172done
11173IFS=$as_save_IFS
11174
11175
Theodore Ts'o32237012005-01-17 19:13:39 -050011176fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011177
11178EGREP="$ac_cv_path_EGREP"
11179if test -z "$EGREP"; then
11180 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11181echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11182 { (exit 1); exit 1; }; }
11183fi
11184
11185else
11186 ac_cv_path_EGREP=$EGREP
11187fi
11188
11189
11190 fi
11191fi
11192{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11193echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11194 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011195
11196
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011197# Extract the first word of "sed", so it can be a program name with args.
11198set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011199{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011201if test "${ac_cv_path_SED+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011203else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011204 case $SED in
11205 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011206 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11207 ;;
11208 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210for as_dir in $PATH
11211do
11212 IFS=$as_save_IFS
11213 test -z "$as_dir" && as_dir=.
11214 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011215 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 -050011216 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 break 2
11219 fi
11220done
11221done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011222IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011223
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011224 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11225 ;;
11226esac
11227fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011228SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011229if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011230 { echo "$as_me:$LINENO: result: $SED" >&5
11231echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011232else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011233 { echo "$as_me:$LINENO: result: no" >&5
11234echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011235fi
11236
Theodore Ts'oe1052142006-10-21 21:46:47 -040011237
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011238# Extract the first word of "perl", so it can be a program name with args.
11239set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011242if test "${ac_cv_path_PERL+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011244else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011245 case $PERL in
11246 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011247 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11248 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011249 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $PATH
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011256 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 -050011257 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 break 2
11260 fi
11261done
11262done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011263IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011264
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011265 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11266 ;;
11267esac
11268fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011269PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011270if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011271 { echo "$as_me:$LINENO: result: $PERL" >&5
11272echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011273else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011274 { echo "$as_me:$LINENO: result: no" >&5
11275echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011276fi
11277
Theodore Ts'oe1052142006-10-21 21:46:47 -040011278
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011279# Extract the first word of "ldconfig", so it can be a program name with args.
11280set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011283if test "${ac_cv_path_LDCONFIG+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011285else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011286 case $LDCONFIG in
11287 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011288 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11289 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011290 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011298 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11301 fi
11302done
11303done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011304IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011305
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011306 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11307 ;;
11308esac
11309fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011310LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011311if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011312 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11313echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011314else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011315 { echo "$as_me:$LINENO: result: no" >&5
11316echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011317fi
11318
Theodore Ts'oe1052142006-10-21 21:46:47 -040011319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011320if test -n "$ac_tool_prefix"; then
11321 # 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 +000011322set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325if test "${ac_cv_prog_AR+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011327else
11328 if test -n "$AR"; then
11329 ac_cv_prog_AR="$AR" # Let the user override the test.
11330else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011337 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 -050011338 ac_cv_prog_AR="${ac_tool_prefix}ar"
11339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11341 fi
11342done
11343done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011344IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011345
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011346fi
11347fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011349if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011350 { echo "$as_me:$LINENO: result: $AR" >&5
11351echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011352else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011353 { echo "$as_me:$LINENO: result: no" >&5
11354echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011355fi
11356
Theodore Ts'oe1052142006-10-21 21:46:47 -040011357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011358fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011359if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011360 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011361 # Extract the first word of "ar", so it can be a program name with args.
11362set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011365if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011367else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368 if test -n "$ac_ct_AR"; then
11369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011370else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372for as_dir in $PATH
11373do
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011377 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 -050011378 ac_cv_prog_ac_ct_AR="ar"
11379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 break 2
11381 fi
11382done
11383done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011384IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011386fi
11387fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388ac_ct_AR=$ac_cv_prog_ac_ct_AR
11389if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011390 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11391echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011392else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011393 { echo "$as_me:$LINENO: result: no" >&5
11394echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011395fi
11396
Theodore Ts'oe1052142006-10-21 21:46:47 -040011397 if test "x$ac_ct_AR" = x; then
11398 AR="ar"
11399 else
11400 case $cross_compiling:$ac_tool_warned in
11401yes:)
11402{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11403whose name does not start with the host triplet. If you think this
11404configuration is useful to you, please write to autoconf@gnu.org." >&5
11405echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11406whose name does not start with the host triplet. If you think this
11407configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11408ac_tool_warned=yes ;;
11409esac
11410 AR=$ac_ct_AR
11411 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011412else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011414fi
11415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011416if test -n "$ac_tool_prefix"; then
11417 # 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 +000011418set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011421if test "${ac_cv_prog_RANLIB+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011423else
11424 if test -n "$RANLIB"; then
11425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11426else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in $PATH
11429do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011433 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 -050011434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11437 fi
11438done
11439done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011440IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011441
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011442fi
11443fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011444RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011445if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011446 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11447echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011448else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011449 { echo "$as_me:$LINENO: result: no" >&5
11450echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011451fi
11452
Theodore Ts'oe1052142006-10-21 21:46:47 -040011453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011454fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011455if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011457 # Extract the first word of "ranlib", so it can be a program name with args.
11458set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011463else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011464 if test -n "$ac_ct_RANLIB"; then
11465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011466else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468for as_dir in $PATH
11469do
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011473 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 -050011474 ac_cv_prog_ac_ct_RANLIB="ranlib"
11475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11477 fi
11478done
11479done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011480IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011481
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011482fi
11483fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11485if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011486 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11487echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011488else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011489 { echo "$as_me:$LINENO: result: no" >&5
11490echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011491fi
11492
Theodore Ts'oe1052142006-10-21 21:46:47 -040011493 if test "x$ac_ct_RANLIB" = x; then
11494 RANLIB=":"
11495 else
11496 case $cross_compiling:$ac_tool_warned in
11497yes:)
11498{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11499whose name does not start with the host triplet. If you think this
11500configuration is useful to you, please write to autoconf@gnu.org." >&5
11501echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11502whose name does not start with the host triplet. If you think this
11503configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11504ac_tool_warned=yes ;;
11505esac
11506 RANLIB=$ac_ct_RANLIB
11507 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011508else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011509 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011510fi
11511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011512if test -n "$ac_tool_prefix"; then
11513 # 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 +000011514set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011517if test "${ac_cv_prog_STRIP+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011519else
11520 if test -n "$STRIP"; then
11521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11522else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011529 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 -050011530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534done
11535done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011536IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011537
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011538fi
11539fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011540STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011541if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011542 { echo "$as_me:$LINENO: result: $STRIP" >&5
11543echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011544else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011545 { echo "$as_me:$LINENO: result: no" >&5
11546echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011547fi
11548
Theodore Ts'oe1052142006-10-21 21:46:47 -040011549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011551if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011553 # Extract the first word of "strip", so it can be a program name with args.
11554set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011557if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011559else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011560 if test -n "$ac_ct_STRIP"; then
11561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011562else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011569 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 -050011570 ac_cv_prog_ac_ct_STRIP="strip"
11571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574done
11575done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011576IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011577
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011578fi
11579fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11581if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011582 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11583echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011584else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011585 { echo "$as_me:$LINENO: result: no" >&5
11586echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011587fi
11588
Theodore Ts'oe1052142006-10-21 21:46:47 -040011589 if test "x$ac_ct_STRIP" = x; then
11590 STRIP=":"
11591 else
11592 case $cross_compiling:$ac_tool_warned in
11593yes:)
11594{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11595whose name does not start with the host triplet. If you think this
11596configuration is useful to you, please write to autoconf@gnu.org." >&5
11597echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11598whose name does not start with the host triplet. If you think this
11599configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11600ac_tool_warned=yes ;;
11601esac
11602 STRIP=$ac_ct_STRIP
11603 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011604else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011605 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606fi
11607
Manish Katiyar7321d942008-04-14 17:20:03 +053011608# Extract the first word of "makeinfo", so it can be a program name with args.
11609set dummy makeinfo; ac_word=$2
11610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11612if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614else
11615 if test -n "$MAKEINFO"; then
11616 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11617else
11618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625 ac_cv_prog_MAKEINFO="makeinfo"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11628 fi
11629done
11630done
11631IFS=$as_save_IFS
11632
11633fi
11634fi
11635MAKEINFO=$ac_cv_prog_MAKEINFO
11636if test -n "$MAKEINFO"; then
11637 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11638echo "${ECHO_T}$MAKEINFO" >&6; }
11639else
11640 { echo "$as_me:$LINENO: result: no" >&5
11641echo "${ECHO_T}no" >&6; }
11642fi
11643
11644
11645if test "_$MAKEINFO" = "_"; then
11646 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11647else
11648 case "$MAKEINFO" in
11649 */missing.*)
11650 { echo "$as_me:$LINENO: WARNING:
11651*** Makeinfo is missing. Info documentation will not be built." >&5
11652echo "$as_me: WARNING:
11653*** Makeinfo is missing. Info documentation will not be built." >&2;}
11654 ;;
11655 *)
11656 ;;
11657 esac
11658fi
11659
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011660# Find a good install program. We prefer a C program (faster),
11661# so one script is as good as another. But avoid the broken or
11662# incompatible versions:
11663# SysV /etc/install, /usr/sbin/install
11664# SunOS /usr/etc/install
11665# IRIX /sbin/install
11666# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011667# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011669# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011672# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011673{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11674echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011675if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011676if test "${ac_cv_path_install+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011678else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680for as_dir in $PATH
11681do
11682 IFS=$as_save_IFS
11683 test -z "$as_dir" && as_dir=.
11684 # Account for people who put trailing slashes in PATH elements.
11685case $as_dir/ in
11686 ./ | .// | /cC/* | \
11687 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11688 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11689 /usr/ucb/* ) ;;
11690 *)
11691 # OSF1 and SCO ODT 3.0 have their own names for install.
11692 # Don't use installbsd from OSF since it installs stuff as root
11693 # by default.
11694 for ac_prog in ginstall scoinst install; do
11695 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011696 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 +000011697 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011699 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011700 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011701 elif test $ac_prog = install &&
11702 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11703 # program-specific install script used by HP pwplus--don't use.
11704 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011705 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011706 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11707 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011708 fi
11709 fi
11710 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011711 done
11712 ;;
11713esac
11714done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011715IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011716
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011717
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011719 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011720 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011721 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011722 # As a last resort, use the slow shell script. Don't cache a
11723 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011724 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011725 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011726 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011727 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011729{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11730echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011731
11732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11733# It thinks the first close brace ends the variable substitution.
11734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011737
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11739
Theodore Ts'o6c133521999-07-03 20:37:03 +000011740# See if we need a separate native compiler.
11741if test $cross_compiling = no; then
11742 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011743
Theodore Ts'o6c133521999-07-03 20:37:03 +000011744else
11745 for ac_prog in gcc cc
11746do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011747 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011748set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011751if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011753else
11754 if test -n "$BUILD_CC"; then
11755 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11756else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011763 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 -050011764 ac_cv_prog_BUILD_CC="$ac_prog"
11765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011769done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011770IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011772fi
11773fi
11774BUILD_CC=$ac_cv_prog_BUILD_CC
11775if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011776 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11777echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011778else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011779 { echo "$as_me:$LINENO: result: no" >&5
11780echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011781fi
11782
Theodore Ts'oe1052142006-10-21 21:46:47 -040011783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011784 test -n "$BUILD_CC" && break
11785done
11786
11787fi
11788
Theodore Ts'o740837d2007-12-16 17:21:38 -050011789
11790
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011819
Theodore Ts'o106ad962007-04-04 21:26:37 -040011820
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011821
11822
Theodore Ts'o3d058022008-07-12 22:06:30 -040011823
11824for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/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 -050011825do
11826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831 echo $ECHO_N "(cached) $ECHO_C" >&6
11832fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011833ac_res=`eval echo '${'$as_ac_Header'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011836else
11837 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011840cat >conftest.$ac_ext <<_ACEOF
11841/* confdefs.h. */
11842_ACEOF
11843cat confdefs.h >>conftest.$ac_ext
11844cat >>conftest.$ac_ext <<_ACEOF
11845/* end confdefs.h. */
11846$ac_includes_default
11847#include <$ac_header>
11848_ACEOF
11849rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011850if { (ac_try="$ac_compile"
11851case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854esac
11855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011862 (exit $ac_status); } && {
11863 test -z "$ac_c_werror_flag" ||
11864 test ! -s conftest.err
11865 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011866 ac_header_compiler=yes
11867else
11868 echo "$as_me: failed program was:" >&5
11869sed 's/^/| /' conftest.$ac_ext >&5
11870
Theodore Ts'oe1052142006-10-21 21:46:47 -040011871 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011873
11874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11876echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011877
11878# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011879{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011881cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887#include <$ac_header>
11888_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011889if { (ac_try="$ac_cpp conftest.$ac_ext"
11890case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11893esac
11894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011901 (exit $ac_status); } >/dev/null && {
11902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11903 test ! -s conftest.err
11904 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905 ac_header_preproc=yes
11906else
11907 echo "$as_me: failed program was:" >&5
11908sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_header_preproc=no
11911fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011913rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11915echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011916
11917# So? What about this header?
11918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11919 yes:no: )
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11924 ac_header_preproc=yes
11925 ;;
11926 no:yes:* )
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011940 ;;
11941esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011942{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
11947 eval "$as_ac_Header=\$ac_header_preproc"
11948fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011949ac_res=`eval echo '${'$as_ac_Header'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011952
11953fi
11954if test `eval echo '${'$as_ac_Header'}'` = yes; then
11955 cat >>confdefs.h <<_ACEOF
11956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11957_ACEOF
11958
11959fi
11960
11961done
11962
11963
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011964
11965for ac_header in sys/disk.h sys/mount.h
11966do
11967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011968{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972else
11973 cat >conftest.$ac_ext <<_ACEOF
11974/* confdefs.h. */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h. */
11979
11980#if HAVE_SYS_QUEUE_H
11981#include <sys/queue.h>
11982#endif
11983
11984
11985#include <$ac_header>
11986_ACEOF
11987rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011988if { (ac_try="$ac_compile"
11989case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992esac
11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012004 eval "$as_ac_Header=yes"
12005else
12006 echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
Theodore Ts'oe1052142006-10-21 21:46:47 -040012009 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012011
12012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012013fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012014ac_res=`eval echo '${'$as_ac_Header'}'`
12015 { echo "$as_me:$LINENO: result: $ac_res" >&5
12016echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012017if test `eval echo '${'$as_ac_Header'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12020_ACEOF
12021
12022fi
12023
12024done
12025
12026
12027for ac_header in net/if.h
12028do
12029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 cat >conftest.$ac_ext <<_ACEOF
12036/* confdefs.h. */
12037_ACEOF
12038cat confdefs.h >>conftest.$ac_ext
12039cat >>conftest.$ac_ext <<_ACEOF
12040/* end confdefs.h. */
12041
12042#if HAVE_SYS_TYPES_H
12043#include <sys/types.h>
12044#endif
12045#if HAVE_SYS_SOCKET
12046#include <sys/socket.h>
12047#endif
12048
12049
12050#include <$ac_header>
12051_ACEOF
12052rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012053if { (ac_try="$ac_compile"
12054case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012069 eval "$as_ac_Header=yes"
12070else
12071 echo "$as_me: failed program was:" >&5
12072sed 's/^/| /' conftest.$ac_ext >&5
12073
Theodore Ts'oe1052142006-10-21 21:46:47 -040012074 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012075fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012076
12077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012079ac_res=`eval echo '${'$as_ac_Header'}'`
12080 { echo "$as_me:$LINENO: result: $ac_res" >&5
12081echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012082if test `eval echo '${'$as_ac_Header'}'` = yes; then
12083 cat >>confdefs.h <<_ACEOF
12084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12085_ACEOF
12086
12087fi
12088
12089done
12090
12091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092for ac_func in vprintf
12093do
12094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012095{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12097if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098 echo $ECHO_N "(cached) $ECHO_C" >&6
12099else
12100 cat >conftest.$ac_ext <<_ACEOF
12101/* confdefs.h. */
12102_ACEOF
12103cat confdefs.h >>conftest.$ac_ext
12104cat >>conftest.$ac_ext <<_ACEOF
12105/* end confdefs.h. */
12106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12108#define $ac_func innocuous_$ac_func
12109
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012110/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012111 which can conflict with char $ac_func (); below.
12112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12113 <limits.h> exists even on freestanding compilers. */
12114
12115#ifdef __STDC__
12116# include <limits.h>
12117#else
12118# include <assert.h>
12119#endif
12120
12121#undef $ac_func
12122
Theodore Ts'oe1052142006-10-21 21:46:47 -040012123/* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012126#ifdef __cplusplus
12127extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012128#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012130/* The GNU C library defines this for functions which it implements
12131 to always fail with ENOSYS. Some functions are actually named
12132 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012133#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012134choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012135#endif
12136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137int
12138main ()
12139{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012140return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141 ;
12142 return 0;
12143}
12144_ACEOF
12145rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012146if { (ac_try="$ac_link"
12147case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest$ac_exeext &&
12162 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012164else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012165 echo "$as_me: failed program was:" >&5
12166sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012167
Theodore Ts'oe1052142006-10-21 21:46:47 -040012168 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012169fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012170
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172 conftest$ac_exeext conftest.$ac_ext
12173fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012174ac_res=`eval echo '${'$as_ac_var'}'`
12175 { echo "$as_me:$LINENO: result: $ac_res" >&5
12176echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012177if test `eval echo '${'$as_ac_var'}'` = yes; then
12178 cat >>confdefs.h <<_ACEOF
12179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12180_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012181
Theodore Ts'oe1052142006-10-21 21:46:47 -040012182{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12183echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184if test "${ac_cv_func__doprnt+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012187 cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
12193/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12195#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012196
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012197/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198 which can conflict with char _doprnt (); below.
12199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12200 <limits.h> exists even on freestanding compilers. */
12201
12202#ifdef __STDC__
12203# include <limits.h>
12204#else
12205# include <assert.h>
12206#endif
12207
12208#undef _doprnt
12209
Theodore Ts'oe1052142006-10-21 21:46:47 -040012210/* Override any GCC internal prototype to avoid an error.
12211 Use char because int might match the return type of a GCC
12212 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012213#ifdef __cplusplus
12214extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012217/* The GNU C library defines this for functions which it implements
12218 to always fail with ENOSYS. Some functions are actually named
12219 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012220#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012221choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012222#endif
12223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224int
12225main ()
12226{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012227return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012228 ;
12229 return 0;
12230}
12231_ACEOF
12232rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012233if { (ac_try="$ac_link"
12234case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237esac
12238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012240 ac_status=$?
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012245 (exit $ac_status); } && {
12246 test -z "$ac_c_werror_flag" ||
12247 test ! -s conftest.err
12248 } && test -s conftest$ac_exeext &&
12249 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012250 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012251else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012254
Theodore Ts'oe1052142006-10-21 21:46:47 -040012255 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012257
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012259 conftest$ac_exeext conftest.$ac_ext
12260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012261{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12262echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012263if test $ac_cv_func__doprnt = yes; then
12264
12265cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012266#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012267_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012268
12269fi
12270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012271fi
12272done
12273
12274
Theodore Ts'oe1052142006-10-21 21:46:47 -040012275{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12276echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012277if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012279else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012280 cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012286#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012288int
12289main ()
12290{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012291static struct dirent ac_aggr;
12292if (ac_aggr.d_reclen)
12293return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012294 ;
12295 return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012299if { (ac_try="$ac_compile"
12300case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012311 (exit $ac_status); } && {
12312 test -z "$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012315 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012316else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012317 echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
Theodore Ts'oe1052142006-10-21 21:46:47 -040012320 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012321/* confdefs.h. */
12322_ACEOF
12323cat confdefs.h >>conftest.$ac_ext
12324cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h. */
12326#include <dirent.h>
12327
12328int
12329main ()
12330{
12331static struct dirent ac_aggr;
12332if (sizeof ac_aggr.d_reclen)
12333return 0;
12334 ;
12335 return 0;
12336}
12337_ACEOF
12338rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012339if { (ac_try="$ac_compile"
12340case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343esac
12344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012355 ac_cv_member_struct_dirent_d_reclen=yes
12356else
12357 echo "$as_me: failed program was:" >&5
12358sed 's/^/| /' conftest.$ac_ext >&5
12359
Theodore Ts'oe1052142006-10-21 21:46:47 -040012360 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012361fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012362
12363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012364fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012365
12366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012368{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12369echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012370if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12371 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012372#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012373_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012374
12375fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012376
Theodore Ts'oe1052142006-10-21 21:46:47 -040012377{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12378echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012379if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012380 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012381else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012382 cat >conftest.$ac_ext <<_ACEOF
12383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012388#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012389
Theodore Ts'oe1052142006-10-21 21:46:47 -040012390typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012391int
12392main ()
12393{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012394if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012395 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012396if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012397 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012398 ;
12399 return 0;
12400}
12401_ACEOF
12402rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012403if { (ac_try="$ac_compile"
12404case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407esac
12408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012419 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012420else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
Theodore Ts'oe1052142006-10-21 21:46:47 -040012424 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012426
12427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012429{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12430echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012431if test $ac_cv_type_ssize_t = yes; then
12432 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012433#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012434_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012435
12436fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012437
Theodore Ts'oe1052142006-10-21 21:46:47 -040012438{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12439echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012440if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012441 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012442else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012443 cat >conftest.$ac_ext <<_ACEOF
12444/* confdefs.h. */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012449#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012451int
12452main ()
12453{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012454#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012455 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012456#endif
12457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012458 ;
12459 return 0;
12460}
12461_ACEOF
12462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012463if { (ac_try="$ac_compile"
12464case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012479 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012480else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
Theodore Ts'oe1052142006-10-21 21:46:47 -040012484 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012486
12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12490echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012491if test $ac_cv_have_decl_llseek = yes; then
12492 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012493#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012494_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012495
12496fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012497
Theodore Ts'oe1052142006-10-21 21:46:47 -040012498{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12499echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012500if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012502else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012503 cat >conftest.$ac_ext <<_ACEOF
12504/* confdefs.h. */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012509#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012510 #define _LARGEFILE64_SOURCE
12511 #include <unistd.h>
12512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513int
12514main ()
12515{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012516#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012517 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012518#endif
12519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520 ;
12521 return 0;
12522}
12523_ACEOF
12524rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012525if { (ac_try="$ac_compile"
12526case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529esac
12530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012537 (exit $ac_status); } && {
12538 test -z "$ac_c_werror_flag" ||
12539 test ! -s conftest.err
12540 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012541 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012543 echo "$as_me: failed program was:" >&5
12544sed 's/^/| /' conftest.$ac_ext >&5
12545
Theodore Ts'oe1052142006-10-21 21:46:47 -040012546 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012548
12549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012550fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012551{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12552echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012553if test $ac_cv_have_decl_lseek64 = yes; then
12554 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012555#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012556_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012557
12558fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012559
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'o488c75a2008-06-07 08:55:21 -040014427echo "/* These defines are needed for the public ext2fs.h header file */" \
14428 > public_config.h
14429if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14430 uniq tmp_config.$$ >> public_config.h
14431else
14432 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14433fi
14434if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14435 uniq tmp_config.$$ >> public_config.h
14436else
14437 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14438fi
14439rm -f tmp_config.$$
14440PUBLIC_CONFIG_HEADER=./public_config.h
14441
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014443for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014444do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014451fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014452ac_res=`eval echo '${'$as_ac_Header'}'`
14453 { echo "$as_me:$LINENO: result: $ac_res" >&5
14454echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014455else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014457{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014459cat >conftest.$ac_ext <<_ACEOF
14460/* confdefs.h. */
14461_ACEOF
14462cat confdefs.h >>conftest.$ac_ext
14463cat >>conftest.$ac_ext <<_ACEOF
14464/* end confdefs.h. */
14465$ac_includes_default
14466#include <$ac_header>
14467_ACEOF
14468rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014469if { (ac_try="$ac_compile"
14470case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14473esac
14474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014476 ac_status=$?
14477 grep -v '^ *+' conftest.er1 >conftest.err
14478 rm -f conftest.er1
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014481 (exit $ac_status); } && {
14482 test -z "$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014485 ac_header_compiler=yes
14486else
14487 echo "$as_me: failed program was:" >&5
14488sed 's/^/| /' conftest.$ac_ext >&5
14489
Theodore Ts'oe1052142006-10-21 21:46:47 -040014490 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014491fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014492
14493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14495echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014496
14497# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014498{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014500cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506#include <$ac_header>
14507_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014508if { (ac_try="$ac_cpp conftest.$ac_ext"
14509case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14512esac
14513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014520 (exit $ac_status); } >/dev/null && {
14521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14522 test ! -s conftest.err
14523 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014524 ac_header_preproc=yes
14525else
14526 echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
14529 ac_header_preproc=no
14530fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014532rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014533{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14534echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014535
14536# So? What about this header?
14537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14538 yes:no: )
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14543 ac_header_preproc=yes
14544 ;;
14545 no:yes:* )
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014559 ;;
14560esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014561{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565else
14566 eval "$as_ac_Header=\$ac_header_preproc"
14567fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014568ac_res=`eval echo '${'$as_ac_Header'}'`
14569 { echo "$as_me:$LINENO: result: $ac_res" >&5
14570echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014571
14572fi
14573if test `eval echo '${'$as_ac_Header'}'` = yes; then
14574 cat >>confdefs.h <<_ACEOF
14575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14576_ACEOF
14577
14578fi
14579
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014580done
14581
Theodore Ts'oe1052142006-10-21 21:46:47 -040014582{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14583echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014584if test "${ac_cv_type_intptr_t+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014586else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014587 cat >conftest.$ac_ext <<_ACEOF
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014594typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014595int
14596main ()
14597{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014598if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014599 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014600if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014601 return 0;
14602 ;
14603 return 0;
14604}
14605_ACEOF
14606rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014607if { (ac_try="$ac_compile"
14608case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14611esac
14612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014614 ac_status=$?
14615 grep -v '^ *+' conftest.er1 >conftest.err
14616 rm -f conftest.er1
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014619 (exit $ac_status); } && {
14620 test -z "$ac_c_werror_flag" ||
14621 test ! -s conftest.err
14622 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014623 ac_cv_type_intptr_t=yes
14624else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014625 echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014627
Theodore Ts'oe1052142006-10-21 21:46:47 -040014628 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014630
14631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014632fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014633{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14634echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014635if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014636
14637cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014638#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014639_ACEOF
14640
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014642fi
14643
Theodore Ts'oe1052142006-10-21 21:46:47 -040014644{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14645echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014646if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648else
14649 cat >conftest.$ac_ext <<_ACEOF
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
14654/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014655#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014656int
14657main ()
14658{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014659struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014660 ;
14661 return 0;
14662}
14663_ACEOF
14664rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014665if { (ac_try="$ac_compile"
14666case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014677 (exit $ac_status); } && {
14678 test -z "$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14680 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014681 e2fsprogs_cv_struct_st_flags=yes
14682else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014683 echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5
14685
Theodore Ts'oe1052142006-10-21 21:46:47 -040014686 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014687fi
14688
Theodore Ts'oe1052142006-10-21 21:46:47 -040014689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690fi
14691
14692{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14693echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014694if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014695 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14696echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014697 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014699else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014700 cat >conftest.$ac_ext <<_ACEOF
14701/* confdefs.h. */
14702_ACEOF
14703cat confdefs.h >>conftest.$ac_ext
14704cat >>conftest.$ac_ext <<_ACEOF
14705/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014706#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014707int
14708main ()
14709{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014710struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014711 ;
14712 return 0;
14713}
14714_ACEOF
14715rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014716if { (ac_try="$ac_compile"
14717case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014728 (exit $ac_status); } && {
14729 test -z "$ac_c_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014732 e2fsprogs_cv_struct_st_flags_immut=yes
14733else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014734 echo "$as_me: failed program was:" >&5
14735sed 's/^/| /' conftest.$ac_ext >&5
14736
Theodore Ts'oe1052142006-10-21 21:46:47 -040014737 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014738fi
14739
Theodore Ts'oe1052142006-10-21 21:46:47 -040014740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741fi
14742
14743 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14744echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014745 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014746 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014747#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014748_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014749
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014750 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014751fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014752{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14753echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014754if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014755 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014756else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014757 cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h. */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014763#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014764 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014766int
14767main ()
14768{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014769static struct sockaddr ac_aggr;
14770if (ac_aggr.sa_len)
14771return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014772 ;
14773 return 0;
14774}
14775_ACEOF
14776rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014777if { (ac_try="$ac_compile"
14778case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14781esac
14782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014784 ac_status=$?
14785 grep -v '^ *+' conftest.er1 >conftest.err
14786 rm -f conftest.er1
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014789 (exit $ac_status); } && {
14790 test -z "$ac_c_werror_flag" ||
14791 test ! -s conftest.err
14792 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014793 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014794else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014795 echo "$as_me: failed program was:" >&5
14796sed 's/^/| /' conftest.$ac_ext >&5
14797
Theodore Ts'oe1052142006-10-21 21:46:47 -040014798 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
14803/* end confdefs.h. */
14804#include <sys/types.h>
14805 #include <sys/socket.h>
14806
14807int
14808main ()
14809{
14810static struct sockaddr ac_aggr;
14811if (sizeof ac_aggr.sa_len)
14812return 0;
14813 ;
14814 return 0;
14815}
14816_ACEOF
14817rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014818if { (ac_try="$ac_compile"
14819case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14822esac
14823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014825 ac_status=$?
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014830 (exit $ac_status); } && {
14831 test -z "$ac_c_werror_flag" ||
14832 test ! -s conftest.err
14833 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014834 ac_cv_member_struct_sockaddr_sa_len=yes
14835else
14836 echo "$as_me: failed program was:" >&5
14837sed 's/^/| /' conftest.$ac_ext >&5
14838
Theodore Ts'oe1052142006-10-21 21:46:47 -040014839 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014841
14842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014844
14845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014846fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014847{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14848echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014849if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014850
14851cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014852#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014853_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014854
14855fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014875
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014876
14877
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014878
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014879
Theodore Ts'o106ad962007-04-04 21:26:37 -040014880
14881
14882
Theodore Ts'o740837d2007-12-16 17:21:38 -050014883
14884
Theodore Ts'o261cd392008-01-21 13:45:00 -050014885
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040014886
14887
14888for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014889do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014891{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14893if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014894 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014895else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014896 cat >conftest.$ac_ext <<_ACEOF
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14904#define $ac_func innocuous_$ac_func
14905
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014906/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014907 which can conflict with char $ac_func (); below.
14908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14909 <limits.h> exists even on freestanding compilers. */
14910
14911#ifdef __STDC__
14912# include <limits.h>
14913#else
14914# include <assert.h>
14915#endif
14916
14917#undef $ac_func
14918
Theodore Ts'oe1052142006-10-21 21:46:47 -040014919/* Override any GCC internal prototype to avoid an error.
14920 Use char because int might match the return type of a GCC
14921 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014922#ifdef __cplusplus
14923extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014924#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014925char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014926/* The GNU C library defines this for functions which it implements
14927 to always fail with ENOSYS. Some functions are actually named
14928 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014929#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014930choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014931#endif
14932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014933int
14934main ()
14935{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014936return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014937 ;
14938 return 0;
14939}
14940_ACEOF
14941rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014942if { (ac_try="$ac_link"
14943case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946esac
14947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014954 (exit $ac_status); } && {
14955 test -z "$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest$ac_exeext &&
14958 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014959 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014961 echo "$as_me: failed program was:" >&5
14962sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014963
Theodore Ts'oe1052142006-10-21 21:46:47 -040014964 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014965fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014966
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014968 conftest$ac_exeext conftest.$ac_ext
14969fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014970ac_res=`eval echo '${'$as_ac_var'}'`
14971 { echo "$as_me:$LINENO: result: $ac_res" >&5
14972echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014973if test `eval echo '${'$as_ac_var'}'` = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14976_ACEOF
14977
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014978fi
14979done
14980
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014981SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014982{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14983echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014984if test "${ac_cv_lib_socket_socket+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014986else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014988LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014989cat >conftest.$ac_ext <<_ACEOF
14990/* confdefs.h. */
14991_ACEOF
14992cat confdefs.h >>conftest.$ac_ext
14993cat >>conftest.$ac_ext <<_ACEOF
14994/* end confdefs.h. */
14995
Theodore Ts'oe1052142006-10-21 21:46:47 -040014996/* Override any GCC internal prototype to avoid an error.
14997 Use char because int might match the return type of a GCC
14998 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014999#ifdef __cplusplus
15000extern "C"
15001#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015002char socket ();
15003int
15004main ()
15005{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015006return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015007 ;
15008 return 0;
15009}
15010_ACEOF
15011rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015012if { (ac_try="$ac_link"
15013case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15016esac
15017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015019 ac_status=$?
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015024 (exit $ac_status); } && {
15025 test -z "$ac_c_werror_flag" ||
15026 test ! -s conftest.err
15027 } && test -s conftest$ac_exeext &&
15028 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015029 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015031 echo "$as_me: failed program was:" >&5
15032sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015033
Theodore Ts'oe1052142006-10-21 21:46:47 -040015034 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015036
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015038 conftest$ac_exeext conftest.$ac_ext
15039LIBS=$ac_check_lib_save_LIBS
15040fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015041{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15042echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015043if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015044 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015045fi
15046
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015047
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015048DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015049{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015051if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015053else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015054 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015055LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015056cat >conftest.$ac_ext <<_ACEOF
15057/* confdefs.h. */
15058_ACEOF
15059cat confdefs.h >>conftest.$ac_ext
15060cat >>conftest.$ac_ext <<_ACEOF
15061/* end confdefs.h. */
15062
Theodore Ts'oe1052142006-10-21 21:46:47 -040015063/* Override any GCC internal prototype to avoid an error.
15064 Use char because int might match the return type of a GCC
15065 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015066#ifdef __cplusplus
15067extern "C"
15068#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015069char dlopen ();
15070int
15071main ()
15072{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015073return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015074 ;
15075 return 0;
15076}
15077_ACEOF
15078rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015079if { (ac_try="$ac_link"
15080case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest$ac_exeext &&
15095 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015096 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015098 echo "$as_me: failed program was:" >&5
15099sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015100
Theodore Ts'oe1052142006-10-21 21:46:47 -040015101 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015102fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015103
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015105 conftest$ac_exeext conftest.$ac_ext
15106LIBS=$ac_check_lib_save_LIBS
15107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015108{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15109echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015110if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015111 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015112cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015113#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015114_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015115
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015116fi
15117
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015118
Theodore Ts'oe1052142006-10-21 21:46:47 -040015119{ echo "$as_me:$LINENO: checking for optreset" >&5
15120echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015121if test "${ac_cv_have_optreset+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015123else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015124 cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015130#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015131
15132_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015134 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015135 ac_cv_have_optreset=yes
15136else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015137 ac_cv_have_optreset=no
15138fi
15139rm -f conftest*
15140
15141fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015142{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15143echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015144if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015145 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015146#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015147_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015148
15149fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015150{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15151echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015152if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015153 UNI_DIFF_OPTS=-u
15154else
15155 UNI_DIFF_OPTS=-c
15156fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015157{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15158echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015159
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015160case "$host_os" in
15161linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015162 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015163#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015164_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015165
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015166 ;;
15167esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015168LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015169CYGWIN_CMT="#"
15170UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015171case "$host_os" in
15172linux*)
15173 LINUX_CMT=
15174 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015175cygwin)
15176 CYGWIN_CMT=
15177 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015178 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015179esac
15180
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015181
15182
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015183case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015184linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015185 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15186 root_prefix="";
15187 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015188 fi
15189 ;;
15190esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015191case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015192linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015193 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015194 prefix="/usr";
15195 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015196 if test "$mandir" = '${prefix}/man' ; then
15197 echo "...and mandir defaults to /usr/share/man"
15198 mandir=/usr/share/man
15199 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015200 fi
15201;;
15202esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015203if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015204 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015205 root_prefix="$ac_default_prefix"
15206 else
15207 root_prefix="$prefix"
15208 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015209 root_bindir=$bindir
15210 root_sbindir=$sbindir
15211 root_libdir=$libdir
15212 root_sysconfdir=$sysconfdir
15213else
15214 root_bindir='${root_prefix}/bin'
15215 root_sbindir='${root_prefix}/sbin'
15216 root_libdir='${root_prefix}/lib'
15217 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015218fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015219if test "$bindir" != '${exec_prefix}/bin'; then
15220 root_bindir=$bindir
15221 echo "Setting root_bindir to $root_bindir"
15222fi
15223if test "$sbindir" != '${exec_prefix}/sbin'; then
15224 root_sbindir=$sbindir
15225 echo "Setting root_sbindir to $root_sbindir"
15226fi
15227if test "$libdir" != '${exec_prefix}/lib'; then
15228 root_libdir=$libdir
15229 echo "Setting root_libdir to $root_libdir"
15230fi
15231if test "$sysconfdir" != '${prefix}/etc'; then
15232 root_sysconfdir=$sysconfdir
15233 echo "Setting root_sysconfdir to $root_sysconfdir"
15234fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015235
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015236
15237
15238
15239
Theodore Ts'oe1052142006-10-21 21:46:47 -040015240{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15241echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015242if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015244else
15245 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015246cat >conftest.$ac_ext <<_ACEOF
15247/* confdefs.h. */
15248_ACEOF
15249cat confdefs.h >>conftest.$ac_ext
15250cat >>conftest.$ac_ext <<_ACEOF
15251/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015252#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015253int
15254main ()
15255{
Theodore Ts'oae851481997-04-29 18:13:24 +000015256fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015257 ;
15258 return 0;
15259}
15260_ACEOF
15261rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015262if { (ac_try="$ac_link"
15263case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext &&
15278 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015279 ac_cv_e2fsprogs_use_static=yes
15280else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015281 echo "$as_me: failed program was:" >&5
15282sed 's/^/| /' conftest.$ac_ext >&5
15283
Theodore Ts'oe1052142006-10-21 21:46:47 -040015284 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015285fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015286
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015288 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015289LDFLAGS=$SAVE_LDFLAGS
15290fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015291
Theodore Ts'odefde781999-01-04 07:39:19 +000015292case "$host_os" in
15293solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015294 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015295;;
15296esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015297{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15298echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015299LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015300if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015301 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015302fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015303
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015304case "$host_os" in
15305darwin*)
15306 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015307 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015308#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015309_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015310
15311 ;;
15312esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015313SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15314ET_DIR=`cd ${srcdir}/lib/et; pwd`
15315
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015316
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015317if test "$cross_compiling" = yes ; then
15318 DO_TEST_SUITE=
15319else
15320 DO_TEST_SUITE=check
15321fi
15322
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015323INTL_FLAGS=
15324if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15325 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15326fi
15327
Theodore Ts'odd947da2005-11-09 18:37:07 -040015328if test $cross_compiling = no; then
15329 BUILD_CFLAGS="$CFLAGS"
15330 BUILD_LDFLAGS="$LDFLAGS"
15331else
15332 BUILD_CFLAGS=
15333 BUILD_LDFLAGS=
15334fi
15335
15336
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015337test -d lib || mkdir lib
15338test -d include || mkdir include
15339test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015340test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015341for i in MCONFIG Makefile e2fsprogs.spec \
15342 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015343 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15344 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015345 lib/uuid/Makefile lib/uuid/uuid_types.h \
15346 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015347 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15348 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015349 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015350 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15351 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15352 if test -d `dirname ${srcdir}/$i` ; then
15353 outlist="$outlist $i"
15354 fi
15355done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015356ac_config_files="$ac_config_files $outlist"
15357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015358cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015359# This file is a shell script that caches the results of configure
15360# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015361# scripts and configure runs, see configure's option --config-cache.
15362# It is not useful on other systems. If it contains results you don't
15363# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015364#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015365# config.status only pays attention to the cache file if you give it
15366# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015367#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015368# `ac_cv_env_foo' variables (set or unset) will be overridden when
15369# loading this file, other *unset* `ac_cv_foo' will be assigned the
15370# following values.
15371
15372_ACEOF
15373
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015374# The following way of writing the cache mishandles newlines in values,
15375# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015376# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015377# Ultrix sh set writes to stderr and can't be redirected directly,
15378# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015379(
15380 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15381 eval ac_val=\$$ac_var
15382 case $ac_val in #(
15383 *${as_nl}*)
15384 case $ac_var in #(
15385 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15386echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15387 esac
15388 case $ac_var in #(
15389 _ | IFS | as_nl) ;; #(
15390 *) $as_unset $ac_var ;;
15391 esac ;;
15392 esac
15393 done
15394
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015395 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015396 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15397 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015398 # `set' does not quote correctly, so add quotes (double-quote
15399 # substitution turns \\\\ into \\, and sed turns \\ into \).
15400 sed -n \
15401 "s/'/'\\\\''/g;
15402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015403 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015404 *)
15405 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015407 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015408 esac |
15409 sort
15410) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015411 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015412 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015413 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015414 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015415 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15416 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015417 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15418 :end' >>confcache
15419if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15420 if test -w "$cache_file"; then
15421 test "x$cache_file" != "x/dev/null" &&
15422 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15423echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015424 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015425 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015426 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15427echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015428 fi
15429fi
15430rm -f confcache
15431
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015432test "x$prefix" = xNONE && prefix=$ac_default_prefix
15433# Let make expand exec_prefix.
15434test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15435
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015436# Transform confdefs.h into DEFS.
15437# Protect against shell expansion while executing Makefile rules.
15438# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015439#
15440# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015441# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015442# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015443ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015444t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015445:clear
15446s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015447t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015448s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015449t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015450b any
15451:quote
15452s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15453s/\[/\\&/g
15454s/\]/\\&/g
15455s/\$/$$/g
15456H
15457:any
15458${
15459 g
15460 s/^\n//
15461 s/\n/ /g
15462 p
15463}
15464'
15465DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015466
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015468ac_libobjs=
15469ac_ltlibobjs=
15470for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15471 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15473 ac_i=`echo "$ac_i" | sed "$ac_script"`
15474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15475 # will be set to the directory where LIBOBJS objects are built.
15476 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15477 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015478done
15479LIBOBJS=$ac_libobjs
15480
15481LTLIBOBJS=$ac_ltlibobjs
15482
15483
15484
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015485: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015486ac_clean_files_save=$ac_clean_files
15487ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15488{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15489echo "$as_me: creating $CONFIG_STATUS" >&6;}
15490cat >$CONFIG_STATUS <<_ACEOF
15491#! $SHELL
15492# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015493# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015494# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015495# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015497debug=false
15498ac_cs_recheck=false
15499ac_cs_silent=false
15500SHELL=\${CONFIG_SHELL-$SHELL}
15501_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015503cat >>$CONFIG_STATUS <<\_ACEOF
15504## --------------------- ##
15505## M4sh Initialization. ##
15506## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015507
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015508# Be more Bourne compatible
15509DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015510if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15511 emulate sh
15512 NULLCMD=:
15513 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15514 # is contrary to our usage. Disable this feature.
15515 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015516 setopt NO_GLOB_SUBST
15517else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015518 case `(set -o) 2>/dev/null` in
15519 *posix*) set -o posix ;;
15520esac
15521
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015522fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015523
15524
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015525
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015526
Theodore Ts'oe1052142006-10-21 21:46:47 -040015527# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015528# Avoid depending upon Character Ranges.
15529as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15530as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15531as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15532as_cr_digits='0123456789'
15533as_cr_alnum=$as_cr_Letters$as_cr_digits
15534
15535# The user is always right.
15536if test "${PATH_SEPARATOR+set}" != set; then
15537 echo "#! /bin/sh" >conf$$.sh
15538 echo "exit 0" >>conf$$.sh
15539 chmod +x conf$$.sh
15540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15541 PATH_SEPARATOR=';'
15542 else
15543 PATH_SEPARATOR=:
15544 fi
15545 rm -f conf$$.sh
15546fi
15547
Theodore Ts'oe1052142006-10-21 21:46:47 -040015548# Support unset when possible.
15549if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15550 as_unset=unset
15551else
15552 as_unset=false
15553fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015554
Theodore Ts'oe1052142006-10-21 21:46:47 -040015555
15556# IFS
15557# We need space, tab and new line, in precisely that order. Quoting is
15558# there to prevent editors from complaining about space-tab.
15559# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15560# splitting by setting IFS to empty value.)
15561as_nl='
15562'
15563IFS=" "" $as_nl"
15564
15565# Find who we are. Look in the path if we contain no directory separator.
15566case $0 in
15567 *[\\/]* ) as_myself=$0 ;;
15568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015569for as_dir in $PATH
15570do
15571 IFS=$as_save_IFS
15572 test -z "$as_dir" && as_dir=.
15573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15574done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015575IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015576
Theodore Ts'oe1052142006-10-21 21:46:47 -040015577 ;;
15578esac
15579# We did not find ourselves, most probably we were run as `sh COMMAND'
15580# in which case we are not to be found in the path.
15581if test "x$as_myself" = x; then
15582 as_myself=$0
15583fi
15584if test ! -f "$as_myself"; then
15585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15586 { (exit 1); exit 1; }
15587fi
15588
15589# Work around bugs in pre-3.0 UWIN ksh.
15590for as_var in ENV MAIL MAILPATH
15591do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15592done
15593PS1='$ '
15594PS2='> '
15595PS4='+ '
15596
15597# NLS nuisances.
15598for as_var in \
15599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15601 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015602do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15604 eval $as_var=C; export $as_var
15605 else
15606 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15607 fi
15608done
15609
15610# Required to use basename.
15611if expr a : '\(a\)' >/dev/null 2>&1 &&
15612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15613 as_expr=expr
15614else
15615 as_expr=false
15616fi
15617
15618if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15619 as_basename=basename
15620else
15621 as_basename=false
15622fi
15623
15624
15625# Name of the executable.
15626as_me=`$as_basename -- "$0" ||
15627$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15628 X"$0" : 'X\(//\)$' \| \
15629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15630echo X/"$0" |
15631 sed '/^.*\/\([^/][^/]*\)\/*$/{
15632 s//\1/
15633 q
15634 }
15635 /^X\/\(\/\/\)$/{
15636 s//\1/
15637 q
15638 }
15639 /^X\/\(\/\).*/{
15640 s//\1/
15641 q
15642 }
15643 s/.*/./; q'`
15644
15645# CDPATH.
15646$as_unset CDPATH
15647
15648
15649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015650 as_lineno_1=$LINENO
15651 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015652 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015654
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15656 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015657 # line-number line after each line using $LINENO; the second 'sed'
15658 # does the real work. The second script uses 'N' to pair each
15659 # line-number line with the line containing $LINENO, and appends
15660 # trailing '-' during substitution so that $LINENO is not a special
15661 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015663 # scripts with optimization help from Paolo Bonzini. Blame Lee
15664 # E. McMahon (1931-1989) for sed's syntax. :-)
15665 sed -n '
15666 p
15667 /[$]LINENO/=
15668 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015669 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015670 s/[$]LINENO.*/&-/
15671 t lineno
15672 b
15673 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015674 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015675 :loop
15676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015677 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015678 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015679 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015680 chmod +x "$as_me.lineno" ||
15681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015682 { (exit 1); exit 1; }; }
15683
15684 # Don't try to exec as it changes $[0], causing all sort of problems
15685 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015686 # original and so on. Autoconf is especially sensitive to this).
15687 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015688 # Exit status is that of the last command.
15689 exit
15690}
15691
15692
Theodore Ts'oe1052142006-10-21 21:46:47 -040015693if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15694 as_dirname=dirname
15695else
15696 as_dirname=false
15697fi
15698
15699ECHO_C= ECHO_N= ECHO_T=
15700case `echo -n x` in
15701-n*)
15702 case `echo 'x\c'` in
15703 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15704 *) ECHO_C='\c';;
15705 esac;;
15706*)
15707 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015708esac
15709
Theodore Ts'oe1052142006-10-21 21:46:47 -040015710if expr a : '\(a\)' >/dev/null 2>&1 &&
15711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015712 as_expr=expr
15713else
15714 as_expr=false
15715fi
15716
15717rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015718if test -d conf$$.dir; then
15719 rm -f conf$$.dir/conf$$.file
15720else
15721 rm -f conf$$.dir
15722 mkdir conf$$.dir
15723fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015724echo >conf$$.file
15725if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015726 as_ln_s='ln -s'
15727 # ... but there are two gotchas:
15728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15730 # In both cases, we have to default to `cp -p'.
15731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015732 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015733elif ln conf$$.file conf$$ 2>/dev/null; then
15734 as_ln_s=ln
15735else
15736 as_ln_s='cp -p'
15737fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15739rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015740
15741if mkdir -p . 2>/dev/null; then
15742 as_mkdir_p=:
15743else
15744 test -d ./-p && rmdir ./-p
15745 as_mkdir_p=false
15746fi
15747
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015748if test -x / >/dev/null 2>&1; then
15749 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015750else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015751 if ls -dL / >/dev/null 2>&1; then
15752 as_ls_L_option=L
15753 else
15754 as_ls_L_option=
15755 fi
15756 as_test_x='
15757 eval sh -c '\''
15758 if test -d "$1"; then
15759 test -d "$1/.";
15760 else
15761 case $1 in
15762 -*)set "./$1";;
15763 esac;
15764 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15765 ???[sx]*):;;*)false;;esac;fi
15766 '\'' sh
15767 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015768fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015769as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015770
15771# Sed expression to map a string onto a valid CPP name.
15772as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15773
15774# Sed expression to map a string onto a valid variable name.
15775as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15776
15777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015778exec 6>&1
15779
Theodore Ts'oe1052142006-10-21 21:46:47 -040015780# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015781# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015782# values after options handling.
15783ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015784This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015785generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015786
15787 CONFIG_FILES = $CONFIG_FILES
15788 CONFIG_HEADERS = $CONFIG_HEADERS
15789 CONFIG_LINKS = $CONFIG_LINKS
15790 CONFIG_COMMANDS = $CONFIG_COMMANDS
15791 $ $0 $@
15792
Theodore Ts'oe1052142006-10-21 21:46:47 -040015793on `(hostname || uname -n) 2>/dev/null | sed 1q`
15794"
15795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015796_ACEOF
15797
Theodore Ts'oe1052142006-10-21 21:46:47 -040015798cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015799# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015800config_files="$ac_config_files"
15801config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015802
Theodore Ts'oe1052142006-10-21 21:46:47 -040015803_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015804
15805cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015806ac_cs_usage="\
15807\`$as_me' instantiates files from templates according to the
15808current configuration.
15809
15810Usage: $0 [OPTIONS] [FILE]...
15811
15812 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015813 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015814 -q, --quiet do not print progress messages
15815 -d, --debug don't remove temporary files
15816 --recheck update $as_me by reconfiguring in the same conditions
15817 --file=FILE[:TEMPLATE]
15818 instantiate the configuration file FILE
15819
15820Configuration files:
15821$config_files
15822
15823Configuration commands:
15824$config_commands
15825
15826Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015827
Theodore Ts'oe1052142006-10-21 21:46:47 -040015828_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015829cat >>$CONFIG_STATUS <<_ACEOF
15830ac_cs_version="\\
15831config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015832configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015833 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015834
Theodore Ts'oe1052142006-10-21 21:46:47 -040015835Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015836This config.status script is free software; the Free Software Foundation
15837gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015838
15839ac_pwd='$ac_pwd'
15840srcdir='$srcdir'
15841INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015842_ACEOF
15843
15844cat >>$CONFIG_STATUS <<\_ACEOF
15845# If no file are specified by the user, then we need to provide default
15846# value. By we need to know if files were specified by the user.
15847ac_need_defaults=:
15848while test $# != 0
15849do
15850 case $1 in
15851 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015854 ac_shift=:
15855 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015856 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015857 ac_option=$1
15858 ac_optarg=$2
15859 ac_shift=shift
15860 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015861 esac
15862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015863 case $ac_option in
15864 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15866 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15868 echo "$ac_cs_version"; exit ;;
15869 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015870 debug=: ;;
15871 --file | --fil | --fi | --f )
15872 $ac_shift
15873 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15874 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015875 --he | --h | --help | --hel | -h )
15876 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15879 ac_cs_silent=: ;;
15880
15881 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015882 -*) { echo "$as_me: error: unrecognized option: $1
15883Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015884 { (exit 1); exit 1; }; } ;;
15885
Theodore Ts'oe1052142006-10-21 21:46:47 -040015886 *) ac_config_targets="$ac_config_targets $1"
15887 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015888
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015889 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015890 shift
15891done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015892
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015893ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015895if $ac_cs_silent; then
15896 exec 6>/dev/null
15897 ac_configure_extra_args="$ac_configure_extra_args --silent"
15898fi
15899
15900_ACEOF
15901cat >>$CONFIG_STATUS <<_ACEOF
15902if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015903 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15904 CONFIG_SHELL=$SHELL
15905 export CONFIG_SHELL
15906 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015907fi
15908
15909_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015910cat >>$CONFIG_STATUS <<\_ACEOF
15911exec 5>>config.log
15912{
15913 echo
15914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15915## Running $as_me. ##
15916_ASBOX
15917 echo "$ac_log"
15918} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015919
Theodore Ts'oe1052142006-10-21 21:46:47 -040015920_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015921cat >>$CONFIG_STATUS <<_ACEOF
15922#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015923# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015924#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015925# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015926 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015927 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015928 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015929 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15930 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015931
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015933_ACEOF
15934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015935cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015936
15937# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015938for ac_config_target in $ac_config_targets
15939do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015940 case $ac_config_target in
15941 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15942 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15943
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015944 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15945echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15946 { (exit 1); exit 1; }; };;
15947 esac
15948done
15949
Theodore Ts'oe1052142006-10-21 21:46:47 -040015950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015951# If the user did not use the arguments to specify the items to instantiate,
15952# then the envvar interface is used. Set only those that are not.
15953# We use the long form for the default assignment because of an extremely
15954# bizarre bug on SunOS 4.1.3.
15955if $ac_need_defaults; then
15956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15957 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15958fi
15959
15960# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015961# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015962# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015963# Hook for its removal unless debugging.
15964# Note that there is a small window in which the directory will not be cleaned:
15965# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015966$debug ||
15967{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015968 tmp=
15969 trap 'exit_status=$?
15970 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15971' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015972 trap '{ (exit 1); exit 1; }' 1 2 13 15
15973}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015974# Create a (secure) tmp directory for tmp files.
15975
15976{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015978 test -n "$tmp" && test -d "$tmp"
15979} ||
15980{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015981 tmp=./conf$$-$RANDOM
15982 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015983} ||
15984{
15985 echo "$me: cannot create a temporary directory in ." >&2
15986 { (exit 1); exit 1; }
15987}
15988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015989#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015990# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015991#
15992
15993# No need to generate the scripts if there are no CONFIG_FILES.
15994# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015995if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015996
15997_ACEOF
15998
Theodore Ts'oe1052142006-10-21 21:46:47 -040015999# Create sed commands to just substitute file output variables.
16000
16001# Remaining file output variables are in a fragment that also has non-file
16002# output varibles.
16003
16004
16005
16006ac_delim='%!_!# '
16007for ac_last_try in false false false false false :; do
16008 cat >conf$$subs.sed <<_ACEOF
16009SHELL!$SHELL$ac_delim
16010PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16011PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16012PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16013PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16014PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16015PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16016exec_prefix!$exec_prefix$ac_delim
16017prefix!$prefix$ac_delim
16018program_transform_name!$program_transform_name$ac_delim
16019bindir!$bindir$ac_delim
16020sbindir!$sbindir$ac_delim
16021libexecdir!$libexecdir$ac_delim
16022datarootdir!$datarootdir$ac_delim
16023datadir!$datadir$ac_delim
16024sysconfdir!$sysconfdir$ac_delim
16025sharedstatedir!$sharedstatedir$ac_delim
16026localstatedir!$localstatedir$ac_delim
16027includedir!$includedir$ac_delim
16028oldincludedir!$oldincludedir$ac_delim
16029docdir!$docdir$ac_delim
16030infodir!$infodir$ac_delim
16031htmldir!$htmldir$ac_delim
16032dvidir!$dvidir$ac_delim
16033pdfdir!$pdfdir$ac_delim
16034psdir!$psdir$ac_delim
16035libdir!$libdir$ac_delim
16036localedir!$localedir$ac_delim
16037mandir!$mandir$ac_delim
16038DEFS!$DEFS$ac_delim
16039ECHO_C!$ECHO_C$ac_delim
16040ECHO_N!$ECHO_N$ac_delim
16041ECHO_T!$ECHO_T$ac_delim
16042LIBS!$LIBS$ac_delim
16043build_alias!$build_alias$ac_delim
16044host_alias!$host_alias$ac_delim
16045target_alias!$target_alias$ac_delim
16046E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16047E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16048E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16049E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016050E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016051build!$build$ac_delim
16052build_cpu!$build_cpu$ac_delim
16053build_vendor!$build_vendor$ac_delim
16054build_os!$build_os$ac_delim
16055host!$host$ac_delim
16056host_cpu!$host_cpu$ac_delim
16057host_vendor!$host_vendor$ac_delim
16058host_os!$host_os$ac_delim
16059CC!$CC$ac_delim
16060CFLAGS!$CFLAGS$ac_delim
16061LDFLAGS!$LDFLAGS$ac_delim
16062CPPFLAGS!$CPPFLAGS$ac_delim
16063ac_ct_CC!$ac_ct_CC$ac_delim
16064EXEEXT!$EXEEXT$ac_delim
16065OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016066CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016067LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016068GREP!$GREP$ac_delim
16069EGREP!$EGREP$ac_delim
16070LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16071MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16072HTREE_CMT!$HTREE_CMT$ac_delim
16073ELF_CMT!$ELF_CMT$ac_delim
16074BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16075PROFILE_CMT!$PROFILE_CMT$ac_delim
16076CHECKER_CMT!$CHECKER_CMT$ac_delim
16077LIB_EXT!$LIB_EXT$ac_delim
16078STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16079PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016080DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16081IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016082_ACEOF
16083
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016084 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016085 break
16086 elif $ac_last_try; then
16087 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16088echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16089 { (exit 1); exit 1; }; }
16090 else
16091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016092 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016093done
16094
16095ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16096if test -n "$ac_eof"; then
16097 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16098 ac_eof=`expr $ac_eof + 1`
16099fi
16100
16101cat >>$CONFIG_STATUS <<_ACEOF
16102cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16103/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16104/^[ ]*@MCONFIG@[ ]*$/{
16105r $MCONFIG
16106d
16107}
16108/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16109r $MAKEFILE_ELF
16110d
16111}
16112/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16113r $MAKEFILE_BSDLIB
16114d
16115}
16116/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16117r $MAKEFILE_PROFILE
16118d
16119}
16120/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16121r $MAKEFILE_CHECKER
16122d
16123}
16124/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16125r $MAKEFILE_LIBRARY
16126d
16127}
16128/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16129r $ASM_TYPES_HEADER
16130d
16131}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016132/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16133r $PUBLIC_CONFIG_HEADER
16134d
16135}
Theodore Ts'oe1052142006-10-21 21:46:47 -040016136_ACEOF
16137sed '
16138s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16139s/^/s,@/; s/!/@,|#_!!_#|/
16140:n
16141t n
16142s/'"$ac_delim"'$/,g/; t
16143s/$/\\/; p
16144N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16145' >>$CONFIG_STATUS <conf$$subs.sed
16146rm -f conf$$subs.sed
16147cat >>$CONFIG_STATUS <<_ACEOF
16148CEOF$ac_eof
16149_ACEOF
16150
16151
16152ac_delim='%!_!# '
16153for ac_last_try in false false false false false :; do
16154 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016155RESIZER_CMT!$RESIZER_CMT$ac_delim
16156FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016157FSCK_MAN!$FSCK_MAN$ac_delim
16158E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16159E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016160PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016161DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16162DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16163DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16164STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016165STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016166UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016167GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16168PACKAGE!$PACKAGE$ac_delim
16169VERSION!$VERSION$ac_delim
16170SET_MAKE!$SET_MAKE$ac_delim
16171INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16172INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16173INSTALL_DATA!$INSTALL_DATA$ac_delim
16174MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16175USE_NLS!$USE_NLS$ac_delim
16176MSGFMT!$MSGFMT$ac_delim
16177GMSGFMT!$GMSGFMT$ac_delim
16178XGETTEXT!$XGETTEXT$ac_delim
16179MSGMERGE!$MSGMERGE$ac_delim
16180RANLIB!$RANLIB$ac_delim
16181ALLOCA!$ALLOCA$ac_delim
16182GLIBC21!$GLIBC21$ac_delim
16183HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16184HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16185HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16186HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16187LIBICONV!$LIBICONV$ac_delim
16188LTLIBICONV!$LTLIBICONV$ac_delim
16189INTLBISON!$INTLBISON$ac_delim
16190BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16191USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16192CATOBJEXT!$CATOBJEXT$ac_delim
16193DATADIRNAME!$DATADIRNAME$ac_delim
16194INSTOBJEXT!$INSTOBJEXT$ac_delim
16195GENCAT!$GENCAT$ac_delim
16196INTLOBJS!$INTLOBJS$ac_delim
16197INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16198INTLLIBS!$INTLLIBS$ac_delim
16199LIBINTL!$LIBINTL$ac_delim
16200LTLIBINTL!$LTLIBINTL$ac_delim
16201POSUB!$POSUB$ac_delim
16202BINARY_TYPE!$BINARY_TYPE$ac_delim
16203LN!$LN$ac_delim
16204LN_S!$LN_S$ac_delim
16205MV!$MV$ac_delim
16206CP!$CP$ac_delim
16207RM!$RM$ac_delim
16208CHMOD!$CHMOD$ac_delim
16209AWK!$AWK$ac_delim
16210SED!$SED$ac_delim
16211PERL!$PERL$ac_delim
16212LDCONFIG!$LDCONFIG$ac_delim
16213AR!$AR$ac_delim
16214STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016215MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016216BUILD_CC!$BUILD_CC$ac_delim
16217SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16218SIZEOF_INT!$SIZEOF_INT$ac_delim
16219SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16220SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16221SOCKET_LIB!$SOCKET_LIB$ac_delim
16222DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16223UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16224LINUX_CMT!$LINUX_CMT$ac_delim
16225CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16226UNIX_CMT!$UNIX_CMT$ac_delim
16227root_prefix!$root_prefix$ac_delim
16228root_bindir!$root_bindir$ac_delim
16229root_sbindir!$root_sbindir$ac_delim
16230root_libdir!$root_libdir$ac_delim
16231root_sysconfdir!$root_sysconfdir$ac_delim
16232LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16233SS_DIR!$SS_DIR$ac_delim
16234ET_DIR!$ET_DIR$ac_delim
16235DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16236INTL_FLAGS!$INTL_FLAGS$ac_delim
16237BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16238BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16239LIBOBJS!$LIBOBJS$ac_delim
16240LTLIBOBJS!$LTLIBOBJS$ac_delim
16241_ACEOF
16242
Theodore Ts'odc9345a2008-06-07 10:08:48 -040016243 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016244 break
16245 elif $ac_last_try; then
16246 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16247echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16248 { (exit 1); exit 1; }; }
16249 else
16250 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16251 fi
16252done
16253
16254ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16255if test -n "$ac_eof"; then
16256 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16257 ac_eof=`expr $ac_eof + 1`
16258fi
16259
16260cat >>$CONFIG_STATUS <<_ACEOF
16261cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16263_ACEOF
16264sed '
16265s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16266s/^/s,@/; s/!/@,|#_!!_#|/
16267:n
16268t n
16269s/'"$ac_delim"'$/,g/; t
16270s/$/\\/; p
16271N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16272' >>$CONFIG_STATUS <conf$$subs.sed
16273rm -f conf$$subs.sed
16274cat >>$CONFIG_STATUS <<_ACEOF
16275:end
16276s/|#_!!_#|//g
16277CEOF$ac_eof
16278_ACEOF
16279
16280
16281# VPATH may cause trouble with some makes, so we remove $(srcdir),
16282# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16283# trailing colons and then remove the whole line if VPATH becomes empty
16284# (actually we leave an empty line to preserve line numbers).
16285if test "x$srcdir" = x.; then
16286 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16287s/:*\$(srcdir):*/:/
16288s/:*\${srcdir}:*/:/
16289s/:*@srcdir@:*/:/
16290s/^\([^=]*=[ ]*\):*/\1/
16291s/:*$//
16292s/^[^=]*=[ ]*$//
16293}'
16294fi
16295
16296cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016297fi # test -n "$CONFIG_FILES"
16298
Theodore Ts'oe1052142006-10-21 21:46:47 -040016299
16300for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16301do
16302 case $ac_tag in
16303 :[FHLC]) ac_mode=$ac_tag; continue;;
16304 esac
16305 case $ac_mode$ac_tag in
16306 :[FHL]*:*);;
16307 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16308echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16309 { (exit 1); exit 1; }; };;
16310 :[FH]-) ac_tag=-:-;;
16311 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16312 esac
16313 ac_save_IFS=$IFS
16314 IFS=:
16315 set x $ac_tag
16316 IFS=$ac_save_IFS
16317 shift
16318 ac_file=$1
16319 shift
16320
16321 case $ac_mode in
16322 :L) ac_source=$1;;
16323 :[FH])
16324 ac_file_inputs=
16325 for ac_f
16326 do
16327 case $ac_f in
16328 -) ac_f="$tmp/stdin";;
16329 *) # Look for the file first in the build tree, then in the source tree
16330 # (if the path is not absolute). The absolute path cannot be DOS-style,
16331 # because $ac_f cannot contain `:'.
16332 test -f "$ac_f" ||
16333 case $ac_f in
16334 [\\/$]*) false;;
16335 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16336 esac ||
16337 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16338echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16339 { (exit 1); exit 1; }; };;
16340 esac
16341 ac_file_inputs="$ac_file_inputs $ac_f"
16342 done
16343
16344 # Let's still pretend it is `configure' which instantiates (i.e., don't
16345 # use $as_me), people would be surprised to read:
16346 # /* config.h. Generated by config.status. */
16347 configure_input="Generated from "`IFS=:
16348 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16349 if test x"$ac_file" != x-; then
16350 configure_input="$ac_file. $configure_input"
16351 { echo "$as_me:$LINENO: creating $ac_file" >&5
16352echo "$as_me: creating $ac_file" >&6;}
16353 fi
16354
16355 case $ac_tag in
16356 *:-:* | *:-) cat >"$tmp/stdin";;
16357 esac
16358 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016359 esac
16360
Theodore Ts'oe1052142006-10-21 21:46:47 -040016361 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016362$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16363 X"$ac_file" : 'X\(//\)[^/]' \| \
16364 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016366echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16368 s//\1/
16369 q
16370 }
16371 /^X\(\/\/\)[^/].*/{
16372 s//\1/
16373 q
16374 }
16375 /^X\(\/\/\)$/{
16376 s//\1/
16377 q
16378 }
16379 /^X\(\/\).*/{
16380 s//\1/
16381 q
16382 }
16383 s/.*/./; q'`
16384 { as_dir="$ac_dir"
16385 case $as_dir in #(
16386 -*) as_dir=./$as_dir;;
16387 esac
16388 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016389 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016390 while :; do
16391 case $as_dir in #(
16392 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16393 *) as_qdir=$as_dir;;
16394 esac
16395 as_dirs="'$as_qdir' $as_dirs"
16396 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16398 X"$as_dir" : 'X\(//\)[^/]' \| \
16399 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016401echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16403 s//\1/
16404 q
16405 }
16406 /^X\(\/\/\)[^/].*/{
16407 s//\1/
16408 q
16409 }
16410 /^X\(\/\/\)$/{
16411 s//\1/
16412 q
16413 }
16414 /^X\(\/\).*/{
16415 s//\1/
16416 q
16417 }
16418 s/.*/./; q'`
16419 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016420 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016421 test -z "$as_dirs" || eval "mkdir $as_dirs"
16422 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16423echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016424 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016425 ac_builddir=.
16426
Theodore Ts'oe1052142006-10-21 21:46:47 -040016427case "$ac_dir" in
16428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16429*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016431 # A ".." for each directory in $ac_dir_suffix.
16432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16433 case $ac_top_builddir_sub in
16434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16436 esac ;;
16437esac
16438ac_abs_top_builddir=$ac_pwd
16439ac_abs_builddir=$ac_pwd$ac_dir_suffix
16440# for backward compatibility:
16441ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016442
16443case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016444 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016445 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016446 ac_top_srcdir=$ac_top_builddir_sub
16447 ac_abs_top_srcdir=$ac_pwd ;;
16448 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016449 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016450 ac_top_srcdir=$srcdir
16451 ac_abs_top_srcdir=$srcdir ;;
16452 *) # Relative name.
16453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16454 ac_top_srcdir=$ac_top_build_prefix$srcdir
16455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016456esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016459
Theodore Ts'oe1052142006-10-21 21:46:47 -040016460 case $ac_mode in
16461 :F)
16462 #
16463 # CONFIG_FILE
16464 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016465
16466 case $INSTALL in
16467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016468 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016469 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016470_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016471
16472cat >>$CONFIG_STATUS <<\_ACEOF
16473# If the template does not know about datarootdir, expand it.
16474# FIXME: This hack should be removed a few years after 2.60.
16475ac_datarootdir_hack=; ac_datarootdir_seen=
16476
16477case `sed -n '/datarootdir/ {
16478 p
16479 q
16480}
16481/@datadir@/p
16482/@docdir@/p
16483/@infodir@/p
16484/@localedir@/p
16485/@mandir@/p
16486' $ac_file_inputs` in
16487*datarootdir*) ac_datarootdir_seen=yes;;
16488*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16489 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16490echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16491_ACEOF
16492cat >>$CONFIG_STATUS <<_ACEOF
16493 ac_datarootdir_hack='
16494 s&@datadir@&$datadir&g
16495 s&@docdir@&$docdir&g
16496 s&@infodir@&$infodir&g
16497 s&@localedir@&$localedir&g
16498 s&@mandir@&$mandir&g
16499 s&\\\${datarootdir}&$datarootdir&g' ;;
16500esac
16501_ACEOF
16502
16503# Neutralize VPATH when `$srcdir' = `.'.
16504# Shell code in configure.ac might set extrasub.
16505# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016506cat >>$CONFIG_STATUS <<_ACEOF
16507 sed "$ac_vpsub
16508$extrasub
16509_ACEOF
16510cat >>$CONFIG_STATUS <<\_ACEOF
16511:t
16512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016513s&@configure_input@&$configure_input&;t t
16514s&@top_builddir@&$ac_top_builddir_sub&;t t
16515s&@srcdir@&$ac_srcdir&;t t
16516s&@abs_srcdir@&$ac_abs_srcdir&;t t
16517s&@top_srcdir@&$ac_top_srcdir&;t t
16518s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16519s&@builddir@&$ac_builddir&;t t
16520s&@abs_builddir@&$ac_abs_builddir&;t t
16521s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16522s&@INSTALL@&$ac_INSTALL&;t t
16523$ac_datarootdir_hack
16524" $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 -050016525
Theodore Ts'oe1052142006-10-21 21:46:47 -040016526test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16527 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16528 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16529 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16530which seems to be undefined. Please make sure it is defined." >&5
16531echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16532which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016533
Theodore Ts'oe1052142006-10-21 21:46:47 -040016534 rm -f "$tmp/stdin"
16535 case $ac_file in
16536 -) cat "$tmp/out"; rm -f "$tmp/out";;
16537 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16538 esac
16539 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016540
16541
Theodore Ts'oe1052142006-10-21 21:46:47 -040016542 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16543echo "$as_me: executing $ac_file commands" >&6;}
16544 ;;
16545 esac
16546
16547
16548 case $ac_file$ac_mode in
16549 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016550 for ac_file in $CONFIG_FILES; do
16551 # Support "outfile[:infile[:infile...]]"
16552 case "$ac_file" in
16553 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016554 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016555 # PO directories have a Makefile.in generated from Makefile.in.in.
16556 case "$ac_file" in */Makefile.in)
16557 # Adjust a relative srcdir.
16558 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16559 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16560 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16561 # In autoconf-2.13 it is called $ac_given_srcdir.
16562 # In autoconf-2.50 it is called $srcdir.
16563 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16564 case "$ac_given_srcdir" in
16565 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16566 /*) top_srcdir="$ac_given_srcdir" ;;
16567 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16568 esac
16569 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16570 rm -f "$ac_dir/POTFILES"
16571 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16572 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 -050016573 POMAKEFILEDEPS="POTFILES.in"
16574 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016575 # on $ac_dir but don't depend on user-specified configuration
16576 # parameters.
16577 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16578 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016579 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016580 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16581 fi
16582 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16583 # Hide the ALL_LINGUAS assigment from automake.
16584 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016585 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16586 else
16587 # The set of available languages was given in configure.in.
16588 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016589 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016590 # Compute POFILES
16591 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16592 # Compute UPDATEPOFILES
16593 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16594 # Compute DUMMYPOFILES
16595 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16596 # Compute GMOFILES
16597 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016598 case "$ac_given_srcdir" in
16599 .) srcdirpre= ;;
16600 *) srcdirpre='$(srcdir)/' ;;
16601 esac
16602 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016603 UPDATEPOFILES=
16604 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016605 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016606 for lang in $ALL_LINGUAS; do
16607 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016608 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16609 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016610 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016611 done
16612 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16613 # environment variable.
16614 INST_LINGUAS=
16615 if test -n "$ALL_LINGUAS"; then
16616 for presentlang in $ALL_LINGUAS; do
16617 useit=no
16618 if test "%UNSET%" != "$LINGUAS"; then
16619 desiredlanguages="$LINGUAS"
16620 else
16621 desiredlanguages="$ALL_LINGUAS"
16622 fi
16623 for desiredlang in $desiredlanguages; do
16624 # Use the presentlang catalog if desiredlang is
16625 # a. equal to presentlang, or
16626 # b. a variant of presentlang (because in this case,
16627 # presentlang can be used as a fallback for messages
16628 # which are not translated in the desiredlang catalog).
16629 case "$desiredlang" in
16630 "$presentlang"*) useit=yes;;
16631 esac
16632 done
16633 if test $useit = yes; then
16634 INST_LINGUAS="$INST_LINGUAS $presentlang"
16635 fi
16636 done
16637 fi
16638 CATALOGS=
16639 if test -n "$INST_LINGUAS"; then
16640 for lang in $INST_LINGUAS; do
16641 CATALOGS="$CATALOGS $lang.gmo"
16642 done
16643 fi
16644 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016645 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 -040016646 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16647 if test -f "$f"; then
16648 case "$f" in
16649 *.orig | *.bak | *~) ;;
16650 *) cat "$f" >> "$ac_dir/Makefile" ;;
16651 esac
16652 fi
16653 done
16654 fi
16655 ;;
16656 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016657 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016658
Theodore Ts'oe1052142006-10-21 21:46:47 -040016659 esac
16660done # for ac_tag
16661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016662
16663{ (exit 0); exit 0; }
16664_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016665chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016666ac_clean_files=$ac_clean_files_save
16667
16668
16669# configure is writing to config.log, and then calls config.status.
16670# config.status does its own redirection, appending to config.log.
16671# Unfortunately, on DOS this fails, as config.log is still kept open
16672# by configure, so config.status won't be able to write to it; its
16673# output is simply discarded. So we exec the FD to /dev/null,
16674# effectively closing config.log, so it can be properly (re)opened and
16675# appended to by config.status. When coming back to configure, we
16676# need to make the FD available again.
16677if test "$no_create" != yes; then
16678 ac_cs_success=:
16679 ac_config_status_args=
16680 test "$silent" = yes &&
16681 ac_config_status_args="$ac_config_status_args --quiet"
16682 exec 5>/dev/null
16683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16684 exec 5>>config.log
16685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16686 # would make configure fail if this is the last instruction.
16687 $ac_cs_success || { (exit 1); exit 1; }
16688fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016689
Theodore Ts'oee683a12005-02-05 15:53:56 -050016690if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16691