blob: 074aae137cf21b44efbd2037b3b844af0925f68c [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003# Generated by GNU Autoconf 2.61.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Theodore Ts'oe1052142006-10-21 21:46:47 -040053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050059
Theodore Ts'oe1052142006-10-21 21:46:47 -040060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Theodore Ts'oe1052142006-10-21 21:46:47 -040080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081
Theodore Ts'oe1052142006-10-21 21:46:47 -040082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500112 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400226 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500227 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Theodore Ts'oe1052142006-10-21 21:46:47 -0400252fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400253
Theodore Ts'oe1052142006-10-21 21:46:47 -0400254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400274
Theodore Ts'oe1052142006-10-21 21:46:47 -0400275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500442 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500450 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400451 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461 # Exit status is that of the last command.
462 exit
463}
464
465
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481esac
482
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500505 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400523else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400542as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551
Theodore Ts'oe1052142006-10-21 21:46:47 -0400552exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559#
560# Initializations.
561#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500564ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400565LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="version.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400583#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584# include <sys/types.h>
585#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400586#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587# include <sys/stat.h>
588#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <stdlib.h>
591# include <stddef.h>
592#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400593# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# include <stdlib.h>
595# endif
596#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500604# include <strings.h>
605#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400606#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500607# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400610# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <unistd.h>
614#endif"
615
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653E2FSPROGS_YEAR
654E2FSPROGS_MONTH
655E2FSPROGS_DAY
656E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500657E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400673CPP
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400674LD
Theodore Ts'oe1052142006-10-21 21:46:47 -0400675GREP
676EGREP
677LINUX_INCLUDE
678MAINTAINER_CMT
679HTREE_CMT
680ELF_CMT
681BSDLIB_CMT
682PROFILE_CMT
683CHECKER_CMT
684LIB_EXT
685STATIC_LIB_EXT
686PROFILED_LIB_EXT
687SWAPFS_CMT
688DEBUGFS_CMT
689IMAGER_CMT
690RESIZER_CMT
691E2FSCK_TYPE
692FSCK_PROG
693FSCK_MAN
694E2INITRD_PROG
695E2INITRD_MAN
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500696PKG_CONFIG
Theodore Ts'oe1052142006-10-21 21:46:47 -0400697DEVMAPPER_REQ
698DEVMAPPER_PC_LIBS
699DEVMAPPER_LIBS
700STATIC_DEVMAPPER_LIBS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500701STATIC_BLKID_DEVMAPPER_LIBS
Theodore Ts'o5610f992007-12-31 11:16:56 -0500702UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400703GETTEXT_PACKAGE
704PACKAGE
705VERSION
706SET_MAKE
707INSTALL_PROGRAM
708INSTALL_SCRIPT
709INSTALL_DATA
710MKINSTALLDIRS
711USE_NLS
712MSGFMT
713GMSGFMT
714XGETTEXT
715MSGMERGE
716RANLIB
717ALLOCA
718GLIBC21
719HAVE_POSIX_PRINTF
720HAVE_ASPRINTF
721HAVE_SNPRINTF
722HAVE_WPRINTF
723LIBICONV
724LTLIBICONV
725INTLBISON
726BUILD_INCLUDED_LIBINTL
727USE_INCLUDED_LIBINTL
728CATOBJEXT
729DATADIRNAME
730INSTOBJEXT
731GENCAT
732INTLOBJS
733INTL_LIBTOOL_SUFFIX_PREFIX
734INTLLIBS
735LIBINTL
736LTLIBINTL
737POSUB
738BINARY_TYPE
739LN
740LN_S
741MV
742CP
743RM
744CHMOD
745AWK
746SED
747PERL
748LDCONFIG
749AR
750STRIP
751BUILD_CC
752SIZEOF_SHORT
753SIZEOF_INT
754SIZEOF_LONG
755SIZEOF_LONG_LONG
756SOCKET_LIB
757DLOPEN_LIB
758UNI_DIFF_OPTS
759LINUX_CMT
760CYGWIN_CMT
761UNIX_CMT
762root_prefix
763root_bindir
764root_sbindir
765root_libdir
766root_sysconfdir
767LDFLAG_STATIC
768SS_DIR
769ET_DIR
770DO_TEST_SUITE
771INTL_FLAGS
772BUILD_CFLAGS
773BUILD_LDFLAGS
774LIBOBJS
775LTLIBOBJS'
776ac_subst_files='MCONFIG
777MAKEFILE_ELF
778MAKEFILE_BSDLIB
779MAKEFILE_PROFILE
780MAKEFILE_CHECKER
781MAKEFILE_LIBRARY
782ASM_TYPES_HEADER'
783 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
1375 --disable-swapfs disable support of legacy byte-swapped filesystems
1376 --disable-debugfs disable support of debugfs program
1377 --disable-imager disable support of e2image program
1378 --disable-resizer disable support of e2resize program
1379 --enable-dynamic-e2fsck build e2fsck dynamically
1380 --enable-fsck build fsck wrapper program
1381 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001382 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001383 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001384 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001385 --disable-nls do not use Native Language Support
1386 --disable-rpath do not hardcode runtime library paths
1387
1388Optional Packages:
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001391 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001392 --with-cc=COMPILER select compiler to use
1393 --with-linker=LINKER select linker to use
1394 --with-ccopts=CCOPTS select compiler command line options
1395 --with-ldopts=LDOPTS select linker command line options
1396 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1397 --with-gnu-ld assume the C compiler uses GNU ld default=no
1398 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1399 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1400 --with-included-gettext use the GNU gettext library included here
1401 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1402 --without-libintl-prefix don't search for libintl in includedir and libdir
1403
1404Some influential environment variables:
1405 CC C compiler command
1406 CFLAGS C compiler flags
1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1408 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001409 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001410 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1411 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001412 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001413 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001414
1415Use these variables to override the choices made by `configure' or to help
1416it to find libraries and programs with nonstandard names/locations.
1417
1418_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001419ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001420fi
1421
1422if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001425 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001426 ac_builddir=.
1427
Theodore Ts'oe1052142006-10-21 21:46:47 -04001428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001431 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443
1444case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001445 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001446 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001450 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001459
Theodore Ts'oe1052142006-10-21 21:46:47 -04001460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001468 else
1469 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472 done
1473fi
1474
Theodore Ts'oe1052142006-10-21 21:46:47 -04001475test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001476if $ac_init_version; then
1477 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001478configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001479generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480
Theodore Ts'oe1052142006-10-21 21:46:47 -04001481Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14822002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483This configure script is free software; the Free Software Foundation
1484gives unlimited permission to copy, distribute and modify it.
1485_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001486 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001488cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001489This file contains any messages produced by compilers while
1490running configure, to aid debugging if configure makes a mistake.
1491
1492It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001493generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001494
1495 $ $0 $@
1496
1497_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001498exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001499{
1500cat <<_ASUNAME
1501## --------- ##
1502## Platform. ##
1503## --------- ##
1504
1505hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1506uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509uname -v = `(uname -v) 2>/dev/null || echo unknown`
1510
1511/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1512/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1513
1514/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1515/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1516/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001517/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001518/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1519/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1520/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1521
1522_ASUNAME
1523
1524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525for as_dir in $PATH
1526do
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 echo "PATH: $as_dir"
1530done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001531IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001532
1533} >&5
1534
1535cat >&5 <<_ACEOF
1536
1537
1538## ----------- ##
1539## Core tests. ##
1540## ----------- ##
1541
1542_ACEOF
1543
1544
1545# Keep a trace of the command line.
1546# Strip out --no-create and --no-recursion so they do not pile up.
1547# Strip out --silent because we don't want to record it for future runs.
1548# Also quote any args containing shell meta-characters.
1549# Make two passes to allow for proper duplicate-argument suppression.
1550ac_configure_args=
1551ac_configure_args0=
1552ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553ac_must_keep_next=false
1554for ac_pass in 1 2
1555do
1556 for ac_arg
1557 do
1558 case $ac_arg in
1559 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1562 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001563 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565 esac
1566 case $ac_pass in
1567 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1568 2)
1569 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570 if test $ac_must_keep_next = true; then
1571 ac_must_keep_next=false # Got value, back to normal.
1572 else
1573 case $ac_arg in
1574 *=* | --config-cache | -C | -disable-* | --disable-* \
1575 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577 | -with-* | --with-* | -without-* | --without-* | --x)
1578 case "$ac_configure_args0 " in
1579 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 esac
1581 ;;
1582 -* ) ac_must_keep_next=true ;;
1583 esac
1584 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001585 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001586 ;;
1587 esac
1588 done
1589done
1590$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1592
1593# When interrupted or exit'd, cleanup temporary files, and complete
1594# config.log. We remove comments because anyway the quotes in there
1595# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001596# WARNING: Use '\'' to represent an apostrophe within the trap.
1597# 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 -05001598trap 'exit_status=$?
1599 # Save into config.log some information that might help in debugging.
1600 {
1601 echo
1602
1603 cat <<\_ASBOX
1604## ---------------- ##
1605## Cache variables. ##
1606## ---------------- ##
1607_ASBOX
1608 echo
1609 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610(
1611 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in #(
1614 *${as_nl}*)
1615 case $ac_var in #(
1616 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1617echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 esac
1619 case $ac_var in #(
1620 _ | IFS | as_nl) ;; #(
1621 *) $as_unset $ac_var ;;
1622 esac ;;
1623 esac
1624 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001625 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001626 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1627 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001628 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001629 "s/'\''/'\''\\\\'\'''\''/g;
1630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001634 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001635 esac |
1636 sort
1637)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001638 echo
1639
1640 cat <<\_ASBOX
1641## ----------------- ##
1642## Output variables. ##
1643## ----------------- ##
1644_ASBOX
1645 echo
1646 for ac_var in $ac_subst_vars
1647 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001648 eval ac_val=\$$ac_var
1649 case $ac_val in
1650 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 esac
1652 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001653 done | sort
1654 echo
1655
1656 if test -n "$ac_subst_files"; then
1657 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001658## ------------------- ##
1659## File substitutions. ##
1660## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001661_ASBOX
1662 echo
1663 for ac_var in $ac_subst_files
1664 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001665 eval ac_val=\$$ac_var
1666 case $ac_val in
1667 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1668 esac
1669 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001670 done | sort
1671 echo
1672 fi
1673
1674 if test -s confdefs.h; then
1675 cat <<\_ASBOX
1676## ----------- ##
1677## confdefs.h. ##
1678## ----------- ##
1679_ASBOX
1680 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001681 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001682 echo
1683 fi
1684 test "$ac_signal" != 0 &&
1685 echo "$as_me: caught signal $ac_signal"
1686 echo "$as_me: exit $exit_status"
1687 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001688 rm -f core *.core core.conftest.* &&
1689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001691' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001692for ac_signal in 1 2 13 15; do
1693 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694done
1695ac_signal=0
1696
1697# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001698rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001699
1700# Predefined preprocessor variables.
1701
1702cat >>confdefs.h <<_ACEOF
1703#define PACKAGE_NAME "$PACKAGE_NAME"
1704_ACEOF
1705
1706
1707cat >>confdefs.h <<_ACEOF
1708#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709_ACEOF
1710
1711
1712cat >>confdefs.h <<_ACEOF
1713#define PACKAGE_VERSION "$PACKAGE_VERSION"
1714_ACEOF
1715
1716
1717cat >>confdefs.h <<_ACEOF
1718#define PACKAGE_STRING "$PACKAGE_STRING"
1719_ACEOF
1720
1721
1722cat >>confdefs.h <<_ACEOF
1723#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724_ACEOF
1725
1726
1727# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001728# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001729if test -n "$CONFIG_SITE"; then
1730 set x "$CONFIG_SITE"
1731elif test "x$prefix" != xNONE; then
1732 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1733else
1734 set x "$ac_default_prefix/share/config.site" \
1735 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001736fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001737shift
1738for ac_site_file
1739do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001740 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001741 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001744 . "$ac_site_file"
1745 fi
1746done
1747
1748if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753echo "$as_me: loading cache $cache_file" >&6;}
1754 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001757 esac
1758 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001759else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001760 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761echo "$as_me: creating cache $cache_file" >&6;}
1762 >$cache_file
1763fi
1764
1765# Check that the precious variables saved in the cache have kept the same
1766# value.
1767ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001768for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001773 case $ac_old_set,$ac_new_set in
1774 set,)
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1778 ,set)
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1782 ,);;
1783 *)
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1786echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1787 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1788echo "$as_me: former value: $ac_old_val" >&2;}
1789 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1790echo "$as_me: current value: $ac_new_val" >&2;}
1791 ac_cache_corrupted=:
1792 fi;;
1793 esac
1794 # Pass precious variables to config.status.
1795 if test "$ac_new_set" = set; then
1796 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001797 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001798 *) ac_arg=$ac_var=$ac_new_val ;;
1799 esac
1800 case " $ac_configure_args " in
1801 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1802 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1803 esac
1804 fi
1805done
1806if $ac_cache_corrupted; then
1807 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1808echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1809 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1810echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1811 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001812fi
1813
Theodore Ts'oe1052142006-10-21 21:46:47 -04001814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001830ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001831ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001836
1837
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001838ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001839for ac_dir in config "$srcdir"/config; do
1840 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001841 ac_aux_dir=$ac_dir
1842 ac_install_sh="$ac_aux_dir/install-sh -c"
1843 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001844 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001845 ac_aux_dir=$ac_dir
1846 ac_install_sh="$ac_aux_dir/install.sh -c"
1847 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001848 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001849 ac_aux_dir=$ac_dir
1850 ac_install_sh="$ac_aux_dir/shtool install -c"
1851 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001852 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001853done
1854if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001855 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1856echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001857 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001858fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001859
1860# These three variables are undocumented and unsupported,
1861# and are intended to be withdrawn in a future Autoconf release.
1862# They can cause serious problems if a builder's source tree is in a directory
1863# whose full name contains unusual characters.
1864ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1865ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1866ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1867
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001868
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001869MCONFIG=./MCONFIG
1870
Theodore Ts'o74becf31997-04-26 14:37:06 +00001871BINARY_TYPE=bin
1872E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1873 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1874DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1875 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001876E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001877MONTH=`echo $DATE | awk -F- '{print $2}'`
1878YEAR=`echo $DATE | awk -F- '{print $3}'`
1879
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001880if expr $YEAR ">" 1900 > /dev/null ; then
1881 E2FSPROGS_YEAR=$YEAR
1882elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001883 E2FSPROGS_YEAR=19$YEAR
1884else
1885 E2FSPROGS_YEAR=20$YEAR
1886fi
1887
1888case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001889Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1890Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1891Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1892Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1893May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1894Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1895Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1896Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1897Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1898Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1899Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1900Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001901*) echo "Unknown month $MONTH??" ;;
1902esac
1903
Andreas Dilger927566a2006-11-12 19:41:25 -05001904base_ver=`echo $E2FSPROGS_VERSION | \
1905 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1906pre_vers=`echo $base_ver 0.01 - p | dc`
1907
1908date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1909
1910case $E2FSPROGS_VERSION in
1911*-WIP|pre-*)
1912 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1913 ;;
1914*)
1915 E2FSPROGS_PKGVER="$base_ver"
1916 ;;
1917esac
1918
1919unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001920echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1921echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1922
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001923
1924
1925
Andreas Dilger927566a2006-11-12 19:41:25 -05001926
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001927# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001928$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001931 { (exit 1); exit 1; }; }
1932
Theodore Ts'oe1052142006-10-21 21:46:47 -04001933{ echo "$as_me:$LINENO: checking build system type" >&5
1934echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001935if test "${ac_cv_build+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001938 ac_build_alias=$build_alias
1939test "x$ac_build_alias" = x &&
1940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001942 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001945ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001948 { (exit 1); exit 1; }; }
1949
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001950fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001951{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952echo "${ECHO_T}$ac_cv_build" >&6; }
1953case $ac_cv_build in
1954*-*-*) ;;
1955*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956echo "$as_me: error: invalid value of canonical build" >&2;}
1957 { (exit 1); exit 1; }; };;
1958esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001959build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001960ac_save_IFS=$IFS; IFS='-'
1961set x $ac_cv_build
1962shift
1963build_cpu=$1
1964build_vendor=$2
1965shift; shift
1966# Remember, the first character of IFS is used to create $*,
1967# except with old shells:
1968build_os=$*
1969IFS=$ac_save_IFS
1970case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001971
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001972
Theodore Ts'oe1052142006-10-21 21:46:47 -04001973{ echo "$as_me:$LINENO: checking host system type" >&5
1974echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001975if test "${ac_cv_host+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001978 if test "x$host_alias" = x; then
1979 ac_cv_host=$ac_cv_build
1980else
1981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1982 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001984 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001985fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001986
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001987fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001988{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989echo "${ECHO_T}$ac_cv_host" >&6; }
1990case $ac_cv_host in
1991*-*-*) ;;
1992*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993echo "$as_me: error: invalid value of canonical host" >&2;}
1994 { (exit 1); exit 1; }; };;
1995esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001996host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001997ac_save_IFS=$IFS; IFS='-'
1998set x $ac_cv_host
1999shift
2000host_cpu=$1
2001host_vendor=$2
2002shift; shift
2003# Remember, the first character of IFS is used to create $*,
2004# except with old shells:
2005host_os=$*
2006IFS=$ac_save_IFS
2007case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002008
2009
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002010
Theodore Ts'oe1052142006-10-21 21:46:47 -04002011# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002012if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002013 withval=$with_diet_libc; CC="diet cc -nostdinc"
2014{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2015echo "${ECHO_T}CC=$CC" >&6; }
2016fi
2017
2018# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002019if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002020 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2021echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002022CC=$withval
2023else
2024 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002025{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2026echo "${ECHO_T}CC defaults to $CC" >&6; }
2027fi
2028export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002030ac_ext=c
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035if test -n "$ac_tool_prefix"; then
2036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2037set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002040if test "${ac_cv_prog_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002042else
2043 if test -n "$CC"; then
2044 ac_cv_prog_CC="$CC" # Let the user override the test.
2045else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002052 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 -05002053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057done
2058done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002059IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002060
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002061fi
2062fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002063CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002064if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002065 { echo "$as_me:$LINENO: result: $CC" >&5
2066echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002067else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002068 { echo "$as_me:$LINENO: result: no" >&5
2069echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002070fi
2071
Theodore Ts'oe1052142006-10-21 21:46:47 -04002072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002073fi
2074if test -z "$ac_cv_prog_CC"; then
2075 ac_ct_CC=$CC
2076 # Extract the first word of "gcc", so it can be a program name with args.
2077set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002092 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 -05002093 ac_cv_prog_ac_ct_CC="gcc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097done
2098done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002099IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002100
2101fi
2102fi
2103ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002105 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002107else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002108 { echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002110fi
2111
Theodore Ts'oe1052142006-10-21 21:46:47 -04002112 if test "x$ac_ct_CC" = x; then
2113 CC=""
2114 else
2115 case $cross_compiling:$ac_tool_warned in
2116yes:)
2117{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2118whose name does not start with the host triplet. If you think this
2119configuration is useful to you, please write to autoconf@gnu.org." >&5
2120echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2121whose name does not start with the host triplet. If you think this
2122configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2123ac_tool_warned=yes ;;
2124esac
2125 CC=$ac_ct_CC
2126 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002127else
2128 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002129fi
2130
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002131if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002132 if test -n "$ac_tool_prefix"; then
2133 # 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 -05002134set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002137if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002139else
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002149 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 -05002150 ac_cv_prog_CC="${ac_tool_prefix}cc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 break 2
2153 fi
2154done
2155done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002156IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002157
2158fi
2159fi
2160CC=$ac_cv_prog_CC
2161if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002162 { echo "$as_me:$LINENO: result: $CC" >&5
2163echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002164else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002165 { echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002167fi
2168
Theodore Ts'oe1052142006-10-21 21:46:47 -04002169
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002170 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002171fi
2172if test -z "$CC"; then
2173 # Extract the first word of "cc", so it can be a program name with args.
2174set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002177if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002183 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002190 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 -05002191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192 ac_prog_rejected=yes
2193 continue
2194 fi
2195 ac_cv_prog_CC="cc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2198 fi
2199done
2200done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002201IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002202
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002203if test $ac_prog_rejected = yes; then
2204 # We found a bogon in the path, so make sure we never use it.
2205 set dummy $ac_cv_prog_CC
2206 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002207 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002208 # We chose a different compiler from the bogus one.
2209 # However, it has the same basename, so the bogon will be chosen
2210 # first if we set CC to just the basename; use the full file name.
2211 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002213 fi
2214fi
2215fi
2216fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002217CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002218if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002219 { echo "$as_me:$LINENO: result: $CC" >&5
2220echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002221else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002222 { echo "$as_me:$LINENO: result: no" >&5
2223echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002224fi
2225
Theodore Ts'oe1052142006-10-21 21:46:47 -04002226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002227fi
2228if test -z "$CC"; then
2229 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002230 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002231 do
2232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002236if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002238else
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2241else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002248 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 -05002249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2252 fi
2253done
2254done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002255IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002256
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002257fi
2258fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002259CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002260if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002261 { echo "$as_me:$LINENO: result: $CC" >&5
2262echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002263else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002264 { echo "$as_me:$LINENO: result: no" >&5
2265echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002266fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002267
Theodore Ts'oe1052142006-10-21 21:46:47 -04002268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002269 test -n "$CC" && break
2270 done
2271fi
2272if test -z "$CC"; then
2273 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002274 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002275do
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002280if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285else
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002292 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 -05002293 ac_cv_prog_ac_ct_CC="$ac_prog"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002296 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002297done
2298done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002299IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002300
2301fi
2302fi
2303ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002307else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002308 { echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002310fi
2311
Theodore Ts'oe1052142006-10-21 21:46:47 -04002312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002313 test -n "$ac_ct_CC" && break
2314done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002315
Theodore Ts'oe1052142006-10-21 21:46:47 -04002316 if test "x$ac_ct_CC" = x; then
2317 CC=""
2318 else
2319 case $cross_compiling:$ac_tool_warned in
2320yes:)
2321{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2322whose name does not start with the host triplet. If you think this
2323configuration is useful to you, please write to autoconf@gnu.org." >&5
2324echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2325whose name does not start with the host triplet. If you think this
2326configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2327ac_tool_warned=yes ;;
2328esac
2329 CC=$ac_ct_CC
2330 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002331fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002333fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002334
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002335
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002336test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2337See \`config.log' for more details." >&5
2338echo "$as_me: error: no acceptable C compiler found in \$PATH
2339See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2341
2342# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002343echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002344ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002345{ (ac_try="$ac_compiler --version >&5"
2346case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349esac
2350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002355{ (ac_try="$ac_compiler -v >&5"
2356case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359esac
2360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002365{ (ac_try="$ac_compiler -V >&5"
2366case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369esac
2370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }
2375
2376cat >conftest.$ac_ext <<_ACEOF
2377/* confdefs.h. */
2378_ACEOF
2379cat confdefs.h >>conftest.$ac_ext
2380cat >>conftest.$ac_ext <<_ACEOF
2381/* end confdefs.h. */
2382
2383int
2384main ()
2385{
2386
2387 ;
2388 return 0;
2389}
2390_ACEOF
2391ac_clean_files_save=$ac_clean_files
2392ac_clean_files="$ac_clean_files a.out a.exe b.out"
2393# Try to create an executable without -o first, disregard a.out.
2394# It will help us diagnose broken compilers, and finding out an intuition
2395# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2397echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002398ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002399#
2400# List of possible output files, starting from the most likely.
2401# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2402# only as a last resort. b.out is created by i960 compilers.
2403ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2404#
2405# The IRIX 6 linker writes into existing files which may not be
2406# executable, retaining their permissions. Remove them first so a
2407# subsequent execution test works.
2408ac_rmfiles=
2409for ac_file in $ac_files
2410do
2411 case $ac_file in
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2414 esac
2415done
2416rm -f $ac_rmfiles
2417
2418if { (ac_try="$ac_link_default"
2419case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422esac
2423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2429# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2430# in a Makefile. We should not override ac_cv_exeext if it was cached,
2431# so that the user can short-circuit this test for compilers unknown to
2432# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002433for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002434do
2435 test -f "$ac_file" || continue
2436 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002438 ;;
2439 [ab].out )
2440 # We found the default executable, but exeext='' is most
2441 # certainly right.
2442 break;;
2443 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2445 then :; else
2446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447 fi
2448 # We set ac_cv_exeext here because the later test for it is not
2449 # safe: cross compilers may not add the suffix if given an `-o'
2450 # argument, so we may need to know it at that point already.
2451 # Even if this section looks crufty: it has the advantage of
2452 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 break;;
2454 * )
2455 break;;
2456 esac
2457done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002458test "$ac_cv_exeext" = no && ac_cv_exeext=
2459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002461 ac_file=''
2462fi
2463
2464{ echo "$as_me:$LINENO: result: $ac_file" >&5
2465echo "${ECHO_T}$ac_file" >&6; }
2466if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002467 echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471See \`config.log' for more details." >&5
2472echo "$as_me: error: C compiler cannot create executables
2473See \`config.log' for more details." >&2;}
2474 { (exit 77); exit 77; }; }
2475fi
2476
2477ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478
Theodore Ts'oe1052142006-10-21 21:46:47 -04002479# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2482echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002483# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2484# If not cross compiling, check that we can run a simple program.
2485if test "$cross_compiling" != yes; then
2486 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002487 { (case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490esac
2491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002497 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002498 if test "$cross_compiling" = maybe; then
2499 cross_compiling=yes
2500 else
2501 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2502If you meant to cross compile, use \`--host'.
2503See \`config.log' for more details." >&5
2504echo "$as_me: error: cannot run C compiled programs.
2505If you meant to cross compile, use \`--host'.
2506See \`config.log' for more details." >&2;}
2507 { (exit 1); exit 1; }; }
2508 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002509 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511{ echo "$as_me:$LINENO: result: yes" >&5
2512echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514rm -f a.out a.exe conftest$ac_cv_exeext b.out
2515ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002516# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002518{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2520{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002522
Theodore Ts'oe1052142006-10-21 21:46:47 -04002523{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2525if { (ac_try="$ac_link"
2526case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; then
2535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2537# work properly (i.e., refer to `conftest.exe'), while it won't with
2538# `rm'.
2539for ac_file in conftest.exe conftest conftest.*; do
2540 test -f "$ac_file" || continue
2541 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002544 break;;
2545 * ) break;;
2546 esac
2547done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002548else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002549 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2550See \`config.log' for more details." >&5
2551echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2552See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }
2554fi
2555
2556rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002557{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2558echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002559
2560rm -f conftest.$ac_ext
2561EXEEXT=$ac_cv_exeext
2562ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002563{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2564echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565if test "${ac_cv_objext+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567else
2568 cat >conftest.$ac_ext <<_ACEOF
2569/* confdefs.h. */
2570_ACEOF
2571cat confdefs.h >>conftest.$ac_ext
2572cat >>conftest.$ac_ext <<_ACEOF
2573/* end confdefs.h. */
2574
2575int
2576main ()
2577{
2578
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002584if { (ac_try="$ac_compile"
2585case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588esac
2589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002594 for ac_file in conftest.o conftest.obj conftest.*; do
2595 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002596 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2599 break;;
2600 esac
2601done
2602else
2603 echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2607See \`config.log' for more details." >&5
2608echo "$as_me: error: cannot compute suffix of object files: cannot compile
2609See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2611fi
2612
2613rm -f conftest.$ac_cv_objext conftest.$ac_ext
2614fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002615{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2616echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002617OBJEXT=$ac_cv_objext
2618ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002619{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2620echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002621if test "${ac_cv_c_compiler_gnu+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623else
2624 cat >conftest.$ac_ext <<_ACEOF
2625/* confdefs.h. */
2626_ACEOF
2627cat confdefs.h >>conftest.$ac_ext
2628cat >>conftest.$ac_ext <<_ACEOF
2629/* end confdefs.h. */
2630
2631int
2632main ()
2633{
2634#ifndef __GNUC__
2635 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002636#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002638 ;
2639 return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002643if { (ac_try="$ac_compile"
2644case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2647esac
2648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002650 ac_status=$?
2651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002655 (exit $ac_status); } && {
2656 test -z "$ac_c_werror_flag" ||
2657 test ! -s conftest.err
2658 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002660else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661 echo "$as_me: failed program was:" >&5
2662sed 's/^/| /' conftest.$ac_ext >&5
2663
Theodore Ts'oe1052142006-10-21 21:46:47 -04002664 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002665fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002666
2667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002668ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002669
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002670fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002671{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2672echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002673GCC=`test $ac_compiler_gnu = yes && echo yes`
2674ac_test_CFLAGS=${CFLAGS+set}
2675ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002676{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002678if test "${ac_cv_prog_cc_g+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002680else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002681 ac_save_c_werror_flag=$ac_c_werror_flag
2682 ac_c_werror_flag=yes
2683 ac_cv_prog_cc_g=no
2684 CFLAGS="-g"
2685 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
2691
2692int
2693main ()
2694{
2695
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002701if { (ac_try="$ac_compile"
2702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002717 ac_cv_prog_cc_g=yes
2718else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002719 echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002721
Theodore Ts'oe1052142006-10-21 21:46:47 -04002722 CFLAGS=""
2723 cat >conftest.$ac_ext <<_ACEOF
2724/* confdefs.h. */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h. */
2729
2730int
2731main ()
2732{
2733
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext
2739if { (ac_try="$ac_compile"
2740case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compile") 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002751 (exit $ac_status); } && {
2752 test -z "$ac_c_werror_flag" ||
2753 test ! -s conftest.err
2754 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002755 :
2756else
2757 echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 ac_c_werror_flag=$ac_save_c_werror_flag
2761 CFLAGS="-g"
2762 cat >conftest.$ac_ext <<_ACEOF
2763/* confdefs.h. */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h. */
2768
2769int
2770main ()
2771{
2772
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (ac_try="$ac_compile"
2779case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782esac
2783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_compile") 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002790 (exit $ac_status); } && {
2791 test -z "$ac_c_werror_flag" ||
2792 test ! -s conftest.err
2793 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002794 ac_cv_prog_cc_g=yes
2795else
2796 echo "$as_me: failed program was:" >&5
2797sed 's/^/| /' conftest.$ac_ext >&5
2798
2799
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002801
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002804
2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806fi
2807
2808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_c_werror_flag=$ac_save_c_werror_flag
2810fi
2811{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2812echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002813if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002814 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002815elif test $ac_cv_prog_cc_g = yes; then
2816 if test "$GCC" = yes; then
2817 CFLAGS="-g -O2"
2818 else
2819 CFLAGS="-g"
2820 fi
2821else
2822 if test "$GCC" = yes; then
2823 CFLAGS="-O2"
2824 else
2825 CFLAGS=
2826 fi
2827fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002828{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2829echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2830if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002833 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002834ac_save_CC=$CC
2835cat >conftest.$ac_ext <<_ACEOF
2836/* confdefs.h. */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h. */
2841#include <stdarg.h>
2842#include <stdio.h>
2843#include <sys/types.h>
2844#include <sys/stat.h>
2845/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2846struct buf { int x; };
2847FILE * (*rcsopen) (struct buf *, struct stat *, int);
2848static char *e (p, i)
2849 char **p;
2850 int i;
2851{
2852 return p[i];
2853}
2854static char *f (char * (*g) (char **, int), char **p, ...)
2855{
2856 char *s;
2857 va_list v;
2858 va_start (v,p);
2859 s = g (p, va_arg (v,int));
2860 va_end (v);
2861 return s;
2862}
2863
2864/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2865 function prototypes and stuff, but not '\xHH' hex character constants.
2866 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002867 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2869 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002871int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872
Theodore Ts'oe1052142006-10-21 21:46:47 -04002873/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2874 inside strings and character constants. */
2875#define FOO(x) 'x'
2876int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002878int test (int i, double x);
2879struct s1 {int (*f) (int a);};
2880struct s2 {int (*f) (double a);};
2881int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2882int argc;
2883char **argv;
2884int
2885main ()
2886{
2887return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2888 ;
2889 return 0;
2890}
2891_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002892for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002894do
2895 CC="$ac_save_CC $ac_arg"
2896 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002897if { (ac_try="$ac_compile"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002904 ac_status=$?
2905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002913 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002914else
2915 echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
Theodore Ts'oe1052142006-10-21 21:46:47 -04002918
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002920
2921rm -f core conftest.err conftest.$ac_objext
2922 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002923done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002924rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002925CC=$ac_save_CC
2926
2927fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002928# AC_CACHE_VAL
2929case "x$ac_cv_prog_cc_c89" in
2930 x)
2931 { echo "$as_me:$LINENO: result: none needed" >&5
2932echo "${ECHO_T}none needed" >&6; } ;;
2933 xno)
2934 { echo "$as_me:$LINENO: result: unsupported" >&5
2935echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002937 CC="$CC $ac_cv_prog_cc_c89"
2938 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2939echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940esac
2941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943ac_ext=c
2944ac_cpp='$CPP $CPPFLAGS'
2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002949ac_ext=c
2950ac_cpp='$CPP $CPPFLAGS'
2951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002954{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2955echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002956# On Suns, sometimes $CPP names a directory.
2957if test -n "$CPP" && test -d "$CPP"; then
2958 CPP=
2959fi
2960if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961 if test "${ac_cv_prog_CPP+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002963else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002964 # Double quotes because CPP needs to be expanded
2965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2966 do
2967 ac_preproc_ok=false
2968for ac_c_preproc_warn_flag in '' yes
2969do
2970 # Use a header file that comes with gcc, so configuring glibc
2971 # with a fresh cross-compiler works.
2972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2973 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002974 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002975 # not just through cpp. "Syntax error" is here to catch this case.
2976 cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
2981/* end confdefs.h. */
2982#ifdef __STDC__
2983# include <limits.h>
2984#else
2985# include <assert.h>
2986#endif
2987 Syntax error
2988_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002989if { (ac_try="$ac_cpp conftest.$ac_ext"
2990case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993esac
2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003001 (exit $ac_status); } >/dev/null && {
3002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3004 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003005 :
3006else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007 echo "$as_me: failed program was:" >&5
3008sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010 # Broken: fails on valid input.
3011continue
3012fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003013
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003014rm -f conftest.err conftest.$ac_ext
3015
Theodore Ts'oe1052142006-10-21 21:46:47 -04003016 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003017 # can be detected and how.
3018 cat >conftest.$ac_ext <<_ACEOF
3019/* confdefs.h. */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h. */
3024#include <ac_nonexistent.h>
3025_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003026if { (ac_try="$ac_cpp conftest.$ac_ext"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003038 (exit $ac_status); } >/dev/null && {
3039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 # Broken: success on invalid input.
3043continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003045 echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 # Passes both tests.
3049ac_preproc_ok=:
3050break
3051fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053rm -f conftest.err conftest.$ac_ext
3054
3055done
3056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3057rm -f conftest.err conftest.$ac_ext
3058if $ac_preproc_ok; then
3059 break
3060fi
3061
3062 done
3063 ac_cv_prog_CPP=$CPP
3064
3065fi
3066 CPP=$ac_cv_prog_CPP
3067else
3068 ac_cv_prog_CPP=$CPP
3069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003070{ echo "$as_me:$LINENO: result: $CPP" >&5
3071echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003072ac_preproc_ok=false
3073for ac_c_preproc_warn_flag in '' yes
3074do
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087#ifdef __STDC__
3088# include <limits.h>
3089#else
3090# include <assert.h>
3091#endif
3092 Syntax error
3093_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003094if { (ac_try="$ac_cpp conftest.$ac_ext"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003110 :
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 # Broken: fails on valid input.
3116continue
3117fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003118
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119rm -f conftest.err conftest.$ac_ext
3120
Theodore Ts'oe1052142006-10-21 21:46:47 -04003121 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129#include <ac_nonexistent.h>
3130_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003131if { (ac_try="$ac_cpp conftest.$ac_ext"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003147 # Broken: success on invalid input.
3148continue
3149else
3150 echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 # Passes both tests.
3154ac_preproc_ok=:
3155break
3156fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003157
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003158rm -f conftest.err conftest.$ac_ext
3159
3160done
3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162rm -f conftest.err conftest.$ac_ext
3163if $ac_preproc_ok; then
3164 :
3165else
3166 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167See \`config.log' for more details." >&5
3168echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3171fi
3172
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003180# Check whether --with-linker was given.
3181if test "${with_linker+set}" = set; then
3182 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3183echo "${ECHO_T}LD=$withval" >&6; }
3184LD=$withval
3185else
3186 if test -z "$LD" ; then LD=$CC; fi
3187{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3188echo "${ECHO_T}LD defaults to $LD" >&6; }
3189fi
3190export LD
3191
3192
3193# Check whether --with-ccopts was given.
3194if test "${with_ccopts+set}" = set; then
3195 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3196echo "${ECHO_T}CCOPTS is $withval" >&6; }
3197CFLAGS=$withval
3198fi
3199
3200
Theodore Ts'oe1052142006-10-21 21:46:47 -04003201{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3202echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3203if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003206 # Extract the first word of "grep ggrep" to use in msg output
3207if test -z "$GREP"; then
3208set dummy grep ggrep; ac_prog_name=$2
3209if test "${ac_cv_path_GREP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212 ac_path_GREP_found=false
3213# Loop through the user's path and test for each of PROGNAME-LIST
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3216do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_prog in grep ggrep; do
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003223 # Check for GNU ac_path_GREP and select it if it is found.
3224 # Check for GNU $ac_path_GREP
3225case `"$ac_path_GREP" --version 2>&1` in
3226*GNU*)
3227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3228*)
3229 ac_count=0
3230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3231 while :
3232 do
3233 cat "conftest.in" "conftest.in" >"conftest.tmp"
3234 mv "conftest.tmp" "conftest.in"
3235 cp "conftest.in" "conftest.nl"
3236 echo 'GREP' >> "conftest.nl"
3237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3239 ac_count=`expr $ac_count + 1`
3240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3241 # Best one so far, save it but keep looking for a better one
3242 ac_cv_path_GREP="$ac_path_GREP"
3243 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003244 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003245 # 10*(2^10) chars as input seems more than enough
3246 test $ac_count -gt 10 && break
3247 done
3248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3249esac
3250
3251
3252 $ac_path_GREP_found && break 3
3253 done
3254done
3255
3256done
3257IFS=$as_save_IFS
3258
3259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003261
3262GREP="$ac_cv_path_GREP"
3263if test -z "$GREP"; then
3264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3265echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3266 { (exit 1); exit 1; }; }
3267fi
3268
3269else
3270 ac_cv_path_GREP=$GREP
3271fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003272
3273
Theodore Ts'oe1052142006-10-21 21:46:47 -04003274fi
3275{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3276echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3277 GREP="$ac_cv_path_GREP"
3278
3279
3280{ echo "$as_me:$LINENO: checking for egrep" >&5
3281echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3282if test "${ac_cv_path_EGREP+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3286 then ac_cv_path_EGREP="$GREP -E"
3287 else
3288 # Extract the first word of "egrep" to use in msg output
3289if test -z "$EGREP"; then
3290set dummy egrep; ac_prog_name=$2
3291if test "${ac_cv_path_EGREP+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294 ac_path_EGREP_found=false
3295# Loop through the user's path and test for each of PROGNAME-LIST
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3298do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_prog in egrep; do
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003304 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003305 # Check for GNU ac_path_EGREP and select it if it is found.
3306 # Check for GNU $ac_path_EGREP
3307case `"$ac_path_EGREP" --version 2>&1` in
3308*GNU*)
3309 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3310*)
3311 ac_count=0
3312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3313 while :
3314 do
3315 cat "conftest.in" "conftest.in" >"conftest.tmp"
3316 mv "conftest.tmp" "conftest.in"
3317 cp "conftest.in" "conftest.nl"
3318 echo 'EGREP' >> "conftest.nl"
3319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3321 ac_count=`expr $ac_count + 1`
3322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3323 # Best one so far, save it but keep looking for a better one
3324 ac_cv_path_EGREP="$ac_path_EGREP"
3325 ac_path_EGREP_max=$ac_count
3326 fi
3327 # 10*(2^10) chars as input seems more than enough
3328 test $ac_count -gt 10 && break
3329 done
3330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331esac
3332
3333
3334 $ac_path_EGREP_found && break 3
3335 done
3336done
3337
3338done
3339IFS=$as_save_IFS
3340
3341
3342fi
3343
3344EGREP="$ac_cv_path_EGREP"
3345if test -z "$EGREP"; then
3346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3348 { (exit 1); exit 1; }; }
3349fi
3350
3351else
3352 ac_cv_path_EGREP=$EGREP
3353fi
3354
3355
3356 fi
3357fi
3358{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3359echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3360 EGREP="$ac_cv_path_EGREP"
3361
3362
3363{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3364echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003365if test "${ac_cv_header_stdc+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368 cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h. */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h. */
3374#include <stdlib.h>
3375#include <stdarg.h>
3376#include <string.h>
3377#include <float.h>
3378
3379int
3380main ()
3381{
3382
3383 ;
3384 return 0;
3385}
3386_ACEOF
3387rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003388if { (ac_try="$ac_compile"
3389case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003400 (exit $ac_status); } && {
3401 test -z "$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003404 ac_cv_header_stdc=yes
3405else
3406 echo "$as_me: failed program was:" >&5
3407sed 's/^/| /' conftest.$ac_ext >&5
3408
Theodore Ts'oe1052142006-10-21 21:46:47 -04003409 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003410fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003411
3412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003413
3414if test $ac_cv_header_stdc = yes; then
3415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3416 cat >conftest.$ac_ext <<_ACEOF
3417/* confdefs.h. */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h. */
3422#include <string.h>
3423
3424_ACEOF
3425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3426 $EGREP "memchr" >/dev/null 2>&1; then
3427 :
3428else
3429 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003430fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003431rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003432
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003433fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003434
3435if test $ac_cv_header_stdc = yes; then
3436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3437 cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h. */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h. */
3443#include <stdlib.h>
3444
3445_ACEOF
3446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 $EGREP "free" >/dev/null 2>&1; then
3448 :
3449else
3450 ac_cv_header_stdc=no
3451fi
3452rm -f conftest*
3453
3454fi
3455
3456if test $ac_cv_header_stdc = yes; then
3457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3458 if test "$cross_compiling" = yes; then
3459 :
3460else
3461 cat >conftest.$ac_ext <<_ACEOF
3462/* confdefs.h. */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h. */
3467#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003468#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003469#if ((' ' & 0x0FF) == 0x020)
3470# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3471# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3472#else
3473# define ISLOWER(c) \
3474 (('a' <= (c) && (c) <= 'i') \
3475 || ('j' <= (c) && (c) <= 'r') \
3476 || ('s' <= (c) && (c) <= 'z'))
3477# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3478#endif
3479
3480#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3481int
3482main ()
3483{
3484 int i;
3485 for (i = 0; i < 256; i++)
3486 if (XOR (islower (i), ISLOWER (i))
3487 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003488 return 2;
3489 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003490}
3491_ACEOF
3492rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003493if { (ac_try="$ac_link"
3494case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497esac
3498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003503 { (case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506esac
3507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 :
3513else
3514 echo "$as_me: program exited with status $ac_status" >&5
3515echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518( exit $ac_status )
3519ac_cv_header_stdc=no
3520fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3522fi
3523
3524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003525fi
3526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003527{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3528echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003529if test $ac_cv_header_stdc = yes; then
3530
3531cat >>confdefs.h <<\_ACEOF
3532#define STDC_HEADERS 1
3533_ACEOF
3534
3535fi
3536
3537# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3548 inttypes.h stdint.h unistd.h
3549do
3550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562$ac_includes_default
3563
3564#include <$ac_header>
3565_ACEOF
3566rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003567if { (ac_try="$ac_compile"
3568case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
3572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583 eval "$as_ac_Header=yes"
3584else
3585 echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
Theodore Ts'oe1052142006-10-21 21:46:47 -04003588 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590
3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003593ac_res=`eval echo '${'$as_ac_Header'}'`
3594 { echo "$as_me:$LINENO: result: $ac_res" >&5
3595echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003596if test `eval echo '${'$as_ac_Header'}'` = yes; then
3597 cat >>confdefs.h <<_ACEOF
3598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3599_ACEOF
3600
3601fi
3602
3603done
3604
3605
3606if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003607 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3608echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003609if test "${ac_cv_header_linux_fs_h+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003612{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3613echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003614else
3615 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003616{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3617echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003618cat >conftest.$ac_ext <<_ACEOF
3619/* confdefs.h. */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
3623/* end confdefs.h. */
3624$ac_includes_default
3625#include <linux/fs.h>
3626_ACEOF
3627rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003628if { (ac_try="$ac_compile"
3629case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632esac
3633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003644 ac_header_compiler=yes
3645else
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
Theodore Ts'oe1052142006-10-21 21:46:47 -04003649 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003650fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651
3652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003655
3656# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003657{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3658echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003659cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665#include <linux/fs.h>
3666_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003667if { (ac_try="$ac_cpp conftest.$ac_ext"
3668case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671esac
3672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003679 (exit $ac_status); } >/dev/null && {
3680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3682 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003683 ac_header_preproc=yes
3684else
3685 echo "$as_me: failed program was:" >&5
3686sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 ac_header_preproc=no
3689fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003690
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003691rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003692{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3693echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003694
3695# So? What about this header?
3696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3697 yes:no: )
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3699echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3701echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3702 ac_header_preproc=yes
3703 ;;
3704 no:yes:* )
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3706echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3708echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3710echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3712echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3714echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3716echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003717
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003718 ;;
3719esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003720{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3721echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003722if test "${ac_cv_header_linux_fs_h+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725 ac_cv_header_linux_fs_h=$ac_header_preproc
3726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003727{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3728echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003729
3730fi
3731if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003732 linux_headers=yes
3733else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003734 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003735fi
3736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003737
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003738if test "$linux_headers" != yes; then
3739 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003740fi
3741
Theodore Ts'oe1052142006-10-21 21:46:47 -04003742{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3743echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003744if test "$GCC" = yes
3745then
3746 case "$host_cpu" in
3747 alpha) addcflags="-mieee" ;;
3748 esac
3749fi
3750if test "x$addcflags" != x
3751then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003752 { echo "$as_me:$LINENO: result: $addcflags" >&5
3753echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003754 CFLAGS="$addcflags $CFLAGS"
3755else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003756 { echo "$as_me:$LINENO: result: (none)" >&5
3757echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003758fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003759LIB_EXT=.a
3760STATIC_LIB_EXT=.a
3761PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003762
Theodore Ts'oe1052142006-10-21 21:46:47 -04003763# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003764if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003765 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3766echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003767LDFLAGS=$withval
3768else
3769 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003770fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003771
Theodore Ts'oe1052142006-10-21 21:46:47 -04003772
3773# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003774if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003775 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003776else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003777 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003778fi
3779# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003780if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003781 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003782then
3783 MAINTAINER_CMT=#
3784 echo "Disabling maintainer mode"
3785else
3786 MAINTAINER_CMT=
3787 echo "Enabling maintainer mode"
3788fi
3789
3790else
3791 MAINTAINER_CMT=#
3792echo "Disabling maintainer mode by default"
3793
Theodore Ts'oe1052142006-10-21 21:46:47 -04003794fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003795
Theodore Ts'oe1052142006-10-21 21:46:47 -04003796
3797# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003798if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003799 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003800then
3801 echo "Disabling compression support"
3802else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003803 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003804#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003805_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003806
3807 echo "Enabling compression support"
3808 echo "WARNING: Compression support is experimental"
3809fi
3810
3811else
3812 echo "Disabling compression support by default"
3813
Theodore Ts'oe1052142006-10-21 21:46:47 -04003814fi
3815
3816# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003817if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003818 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003819then
3820 HTREE_CMT=#
3821 echo "Disabling htree directory support"
3822else
3823 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003824 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003825#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003826_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003827
3828 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003829fi
3830
3831else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003832 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003833cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003834#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003835_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003836
3837echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003838
Theodore Ts'oe1052142006-10-21 21:46:47 -04003839fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003840
Theodore Ts'oe1052142006-10-21 21:46:47 -04003841
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003842E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003843# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003844if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003845 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003846then
3847 ELF_CMT=#
3848 MAKEFILE_ELF=/dev/null
3849 echo "Disabling ELF shared libraries"
3850else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003851 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003852 ELF_CMT=
3853 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003854 case "$host_os" in
3855 solaris2.*)
3856 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3857 ;;
3858 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003859 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003860 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003861 echo "Enabling ELF shared libraries"
3862fi
3863
3864else
3865 MAKEFILE_ELF=/dev/null
3866ELF_CMT=#
3867echo "Disabling ELF shared libraries by default"
3868
Theodore Ts'oe1052142006-10-21 21:46:47 -04003869fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003870
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003871
Theodore Ts'oe1052142006-10-21 21:46:47 -04003872
3873# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003874if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003875 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003876then
3877 BSDLIB_CMT=#
3878 MAKEFILE_BSDLIB=/dev/null
3879 echo "Disabling BSD shared libraries"
3880else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003881 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003882 BSDLIB_CMT=
3883 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003884 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003885 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003886 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003887 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3888 LIB_EXT=.dylib
3889 ;;
3890 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003891 echo "Enabling BSD shared libraries"
3892fi
3893
3894else
3895 MAKEFILE_BSDLIB=/dev/null
3896BSDLIB_CMT=#
3897echo "Disabling BSD shared libraries by default"
3898
Theodore Ts'oe1052142006-10-21 21:46:47 -04003899fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003900
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003901
Theodore Ts'oe1052142006-10-21 21:46:47 -04003902
3903# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003904if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003905 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003906then
3907 PROFILE_CMT=#
3908 MAKEFILE_PROFILE=/dev/null
3909 echo "Disabling profiling libraries"
3910else
3911 PROFILE_CMT=
3912 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3913 PROFILED_LIB_EXT=_p.a
3914 echo "Building profiling libraries"
3915fi
3916
3917else
3918 PROFILE_CMT=#
3919MAKEFILE_PROFILE=/dev/null
3920echo "Disabling profiling libraries by default"
3921
Theodore Ts'oe1052142006-10-21 21:46:47 -04003922fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003923
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003924
Theodore Ts'oe1052142006-10-21 21:46:47 -04003925
3926# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003927if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003928 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003929then
3930 CHECKER_CMT=#
3931 MAKEFILE_CHECKER=/dev/null
3932 echo "Disabling checker libraries"
3933else
3934 CHECKER_CMT=
3935 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3936 echo "Building checker libraries"
3937fi
3938
3939else
3940 CHECKER_CMT=#
3941MAKEFILE_CHECKER=/dev/null
3942echo "Disabling checker libraries by default"
3943
Theodore Ts'oe1052142006-10-21 21:46:47 -04003944fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003945
3946
3947
3948
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003949
Theodore Ts'oe1052142006-10-21 21:46:47 -04003950
3951# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003952if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003953 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003954then
3955 echo "Disabling journal debugging"
3956else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003957 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003958#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003959_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003960
3961 echo "Enabling journal debugging"
3962fi
3963
3964else
3965 echo "Disabling journal debugging by default"
3966
Theodore Ts'oe1052142006-10-21 21:46:47 -04003967fi
3968
3969# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003970if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003971 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003972then
3973 echo "Disabling blkid debugging"
3974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003975 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003976#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003977_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003978
3979 echo "Enabling blkid debugging"
3980fi
3981
3982else
3983 echo "Disabling blkid debugging by default"
3984
Theodore Ts'oe1052142006-10-21 21:46:47 -04003985fi
3986
3987# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003988if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003989 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003990then
3991 echo "Disabling testio debugging"
3992else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003993 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003994#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003995_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003996
3997 echo "Enabling testio debugging"
3998fi
3999
4000else
4001 echo "Disabling testio debugging by default"
4002
Theodore Ts'oe1052142006-10-21 21:46:47 -04004003fi
4004
4005# Check whether --enable-swapfs was given.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004006if test "${enable_swapfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004007 enableval=$enable_swapfs; if test "$enableval" = "no"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004008then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004009 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004010 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004011else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004012 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004013 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004014#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004015_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004016
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004017 echo "Enabling swapfs support"
4018fi
4019
4020else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004021 SWAPFS_CMT=
4022echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004023cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004024#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004025_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004026
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004027
Theodore Ts'oe1052142006-10-21 21:46:47 -04004028fi
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004029
Theodore Ts'oe1052142006-10-21 21:46:47 -04004030
4031# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004032if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004033 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004034then
4035 echo "Disabling debugfs support"
4036 DEBUGFS_CMT="#"
4037else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004038 DEBUGFS_CMT=
4039 echo "Enabling debugfs support"
4040fi
4041
4042else
4043 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004044DEBUGFS_CMT=
4045
Theodore Ts'oe1052142006-10-21 21:46:47 -04004046fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004047
Theodore Ts'oe1052142006-10-21 21:46:47 -04004048
4049# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004050if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004051 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004052then
4053 echo "Disabling e2image support"
4054 IMAGER_CMT="#"
4055else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004056 IMAGER_CMT=
4057 echo "Enabling e2image support"
4058fi
4059
4060else
4061 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004062IMAGER_CMT=
4063
Theodore Ts'oe1052142006-10-21 21:46:47 -04004064fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004065
Theodore Ts'oe1052142006-10-21 21:46:47 -04004066
4067# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004068if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004069 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004070then
4071 echo "Disabling e2resize support"
4072 RESIZER_CMT="#"
4073else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004074 RESIZER_CMT=
4075 echo "Enabling e2resize support"
4076fi
4077
4078else
4079 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004080RESIZER_CMT=
4081
Theodore Ts'oe1052142006-10-21 21:46:47 -04004082fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004083
Theodore Ts'oe1052142006-10-21 21:46:47 -04004084
4085# Check whether --enable-dynamic-e2fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004086if test "${enable_dynamic_e2fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004087 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004088then
4089 E2FSCK_TYPE=static
4090 echo "Building e2fsck statically"
4091else
4092 E2FSCK_TYPE=shared
4093 echo "Building e2fsck dynamically"
4094fi
4095
4096else
4097 E2FSCK_TYPE=static
4098echo "Building e2fsck statically by default"
4099
Theodore Ts'oe1052142006-10-21 21:46:47 -04004100fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004101
Theodore Ts'oe1052142006-10-21 21:46:47 -04004102
4103# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004104if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004105 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004106then
4107 FSCK_PROG='' FSCK_MAN=''
4108 echo "Not building fsck wrapper"
4109else
4110 FSCK_PROG=fsck FSCK_MAN=fsck.8
4111 echo "Building fsck wrapper"
4112fi
4113
4114else
4115 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004116 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004117 FSCK_PROG='' FSCK_MAN=''
4118 echo "Not building fsck wrapper by default"
4119 ;;
4120 *)
4121 FSCK_PROG=fsck FSCK_MAN=fsck.8
4122 echo "Building fsck wrapper by default"
4123esac
4124
Theodore Ts'oe1052142006-10-21 21:46:47 -04004125fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004126
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004127
Theodore Ts'oe1052142006-10-21 21:46:47 -04004128
4129# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004130if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004131 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004132then
4133 E2INITRD_PROG='' E2INITRD_MAN=''
4134 echo "Not building e2initrd helper"
4135else
4136 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4137 echo "Building e2initrd helper"
4138fi
4139
4140else
4141 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4142echo "Building e2initrd helper by default"
4143
Theodore Ts'oe1052142006-10-21 21:46:47 -04004144fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004145
4146
Theodore Ts'oe1052142006-10-21 21:46:47 -04004147
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004148STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004149# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004150if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004151 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004152then
4153 echo "Disabling device-mapper support"
4154 DEVMAPPER_REQ=''
4155 DEVMAPPER_LIBS=''
4156 STATIC_DEVMAPPER_LIBS=''
4157else
4158 cat >>confdefs.h <<\_ACEOF
4159#define HAVE_DEVMAPPER 1
4160_ACEOF
4161
4162 echo "Enabling device-mapper support"
4163
Karel Zak4db2f592006-03-08 14:17:28 -05004164
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004165
4166if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4167 if test -n "$ac_tool_prefix"; then
4168 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4169set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4172if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174else
4175 case $PKG_CONFIG in
4176 [\\/]* | ?:[\\/]*)
4177 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4178 ;;
4179 *)
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191done
4192done
4193IFS=$as_save_IFS
4194
4195 ;;
4196esac
4197fi
4198PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4199if test -n "$PKG_CONFIG"; then
4200 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4201echo "${ECHO_T}$PKG_CONFIG" >&6; }
4202else
4203 { echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6; }
4205fi
4206
4207
4208fi
4209if test -z "$ac_cv_path_PKG_CONFIG"; then
4210 ac_pt_PKG_CONFIG=$PKG_CONFIG
4211 # Extract the first word of "pkg-config", so it can be a program name with args.
4212set dummy pkg-config; ac_word=$2
4213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
4218 case $ac_pt_PKG_CONFIG in
4219 [\\/]* | ?:[\\/]*)
4220 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4221 ;;
4222 *)
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234done
4235done
4236IFS=$as_save_IFS
4237
4238 ;;
4239esac
4240fi
4241ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4242if test -n "$ac_pt_PKG_CONFIG"; then
4243 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4244echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4245else
4246 { echo "$as_me:$LINENO: result: no" >&5
4247echo "${ECHO_T}no" >&6; }
4248fi
4249
4250 if test "x$ac_pt_PKG_CONFIG" = x; then
4251 PKG_CONFIG=""
4252 else
4253 case $cross_compiling:$ac_tool_warned in
4254yes:)
4255{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4256whose name does not start with the host triplet. If you think this
4257configuration is useful to you, please write to autoconf@gnu.org." >&5
4258echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4259whose name does not start with the host triplet. If you think this
4260configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4261ac_tool_warned=yes ;;
4262esac
4263 PKG_CONFIG=$ac_pt_PKG_CONFIG
4264 fi
4265else
4266 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4267fi
4268
4269fi
4270if test -n "$PKG_CONFIG"; then
4271 _pkg_min_version=0.9.0
4272 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4273echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4274 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4275 { echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6; }
4277 else
4278 { echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6; }
4280 PKG_CONFIG=""
4281 fi
4282
4283fi
4284
4285 if test -z "$PKG_CONFIG"; then
4286 echo "pkg-config not installed; please install it."
4287 exit 1;
4288 fi
4289
4290 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4291echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4292if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294else
4295 ac_check_lib_save_LIBS=$LIBS
4296LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4297cat >conftest.$ac_ext <<_ACEOF
4298/* confdefs.h. */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
4302/* end confdefs.h. */
4303
4304/* Override any GCC internal prototype to avoid an error.
4305 Use char because int might match the return type of a GCC
4306 builtin and then its argument prototype would still apply. */
4307#ifdef __cplusplus
4308extern "C"
4309#endif
4310char dm_tree_create ();
4311int
4312main ()
4313{
4314return dm_tree_create ();
4315 ;
4316 return 0;
4317}
4318_ACEOF
4319rm -f conftest.$ac_objext conftest$ac_exeext
4320if { (ac_try="$ac_link"
4321case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324esac
4325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_link") 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 } && test -s conftest$ac_exeext &&
4336 $as_test_x conftest$ac_exeext; then
4337 ac_cv_lib_devmapper_dm_tree_create=yes
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ac_cv_lib_devmapper_dm_tree_create=no
4343fi
4344
4345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4346 conftest$ac_exeext conftest.$ac_ext
4347LIBS=$ac_check_lib_save_LIBS
4348fi
4349{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4350echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4351if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4352 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4353 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4354 DEVMAPPER_REQ="devmapper";
4355 DEVMAPPER_PC_LIBS="-ldevmapper"
4356else
4357 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4358echo "$as_me: error: device-mapper library not found" >&2;}
4359 { (exit 1); exit 1; }; }
4360fi
4361
4362 # work around stupid devmapper.pc bug in Debian
4363 case "$STATIC_DEVMAPPER_LIBS" in
4364 *pthread*)
4365 ;;
4366 *)
4367 echo "Working around Debian bug #390243..."
4368 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4369 ;;
4370 esac
4371 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4372 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4373 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4374 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004375fi
4376
4377else
4378 echo "Disabling device-mapper support by default"
4379
Theodore Ts'oe1052142006-10-21 21:46:47 -04004380fi
4381
Karel Zak4db2f592006-03-08 14:17:28 -05004382
4383
4384
4385
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004386
Theodore Ts'o32493942007-12-31 10:45:01 -05004387# Check whether --enable-tls was given.
4388if test "${enable_tls+set}" = set; then
4389 enableval=$enable_tls; if test "$enableval" = "no"
4390then
4391 try_tls=""
4392 echo "Disabling thread local support"
4393else
4394 try_tls="yes"
4395 echo "Enabling thread local support"
4396fi
4397
4398else
4399 try_tls="yes"
4400echo "Try using thread local support by default"
4401
4402fi
4403
4404if test "$try_tls" = "yes"
4405then
4406
4407 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4408echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4409 if test "${ac_cv_tls+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412
4413 ax_tls_keywords="__thread __declspec(thread) none"
4414 for ax_tls_keyword in $ax_tls_keywords; do
4415 case $ax_tls_keyword in
4416 none) ac_cv_tls=none ; break ;;
4417 *)
4418 cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h. */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h. */
4424#include <stdlib.h>
4425 static void
4426 foo(void) {
4427 static $ax_tls_keyword int bar;
4428 exit(1);
4429 }
4430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
4438rm -f conftest.$ac_objext
4439if { (ac_try="$ac_compile"
4440case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
4444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && {
4452 test -z "$ac_c_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest.$ac_objext; then
4455 ac_cv_tls=$ax_tls_keyword ; break
4456else
4457 echo "$as_me: failed program was:" >&5
4458sed 's/^/| /' conftest.$ac_ext >&5
4459
4460 ac_cv_tls=none
4461
4462fi
4463
4464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 esac
4466 done
4467
4468fi
4469
4470
4471 if test "$ac_cv_tls" != "none"; then
4472
4473cat >>confdefs.h <<_ACEOF
4474#define TLS $ac_cv_tls
4475_ACEOF
4476
4477 fi
4478 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4479echo "${ECHO_T}$ac_cv_tls" >&6; }
4480
4481fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004482# Check whether --enable-uuidd was given.
4483if test "${enable_uuidd+set}" = set; then
4484 enableval=$enable_uuidd; if test "$enableval" = "no"
4485then
4486 echo "Not building uuidd"
4487 UUIDD_CMT="#"
4488else
4489 cat >>confdefs.h <<\_ACEOF
4490#define USE_UUIDD 1
4491_ACEOF
4492
4493 UUIDD_CMT=""
4494 echo "Building uuidd"
4495fi
4496
4497else
4498 cat >>confdefs.h <<\_ACEOF
4499#define USE_UUIDD 1
4500_ACEOF
4501
4502UUIDD_CMT=""
4503echo "Building uuidd by default"
4504
4505fi
4506
4507
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004508MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004510GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004511PACKAGE=e2fsprogs
4512VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004513VERSION=0.14.1
4514cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004515#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004516_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004517
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004518cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004519#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004520_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004521
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004522
4523
4524
4525
Theodore Ts'oe1052142006-10-21 21:46:47 -04004526{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4527echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4528set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4529if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004530 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004531else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004532 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004533SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004534all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004535 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004536_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004537# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004538case `${MAKE-make} -f conftest.make 2>/dev/null` in
4539 *@@@%%%=?*=@@@%%%*)
4540 eval ac_cv_prog_make_${ac_make}_set=yes;;
4541 *)
4542 eval ac_cv_prog_make_${ac_make}_set=no;;
4543esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004544rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004545fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004546if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4547 { echo "$as_me:$LINENO: result: yes" >&5
4548echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004549 SET_MAKE=
4550else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004551 { echo "$as_me:$LINENO: result: no" >&5
4552echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004553 SET_MAKE="MAKE=${MAKE-make}"
4554fi
4555
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004556# Find a good install program. We prefer a C program (faster),
4557# so one script is as good as another. But avoid the broken or
4558# incompatible versions:
4559# SysV /etc/install, /usr/sbin/install
4560# SunOS /usr/etc/install
4561# IRIX /sbin/install
4562# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004563# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004564# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4565# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4566# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004567# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004568# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004569{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4570echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004571if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004572if test "${ac_cv_path_install+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004574else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 # Account for people who put trailing slashes in PATH elements.
4581case $as_dir/ in
4582 ./ | .// | /cC/* | \
4583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4585 /usr/ucb/* ) ;;
4586 *)
4587 # OSF1 and SCO ODT 3.0 have their own names for install.
4588 # Don't use installbsd from OSF since it installs stuff as root
4589 # by default.
4590 for ac_prog in ginstall scoinst install; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004592 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 -04004593 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004595 # AIX install. It has an incompatible calling convention.
4596 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004597 elif test $ac_prog = install &&
4598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4599 # program-specific install script used by HP pwplus--don't use.
4600 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004601 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4603 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004604 fi
4605 fi
4606 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004607 done
4608 ;;
4609esac
4610done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004611IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004612
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004613
4614fi
4615 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004616 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004617 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004618 # As a last resort, use the slow shell script. Don't cache a
4619 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004620 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004621 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004622 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004623 fi
4624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004625{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4626echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004627
4628# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4629# It thinks the first close brace ends the variable substitution.
4630test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004632test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004633
4634test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4635
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004636
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004637 MKINSTALLDIRS=
4638 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004639 case "$ac_aux_dir" in
4640 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4641 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4642 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004643 fi
4644 if test -z "$MKINSTALLDIRS"; then
4645 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4646 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004647
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004648
4649
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4651echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4652 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004653if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004654 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004655else
4656 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004657fi
4658
4659 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4660echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004661
4662
4663
4664
4665
4666
4667# Prepare PATH_SEPARATOR.
4668# The user is always right.
4669if test "${PATH_SEPARATOR+set}" != set; then
4670 echo "#! /bin/sh" >conf$$.sh
4671 echo "exit 0" >>conf$$.sh
4672 chmod +x conf$$.sh
4673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4674 PATH_SEPARATOR=';'
4675 else
4676 PATH_SEPARATOR=:
4677 fi
4678 rm -f conf$$.sh
4679fi
4680
4681# Find out how to test for executable files. Don't use a zero-byte file,
4682# as systems may use methods other than mode bits to determine executability.
4683cat >conf$$.file <<_ASEOF
4684#! /bin/sh
4685exit 0
4686_ASEOF
4687chmod +x conf$$.file
4688if test -x conf$$.file >/dev/null 2>&1; then
4689 ac_executable_p="test -x"
4690else
4691 ac_executable_p="test -f"
4692fi
4693rm -f conf$$.file
4694
4695# Extract the first word of "msgfmt", so it can be a program name with args.
4696set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004699if test "${ac_cv_path_MSGFMT+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702 case "$MSGFMT" in
4703 [\\/]* | ?:[\\/]*)
4704 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4705 ;;
4706 *)
4707 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4708 for ac_dir in $PATH; do
4709 IFS="$ac_save_IFS"
4710 test -z "$ac_dir" && ac_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4713 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4714 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4715 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4716 break 2
4717 fi
4718 fi
4719 done
4720 done
4721 IFS="$ac_save_IFS"
4722 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4723 ;;
4724esac
4725fi
4726MSGFMT="$ac_cv_path_MSGFMT"
4727if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004728 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4729echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004730else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004731 { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004733fi
4734
4735 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4736set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004739if test "${ac_cv_path_GMSGFMT+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742 case $GMSGFMT in
4743 [\\/]* | ?:[\\/]*)
4744 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4745 ;;
4746 *)
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004753 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 -05004754 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758done
4759done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004760IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004761
4762 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4763 ;;
4764esac
4765fi
4766GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004767if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004768 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4769echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004770else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004771 { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004773fi
4774
4775
4776
Theodore Ts'oe1052142006-10-21 21:46:47 -04004777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004778# Prepare PATH_SEPARATOR.
4779# The user is always right.
4780if test "${PATH_SEPARATOR+set}" != set; then
4781 echo "#! /bin/sh" >conf$$.sh
4782 echo "exit 0" >>conf$$.sh
4783 chmod +x conf$$.sh
4784 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4785 PATH_SEPARATOR=';'
4786 else
4787 PATH_SEPARATOR=:
4788 fi
4789 rm -f conf$$.sh
4790fi
4791
4792# Find out how to test for executable files. Don't use a zero-byte file,
4793# as systems may use methods other than mode bits to determine executability.
4794cat >conf$$.file <<_ASEOF
4795#! /bin/sh
4796exit 0
4797_ASEOF
4798chmod +x conf$$.file
4799if test -x conf$$.file >/dev/null 2>&1; then
4800 ac_executable_p="test -x"
4801else
4802 ac_executable_p="test -f"
4803fi
4804rm -f conf$$.file
4805
4806# Extract the first word of "xgettext", so it can be a program name with args.
4807set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004810if test "${ac_cv_path_XGETTEXT+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813 case "$XGETTEXT" in
4814 [\\/]* | ?:[\\/]*)
4815 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4816 ;;
4817 *)
4818 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4819 for ac_dir in $PATH; do
4820 IFS="$ac_save_IFS"
4821 test -z "$ac_dir" && ac_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4824 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4825 (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
4826 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4827 break 2
4828 fi
4829 fi
4830 done
4831 done
4832 IFS="$ac_save_IFS"
4833 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4834 ;;
4835esac
4836fi
4837XGETTEXT="$ac_cv_path_XGETTEXT"
4838if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004839 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4840echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004841else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004842 { echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004844fi
4845
4846 rm -f messages.po
4847
4848
4849# Prepare PATH_SEPARATOR.
4850# The user is always right.
4851if test "${PATH_SEPARATOR+set}" != set; then
4852 echo "#! /bin/sh" >conf$$.sh
4853 echo "exit 0" >>conf$$.sh
4854 chmod +x conf$$.sh
4855 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4856 PATH_SEPARATOR=';'
4857 else
4858 PATH_SEPARATOR=:
4859 fi
4860 rm -f conf$$.sh
4861fi
4862
4863# Find out how to test for executable files. Don't use a zero-byte file,
4864# as systems may use methods other than mode bits to determine executability.
4865cat >conf$$.file <<_ASEOF
4866#! /bin/sh
4867exit 0
4868_ASEOF
4869chmod +x conf$$.file
4870if test -x conf$$.file >/dev/null 2>&1; then
4871 ac_executable_p="test -x"
4872else
4873 ac_executable_p="test -f"
4874fi
4875rm -f conf$$.file
4876
4877# Extract the first word of "msgmerge", so it can be a program name with args.
4878set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004881if test "${ac_cv_path_MSGMERGE+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883else
4884 case "$MSGMERGE" in
4885 [\\/]* | ?:[\\/]*)
4886 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4887 ;;
4888 *)
4889 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4890 for ac_dir in $PATH; do
4891 IFS="$ac_save_IFS"
4892 test -z "$ac_dir" && ac_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4895 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4896 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4897 break 2
4898 fi
4899 fi
4900 done
4901 done
4902 IFS="$ac_save_IFS"
4903 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4904 ;;
4905esac
4906fi
4907MSGMERGE="$ac_cv_path_MSGMERGE"
4908if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004909 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4910echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004911else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004912 { echo "$as_me:$LINENO: result: no" >&5
4913echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004914fi
4915
4916
4917 if test "$GMSGFMT" != ":"; then
4918 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4919 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4920 : ;
4921 else
4922 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004923 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4924echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004925 GMSGFMT=":"
4926 fi
4927 fi
4928
4929 if test "$XGETTEXT" != ":"; then
4930 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4931 (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
4932 : ;
4933 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004934 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4935echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004936 XGETTEXT=":"
4937 fi
4938 rm -f messages.po
4939 fi
4940
Theodore Ts'oe1052142006-10-21 21:46:47 -04004941 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004942
4943
4944if test -n "$ac_tool_prefix"; then
4945 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4946set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004949if test "${ac_cv_prog_RANLIB+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004951else
4952 if test -n "$RANLIB"; then
4953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4954else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004961 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 -05004962 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004967done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004968IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004969
4970fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971fi
4972RANLIB=$ac_cv_prog_RANLIB
4973if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004974 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4975echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004976else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004977 { echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004979fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004980
Theodore Ts'oe1052142006-10-21 21:46:47 -04004981
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004982fi
4983if test -z "$ac_cv_prog_RANLIB"; then
4984 ac_ct_RANLIB=$RANLIB
4985 # Extract the first word of "ranlib", so it can be a program name with args.
4986set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004989if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991else
4992 if test -n "$ac_ct_RANLIB"; then
4993 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4994else
4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005001 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 -05005002 ac_cv_prog_ac_ct_RANLIB="ranlib"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006done
5007done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005008IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005010fi
5011fi
5012ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5013if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005014 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5015echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005016else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005017 { echo "$as_me:$LINENO: result: no" >&5
5018echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005019fi
5020
Theodore Ts'oe1052142006-10-21 21:46:47 -04005021 if test "x$ac_ct_RANLIB" = x; then
5022 RANLIB=":"
5023 else
5024 case $cross_compiling:$ac_tool_warned in
5025yes:)
5026{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5027whose name does not start with the host triplet. If you think this
5028configuration is useful to you, please write to autoconf@gnu.org." >&5
5029echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5030whose name does not start with the host triplet. If you think this
5031configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5032ac_tool_warned=yes ;;
5033esac
5034 RANLIB=$ac_ct_RANLIB
5035 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005036else
5037 RANLIB="$ac_cv_prog_RANLIB"
5038fi
5039
5040
Theodore Ts'oe1052142006-10-21 21:46:47 -04005041 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5042echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005043if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045else
5046 ac_check_lib_save_LIBS=$LIBS
5047LIBS="-lcposix $LIBS"
5048cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054
Theodore Ts'oe1052142006-10-21 21:46:47 -04005055/* Override any GCC internal prototype to avoid an error.
5056 Use char because int might match the return type of a GCC
5057 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005058#ifdef __cplusplus
5059extern "C"
5060#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005061char strerror ();
5062int
5063main ()
5064{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005065return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005066 ;
5067 return 0;
5068}
5069_ACEOF
5070rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005071if { (ac_try="$ac_link"
5072case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075esac
5076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005083 (exit $ac_status); } && {
5084 test -z "$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 } && test -s conftest$ac_exeext &&
5087 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005088 ac_cv_lib_cposix_strerror=yes
5089else
5090 echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
Theodore Ts'oe1052142006-10-21 21:46:47 -04005093 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005094fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005095
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005097 conftest$ac_exeext conftest.$ac_ext
5098LIBS=$ac_check_lib_save_LIBS
5099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005100{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5101echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005102if test $ac_cv_lib_cposix_strerror = yes; then
5103 LIBS="$LIBS -lcposix"
5104fi
5105
5106
5107
Theodore Ts'oe1052142006-10-21 21:46:47 -04005108{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5109echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005110if test "${ac_cv_c_const+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119
5120int
5121main ()
5122{
5123/* FIXME: Include the comments suggested by Paul. */
5124#ifndef __cplusplus
5125 /* Ultrix mips cc rejects this. */
5126 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005127 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005128 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005129 char const *const *pcpcc;
5130 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005131 /* NEC SVR4.0.2 mips cc rejects this. */
5132 struct point {int x, y;};
5133 static struct point const zero = {0,0};
5134 /* AIX XL C 1.02.0.0 rejects this.
5135 It does not let you subtract one const X* pointer from another in
5136 an arm of an if-expression whose if-part is not a constant
5137 expression */
5138 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005139 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005140 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005141 ++pcpcc;
5142 ppc = (char**) pcpcc;
5143 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005144 { /* SCO 3.2v4 cc rejects this. */
5145 char *t;
5146 char const *s = 0 ? (char *) 0 : (char const *) 0;
5147
5148 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005149 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005150 }
5151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5152 int x[] = {25, 17};
5153 const int *foo = &x[0];
5154 ++foo;
5155 }
5156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5157 typedef const int *iptr;
5158 iptr p = 0;
5159 ++p;
5160 }
5161 { /* AIX XL C 1.02.0.0 rejects this saying
5162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5163 struct s { int j; const int *ap[3]; };
5164 struct s *b; b->j = 5;
5165 }
5166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5167 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005168 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005169 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005170 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005171#endif
5172
5173 ;
5174 return 0;
5175}
5176_ACEOF
5177rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005178if { (ac_try="$ac_compile"
5179case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182esac
5183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005190 (exit $ac_status); } && {
5191 test -z "$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5193 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005194 ac_cv_c_const=yes
5195else
5196 echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
Theodore Ts'oe1052142006-10-21 21:46:47 -04005199 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005200fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005201
5202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005203fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005204{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5205echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005206if test $ac_cv_c_const = no; then
5207
5208cat >>confdefs.h <<\_ACEOF
5209#define const
5210_ACEOF
5211
5212fi
5213
5214
Theodore Ts'oe1052142006-10-21 21:46:47 -04005215 { echo "$as_me:$LINENO: checking for signed" >&5
5216echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005217if test "${bh_cv_c_signed+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219else
5220 cat >conftest.$ac_ext <<_ACEOF
5221/* confdefs.h. */
5222_ACEOF
5223cat confdefs.h >>conftest.$ac_ext
5224cat >>conftest.$ac_ext <<_ACEOF
5225/* end confdefs.h. */
5226
5227int
5228main ()
5229{
5230signed char x;
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005236if { (ac_try="$ac_compile"
5237case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240esac
5241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005248 (exit $ac_status); } && {
5249 test -z "$ac_c_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005252 bh_cv_c_signed=yes
5253else
5254 echo "$as_me: failed program was:" >&5
5255sed 's/^/| /' conftest.$ac_ext >&5
5256
Theodore Ts'oe1052142006-10-21 21:46:47 -04005257 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005259
5260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005261fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005262{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5263echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005264 if test $bh_cv_c_signed = no; then
5265
5266cat >>confdefs.h <<\_ACEOF
5267#define signed
5268_ACEOF
5269
5270 fi
5271
Theodore Ts'oe1052142006-10-21 21:46:47 -04005272{ echo "$as_me:$LINENO: checking for inline" >&5
5273echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005274if test "${ac_cv_c_inline+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277 ac_cv_c_inline=no
5278for ac_kw in inline __inline__ __inline; do
5279 cat >conftest.$ac_ext <<_ACEOF
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
5285#ifndef __cplusplus
5286typedef int foo_t;
5287static $ac_kw foo_t static_foo () {return 0; }
5288$ac_kw foo_t foo () {return 0; }
5289#endif
5290
5291_ACEOF
5292rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005293if { (ac_try="$ac_compile"
5294case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005300 ac_status=$?
5301 grep -v '^ *+' conftest.er1 >conftest.err
5302 rm -f conftest.er1
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005305 (exit $ac_status); } && {
5306 test -z "$ac_c_werror_flag" ||
5307 test ! -s conftest.err
5308 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005309 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005310else
5311 echo "$as_me: failed program was:" >&5
5312sed 's/^/| /' conftest.$ac_ext >&5
5313
Theodore Ts'oe1052142006-10-21 21:46:47 -04005314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005315fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005316
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005319done
5320
5321fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005322{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5323echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005324
5325
5326case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005327 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005328 *)
5329 case $ac_cv_c_inline in
5330 no) ac_val=;;
5331 *) ac_val=$ac_cv_c_inline;;
5332 esac
5333 cat >>confdefs.h <<_ACEOF
5334#ifndef __cplusplus
5335#define inline $ac_val
5336#endif
5337_ACEOF
5338 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005339esac
5340
Theodore Ts'oe1052142006-10-21 21:46:47 -04005341{ echo "$as_me:$LINENO: checking for off_t" >&5
5342echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005343if test "${ac_cv_type_off_t+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005345else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005346 cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h. */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h. */
5352$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005353typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005354int
5355main ()
5356{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005357if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005358 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005359if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005360 return 0;
5361 ;
5362 return 0;
5363}
5364_ACEOF
5365rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005366if { (ac_try="$ac_compile"
5367case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005378 (exit $ac_status); } && {
5379 test -z "$ac_c_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005382 ac_cv_type_off_t=yes
5383else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005384 echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005386
Theodore Ts'oe1052142006-10-21 21:46:47 -04005387 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005388fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005389
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005392{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5393echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005394if test $ac_cv_type_off_t = yes; then
5395 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005396else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005397
5398cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005399#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005400_ACEOF
5401
5402fi
5403
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404{ echo "$as_me:$LINENO: checking for size_t" >&5
5405echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005406if test "${ac_cv_type_size_t+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409 cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h. */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h. */
5415$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005416typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005417int
5418main ()
5419{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005420if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005421 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005422if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005423 return 0;
5424 ;
5425 return 0;
5426}
5427_ACEOF
5428rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005429if { (ac_try="$ac_compile"
5430case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433esac
5434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005445 ac_cv_type_size_t=yes
5446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005447 echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
Theodore Ts'oe1052142006-10-21 21:46:47 -04005450 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005451fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005452
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005454fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005455{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5456echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005457if test $ac_cv_type_size_t = yes; then
5458 :
5459else
5460
5461cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005462#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005463_ACEOF
5464
5465fi
5466
5467
Theodore Ts'oe1052142006-10-21 21:46:47 -04005468 { echo "$as_me:$LINENO: checking for long long" >&5
5469echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005470if test "${ac_cv_type_long_long+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473 cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479long long ll = 1LL; int i = 63;
5480int
5481main ()
5482{
5483long long llmax = (long long) -1;
5484 return ll << i | ll >> i | llmax / ll | llmax % ll;
5485 ;
5486 return 0;
5487}
5488_ACEOF
5489rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005490if { (ac_try="$ac_link"
5491case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494esac
5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest$ac_exeext &&
5506 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005507 ac_cv_type_long_long=yes
5508else
5509 echo "$as_me: failed program was:" >&5
5510sed 's/^/| /' conftest.$ac_ext >&5
5511
Theodore Ts'oe1052142006-10-21 21:46:47 -04005512 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005514
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005516 conftest$ac_exeext conftest.$ac_ext
5517fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005518{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5519echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005520 if test $ac_cv_type_long_long = yes; then
5521
5522cat >>confdefs.h <<\_ACEOF
5523#define HAVE_LONG_LONG 1
5524_ACEOF
5525
5526 fi
5527
5528
Theodore Ts'oe1052142006-10-21 21:46:47 -04005529 { echo "$as_me:$LINENO: checking for long double" >&5
5530echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005531if test "${gt_cv_c_long_double+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534 if test "$GCC" = yes; then
5535 gt_cv_c_long_double=yes
5536 else
5537 cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h. */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h. */
5543
5544 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5545 long double foo = 0.0;
5546 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5547 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5548
5549int
5550main ()
5551{
5552
5553 ;
5554 return 0;
5555}
5556_ACEOF
5557rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005558if { (ac_try="$ac_compile"
5559case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
5563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005570 (exit $ac_status); } && {
5571 test -z "$ac_c_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005574 gt_cv_c_long_double=yes
5575else
5576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
Theodore Ts'oe1052142006-10-21 21:46:47 -04005579 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005581
5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005583 fi
5584fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005585{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5586echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005587 if test $gt_cv_c_long_double = yes; then
5588
5589cat >>confdefs.h <<\_ACEOF
5590#define HAVE_LONG_DOUBLE 1
5591_ACEOF
5592
5593 fi
5594
5595
Theodore Ts'oe1052142006-10-21 21:46:47 -04005596 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5597echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005598if test "${gt_cv_c_wchar_t+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601 cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607#include <stddef.h>
5608 wchar_t foo = (wchar_t)'\0';
5609int
5610main ()
5611{
5612
5613 ;
5614 return 0;
5615}
5616_ACEOF
5617rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005618if { (ac_try="$ac_compile"
5619case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622esac
5623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005634 gt_cv_c_wchar_t=yes
5635else
5636 echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
Theodore Ts'oe1052142006-10-21 21:46:47 -04005639 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005641
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005643fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005644{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5645echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005646 if test $gt_cv_c_wchar_t = yes; then
5647
5648cat >>confdefs.h <<\_ACEOF
5649#define HAVE_WCHAR_T 1
5650_ACEOF
5651
5652 fi
5653
5654
Theodore Ts'oe1052142006-10-21 21:46:47 -04005655 { echo "$as_me:$LINENO: checking for wint_t" >&5
5656echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005657if test "${gt_cv_c_wint_t+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660 cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h. */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h. */
5666#include <wchar.h>
5667 wint_t foo = (wchar_t)'\0';
5668int
5669main ()
5670{
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005677if { (ac_try="$ac_compile"
5678case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681esac
5682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005693 gt_cv_c_wint_t=yes
5694else
5695 echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
Theodore Ts'oe1052142006-10-21 21:46:47 -04005698 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005699fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005700
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005702fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005703{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5704echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005705 if test $gt_cv_c_wint_t = yes; then
5706
5707cat >>confdefs.h <<\_ACEOF
5708#define HAVE_WINT_T 1
5709_ACEOF
5710
5711 fi
5712
5713
Theodore Ts'oe1052142006-10-21 21:46:47 -04005714 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5715echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005716if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719 cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h. */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h. */
5725#include <sys/types.h>
5726#include <inttypes.h>
5727int
5728main ()
5729{
5730uintmax_t i = (uintmax_t) -1;
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005736if { (ac_try="$ac_compile"
5737case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740esac
5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005752 jm_ac_cv_header_inttypes_h=yes
5753else
5754 echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005758fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005759
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005761fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005762{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5763echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005764 if test $jm_ac_cv_header_inttypes_h = yes; then
5765
5766cat >>confdefs.h <<_ACEOF
5767#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5768_ACEOF
5769
5770 fi
5771
5772
Theodore Ts'oe1052142006-10-21 21:46:47 -04005773 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5774echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005775if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777else
5778 cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h. */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h. */
5784#include <sys/types.h>
5785#include <stdint.h>
5786int
5787main ()
5788{
5789uintmax_t i = (uintmax_t) -1;
5790 ;
5791 return 0;
5792}
5793_ACEOF
5794rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005795if { (ac_try="$ac_compile"
5796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
5800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005811 jm_ac_cv_header_stdint_h=yes
5812else
5813 echo "$as_me: failed program was:" >&5
5814sed 's/^/| /' conftest.$ac_ext >&5
5815
Theodore Ts'oe1052142006-10-21 21:46:47 -04005816 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005818
5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005820fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005821{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5822echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005823 if test $jm_ac_cv_header_stdint_h = yes; then
5824
5825cat >>confdefs.h <<_ACEOF
5826#define HAVE_STDINT_H_WITH_UINTMAX 1
5827_ACEOF
5828
5829 fi
5830
5831
5832
5833
Theodore Ts'oe1052142006-10-21 21:46:47 -04005834 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5835echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005836if test "${gt_cv_c_intmax_t+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839 cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845
5846#include <stddef.h>
5847#include <stdlib.h>
5848#if HAVE_STDINT_H_WITH_UINTMAX
5849#include <stdint.h>
5850#endif
5851#if HAVE_INTTYPES_H_WITH_UINTMAX
5852#include <inttypes.h>
5853#endif
5854
5855int
5856main ()
5857{
5858intmax_t x = -1;
5859 ;
5860 return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005864if { (ac_try="$ac_compile"
5865case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005876 (exit $ac_status); } && {
5877 test -z "$ac_c_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005880 gt_cv_c_intmax_t=yes
5881else
5882 echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
Theodore Ts'oe1052142006-10-21 21:46:47 -04005885 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005887
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005889fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005890{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5891echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005892 if test $gt_cv_c_intmax_t = yes; then
5893
5894cat >>confdefs.h <<\_ACEOF
5895#define HAVE_INTMAX_T 1
5896_ACEOF
5897
5898 fi
5899
5900
5901
Theodore Ts'oe1052142006-10-21 21:46:47 -04005902 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5903echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005904if test "${gt_cv_func_printf_posix+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907
5908 if test "$cross_compiling" = yes; then
5909
5910 cat >conftest.$ac_ext <<_ACEOF
5911/* confdefs.h. */
5912_ACEOF
5913cat confdefs.h >>conftest.$ac_ext
5914cat >>conftest.$ac_ext <<_ACEOF
5915/* end confdefs.h. */
5916
5917#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5918 notposix
5919#endif
5920
5921_ACEOF
5922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5923 $EGREP "notposix" >/dev/null 2>&1; then
5924 gt_cv_func_printf_posix="guessing no"
5925else
5926 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005927fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005928rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005929
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005930
5931else
5932 cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h. */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h. */
5938
5939#include <stdio.h>
5940#include <string.h>
5941/* The string "%2$d %1$d", with dollar characters protected from the shell's
5942 dollar expansion (possibly an autoconf bug). */
5943static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5944static char buf[100];
5945int main ()
5946{
5947 sprintf (buf, format, 33, 55);
5948 return (strcmp (buf, "55 33") != 0);
5949}
5950_ACEOF
5951rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005952if { (ac_try="$ac_link"
5953case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956esac
5957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005962 { (case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 gt_cv_func_printf_posix=yes
5972else
5973 echo "$as_me: program exited with status $ac_status" >&5
5974echo "$as_me: failed program was:" >&5
5975sed 's/^/| /' conftest.$ac_ext >&5
5976
5977( exit $ac_status )
5978gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005980rm -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 -05005981fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005982
Theodore Ts'oe1052142006-10-21 21:46:47 -04005983
5984
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005985fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005986{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5987echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005988 case $gt_cv_func_printf_posix in
5989 *yes)
5990
5991cat >>confdefs.h <<\_ACEOF
5992#define HAVE_POSIX_PRINTF 1
5993_ACEOF
5994
5995 ;;
5996 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005997
5998# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5999# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04006000{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6001echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006002if test "${ac_cv_working_alloca_h+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006004else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006005 cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h. */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006011#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006012int
6013main ()
6014{
6015char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006016 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006017 ;
6018 return 0;
6019}
6020_ACEOF
6021rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006022if { (ac_try="$ac_link"
6023case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest$ac_exeext &&
6038 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006039 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006041 echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006043
Theodore Ts'oe1052142006-10-21 21:46:47 -04006044 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006046
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006048 conftest$ac_exeext conftest.$ac_ext
6049fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006050{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6051echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052if test $ac_cv_working_alloca_h = yes; then
6053
6054cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006055#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006056_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006057
6058fi
6059
Theodore Ts'oe1052142006-10-21 21:46:47 -04006060{ echo "$as_me:$LINENO: checking for alloca" >&5
6061echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062if test "${ac_cv_func_alloca_works+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006064else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065 cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h. */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006071#ifdef __GNUC__
6072# define alloca __builtin_alloca
6073#else
6074# ifdef _MSC_VER
6075# include <malloc.h>
6076# define alloca _alloca
6077# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006078# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006079# include <alloca.h>
6080# else
6081# ifdef _AIX
6082 #pragma alloca
6083# else
6084# ifndef alloca /* predefined by HP cc +Olibcalls */
6085char *alloca ();
6086# endif
6087# endif
6088# endif
6089# endif
6090#endif
6091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092int
6093main ()
6094{
6095char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006096 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006097 ;
6098 return 0;
6099}
6100_ACEOF
6101rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006102if { (ac_try="$ac_link"
6103case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest$ac_exeext &&
6118 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006119 ac_cv_func_alloca_works=yes
6120else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121 echo "$as_me: failed program was:" >&5
6122sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006123
Theodore Ts'oe1052142006-10-21 21:46:47 -04006124 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006125fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006126
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006128 conftest$ac_exeext conftest.$ac_ext
6129fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006130{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6131echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006133if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134
6135cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006136#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006137_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006138
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6141# that cause trouble. Some versions do not even contain alloca or
6142# contain a buggy version. If you still want to use their alloca,
6143# use ar to extract alloca.o from them instead of compiling alloca.c.
6144
Theodore Ts'oe1052142006-10-21 21:46:47 -04006145ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006146
6147cat >>confdefs.h <<\_ACEOF
6148#define C_ALLOCA 1
6149_ACEOF
6150
6151
Theodore Ts'oe1052142006-10-21 21:46:47 -04006152{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6153echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006154if test "${ac_cv_os_cray+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157 cat >conftest.$ac_ext <<_ACEOF
6158/* confdefs.h. */
6159_ACEOF
6160cat confdefs.h >>conftest.$ac_ext
6161cat >>conftest.$ac_ext <<_ACEOF
6162/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006163#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006164webecray
6165#else
6166wenotbecray
6167#endif
6168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006172 ac_cv_os_cray=yes
6173else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006174 ac_cv_os_cray=no
6175fi
6176rm -f conftest*
6177
6178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006179{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6180echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006181if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182 for ac_func in _getb67 GETB67 getb67; do
6183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006184{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6186if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006187 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006188else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006189 cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6197#define $ac_func innocuous_$ac_func
6198
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006199/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006200 which can conflict with char $ac_func (); below.
6201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6202 <limits.h> exists even on freestanding compilers. */
6203
6204#ifdef __STDC__
6205# include <limits.h>
6206#else
6207# include <assert.h>
6208#endif
6209
6210#undef $ac_func
6211
Theodore Ts'oe1052142006-10-21 21:46:47 -04006212/* Override any GCC internal prototype to avoid an error.
6213 Use char because int might match the return type of a GCC
6214 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006215#ifdef __cplusplus
6216extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006217#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006218char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006219/* The GNU C library defines this for functions which it implements
6220 to always fail with ENOSYS. Some functions are actually named
6221 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006222#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006223choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006224#endif
6225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006226int
6227main ()
6228{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006229return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006230 ;
6231 return 0;
6232}
6233_ACEOF
6234rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006235if { (ac_try="$ac_link"
6236case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest$ac_exeext &&
6251 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006252 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006253else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006254 echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006256
Theodore Ts'oe1052142006-10-21 21:46:47 -04006257 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006259
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006261 conftest$ac_exeext conftest.$ac_ext
6262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006263ac_res=`eval echo '${'$as_ac_var'}'`
6264 { echo "$as_me:$LINENO: result: $ac_res" >&5
6265echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006266if test `eval echo '${'$as_ac_var'}'` = yes; then
6267
6268cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006269#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006270_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006272 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006273fi
6274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006276fi
6277
Theodore Ts'oe1052142006-10-21 21:46:47 -04006278{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6279echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006280if test "${ac_cv_c_stack_direction+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006282else
6283 if test "$cross_compiling" = yes; then
6284 ac_cv_c_stack_direction=0
6285else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006286 cat >conftest.$ac_ext <<_ACEOF
6287/* confdefs.h. */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006292$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006294find_stack_direction ()
6295{
6296 static char *addr = 0;
6297 auto char dummy;
6298 if (addr == 0)
6299 {
6300 addr = &dummy;
6301 return find_stack_direction ();
6302 }
6303 else
6304 return (&dummy > addr) ? 1 : -1;
6305}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006306
6307int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006308main ()
6309{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006310 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006311}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006312_ACEOF
6313rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006314if { (ac_try="$ac_link"
6315case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318esac
6319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006333 ac_cv_c_stack_direction=1
6334else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006335 echo "$as_me: program exited with status $ac_status" >&5
6336echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006339( exit $ac_status )
6340ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006342rm -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 -05006343fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006344
6345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006347{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6348echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006350cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006351#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006352_ACEOF
6353
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006354
6355fi
6356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357
6358
6359for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006360do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006368ac_res=`eval echo '${'$as_ac_Header'}'`
6369 { echo "$as_me:$LINENO: result: $ac_res" >&5
6370echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006371else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006372 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006373{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h. */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h. */
6381$ac_includes_default
6382#include <$ac_header>
6383_ACEOF
6384rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006385if { (ac_try="$ac_compile"
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_compile") 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); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006401 ac_header_compiler=yes
6402else
6403 echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
Theodore Ts'oe1052142006-10-21 21:46:47 -04006406 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006408
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6411echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006412
6413# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006414{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h. */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h. */
6422#include <$ac_header>
6423_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006424if { (ac_try="$ac_cpp conftest.$ac_ext"
6425case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
6429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006436 (exit $ac_status); } >/dev/null && {
6437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006440 ac_header_preproc=yes
6441else
6442 echo "$as_me: failed program was:" >&5
6443sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_header_preproc=no
6446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006448rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006449{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6450echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451
6452# So? What about this header?
6453case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6454 yes:no: )
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6458echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6459 ac_header_preproc=yes
6460 ;;
6461 no:yes:* )
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6467echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6469echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6473echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006475 ;;
6476esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006477{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481else
6482 eval "$as_ac_Header=\$ac_header_preproc"
6483fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006484ac_res=`eval echo '${'$as_ac_Header'}'`
6485 { echo "$as_me:$LINENO: result: $ac_res" >&5
6486echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487
6488fi
6489if test `eval echo '${'$as_ac_Header'}'` = yes; then
6490 cat >>confdefs.h <<_ACEOF
6491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492_ACEOF
6493
6494fi
6495
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006496done
6497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006499for ac_func in getpagesize
6500do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006502{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6504if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006505 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006506else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006507 cat >conftest.$ac_ext <<_ACEOF
6508/* confdefs.h. */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h. */
6513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6515#define $ac_func innocuous_$ac_func
6516
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006517/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518 which can conflict with char $ac_func (); below.
6519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6520 <limits.h> exists even on freestanding compilers. */
6521
6522#ifdef __STDC__
6523# include <limits.h>
6524#else
6525# include <assert.h>
6526#endif
6527
6528#undef $ac_func
6529
Theodore Ts'oe1052142006-10-21 21:46:47 -04006530/* Override any GCC internal prototype to avoid an error.
6531 Use char because int might match the return type of a GCC
6532 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006533#ifdef __cplusplus
6534extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006535#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006537/* The GNU C library defines this for functions which it implements
6538 to always fail with ENOSYS. Some functions are actually named
6539 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006540#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006541choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006542#endif
6543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006544int
6545main ()
6546{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006547return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548 ;
6549 return 0;
6550}
6551_ACEOF
6552rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006553if { (ac_try="$ac_link"
6554case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557esac
6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest$ac_exeext &&
6569 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006571else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006572 echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006574
Theodore Ts'oe1052142006-10-21 21:46:47 -04006575 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006576fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006577
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006579 conftest$ac_exeext conftest.$ac_ext
6580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006581ac_res=`eval echo '${'$as_ac_var'}'`
6582 { echo "$as_me:$LINENO: result: $ac_res" >&5
6583echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584if test `eval echo '${'$as_ac_var'}'` = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6587_ACEOF
6588
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006589fi
6590done
6591
Theodore Ts'oe1052142006-10-21 21:46:47 -04006592{ echo "$as_me:$LINENO: checking for working mmap" >&5
6593echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006594if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006596else
6597 if test "$cross_compiling" = yes; then
6598 ac_cv_func_mmap_fixed_mapped=no
6599else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006600 cat >conftest.$ac_ext <<_ACEOF
6601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
6606$ac_includes_default
6607/* malloc might have been renamed as rpl_malloc. */
6608#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006609
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006610/* Thanks to Mike Haertel and Jim Avera for this test.
6611 Here is a matrix of mmap possibilities:
6612 mmap private not fixed
6613 mmap private fixed at somewhere currently unmapped
6614 mmap private fixed at somewhere already mapped
6615 mmap shared not fixed
6616 mmap shared fixed at somewhere currently unmapped
6617 mmap shared fixed at somewhere already mapped
6618 For private mappings, we should verify that changes cannot be read()
6619 back from the file, nor mmap's back from the file at a different
6620 address. (There have been systems where private was not correctly
6621 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006622 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006623 like early versions of FreeBSD and possibly contemporary NetBSD.)
6624 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006626
6627 Grep wants private fixed already mapped.
6628 The main things grep needs to know about mmap are:
6629 * does it exist and is it safe to write into the mmap'd area
6630 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006632#include <fcntl.h>
6633#include <sys/mman.h>
6634
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006635#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636char *malloc ();
6637#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006640#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006641/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006642# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006643# define HAVE_SYS_PARAM_H 1
6644# endif
6645
6646# ifdef _SC_PAGESIZE
6647# define getpagesize() sysconf(_SC_PAGESIZE)
6648# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006649# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006650# include <sys/param.h>
6651# ifdef EXEC_PAGESIZE
6652# define getpagesize() EXEC_PAGESIZE
6653# else /* no EXEC_PAGESIZE */
6654# ifdef NBPG
6655# define getpagesize() NBPG * CLSIZE
6656# ifndef CLSIZE
6657# define CLSIZE 1
6658# endif /* no CLSIZE */
6659# else /* no NBPG */
6660# ifdef NBPC
6661# define getpagesize() NBPC
6662# else /* no NBPC */
6663# ifdef PAGESIZE
6664# define getpagesize() PAGESIZE
6665# endif /* PAGESIZE */
6666# endif /* no NBPC */
6667# endif /* no NBPG */
6668# endif /* no EXEC_PAGESIZE */
6669# else /* no HAVE_SYS_PARAM_H */
6670# define getpagesize() 8192 /* punt totally */
6671# endif /* no HAVE_SYS_PARAM_H */
6672# endif /* no _SC_PAGESIZE */
6673
6674#endif /* no HAVE_GETPAGESIZE */
6675
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006676int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006678{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679 char *data, *data2, *data3;
6680 int i, pagesize;
6681 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006682
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006684
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685 /* First, make a file with some known garbage in it. */
6686 data = (char *) malloc (pagesize);
6687 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006688 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006689 for (i = 0; i < pagesize; ++i)
6690 *(data + i) = rand ();
6691 umask (0);
6692 fd = creat ("conftest.mmap", 0600);
6693 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006694 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006696 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006698
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699 /* Next, try to mmap the file at a fixed address which already has
6700 something else allocated at it. If we can, also make sure that
6701 we see the same garbage. */
6702 fd = open ("conftest.mmap", O_RDWR);
6703 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006704 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705 data2 = (char *) malloc (2 * pagesize);
6706 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006707 return 1;
6708 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6710 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006711 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712 for (i = 0; i < pagesize; ++i)
6713 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006714 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006715
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006716 /* Finally, make sure that changes to the mapped area do not
6717 percolate back to the file as seen by read(). (This is a bug on
6718 some variants of i386 svr4.0.) */
6719 for (i = 0; i < pagesize; ++i)
6720 *(data2 + i) = *(data2 + i) + 1;
6721 data3 = (char *) malloc (pagesize);
6722 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006723 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006724 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006725 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726 for (i = 0; i < pagesize; ++i)
6727 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006728 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006730 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006731}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732_ACEOF
6733rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006734if { (ac_try="$ac_link"
6735case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738esac
6739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006744 { (case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747esac
6748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006753 ac_cv_func_mmap_fixed_mapped=yes
6754else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755 echo "$as_me: program exited with status $ac_status" >&5
6756echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759( exit $ac_status )
6760ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006761fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006762rm -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 -05006763fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006764
6765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006767{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6768echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006769if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770
6771cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006772#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006774
6775fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006777
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006778
Theodore Ts'oe1052142006-10-21 21:46:47 -04006779 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6780echo $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 -05006781if test "${ac_cv_gnu_library_2_1+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 cat >conftest.$ac_ext <<_ACEOF
6785/* confdefs.h. */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006790
6791#include <features.h>
6792#ifdef __GNU_LIBRARY__
6793 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6794 Lucky GNU user
6795 #endif
6796#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797
6798_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006801 ac_cv_gnu_library_2_1=yes
6802else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006803 ac_cv_gnu_library_2_1=no
6804fi
6805rm -f conftest*
6806
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807
6808
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006809fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006810{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6811echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006812
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006813 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006814
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006815
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816
6817
Theodore Ts'oe1052142006-10-21 21:46:47 -04006818 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6819echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006822else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006823
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006824 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006826 # Guess based on the CPU.
6827 case "$host_cpu" in
6828 alpha* | i3456786 | m68k | s390*)
6829 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6830 *)
6831 gt_cv_int_divbyzero_sigfpe="guessing no";;
6832 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006834else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835 cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006841
6842#include <stdlib.h>
6843#include <signal.h>
6844
6845static void
6846#ifdef __cplusplus
6847sigfpe_handler (int sig)
6848#else
6849sigfpe_handler (sig) int sig;
6850#endif
6851{
6852 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6853 exit (sig != SIGFPE);
6854}
6855
6856int x = 1;
6857int y = 0;
6858int z;
6859int nan;
6860
6861int main ()
6862{
6863 signal (SIGFPE, sigfpe_handler);
6864/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6865#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6866 signal (SIGTRAP, sigfpe_handler);
6867#endif
6868/* Linux/SPARC yields signal SIGILL. */
6869#if defined (__sparc__) && defined (__linux__)
6870 signal (SIGILL, sigfpe_handler);
6871#endif
6872
6873 z = x / y;
6874 nan = y / y;
6875 exit (1);
6876}
6877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006878_ACEOF
6879rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006880if { (ac_try="$ac_link"
6881case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884esac
6885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006890 { (case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893esac
6894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006899 gt_cv_int_divbyzero_sigfpe=yes
6900else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006901 echo "$as_me: program exited with status $ac_status" >&5
6902echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905( exit $ac_status )
6906gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006907fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006908rm -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 -04006909fi
6910
Theodore Ts'oe1052142006-10-21 21:46:47 -04006911
6912
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006913fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006914{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6915echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006916 case "$gt_cv_int_divbyzero_sigfpe" in
6917 *yes) value=1;;
6918 *) value=0;;
6919 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006920
6921cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006922#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006923_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006924
6925
6926
Theodore Ts'oe1052142006-10-21 21:46:47 -04006927 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6928echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006929if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938unsigned long long ull = 1ULL; int i = 63;
6939int
6940main ()
6941{
6942unsigned long long ullmax = (unsigned long long) -1;
6943 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6944 ;
6945 return 0;
6946}
6947_ACEOF
6948rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006949if { (ac_try="$ac_link"
6950case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953esac
6954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest$ac_exeext &&
6965 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966 ac_cv_type_unsigned_long_long=yes
6967else
6968 echo "$as_me: failed program was:" >&5
6969sed 's/^/| /' conftest.$ac_ext >&5
6970
Theodore Ts'oe1052142006-10-21 21:46:47 -04006971 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006973
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975 conftest$ac_exeext conftest.$ac_ext
6976fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006977{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6978echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979 if test $ac_cv_type_unsigned_long_long = yes; then
6980
6981cat >>confdefs.h <<\_ACEOF
6982#define HAVE_UNSIGNED_LONG_LONG 1
6983_ACEOF
6984
6985 fi
6986
6987
6988
6989
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006990 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 -05006991
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006992 test $ac_cv_type_unsigned_long_long = yes \
6993 && ac_type='unsigned long long' \
6994 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995
6996cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006997#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006998_ACEOF
6999
7000 else
7001
7002cat >>confdefs.h <<\_ACEOF
7003#define HAVE_UINTMAX_T 1
7004_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007005
7006 fi
7007
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007008
Theodore Ts'oe1052142006-10-21 21:46:47 -04007009 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7010echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011if test "${gt_cv_header_inttypes_h+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007013else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007014
7015 cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h. */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007021#include <sys/types.h>
7022#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023int
7024main ()
7025{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027 ;
7028 return 0;
7029}
7030_ACEOF
7031rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007032if { (ac_try="$ac_compile"
7033case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036esac
7037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7038 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007044 (exit $ac_status); } && {
7045 test -z "$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007048 gt_cv_header_inttypes_h=yes
7049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050 echo "$as_me: failed program was:" >&5
7051sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007052
Theodore Ts'oe1052142006-10-21 21:46:47 -04007053 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007055
7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057
7058fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007059{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7060echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007061 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007062
7063cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007064#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007065_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007066
7067 fi
7068
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007071 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007072 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7073echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007076else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007077
7078 cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h. */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007084#include <inttypes.h>
7085#ifdef PRId32
7086char *p = PRId32;
7087#endif
7088
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089int
7090main ()
7091{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007092
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007093 ;
7094 return 0;
7095}
7096_ACEOF
7097rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007098if { (ac_try="$ac_compile"
7099case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102esac
7103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007114 gt_cv_inttypes_pri_broken=no
7115else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007116 echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007118
Theodore Ts'oe1052142006-10-21 21:46:47 -04007119 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007121
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123
7124fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007125{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7126echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007127 fi
7128 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007129
7130cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007131#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007133
7134 fi
7135
7136
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138for ac_header in stdint.h
7139do
7140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007147ac_res=`eval echo '${'$as_ac_Header'}'`
7148 { echo "$as_me:$LINENO: result: $ac_res" >&5
7149echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007150else
7151 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007152{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154cat >conftest.$ac_ext <<_ACEOF
7155/* confdefs.h. */
7156_ACEOF
7157cat confdefs.h >>conftest.$ac_ext
7158cat >>conftest.$ac_ext <<_ACEOF
7159/* end confdefs.h. */
7160$ac_includes_default
7161#include <$ac_header>
7162_ACEOF
7163rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007164if { (ac_try="$ac_compile"
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_compile") 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); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180 ac_header_compiler=yes
7181else
7182 echo "$as_me: failed program was:" >&5
7183sed 's/^/| /' conftest.$ac_ext >&5
7184
Theodore Ts'oe1052142006-10-21 21:46:47 -04007185 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007186fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007187
7188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7190echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191
7192# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007193{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007195cat >conftest.$ac_ext <<_ACEOF
7196/* confdefs.h. */
7197_ACEOF
7198cat confdefs.h >>conftest.$ac_ext
7199cat >>conftest.$ac_ext <<_ACEOF
7200/* end confdefs.h. */
7201#include <$ac_header>
7202_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007203if { (ac_try="$ac_cpp conftest.$ac_ext"
7204case "(($ac_try" in
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7207esac
7208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007215 (exit $ac_status); } >/dev/null && {
7216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7218 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007219 ac_header_preproc=yes
7220else
7221 echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224 ac_header_preproc=no
7225fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007227rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007228{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7229echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230
7231# So? What about this header?
7232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7233 yes:no: )
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7238 ac_header_preproc=yes
7239 ;;
7240 no:yes:* )
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007254 ;;
7255esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007256{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261 eval "$as_ac_Header=\$ac_header_preproc"
7262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007263ac_res=`eval echo '${'$as_ac_Header'}'`
7264 { echo "$as_me:$LINENO: result: $ac_res" >&5
7265echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007266
7267fi
7268if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7271_ACEOF
7272
7273fi
7274
7275done
7276
Theodore Ts'oe1052142006-10-21 21:46:47 -04007277 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7278echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279 result=
7280 cat >conftest.$ac_ext <<_ACEOF
7281/* confdefs.h. */
7282_ACEOF
7283cat confdefs.h >>conftest.$ac_ext
7284cat >>conftest.$ac_ext <<_ACEOF
7285/* end confdefs.h. */
7286
7287#include <limits.h>
7288#if HAVE_STDINT_H
7289#include <stdint.h>
7290#endif
7291#ifdef SIZE_MAX
7292Found it
7293#endif
7294
7295_ACEOF
7296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7297 $EGREP "Found it" >/dev/null 2>&1; then
7298 result=yes
7299fi
7300rm -f conftest*
7301
7302 if test -z "$result"; then
7303 if test "$cross_compiling" = yes; then
7304 # Depending upon the size, compute the lo and hi bounds.
7305cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
7311#include <stddef.h>
7312int
7313main ()
7314{
7315static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7316test_array [0] = 0
7317
7318 ;
7319 return 0;
7320}
7321_ACEOF
7322rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007323if { (ac_try="$ac_compile"
7324case "(($ac_try" in
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327esac
7328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007339 ac_lo=0 ac_mid=0
7340 while :; do
7341 cat >conftest.$ac_ext <<_ACEOF
7342/* confdefs.h. */
7343_ACEOF
7344cat confdefs.h >>conftest.$ac_ext
7345cat >>conftest.$ac_ext <<_ACEOF
7346/* end confdefs.h. */
7347#include <stddef.h>
7348int
7349main ()
7350{
7351static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7352test_array [0] = 0
7353
7354 ;
7355 return 0;
7356}
7357_ACEOF
7358rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007359if { (ac_try="$ac_compile"
7360case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363esac
7364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007371 (exit $ac_status); } && {
7372 test -z "$ac_c_werror_flag" ||
7373 test ! -s conftest.err
7374 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007375 ac_hi=$ac_mid; break
7376else
7377 echo "$as_me: failed program was:" >&5
7378sed 's/^/| /' conftest.$ac_ext >&5
7379
Theodore Ts'oe1052142006-10-21 21:46:47 -04007380 ac_lo=`expr $ac_mid + 1`
7381 if test $ac_lo -le $ac_mid; then
7382 ac_lo= ac_hi=
7383 break
7384 fi
7385 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007386fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007387
7388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007389 done
7390else
7391 echo "$as_me: failed program was:" >&5
7392sed 's/^/| /' conftest.$ac_ext >&5
7393
Theodore Ts'oe1052142006-10-21 21:46:47 -04007394 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007395/* confdefs.h. */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h. */
7400#include <stddef.h>
7401int
7402main ()
7403{
7404static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7405test_array [0] = 0
7406
7407 ;
7408 return 0;
7409}
7410_ACEOF
7411rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007412if { (ac_try="$ac_compile"
7413case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416esac
7417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007428 ac_hi=-1 ac_mid=-1
7429 while :; do
7430 cat >conftest.$ac_ext <<_ACEOF
7431/* confdefs.h. */
7432_ACEOF
7433cat confdefs.h >>conftest.$ac_ext
7434cat >>conftest.$ac_ext <<_ACEOF
7435/* end confdefs.h. */
7436#include <stddef.h>
7437int
7438main ()
7439{
7440static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7441test_array [0] = 0
7442
7443 ;
7444 return 0;
7445}
7446_ACEOF
7447rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007448if { (ac_try="$ac_compile"
7449case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452esac
7453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464 ac_lo=$ac_mid; break
7465else
7466 echo "$as_me: failed program was:" >&5
7467sed 's/^/| /' conftest.$ac_ext >&5
7468
Theodore Ts'oe1052142006-10-21 21:46:47 -04007469 ac_hi=`expr '(' $ac_mid ')' - 1`
7470 if test $ac_mid -le $ac_hi; then
7471 ac_lo= ac_hi=
7472 break
7473 fi
7474 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007476
7477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007478 done
7479else
7480 echo "$as_me: failed program was:" >&5
7481sed 's/^/| /' conftest.$ac_ext >&5
7482
Theodore Ts'oe1052142006-10-21 21:46:47 -04007483 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007485
7486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007488
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490# Binary search between lo and hi bounds.
7491while test "x$ac_lo" != "x$ac_hi"; do
7492 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7493 cat >conftest.$ac_ext <<_ACEOF
7494/* confdefs.h. */
7495_ACEOF
7496cat confdefs.h >>conftest.$ac_ext
7497cat >>conftest.$ac_ext <<_ACEOF
7498/* end confdefs.h. */
7499#include <stddef.h>
7500int
7501main ()
7502{
7503static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7504test_array [0] = 0
7505
7506 ;
7507 return 0;
7508}
7509_ACEOF
7510rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007511if { (ac_try="$ac_compile"
7512case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515esac
7516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007527 ac_hi=$ac_mid
7528else
7529 echo "$as_me: failed program was:" >&5
7530sed 's/^/| /' conftest.$ac_ext >&5
7531
Theodore Ts'oe1052142006-10-21 21:46:47 -04007532 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007533fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007534
7535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536done
7537case $ac_lo in
7538?*) res_hi=$ac_lo;;
7539'') result=? ;;
7540esac
7541else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542 cat >conftest.$ac_ext <<_ACEOF
7543/* confdefs.h. */
7544_ACEOF
7545cat confdefs.h >>conftest.$ac_ext
7546cat >>conftest.$ac_ext <<_ACEOF
7547/* end confdefs.h. */
7548#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007549static long int longval () { return ~(size_t)0 / 10; }
7550static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551#include <stdio.h>
7552#include <stdlib.h>
7553int
7554main ()
7555{
7556
7557 FILE *f = fopen ("conftest.val", "w");
7558 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007559 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007560 if ((~(size_t)0 / 10) < 0)
7561 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007562 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007564 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565 fprintf (f, "%ld\n", i);
7566 }
7567 else
7568 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007569 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007571 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572 fprintf (f, "%lu\n", i);
7573 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007574 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575
7576 ;
7577 return 0;
7578}
7579_ACEOF
7580rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007581if { (ac_try="$ac_link"
7582case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7585esac
7586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007591 { (case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594esac
7595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 res_hi=`cat conftest.val`
7601else
7602 echo "$as_me: program exited with status $ac_status" >&5
7603echo "$as_me: failed program was:" >&5
7604sed 's/^/| /' conftest.$ac_ext >&5
7605
7606( exit $ac_status )
7607result=?
7608fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007609rm -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 -05007610fi
7611rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007612
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613 if test "$cross_compiling" = yes; then
7614 # Depending upon the size, compute the lo and hi bounds.
7615cat >conftest.$ac_ext <<_ACEOF
7616/* confdefs.h. */
7617_ACEOF
7618cat confdefs.h >>conftest.$ac_ext
7619cat >>conftest.$ac_ext <<_ACEOF
7620/* end confdefs.h. */
7621#include <stddef.h>
7622int
7623main ()
7624{
7625static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7626test_array [0] = 0
7627
7628 ;
7629 return 0;
7630}
7631_ACEOF
7632rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007633if { (ac_try="$ac_compile"
7634case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7637esac
7638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007649 ac_lo=0 ac_mid=0
7650 while :; do
7651 cat >conftest.$ac_ext <<_ACEOF
7652/* confdefs.h. */
7653_ACEOF
7654cat confdefs.h >>conftest.$ac_ext
7655cat >>conftest.$ac_ext <<_ACEOF
7656/* end confdefs.h. */
7657#include <stddef.h>
7658int
7659main ()
7660{
7661static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7662test_array [0] = 0
7663
7664 ;
7665 return 0;
7666}
7667_ACEOF
7668rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007669if { (ac_try="$ac_compile"
7670case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
7674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685 ac_hi=$ac_mid; break
7686else
7687 echo "$as_me: failed program was:" >&5
7688sed 's/^/| /' conftest.$ac_ext >&5
7689
Theodore Ts'oe1052142006-10-21 21:46:47 -04007690 ac_lo=`expr $ac_mid + 1`
7691 if test $ac_lo -le $ac_mid; then
7692 ac_lo= ac_hi=
7693 break
7694 fi
7695 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007696fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007697
7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007699 done
7700else
7701 echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
Theodore Ts'oe1052142006-10-21 21:46:47 -04007704 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007705/* confdefs.h. */
7706_ACEOF
7707cat confdefs.h >>conftest.$ac_ext
7708cat >>conftest.$ac_ext <<_ACEOF
7709/* end confdefs.h. */
7710#include <stddef.h>
7711int
7712main ()
7713{
7714static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7715test_array [0] = 0
7716
7717 ;
7718 return 0;
7719}
7720_ACEOF
7721rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007722if { (ac_try="$ac_compile"
7723case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726esac
7727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007729 ac_status=$?
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007738 ac_hi=-1 ac_mid=-1
7739 while :; do
7740 cat >conftest.$ac_ext <<_ACEOF
7741/* confdefs.h. */
7742_ACEOF
7743cat confdefs.h >>conftest.$ac_ext
7744cat >>conftest.$ac_ext <<_ACEOF
7745/* end confdefs.h. */
7746#include <stddef.h>
7747int
7748main ()
7749{
7750static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7751test_array [0] = 0
7752
7753 ;
7754 return 0;
7755}
7756_ACEOF
7757rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007758if { (ac_try="$ac_compile"
7759case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762esac
7763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007774 ac_lo=$ac_mid; break
7775else
7776 echo "$as_me: failed program was:" >&5
7777sed 's/^/| /' conftest.$ac_ext >&5
7778
Theodore Ts'oe1052142006-10-21 21:46:47 -04007779 ac_hi=`expr '(' $ac_mid ')' - 1`
7780 if test $ac_mid -le $ac_hi; then
7781 ac_lo= ac_hi=
7782 break
7783 fi
7784 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007785fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007786
7787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007788 done
7789else
7790 echo "$as_me: failed program was:" >&5
7791sed 's/^/| /' conftest.$ac_ext >&5
7792
Theodore Ts'oe1052142006-10-21 21:46:47 -04007793 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007795
7796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007798
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007800# Binary search between lo and hi bounds.
7801while test "x$ac_lo" != "x$ac_hi"; do
7802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7803 cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h. */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h. */
7809#include <stddef.h>
7810int
7811main ()
7812{
7813static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7814test_array [0] = 0
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007821if { (ac_try="$ac_compile"
7822case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825esac
7826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007837 ac_hi=$ac_mid
7838else
7839 echo "$as_me: failed program was:" >&5
7840sed 's/^/| /' conftest.$ac_ext >&5
7841
Theodore Ts'oe1052142006-10-21 21:46:47 -04007842 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007844
7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007846done
7847case $ac_lo in
7848?*) res_lo=$ac_lo;;
7849'') result=? ;;
7850esac
7851else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007852 cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h. */
7858#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007859static long int longval () { return ~(size_t)0 % 10; }
7860static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861#include <stdio.h>
7862#include <stdlib.h>
7863int
7864main ()
7865{
7866
7867 FILE *f = fopen ("conftest.val", "w");
7868 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007869 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007870 if ((~(size_t)0 % 10) < 0)
7871 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007872 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007873 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007874 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007875 fprintf (f, "%ld\n", i);
7876 }
7877 else
7878 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007879 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007880 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007881 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007882 fprintf (f, "%lu\n", i);
7883 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007884 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007885
7886 ;
7887 return 0;
7888}
7889_ACEOF
7890rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007891if { (ac_try="$ac_link"
7892case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895esac
7896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007901 { (case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904esac
7905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 res_lo=`cat conftest.val`
7911else
7912 echo "$as_me: program exited with status $ac_status" >&5
7913echo "$as_me: failed program was:" >&5
7914sed 's/^/| /' conftest.$ac_ext >&5
7915
7916( exit $ac_status )
7917result=?
7918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007919rm -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 -05007920fi
7921rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007923 if test "$cross_compiling" = yes; then
7924 # Depending upon the size, compute the lo and hi bounds.
7925cat >conftest.$ac_ext <<_ACEOF
7926/* confdefs.h. */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h. */
7931#include <stddef.h>
7932int
7933main ()
7934{
7935static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7936test_array [0] = 0
7937
7938 ;
7939 return 0;
7940}
7941_ACEOF
7942rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007943if { (ac_try="$ac_compile"
7944case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947esac
7948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007959 ac_lo=0 ac_mid=0
7960 while :; do
7961 cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h. */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h. */
7967#include <stddef.h>
7968int
7969main ()
7970{
7971static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7972test_array [0] = 0
7973
7974 ;
7975 return 0;
7976}
7977_ACEOF
7978rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007979if { (ac_try="$ac_compile"
7980case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983esac
7984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007995 ac_hi=$ac_mid; break
7996else
7997 echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
Theodore Ts'oe1052142006-10-21 21:46:47 -04008000 ac_lo=`expr $ac_mid + 1`
8001 if test $ac_lo -le $ac_mid; then
8002 ac_lo= ac_hi=
8003 break
8004 fi
8005 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008006fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008007
8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008009 done
8010else
8011 echo "$as_me: failed program was:" >&5
8012sed 's/^/| /' conftest.$ac_ext >&5
8013
Theodore Ts'oe1052142006-10-21 21:46:47 -04008014 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#include <stddef.h>
8021int
8022main ()
8023{
8024static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8025test_array [0] = 0
8026
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008032if { (ac_try="$ac_compile"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008048 ac_hi=-1 ac_mid=-1
8049 while :; do
8050 cat >conftest.$ac_ext <<_ACEOF
8051/* confdefs.h. */
8052_ACEOF
8053cat confdefs.h >>conftest.$ac_ext
8054cat >>conftest.$ac_ext <<_ACEOF
8055/* end confdefs.h. */
8056#include <stddef.h>
8057int
8058main ()
8059{
8060static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8061test_array [0] = 0
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008068if { (ac_try="$ac_compile"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008084 ac_lo=$ac_mid; break
8085else
8086 echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
Theodore Ts'oe1052142006-10-21 21:46:47 -04008089 ac_hi=`expr '(' $ac_mid ')' - 1`
8090 if test $ac_mid -le $ac_hi; then
8091 ac_lo= ac_hi=
8092 break
8093 fi
8094 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008095fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008096
8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008098 done
8099else
8100 echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
Theodore Ts'oe1052142006-10-21 21:46:47 -04008103 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008105
8106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008108
8109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008110# Binary search between lo and hi bounds.
8111while test "x$ac_lo" != "x$ac_hi"; do
8112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8113 cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119#include <stddef.h>
8120int
8121main ()
8122{
8123static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8124test_array [0] = 0
8125
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008131if { (ac_try="$ac_compile"
8132case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008147 ac_hi=$ac_mid
8148else
8149 echo "$as_me: failed program was:" >&5
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
Theodore Ts'oe1052142006-10-21 21:46:47 -04008152 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008154
8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008156done
8157case $ac_lo in
8158?*) fits_in_uint=$ac_lo;;
8159'') result=? ;;
8160esac
8161else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008162 cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h. */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h. */
8168#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008169static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8170static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008171#include <stdio.h>
8172#include <stdlib.h>
8173int
8174main ()
8175{
8176
8177 FILE *f = fopen ("conftest.val", "w");
8178 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008179 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008180 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8181 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008182 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008183 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008184 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008185 fprintf (f, "%ld\n", i);
8186 }
8187 else
8188 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008189 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008190 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008191 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008192 fprintf (f, "%lu\n", i);
8193 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008194 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008195
8196 ;
8197 return 0;
8198}
8199_ACEOF
8200rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008201if { (ac_try="$ac_link"
8202case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205esac
8206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 fits_in_uint=`cat conftest.val`
8221else
8222 echo "$as_me: program exited with status $ac_status" >&5
8223echo "$as_me: failed program was:" >&5
8224sed 's/^/| /' conftest.$ac_ext >&5
8225
8226( exit $ac_status )
8227result=?
8228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008229rm -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 -05008230fi
8231rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008233 if test "$fits_in_uint" = 1; then
8234 cat >conftest.$ac_ext <<_ACEOF
8235/* confdefs.h. */
8236_ACEOF
8237cat confdefs.h >>conftest.$ac_ext
8238cat >>conftest.$ac_ext <<_ACEOF
8239/* end confdefs.h. */
8240#include <stddef.h>
8241 extern size_t foo;
8242 extern unsigned long foo;
8243
8244int
8245main ()
8246{
8247
8248 ;
8249 return 0;
8250}
8251_ACEOF
8252rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008253if { (ac_try="$ac_compile"
8254case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257esac
8258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008269 fits_in_uint=0
8270else
8271 echo "$as_me: failed program was:" >&5
8272sed 's/^/| /' conftest.$ac_ext >&5
8273
Theodore Ts'oe1052142006-10-21 21:46:47 -04008274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008276
8277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278 fi
8279 if test -z "$result"; then
8280 if test "$fits_in_uint" = 1; then
8281 result="$res_hi$res_lo"U
8282 else
8283 result="$res_hi$res_lo"UL
8284 fi
8285 else
8286 result='~(size_t)0'
8287 fi
8288 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008289 { echo "$as_me:$LINENO: result: $result" >&5
8290echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008291 if test "$result" != yes; then
8292
8293cat >>confdefs.h <<_ACEOF
8294#define SIZE_MAX $result
8295_ACEOF
8296
8297 fi
8298
8299
8300
8301
8302for ac_header in stdint.h
8303do
8304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008311ac_res=`eval echo '${'$as_ac_Header'}'`
8312 { echo "$as_me:$LINENO: result: $ac_res" >&5
8313echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008314else
8315 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008318cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h. */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h. */
8324$ac_includes_default
8325#include <$ac_header>
8326_ACEOF
8327rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008328if { (ac_try="$ac_compile"
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_compile") 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); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344 ac_header_compiler=yes
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
Theodore Ts'oe1052142006-10-21 21:46:47 -04008349 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008350fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008351
8352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8354echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355
8356# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008357{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008359cat >conftest.$ac_ext <<_ACEOF
8360/* confdefs.h. */
8361_ACEOF
8362cat confdefs.h >>conftest.$ac_ext
8363cat >>conftest.$ac_ext <<_ACEOF
8364/* end confdefs.h. */
8365#include <$ac_header>
8366_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008367if { (ac_try="$ac_cpp conftest.$ac_ext"
8368case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371esac
8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008379 (exit $ac_status); } >/dev/null && {
8380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8381 test ! -s conftest.err
8382 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008383 ac_header_preproc=yes
8384else
8385 echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388 ac_header_preproc=no
8389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008390
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008391rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008392{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8393echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008394
8395# So? What about this header?
8396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8397 yes:no: )
8398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8402 ac_header_preproc=yes
8403 ;;
8404 no:yes:* )
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8408echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8412echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008418 ;;
8419esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008420{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424else
8425 eval "$as_ac_Header=\$ac_header_preproc"
8426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008427ac_res=`eval echo '${'$as_ac_Header'}'`
8428 { echo "$as_me:$LINENO: result: $ac_res" >&5
8429echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008430
8431fi
8432if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8435_ACEOF
8436
8437fi
8438
8439done
8440
8441
8442
8443 if test "X$prefix" = "XNONE"; then
8444 acl_final_prefix="$ac_default_prefix"
8445 else
8446 acl_final_prefix="$prefix"
8447 fi
8448 if test "X$exec_prefix" = "XNONE"; then
8449 acl_final_exec_prefix='${prefix}'
8450 else
8451 acl_final_exec_prefix="$exec_prefix"
8452 fi
8453 acl_save_prefix="$prefix"
8454 prefix="$acl_final_prefix"
8455 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8456 prefix="$acl_save_prefix"
8457
8458
Theodore Ts'oe1052142006-10-21 21:46:47 -04008459# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008460if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008461 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008462else
8463 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008464fi
8465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008466# Prepare PATH_SEPARATOR.
8467# The user is always right.
8468if test "${PATH_SEPARATOR+set}" != set; then
8469 echo "#! /bin/sh" >conf$$.sh
8470 echo "exit 0" >>conf$$.sh
8471 chmod +x conf$$.sh
8472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8473 PATH_SEPARATOR=';'
8474 else
8475 PATH_SEPARATOR=:
8476 fi
8477 rm -f conf$$.sh
8478fi
8479ac_prog=ld
8480if test "$GCC" = yes; then
8481 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008482 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8483echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008484 case $host in
8485 *-*-mingw*)
8486 # gcc leaves a trailing carriage return which upsets mingw
8487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8488 *)
8489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8490 esac
8491 case $ac_prog in
8492 # Accept absolute paths.
8493 [\\/]* | [A-Za-z]:[\\/]*)
8494 re_direlt='/[^/][^/]*/\.\./'
8495 # Canonicalize the path of ld
8496 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8497 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8498 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8499 done
8500 test -z "$LD" && LD="$ac_prog"
8501 ;;
8502 "")
8503 # If it fails, then pretend we aren't using GCC.
8504 ac_prog=ld
8505 ;;
8506 *)
8507 # If it is relative, then search for the first ld in PATH.
8508 with_gnu_ld=unknown
8509 ;;
8510 esac
8511elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008512 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8513echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008514else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008515 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8516echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008517fi
8518if test "${acl_cv_path_LD+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520else
8521 if test -z "$LD"; then
8522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8523 for ac_dir in $PATH; do
8524 test -z "$ac_dir" && ac_dir=.
8525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8526 acl_cv_path_LD="$ac_dir/$ac_prog"
8527 # Check to see if the program is GNU ld. I'd rather use --version,
8528 # but apparently some GNU ld's only accept -v.
8529 # Break only if it was the GNU/non-GNU ld that we prefer.
8530 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8531 *GNU* | *'with BFD'*)
8532 test "$with_gnu_ld" != no && break ;;
8533 *)
8534 test "$with_gnu_ld" != yes && break ;;
8535 esac
8536 fi
8537 done
8538 IFS="$ac_save_ifs"
8539else
8540 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8541fi
8542fi
8543
8544LD="$acl_cv_path_LD"
8545if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008546 { echo "$as_me:$LINENO: result: $LD" >&5
8547echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008548else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008549 { echo "$as_me:$LINENO: result: no" >&5
8550echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551fi
8552test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8553echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8554 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008555{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8556echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008557if test "${acl_cv_prog_gnu_ld+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559else
8560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8561case `$LD -v 2>&1 </dev/null` in
8562*GNU* | *'with BFD'*)
8563 acl_cv_prog_gnu_ld=yes ;;
8564*)
8565 acl_cv_prog_gnu_ld=no ;;
8566esac
8567fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008568{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8569echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008570with_gnu_ld=$acl_cv_prog_gnu_ld
8571
8572
8573
Theodore Ts'oe1052142006-10-21 21:46:47 -04008574 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8575echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008576if test "${acl_cv_rpath+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579
8580 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8581 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8582 . ./conftest.sh
8583 rm -f ./conftest.sh
8584 acl_cv_rpath=done
8585
8586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008587{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8588echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008589 wl="$acl_cv_wl"
8590 libext="$acl_cv_libext"
8591 shlibext="$acl_cv_shlibext"
8592 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8593 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8594 hardcode_direct="$acl_cv_hardcode_direct"
8595 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008596 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008597if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008598 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008599else
8600 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008601fi
8602
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008603
8604
8605
8606
8607
8608
8609
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008610 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008611
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008612 acl_save_prefix="$prefix"
8613 prefix="$acl_final_prefix"
8614 acl_save_exec_prefix="$exec_prefix"
8615 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008616
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008617 eval additional_includedir=\"$includedir\"
8618 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008619
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008620 exec_prefix="$acl_save_exec_prefix"
8621 prefix="$acl_save_prefix"
8622
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008623
Theodore Ts'oe1052142006-10-21 21:46:47 -04008624# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008625if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008626 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008627 if test "X$withval" = "Xno"; then
8628 use_additional=no
8629 else
8630 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008631
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008632 acl_save_prefix="$prefix"
8633 prefix="$acl_final_prefix"
8634 acl_save_exec_prefix="$exec_prefix"
8635 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008636
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008637 eval additional_includedir=\"$includedir\"
8638 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008639
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008640 exec_prefix="$acl_save_exec_prefix"
8641 prefix="$acl_save_prefix"
8642
8643 else
8644 additional_includedir="$withval/include"
8645 additional_libdir="$withval/lib"
8646 fi
8647 fi
8648
Theodore Ts'oe1052142006-10-21 21:46:47 -04008649fi
8650
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008651 LIBICONV=
8652 LTLIBICONV=
8653 INCICONV=
8654 rpathdirs=
8655 ltrpathdirs=
8656 names_already_handled=
8657 names_next_round='iconv '
8658 while test -n "$names_next_round"; do
8659 names_this_round="$names_next_round"
8660 names_next_round=
8661 for name in $names_this_round; do
8662 already_handled=
8663 for n in $names_already_handled; do
8664 if test "$n" = "$name"; then
8665 already_handled=yes
8666 break
8667 fi
8668 done
8669 if test -z "$already_handled"; then
8670 names_already_handled="$names_already_handled $name"
8671 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8672 eval value=\"\$HAVE_LIB$uppername\"
8673 if test -n "$value"; then
8674 if test "$value" = yes; then
8675 eval value=\"\$LIB$uppername\"
8676 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8677 eval value=\"\$LTLIB$uppername\"
8678 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8679 else
8680 :
8681 fi
8682 else
8683 found_dir=
8684 found_la=
8685 found_so=
8686 found_a=
8687 if test $use_additional = yes; then
8688 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8689 found_dir="$additional_libdir"
8690 found_so="$additional_libdir/lib$name.$shlibext"
8691 if test -f "$additional_libdir/lib$name.la"; then
8692 found_la="$additional_libdir/lib$name.la"
8693 fi
8694 else
8695 if test -f "$additional_libdir/lib$name.$libext"; then
8696 found_dir="$additional_libdir"
8697 found_a="$additional_libdir/lib$name.$libext"
8698 if test -f "$additional_libdir/lib$name.la"; then
8699 found_la="$additional_libdir/lib$name.la"
8700 fi
8701 fi
8702 fi
8703 fi
8704 if test "X$found_dir" = "X"; then
8705 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008706
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008707 acl_save_prefix="$prefix"
8708 prefix="$acl_final_prefix"
8709 acl_save_exec_prefix="$exec_prefix"
8710 exec_prefix="$acl_final_exec_prefix"
8711 eval x=\"$x\"
8712 exec_prefix="$acl_save_exec_prefix"
8713 prefix="$acl_save_prefix"
8714
8715 case "$x" in
8716 -L*)
8717 dir=`echo "X$x" | sed -e 's/^X-L//'`
8718 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8719 found_dir="$dir"
8720 found_so="$dir/lib$name.$shlibext"
8721 if test -f "$dir/lib$name.la"; then
8722 found_la="$dir/lib$name.la"
8723 fi
8724 else
8725 if test -f "$dir/lib$name.$libext"; then
8726 found_dir="$dir"
8727 found_a="$dir/lib$name.$libext"
8728 if test -f "$dir/lib$name.la"; then
8729 found_la="$dir/lib$name.la"
8730 fi
8731 fi
8732 fi
8733 ;;
8734 esac
8735 if test "X$found_dir" != "X"; then
8736 break
8737 fi
8738 done
8739 fi
8740 if test "X$found_dir" != "X"; then
8741 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8742 if test "X$found_so" != "X"; then
8743 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8745 else
8746 haveit=
8747 for x in $ltrpathdirs; do
8748 if test "X$x" = "X$found_dir"; then
8749 haveit=yes
8750 break
8751 fi
8752 done
8753 if test -z "$haveit"; then
8754 ltrpathdirs="$ltrpathdirs $found_dir"
8755 fi
8756 if test "$hardcode_direct" = yes; then
8757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8758 else
8759 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8761 haveit=
8762 for x in $rpathdirs; do
8763 if test "X$x" = "X$found_dir"; then
8764 haveit=yes
8765 break
8766 fi
8767 done
8768 if test -z "$haveit"; then
8769 rpathdirs="$rpathdirs $found_dir"
8770 fi
8771 else
8772 haveit=
8773 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008774
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008775 acl_save_prefix="$prefix"
8776 prefix="$acl_final_prefix"
8777 acl_save_exec_prefix="$exec_prefix"
8778 exec_prefix="$acl_final_exec_prefix"
8779 eval x=\"$x\"
8780 exec_prefix="$acl_save_exec_prefix"
8781 prefix="$acl_save_prefix"
8782
8783 if test "X$x" = "X-L$found_dir"; then
8784 haveit=yes
8785 break
8786 fi
8787 done
8788 if test -z "$haveit"; then
8789 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8790 fi
8791 if test "$hardcode_minus_L" != no; then
8792 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8793 else
8794 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8795 fi
8796 fi
8797 fi
8798 fi
8799 else
8800 if test "X$found_a" != "X"; then
8801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8802 else
8803 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8804 fi
8805 fi
8806 additional_includedir=
8807 case "$found_dir" in
8808 */lib | */lib/)
8809 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8810 additional_includedir="$basedir/include"
8811 ;;
8812 esac
8813 if test "X$additional_includedir" != "X"; then
8814 if test "X$additional_includedir" != "X/usr/include"; then
8815 haveit=
8816 if test "X$additional_includedir" = "X/usr/local/include"; then
8817 if test -n "$GCC"; then
8818 case $host_os in
8819 linux*) haveit=yes;;
8820 esac
8821 fi
8822 fi
8823 if test -z "$haveit"; then
8824 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008825
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826 acl_save_prefix="$prefix"
8827 prefix="$acl_final_prefix"
8828 acl_save_exec_prefix="$exec_prefix"
8829 exec_prefix="$acl_final_exec_prefix"
8830 eval x=\"$x\"
8831 exec_prefix="$acl_save_exec_prefix"
8832 prefix="$acl_save_prefix"
8833
8834 if test "X$x" = "X-I$additional_includedir"; then
8835 haveit=yes
8836 break
8837 fi
8838 done
8839 if test -z "$haveit"; then
8840 if test -d "$additional_includedir"; then
8841 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8842 fi
8843 fi
8844 fi
8845 fi
8846 fi
8847 if test -n "$found_la"; then
8848 save_libdir="$libdir"
8849 case "$found_la" in
8850 */* | *\\*) . "$found_la" ;;
8851 *) . "./$found_la" ;;
8852 esac
8853 libdir="$save_libdir"
8854 for dep in $dependency_libs; do
8855 case "$dep" in
8856 -L*)
8857 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8858 if test "X$additional_libdir" != "X/usr/lib"; then
8859 haveit=
8860 if test "X$additional_libdir" = "X/usr/local/lib"; then
8861 if test -n "$GCC"; then
8862 case $host_os in
8863 linux*) haveit=yes;;
8864 esac
8865 fi
8866 fi
8867 if test -z "$haveit"; then
8868 haveit=
8869 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008870
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008871 acl_save_prefix="$prefix"
8872 prefix="$acl_final_prefix"
8873 acl_save_exec_prefix="$exec_prefix"
8874 exec_prefix="$acl_final_exec_prefix"
8875 eval x=\"$x\"
8876 exec_prefix="$acl_save_exec_prefix"
8877 prefix="$acl_save_prefix"
8878
8879 if test "X$x" = "X-L$additional_libdir"; then
8880 haveit=yes
8881 break
8882 fi
8883 done
8884 if test -z "$haveit"; then
8885 if test -d "$additional_libdir"; then
8886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8887 fi
8888 fi
8889 haveit=
8890 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008891
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008892 acl_save_prefix="$prefix"
8893 prefix="$acl_final_prefix"
8894 acl_save_exec_prefix="$exec_prefix"
8895 exec_prefix="$acl_final_exec_prefix"
8896 eval x=\"$x\"
8897 exec_prefix="$acl_save_exec_prefix"
8898 prefix="$acl_save_prefix"
8899
8900 if test "X$x" = "X-L$additional_libdir"; then
8901 haveit=yes
8902 break
8903 fi
8904 done
8905 if test -z "$haveit"; then
8906 if test -d "$additional_libdir"; then
8907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8908 fi
8909 fi
8910 fi
8911 fi
8912 ;;
8913 -R*)
8914 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8915 if test "$enable_rpath" != no; then
8916 haveit=
8917 for x in $rpathdirs; do
8918 if test "X$x" = "X$dir"; then
8919 haveit=yes
8920 break
8921 fi
8922 done
8923 if test -z "$haveit"; then
8924 rpathdirs="$rpathdirs $dir"
8925 fi
8926 haveit=
8927 for x in $ltrpathdirs; do
8928 if test "X$x" = "X$dir"; then
8929 haveit=yes
8930 break
8931 fi
8932 done
8933 if test -z "$haveit"; then
8934 ltrpathdirs="$ltrpathdirs $dir"
8935 fi
8936 fi
8937 ;;
8938 -l*)
8939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8940 ;;
8941 *.la)
8942 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8943 ;;
8944 *)
8945 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8946 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8947 ;;
8948 esac
8949 done
8950 fi
8951 else
8952 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8953 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8954 fi
8955 fi
8956 fi
8957 done
8958 done
8959 if test "X$rpathdirs" != "X"; then
8960 if test -n "$hardcode_libdir_separator"; then
8961 alldirs=
8962 for found_dir in $rpathdirs; do
8963 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8964 done
8965 acl_save_libdir="$libdir"
8966 libdir="$alldirs"
8967 eval flag=\"$hardcode_libdir_flag_spec\"
8968 libdir="$acl_save_libdir"
8969 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8970 else
8971 for found_dir in $rpathdirs; do
8972 acl_save_libdir="$libdir"
8973 libdir="$found_dir"
8974 eval flag=\"$hardcode_libdir_flag_spec\"
8975 libdir="$acl_save_libdir"
8976 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8977 done
8978 fi
8979 fi
8980 if test "X$ltrpathdirs" != "X"; then
8981 for found_dir in $ltrpathdirs; do
8982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8983 done
8984 fi
8985
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008986
8987
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008989
8990
8991
8992
Theodore Ts'oe1052142006-10-21 21:46:47 -04008993 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8994echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008995if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008998 cat >conftest.$ac_ext <<_ACEOF
8999/* confdefs.h. */
9000_ACEOF
9001cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF
9003/* end confdefs.h. */
9004$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04009005typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009006int
9007main ()
9008{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009009if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009010 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04009011if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009012 return 0;
9013 ;
9014 return 0;
9015}
9016_ACEOF
9017rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009018if { (ac_try="$ac_compile"
9019case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022esac
9023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9033 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009034 ac_cv_type_ptrdiff_t=yes
9035else
9036 echo "$as_me: failed program was:" >&5
9037sed 's/^/| /' conftest.$ac_ext >&5
9038
Theodore Ts'oe1052142006-10-21 21:46:47 -04009039 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009040fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009041
9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009043fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009044{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9045echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009046if test $ac_cv_type_ptrdiff_t = yes; then
9047 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009048else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009049
9050cat >>confdefs.h <<\_ACEOF
9051#define ptrdiff_t long
9052_ACEOF
9053
9054
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009055fi
9056
9057
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009058
9059
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009060
9061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009062
9063
9064
9065
9066
9067for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009068stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009069do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009075 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009076fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009077ac_res=`eval echo '${'$as_ac_Header'}'`
9078 { echo "$as_me:$LINENO: result: $ac_res" >&5
9079echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009080else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009081 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009082{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009084cat >conftest.$ac_ext <<_ACEOF
9085/* confdefs.h. */
9086_ACEOF
9087cat confdefs.h >>conftest.$ac_ext
9088cat >>conftest.$ac_ext <<_ACEOF
9089/* end confdefs.h. */
9090$ac_includes_default
9091#include <$ac_header>
9092_ACEOF
9093rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009094if { (ac_try="$ac_compile"
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_compile") 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); } && {
9107 test -z "$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009110 ac_header_compiler=yes
9111else
9112 echo "$as_me: failed program was:" >&5
9113sed 's/^/| /' conftest.$ac_ext >&5
9114
Theodore Ts'oe1052142006-10-21 21:46:47 -04009115 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009117
9118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9120echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009121
9122# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009123{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009125cat >conftest.$ac_ext <<_ACEOF
9126/* confdefs.h. */
9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h. */
9131#include <$ac_header>
9132_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009133if { (ac_try="$ac_cpp conftest.$ac_ext"
9134case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009145 (exit $ac_status); } >/dev/null && {
9146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9147 test ! -s conftest.err
9148 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009149 ac_header_preproc=yes
9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_header_preproc=no
9155fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009157rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009160
9161# So? What about this header?
9162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163 yes:no: )
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
9169 ;;
9170 no:yes:* )
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009183
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009184 ;;
9185esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009186{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
9191 eval "$as_ac_Header=\$ac_header_preproc"
9192fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009193ac_res=`eval echo '${'$as_ac_Header'}'`
9194 { echo "$as_me:$LINENO: result: $ac_res" >&5
9195echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009196
9197fi
9198if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199 cat >>confdefs.h <<_ACEOF
9200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9201_ACEOF
9202
9203fi
9204
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009205done
9206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9231mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9232strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9233__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009234do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009236{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9238if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009239 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009240else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009241 cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h. */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h. */
9247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9249#define $ac_func innocuous_$ac_func
9250
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009251/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252 which can conflict with char $ac_func (); below.
9253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9254 <limits.h> exists even on freestanding compilers. */
9255
9256#ifdef __STDC__
9257# include <limits.h>
9258#else
9259# include <assert.h>
9260#endif
9261
9262#undef $ac_func
9263
Theodore Ts'oe1052142006-10-21 21:46:47 -04009264/* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009267#ifdef __cplusplus
9268extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009269#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009270char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009271/* The GNU C library defines this for functions which it implements
9272 to always fail with ENOSYS. Some functions are actually named
9273 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009274#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009275choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009276#endif
9277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009278int
9279main ()
9280{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009281return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009282 ;
9283 return 0;
9284}
9285_ACEOF
9286rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009287if { (ac_try="$ac_link"
9288case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9291esac
9292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009299 (exit $ac_status); } && {
9300 test -z "$ac_c_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest$ac_exeext &&
9303 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009304 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009305else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009306 echo "$as_me: failed program was:" >&5
9307sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009308
Theodore Ts'oe1052142006-10-21 21:46:47 -04009309 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009310fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009311
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009313 conftest$ac_exeext conftest.$ac_ext
9314fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009315ac_res=`eval echo '${'$as_ac_var'}'`
9316 { echo "$as_me:$LINENO: result: $ac_res" >&5
9317echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009318if test `eval echo '${'$as_ac_var'}'` = yes; then
9319 cat >>confdefs.h <<_ACEOF
9320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9321_ACEOF
9322
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009323fi
9324done
9325
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009327
Theodore Ts'oe1052142006-10-21 21:46:47 -04009328 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9329echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009330if test "${ac_cv_have_decl__snprintf+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332else
9333 cat >conftest.$ac_ext <<_ACEOF
9334/* confdefs.h. */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
9338/* end confdefs.h. */
9339#include <stdio.h>
9340int
9341main ()
9342{
9343
9344#ifndef _snprintf
9345 char *p = (char *) _snprintf;
9346#endif
9347
9348 ;
9349 return 0;
9350}
9351_ACEOF
9352rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009353if { (ac_try="$ac_compile"
9354case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9357esac
9358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009365 (exit $ac_status); } && {
9366 test -z "$ac_c_werror_flag" ||
9367 test ! -s conftest.err
9368 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009369 ac_cv_have_decl__snprintf=yes
9370else
9371 echo "$as_me: failed program was:" >&5
9372sed 's/^/| /' conftest.$ac_ext >&5
9373
Theodore Ts'oe1052142006-10-21 21:46:47 -04009374 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009375fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009376
9377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009378fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009379{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9380echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009381 if test $ac_cv_have_decl__snprintf = yes; then
9382 gt_value=1
9383 else
9384 gt_value=0
9385 fi
9386
9387cat >>confdefs.h <<_ACEOF
9388#define HAVE_DECL__SNPRINTF $gt_value
9389_ACEOF
9390
9391
9392
Theodore Ts'oe1052142006-10-21 21:46:47 -04009393 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9394echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009395if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9397else
9398 cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
9404#include <stdio.h>
9405int
9406main ()
9407{
9408
9409#ifndef _snwprintf
9410 char *p = (char *) _snwprintf;
9411#endif
9412
9413 ;
9414 return 0;
9415}
9416_ACEOF
9417rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009418if { (ac_try="$ac_compile"
9419case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9422esac
9423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009434 ac_cv_have_decl__snwprintf=yes
9435else
9436 echo "$as_me: failed program was:" >&5
9437sed 's/^/| /' conftest.$ac_ext >&5
9438
Theodore Ts'oe1052142006-10-21 21:46:47 -04009439 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009440fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009441
9442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009443fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009444{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9445echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009446 if test $ac_cv_have_decl__snwprintf = yes; then
9447 gt_value=1
9448 else
9449 gt_value=0
9450 fi
9451
9452cat >>confdefs.h <<_ACEOF
9453#define HAVE_DECL__SNWPRINTF $gt_value
9454_ACEOF
9455
9456
9457
9458
Theodore Ts'oe1052142006-10-21 21:46:47 -04009459 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9460echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009461if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464 cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h. */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h. */
9470#include <stdio.h>
9471int
9472main ()
9473{
9474
9475#ifndef feof_unlocked
9476 char *p = (char *) feof_unlocked;
9477#endif
9478
9479 ;
9480 return 0;
9481}
9482_ACEOF
9483rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009484if { (ac_try="$ac_compile"
9485case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9488esac
9489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009496 (exit $ac_status); } && {
9497 test -z "$ac_c_werror_flag" ||
9498 test ! -s conftest.err
9499 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009500 ac_cv_have_decl_feof_unlocked=yes
9501else
9502 echo "$as_me: failed program was:" >&5
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
Theodore Ts'oe1052142006-10-21 21:46:47 -04009505 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009507
9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009510{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9511echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009512 if test $ac_cv_have_decl_feof_unlocked = yes; then
9513 gt_value=1
9514 else
9515 gt_value=0
9516 fi
9517
9518cat >>confdefs.h <<_ACEOF
9519#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9520_ACEOF
9521
9522
9523
Theodore Ts'oe1052142006-10-21 21:46:47 -04009524 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9525echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009526if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528else
9529 cat >conftest.$ac_ext <<_ACEOF
9530/* confdefs.h. */
9531_ACEOF
9532cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */
9535#include <stdio.h>
9536int
9537main ()
9538{
9539
9540#ifndef fgets_unlocked
9541 char *p = (char *) fgets_unlocked;
9542#endif
9543
9544 ;
9545 return 0;
9546}
9547_ACEOF
9548rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009549if { (ac_try="$ac_compile"
9550case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553esac
9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009565 ac_cv_have_decl_fgets_unlocked=yes
9566else
9567 echo "$as_me: failed program was:" >&5
9568sed 's/^/| /' conftest.$ac_ext >&5
9569
Theodore Ts'oe1052142006-10-21 21:46:47 -04009570 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009572
9573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009575{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9576echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9578 gt_value=1
9579 else
9580 gt_value=0
9581 fi
9582
9583cat >>confdefs.h <<_ACEOF
9584#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9585_ACEOF
9586
9587
9588
Theodore Ts'oe1052142006-10-21 21:46:47 -04009589 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9590echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009591if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593else
9594 cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h. */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h. */
9600#include <stdio.h>
9601int
9602main ()
9603{
9604
9605#ifndef getc_unlocked
9606 char *p = (char *) getc_unlocked;
9607#endif
9608
9609 ;
9610 return 0;
9611}
9612_ACEOF
9613rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009614if { (ac_try="$ac_compile"
9615case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618esac
9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009630 ac_cv_have_decl_getc_unlocked=yes
9631else
9632 echo "$as_me: failed program was:" >&5
9633sed 's/^/| /' conftest.$ac_ext >&5
9634
Theodore Ts'oe1052142006-10-21 21:46:47 -04009635 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009636fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009637
9638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009639fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009640{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9641echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 if test $ac_cv_have_decl_getc_unlocked = yes; then
9643 gt_value=1
9644 else
9645 gt_value=0
9646 fi
9647
9648cat >>confdefs.h <<_ACEOF
9649#define HAVE_DECL_GETC_UNLOCKED $gt_value
9650_ACEOF
9651
9652
9653
9654 case $gt_cv_func_printf_posix in
9655 *yes) HAVE_POSIX_PRINTF=1 ;;
9656 *) HAVE_POSIX_PRINTF=0 ;;
9657 esac
9658
9659 if test "$ac_cv_func_asprintf" = yes; then
9660 HAVE_ASPRINTF=1
9661 else
9662 HAVE_ASPRINTF=0
9663 fi
9664
9665 if test "$ac_cv_func_snprintf" = yes; then
9666 HAVE_SNPRINTF=1
9667 else
9668 HAVE_SNPRINTF=0
9669 fi
9670
9671 if test "$ac_cv_func_wprintf" = yes; then
9672 HAVE_WPRINTF=1
9673 else
9674 HAVE_WPRINTF=0
9675 fi
9676
9677
9678
9679
9680
9681
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009682
9683 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009684
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009685 for element in $INCICONV; do
9686 haveit=
9687 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009688
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009689 acl_save_prefix="$prefix"
9690 prefix="$acl_final_prefix"
9691 acl_save_exec_prefix="$exec_prefix"
9692 exec_prefix="$acl_final_exec_prefix"
9693 eval x=\"$x\"
9694 exec_prefix="$acl_save_exec_prefix"
9695 prefix="$acl_save_prefix"
9696
9697 if test "X$x" = "X$element"; then
9698 haveit=yes
9699 break
9700 fi
9701 done
9702 if test -z "$haveit"; then
9703 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9704 fi
9705 done
9706
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009707
Theodore Ts'oe1052142006-10-21 21:46:47 -04009708 { echo "$as_me:$LINENO: checking for iconv" >&5
9709echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009710if test "${am_cv_func_iconv+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009712else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009713
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009714 am_cv_func_iconv="no, consider installing GNU libiconv"
9715 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009716 cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009722#include <stdlib.h>
9723#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009724int
9725main ()
9726{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009727iconv_t cd = iconv_open("","");
9728 iconv(cd,NULL,NULL,NULL,NULL);
9729 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009730 ;
9731 return 0;
9732}
9733_ACEOF
9734rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009735if { (ac_try="$ac_link"
9736case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739esac
9740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009752 am_cv_func_iconv=yes
9753else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009754 echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
Theodore Ts'oe1052142006-10-21 21:46:47 -04009757
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009758fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009759
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009761 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009762 if test "$am_cv_func_iconv" != yes; then
9763 am_save_LIBS="$LIBS"
9764 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009765 cat >conftest.$ac_ext <<_ACEOF
9766/* confdefs.h. */
9767_ACEOF
9768cat confdefs.h >>conftest.$ac_ext
9769cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009771#include <stdlib.h>
9772#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773int
9774main ()
9775{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009776iconv_t cd = iconv_open("","");
9777 iconv(cd,NULL,NULL,NULL,NULL);
9778 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009779 ;
9780 return 0;
9781}
9782_ACEOF
9783rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009784if { (ac_try="$ac_link"
9785case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788esac
9789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext &&
9800 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009801 am_cv_lib_iconv=yes
9802 am_cv_func_iconv=yes
9803else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009809
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009811 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009812 LIBS="$am_save_LIBS"
9813 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009814
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009815fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009816{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9817echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009818 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009819
9820cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009821#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009822_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009823
9824 fi
9825 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009826 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9827echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9828 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9829echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009830 else
9831 CPPFLAGS="$am_save_CPPFLAGS"
9832 LIBICONV=
9833 LTLIBICONV=
9834 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009835
9836
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009837
9838 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009839 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9840echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009841 if test "${am_cv_proto_iconv+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009843else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009844
9845 cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009851
9852#include <stdlib.h>
9853#include <iconv.h>
9854extern
9855#ifdef __cplusplus
9856"C"
9857#endif
9858#if defined(__STDC__) || defined(__cplusplus)
9859size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9860#else
9861size_t iconv();
9862#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009863
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009864int
9865main ()
9866{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009868 ;
9869 return 0;
9870}
9871_ACEOF
9872rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009873if { (ac_try="$ac_compile"
9874case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9877esac
9878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880 ac_status=$?
9881 grep -v '^ *+' conftest.er1 >conftest.err
9882 rm -f conftest.er1
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009885 (exit $ac_status); } && {
9886 test -z "$ac_c_werror_flag" ||
9887 test ! -s conftest.err
9888 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009889 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009890else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009891 echo "$as_me: failed program was:" >&5
9892sed 's/^/| /' conftest.$ac_ext >&5
9893
Theodore Ts'oe1052142006-10-21 21:46:47 -04009894 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009896
9897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009898 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 +00009899fi
9900
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009901 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009902 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009903 }$am_cv_proto_iconv" >&5
9904echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009905 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906
9907cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009908#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009909_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009910
9911 fi
9912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009913
Theodore Ts'oe1052142006-10-21 21:46:47 -04009914 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9915echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009916if test "${am_cv_langinfo_codeset+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009918else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009919 cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009925#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926int
9927main ()
9928{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009929char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009930 ;
9931 return 0;
9932}
9933_ACEOF
9934rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009935if { (ac_try="$ac_link"
9936case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939esac
9940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext &&
9951 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009952 am_cv_langinfo_codeset=yes
9953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009954 echo "$as_me: failed program was:" >&5
9955sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009956
Theodore Ts'oe1052142006-10-21 21:46:47 -04009957 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009959
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961 conftest$ac_exeext conftest.$ac_ext
9962
9963fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009964{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9965echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009966 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009967
9968cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009969#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009971
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009972 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009973
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009974 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975
Theodore Ts'oe1052142006-10-21 21:46:47 -04009976 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9977echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009978if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009980else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009981 cat >conftest.$ac_ext <<_ACEOF
9982/* confdefs.h. */
9983_ACEOF
9984cat confdefs.h >>conftest.$ac_ext
9985cat >>conftest.$ac_ext <<_ACEOF
9986/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009987#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009988int
9989main ()
9990{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009991return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992 ;
9993 return 0;
9994}
9995_ACEOF
9996rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009997if { (ac_try="$ac_link"
9998case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest$ac_exeext &&
10013 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010014 am_cv_val_LC_MESSAGES=yes
10015else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016 echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010018
Theodore Ts'oe1052142006-10-21 21:46:47 -040010019 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010021
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023 conftest$ac_exeext conftest.$ac_ext
10024fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010025{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10026echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010027 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010028
10029cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010030#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010031_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010032
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010033 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010034
10035 fi
10036
10037 for ac_prog in bison
10038do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010039 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010040set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043if test "${ac_cv_prog_INTLBISON+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010045else
10046 if test -n "$INTLBISON"; then
10047 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10048else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050for as_dir in $PATH
10051do
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010055 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 -050010056 ac_cv_prog_INTLBISON="$ac_prog"
10057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10059 fi
10060done
10061done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010062IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010063
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010064fi
10065fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010066INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010067if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010068 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10069echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010070else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010071 { echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010073fi
10074
Theodore Ts'oe1052142006-10-21 21:46:47 -040010075
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010076 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010077done
10078
10079 if test -z "$INTLBISON"; then
10080 ac_verc_fail=yes
10081 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010082 { echo "$as_me:$LINENO: checking version of bison" >&5
10083echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010084 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10085 case $ac_prog_version in
10086 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10087 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10088 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10089 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10090 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010091 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10092echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010093 fi
10094 if test $ac_verc_fail = yes; then
10095 INTLBISON=:
10096 fi
10097
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010098
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010099
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010100
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010101
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010103
10104
10105
10106
10107
10108
10109
10110
10111
10112
Theodore Ts'oe1052142006-10-21 21:46:47 -040010113 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10114echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10115 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010116if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010117 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010118else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010119 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010120fi
10121
10122 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10123echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010124
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126
10127
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010128 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010129 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010130
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010131 LIBINTL=
10132 LTLIBINTL=
10133 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010134
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010135 if test "$USE_NLS" = "yes"; then
10136 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010137
Theodore Ts'oe1052142006-10-21 21:46:47 -040010138 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10139echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010140
Theodore Ts'oe1052142006-10-21 21:46:47 -040010141# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010142if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010143 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010144else
10145 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010146fi
10147
10148 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10149echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010150
10151 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10152 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010154
10155
10156
10157
10158
Theodore Ts'oe1052142006-10-21 21:46:47 -040010159 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10160echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010161if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010163else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010164 cat >conftest.$ac_ext <<_ACEOF
10165/* confdefs.h. */
10166_ACEOF
10167cat confdefs.h >>conftest.$ac_ext
10168cat >>conftest.$ac_ext <<_ACEOF
10169/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010170#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010171extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010172extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010173int
10174main ()
10175{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010176bindtextdomain ("", "");
10177return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010178 ;
10179 return 0;
10180}
10181_ACEOF
10182rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010183if { (ac_try="$ac_link"
10184case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187esac
10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010195 (exit $ac_status); } && {
10196 test -z "$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest$ac_exeext &&
10199 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010200 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010201else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010202 echo "$as_me: failed program was:" >&5
10203sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010204
Theodore Ts'oe1052142006-10-21 21:46:47 -040010205 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010206fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010207
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209 conftest$ac_exeext conftest.$ac_ext
10210fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010211{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10212echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010213
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010214 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010215
10216
10217
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010218 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010219
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010220 acl_save_prefix="$prefix"
10221 prefix="$acl_final_prefix"
10222 acl_save_exec_prefix="$exec_prefix"
10223 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010224
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010225 eval additional_includedir=\"$includedir\"
10226 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010227
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010228 exec_prefix="$acl_save_exec_prefix"
10229 prefix="$acl_save_prefix"
10230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010231
Theodore Ts'oe1052142006-10-21 21:46:47 -040010232# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010233if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010234 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010235 if test "X$withval" = "Xno"; then
10236 use_additional=no
10237 else
10238 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010239
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010240 acl_save_prefix="$prefix"
10241 prefix="$acl_final_prefix"
10242 acl_save_exec_prefix="$exec_prefix"
10243 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010244
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010245 eval additional_includedir=\"$includedir\"
10246 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010247
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010248 exec_prefix="$acl_save_exec_prefix"
10249 prefix="$acl_save_prefix"
10250
10251 else
10252 additional_includedir="$withval/include"
10253 additional_libdir="$withval/lib"
10254 fi
10255 fi
10256
Theodore Ts'oe1052142006-10-21 21:46:47 -040010257fi
10258
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010259 LIBINTL=
10260 LTLIBINTL=
10261 INCINTL=
10262 rpathdirs=
10263 ltrpathdirs=
10264 names_already_handled=
10265 names_next_round='intl '
10266 while test -n "$names_next_round"; do
10267 names_this_round="$names_next_round"
10268 names_next_round=
10269 for name in $names_this_round; do
10270 already_handled=
10271 for n in $names_already_handled; do
10272 if test "$n" = "$name"; then
10273 already_handled=yes
10274 break
10275 fi
10276 done
10277 if test -z "$already_handled"; then
10278 names_already_handled="$names_already_handled $name"
10279 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10280 eval value=\"\$HAVE_LIB$uppername\"
10281 if test -n "$value"; then
10282 if test "$value" = yes; then
10283 eval value=\"\$LIB$uppername\"
10284 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10285 eval value=\"\$LTLIB$uppername\"
10286 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10287 else
10288 :
10289 fi
10290 else
10291 found_dir=
10292 found_la=
10293 found_so=
10294 found_a=
10295 if test $use_additional = yes; then
10296 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10297 found_dir="$additional_libdir"
10298 found_so="$additional_libdir/lib$name.$shlibext"
10299 if test -f "$additional_libdir/lib$name.la"; then
10300 found_la="$additional_libdir/lib$name.la"
10301 fi
10302 else
10303 if test -f "$additional_libdir/lib$name.$libext"; then
10304 found_dir="$additional_libdir"
10305 found_a="$additional_libdir/lib$name.$libext"
10306 if test -f "$additional_libdir/lib$name.la"; then
10307 found_la="$additional_libdir/lib$name.la"
10308 fi
10309 fi
10310 fi
10311 fi
10312 if test "X$found_dir" = "X"; then
10313 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010314
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010315 acl_save_prefix="$prefix"
10316 prefix="$acl_final_prefix"
10317 acl_save_exec_prefix="$exec_prefix"
10318 exec_prefix="$acl_final_exec_prefix"
10319 eval x=\"$x\"
10320 exec_prefix="$acl_save_exec_prefix"
10321 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010322
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010323 case "$x" in
10324 -L*)
10325 dir=`echo "X$x" | sed -e 's/^X-L//'`
10326 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10327 found_dir="$dir"
10328 found_so="$dir/lib$name.$shlibext"
10329 if test -f "$dir/lib$name.la"; then
10330 found_la="$dir/lib$name.la"
10331 fi
10332 else
10333 if test -f "$dir/lib$name.$libext"; then
10334 found_dir="$dir"
10335 found_a="$dir/lib$name.$libext"
10336 if test -f "$dir/lib$name.la"; then
10337 found_la="$dir/lib$name.la"
10338 fi
10339 fi
10340 fi
10341 ;;
10342 esac
10343 if test "X$found_dir" != "X"; then
10344 break
10345 fi
10346 done
10347 fi
10348 if test "X$found_dir" != "X"; then
10349 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10350 if test "X$found_so" != "X"; then
10351 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10353 else
10354 haveit=
10355 for x in $ltrpathdirs; do
10356 if test "X$x" = "X$found_dir"; then
10357 haveit=yes
10358 break
10359 fi
10360 done
10361 if test -z "$haveit"; then
10362 ltrpathdirs="$ltrpathdirs $found_dir"
10363 fi
10364 if test "$hardcode_direct" = yes; then
10365 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10366 else
10367 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10368 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10369 haveit=
10370 for x in $rpathdirs; do
10371 if test "X$x" = "X$found_dir"; then
10372 haveit=yes
10373 break
10374 fi
10375 done
10376 if test -z "$haveit"; then
10377 rpathdirs="$rpathdirs $found_dir"
10378 fi
10379 else
10380 haveit=
10381 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010382
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010383 acl_save_prefix="$prefix"
10384 prefix="$acl_final_prefix"
10385 acl_save_exec_prefix="$exec_prefix"
10386 exec_prefix="$acl_final_exec_prefix"
10387 eval x=\"$x\"
10388 exec_prefix="$acl_save_exec_prefix"
10389 prefix="$acl_save_prefix"
10390
10391 if test "X$x" = "X-L$found_dir"; then
10392 haveit=yes
10393 break
10394 fi
10395 done
10396 if test -z "$haveit"; then
10397 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10398 fi
10399 if test "$hardcode_minus_L" != no; then
10400 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10401 else
10402 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10403 fi
10404 fi
10405 fi
10406 fi
10407 else
10408 if test "X$found_a" != "X"; then
10409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10410 else
10411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10412 fi
10413 fi
10414 additional_includedir=
10415 case "$found_dir" in
10416 */lib | */lib/)
10417 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10418 additional_includedir="$basedir/include"
10419 ;;
10420 esac
10421 if test "X$additional_includedir" != "X"; then
10422 if test "X$additional_includedir" != "X/usr/include"; then
10423 haveit=
10424 if test "X$additional_includedir" = "X/usr/local/include"; then
10425 if test -n "$GCC"; then
10426 case $host_os in
10427 linux*) haveit=yes;;
10428 esac
10429 fi
10430 fi
10431 if test -z "$haveit"; then
10432 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010433
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010434 acl_save_prefix="$prefix"
10435 prefix="$acl_final_prefix"
10436 acl_save_exec_prefix="$exec_prefix"
10437 exec_prefix="$acl_final_exec_prefix"
10438 eval x=\"$x\"
10439 exec_prefix="$acl_save_exec_prefix"
10440 prefix="$acl_save_prefix"
10441
10442 if test "X$x" = "X-I$additional_includedir"; then
10443 haveit=yes
10444 break
10445 fi
10446 done
10447 if test -z "$haveit"; then
10448 if test -d "$additional_includedir"; then
10449 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10450 fi
10451 fi
10452 fi
10453 fi
10454 fi
10455 if test -n "$found_la"; then
10456 save_libdir="$libdir"
10457 case "$found_la" in
10458 */* | *\\*) . "$found_la" ;;
10459 *) . "./$found_la" ;;
10460 esac
10461 libdir="$save_libdir"
10462 for dep in $dependency_libs; do
10463 case "$dep" in
10464 -L*)
10465 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10466 if test "X$additional_libdir" != "X/usr/lib"; then
10467 haveit=
10468 if test "X$additional_libdir" = "X/usr/local/lib"; then
10469 if test -n "$GCC"; then
10470 case $host_os in
10471 linux*) haveit=yes;;
10472 esac
10473 fi
10474 fi
10475 if test -z "$haveit"; then
10476 haveit=
10477 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010478
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10483 eval x=\"$x\"
10484 exec_prefix="$acl_save_exec_prefix"
10485 prefix="$acl_save_prefix"
10486
10487 if test "X$x" = "X-L$additional_libdir"; then
10488 haveit=yes
10489 break
10490 fi
10491 done
10492 if test -z "$haveit"; then
10493 if test -d "$additional_libdir"; then
10494 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10495 fi
10496 fi
10497 haveit=
10498 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010499
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010500 acl_save_prefix="$prefix"
10501 prefix="$acl_final_prefix"
10502 acl_save_exec_prefix="$exec_prefix"
10503 exec_prefix="$acl_final_exec_prefix"
10504 eval x=\"$x\"
10505 exec_prefix="$acl_save_exec_prefix"
10506 prefix="$acl_save_prefix"
10507
10508 if test "X$x" = "X-L$additional_libdir"; then
10509 haveit=yes
10510 break
10511 fi
10512 done
10513 if test -z "$haveit"; then
10514 if test -d "$additional_libdir"; then
10515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10516 fi
10517 fi
10518 fi
10519 fi
10520 ;;
10521 -R*)
10522 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10523 if test "$enable_rpath" != no; then
10524 haveit=
10525 for x in $rpathdirs; do
10526 if test "X$x" = "X$dir"; then
10527 haveit=yes
10528 break
10529 fi
10530 done
10531 if test -z "$haveit"; then
10532 rpathdirs="$rpathdirs $dir"
10533 fi
10534 haveit=
10535 for x in $ltrpathdirs; do
10536 if test "X$x" = "X$dir"; then
10537 haveit=yes
10538 break
10539 fi
10540 done
10541 if test -z "$haveit"; then
10542 ltrpathdirs="$ltrpathdirs $dir"
10543 fi
10544 fi
10545 ;;
10546 -l*)
10547 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10548 ;;
10549 *.la)
10550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10551 ;;
10552 *)
10553 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10554 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10555 ;;
10556 esac
10557 done
10558 fi
10559 else
10560 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10561 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10562 fi
10563 fi
10564 fi
10565 done
10566 done
10567 if test "X$rpathdirs" != "X"; then
10568 if test -n "$hardcode_libdir_separator"; then
10569 alldirs=
10570 for found_dir in $rpathdirs; do
10571 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10572 done
10573 acl_save_libdir="$libdir"
10574 libdir="$alldirs"
10575 eval flag=\"$hardcode_libdir_flag_spec\"
10576 libdir="$acl_save_libdir"
10577 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10578 else
10579 for found_dir in $rpathdirs; do
10580 acl_save_libdir="$libdir"
10581 libdir="$found_dir"
10582 eval flag=\"$hardcode_libdir_flag_spec\"
10583 libdir="$acl_save_libdir"
10584 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10585 done
10586 fi
10587 fi
10588 if test "X$ltrpathdirs" != "X"; then
10589 for found_dir in $ltrpathdirs; do
10590 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10591 done
10592 fi
10593
Theodore Ts'oe1052142006-10-21 21:46:47 -040010594 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10595echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010596if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010598else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010599 gt_save_CPPFLAGS="$CPPFLAGS"
10600 CPPFLAGS="$CPPFLAGS $INCINTL"
10601 gt_save_LIBS="$LIBS"
10602 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010603 cat >conftest.$ac_ext <<_ACEOF
10604/* confdefs.h. */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010609#include <libintl.h>
10610extern int _nl_msg_cat_cntr;
10611extern
10612#ifdef __cplusplus
10613"C"
10614#endif
10615const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010616int
10617main ()
10618{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010619bindtextdomain ("", "");
10620return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621 ;
10622 return 0;
10623}
10624_ACEOF
10625rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010626if { (ac_try="$ac_link"
10627case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630esac
10631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest$ac_exeext &&
10642 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010643 gt_cv_func_gnugettext1_libintl=yes
10644else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010645 echo "$as_me: failed program was:" >&5
10646sed 's/^/| /' conftest.$ac_ext >&5
10647
Theodore Ts'oe1052142006-10-21 21:46:47 -040010648 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010650
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010652 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010653 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10654 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010655 cat >conftest.$ac_ext <<_ACEOF
10656/* confdefs.h. */
10657_ACEOF
10658cat confdefs.h >>conftest.$ac_ext
10659cat >>conftest.$ac_ext <<_ACEOF
10660/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010661#include <libintl.h>
10662extern int _nl_msg_cat_cntr;
10663extern
10664#ifdef __cplusplus
10665"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010666#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010667const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668int
10669main ()
10670{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010671bindtextdomain ("", "");
10672return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010673 ;
10674 return 0;
10675}
10676_ACEOF
10677rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010678if { (ac_try="$ac_link"
10679case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682esac
10683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest$ac_exeext &&
10694 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010695 LIBINTL="$LIBINTL $LIBICONV"
10696 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10697 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010698
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010699else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010700 echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
Theodore Ts'oe1052142006-10-21 21:46:47 -040010703
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010704fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010705
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010708 fi
10709 CPPFLAGS="$gt_save_CPPFLAGS"
10710 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010712{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10713echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010714 fi
10715
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010716 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10717 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010718 && test "$PACKAGE" != gettext-runtime \
10719 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010720 gt_use_preinstalled_gnugettext=yes
10721 else
10722 LIBINTL=
10723 LTLIBINTL=
10724 INCINTL=
10725 fi
10726
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010727
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010728 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10729 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010730 fi
10731 fi
10732
10733 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010734 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010735 USE_INCLUDED_LIBINTL=yes
10736 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10737 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10738 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010739 fi
10740
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010741 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10742 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10743 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010744 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010746
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010747 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10748 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010749
10750cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010751#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010753
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010754 else
10755 USE_NLS=no
10756 fi
10757 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010758
Theodore Ts'oe1052142006-10-21 21:46:47 -040010759 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10760echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10761 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10762echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010764 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10765echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010766 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10767 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10768 gt_source="external libintl"
10769 else
10770 gt_source="libc"
10771 fi
10772 else
10773 gt_source="included intl directory"
10774 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010775 { echo "$as_me:$LINENO: result: $gt_source" >&5
10776echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010777 fi
10778
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010779 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010780
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010781 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10782 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010783 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10784echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10785 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10786echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010787
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010788 for element in $INCINTL; do
10789 haveit=
10790 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010791
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792 acl_save_prefix="$prefix"
10793 prefix="$acl_final_prefix"
10794 acl_save_exec_prefix="$exec_prefix"
10795 exec_prefix="$acl_final_exec_prefix"
10796 eval x=\"$x\"
10797 exec_prefix="$acl_save_exec_prefix"
10798 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010799
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010800 if test "X$x" = "X$element"; then
10801 haveit=yes
10802 break
10803 fi
10804 done
10805 if test -z "$haveit"; then
10806 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10807 fi
10808 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010809
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010810 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010811
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010813cat >>confdefs.h <<\_ACEOF
10814#define HAVE_GETTEXT 1
10815_ACEOF
10816
10817
10818cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010819#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010820_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010821
10822 fi
10823
10824 POSUB=po
10825 fi
10826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827
10828 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010829 BUILD_INCLUDED_LIBINTL=yes
10830 fi
10831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010832
10833
10834
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010835
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010836 nls_cv_header_intl=
10837 nls_cv_header_libgt=
10838
10839 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010840
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010841
10842 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010843
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010844
10845 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010846
10847
10848 if test "$USE_INCLUDED_LIBINTL" = yes; then
10849 INTLOBJS="\$(GETTOBJS)"
10850 fi
10851
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010852
10853 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010854
10855
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010856
10857 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010858
10859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010860
10861
10862
10863
10864
Theodore Ts'oe1052142006-10-21 21:46:47 -040010865{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10866echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10867set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10868if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010870else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010871 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010872SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010873all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010874 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010875_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010876# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010877case `${MAKE-make} -f conftest.make 2>/dev/null` in
10878 *@@@%%%=?*=@@@%%%*)
10879 eval ac_cv_prog_make_${ac_make}_set=yes;;
10880 *)
10881 eval ac_cv_prog_make_${ac_make}_set=no;;
10882esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010883rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010884fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010885if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10886 { echo "$as_me:$LINENO: result: yes" >&5
10887echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010888 SET_MAKE=
10889else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010890 { echo "$as_me:$LINENO: result: no" >&5
10891echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010892 SET_MAKE="MAKE=${MAKE-make}"
10893fi
10894
10895# Extract the first word of "ln", so it can be a program name with args.
10896set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010899if test "${ac_cv_path_LN+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010901else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010902 case $LN in
10903 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010904 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10905 ;;
10906 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908for as_dir in $PATH
10909do
10910 IFS=$as_save_IFS
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010913 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 -050010914 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 break 2
10917 fi
10918done
10919done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010920IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010921
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010922 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10923 ;;
10924esac
10925fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010926LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010927if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010928 { echo "$as_me:$LINENO: result: $LN" >&5
10929echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010930else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010931 { echo "$as_me:$LINENO: result: no" >&5
10932echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010933fi
10934
Theodore Ts'oe1052142006-10-21 21:46:47 -040010935
10936{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10937echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010938LN_S=$as_ln_s
10939if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010940 { echo "$as_me:$LINENO: result: yes" >&5
10941echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010942else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010943 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10944echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010945fi
10946
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010947# Extract the first word of "mv", so it can be a program name with args.
10948set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010951if test "${ac_cv_path_MV+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010954 case $MV in
10955 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010956 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10957 ;;
10958 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960for as_dir in $PATH
10961do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010965 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 -050010966 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 break 2
10969 fi
10970done
10971done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010972IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010973
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010974 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10975 ;;
10976esac
10977fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010978MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010979if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010980 { echo "$as_me:$LINENO: result: $MV" >&5
10981echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010982else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010983 { echo "$as_me:$LINENO: result: no" >&5
10984echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010985fi
10986
Theodore Ts'oe1052142006-10-21 21:46:47 -040010987
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010988# Extract the first word of "cp", so it can be a program name with args.
10989set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010992if test "${ac_cv_path_CP+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010994else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010995 case $CP in
10996 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010997 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10998 ;;
10999 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011006 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 -050011007 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011done
11012done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011013IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011014
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011015 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11016 ;;
11017esac
11018fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011019CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011020if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011021 { echo "$as_me:$LINENO: result: $CP" >&5
11022echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011023else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011024 { echo "$as_me:$LINENO: result: no" >&5
11025echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011026fi
11027
Theodore Ts'oe1052142006-10-21 21:46:47 -040011028
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011029# Extract the first word of "rm", so it can be a program name with args.
11030set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011033if test "${ac_cv_path_RM+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011035else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011036 case $RM in
11037 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011038 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11039 ;;
11040 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042for as_dir in $PATH
11043do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011047 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 -050011048 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11051 fi
11052done
11053done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011054IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011055
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011056 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11057 ;;
11058esac
11059fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011060RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011061if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011062 { echo "$as_me:$LINENO: result: $RM" >&5
11063echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011064else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011065 { echo "$as_me:$LINENO: result: no" >&5
11066echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011067fi
11068
Theodore Ts'oe1052142006-10-21 21:46:47 -040011069
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011070# Extract the first word of "chmod", so it can be a program name with args.
11071set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011074if test "${ac_cv_path_CHMOD+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011076else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011077 case $CHMOD in
11078 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011079 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11080 ;;
11081 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083for as_dir in $PATH
11084do
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011088 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 -050011089 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11092 fi
11093done
11094done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011095IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011096
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011097 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11098 ;;
11099esac
11100fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011101CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011102if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011103 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11104echo "${ECHO_T}$CHMOD" >&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 -050011111for ac_prog in gawk mawk nawk awk
11112do
11113 # Extract the first word of "$ac_prog", so it can be a program name with args.
11114set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011115{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011117if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011118 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011119else
Theodore Ts'o32237012005-01-17 19:13:39 -050011120 if test -n "$AWK"; then
11121 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11122else
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011124for as_dir in $PATH
11125do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011129 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 -050011130 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134done
11135done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011136IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011137
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011138fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011139fi
11140AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011141if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011142 { echo "$as_me:$LINENO: result: $AWK" >&5
11143echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011144else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011145 { echo "$as_me:$LINENO: result: no" >&5
11146echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011147fi
11148
Theodore Ts'oe1052142006-10-21 21:46:47 -040011149
Theodore Ts'o32237012005-01-17 19:13:39 -050011150 test -n "$AWK" && break
11151done
11152
Theodore Ts'oe1052142006-10-21 21:46:47 -040011153{ echo "$as_me:$LINENO: checking for egrep" >&5
11154echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11155if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11159 then ac_cv_path_EGREP="$GREP -E"
11160 else
11161 # Extract the first word of "egrep" to use in msg output
11162if test -z "$EGREP"; then
11163set dummy egrep; ac_prog_name=$2
11164if test "${ac_cv_path_EGREP+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166else
11167 ac_path_EGREP_found=false
11168# Loop through the user's path and test for each of PROGNAME-LIST
11169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11171do
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_prog in egrep; do
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011178 # Check for GNU ac_path_EGREP and select it if it is found.
11179 # Check for GNU $ac_path_EGREP
11180case `"$ac_path_EGREP" --version 2>&1` in
11181*GNU*)
11182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11183*)
11184 ac_count=0
11185 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11186 while :
11187 do
11188 cat "conftest.in" "conftest.in" >"conftest.tmp"
11189 mv "conftest.tmp" "conftest.in"
11190 cp "conftest.in" "conftest.nl"
11191 echo 'EGREP' >> "conftest.nl"
11192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11194 ac_count=`expr $ac_count + 1`
11195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11196 # Best one so far, save it but keep looking for a better one
11197 ac_cv_path_EGREP="$ac_path_EGREP"
11198 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011199 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011200 # 10*(2^10) chars as input seems more than enough
11201 test $ac_count -gt 10 && break
11202 done
11203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11204esac
11205
11206
11207 $ac_path_EGREP_found && break 3
11208 done
11209done
11210
11211done
11212IFS=$as_save_IFS
11213
11214
Theodore Ts'o32237012005-01-17 19:13:39 -050011215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011216
11217EGREP="$ac_cv_path_EGREP"
11218if test -z "$EGREP"; then
11219 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11220echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11221 { (exit 1); exit 1; }; }
11222fi
11223
11224else
11225 ac_cv_path_EGREP=$EGREP
11226fi
11227
11228
11229 fi
11230fi
11231{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11232echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11233 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011234
11235
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011236# Extract the first word of "sed", so it can be a program name with args.
11237set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011240if test "${ac_cv_path_SED+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011242else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011243 case $SED in
11244 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011245 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11246 ;;
11247 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249for as_dir in $PATH
11250do
11251 IFS=$as_save_IFS
11252 test -z "$as_dir" && as_dir=.
11253 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011254 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 -050011255 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11257 break 2
11258 fi
11259done
11260done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011261IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011262
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011263 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11264 ;;
11265esac
11266fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011267SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011268if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011269 { echo "$as_me:$LINENO: result: $SED" >&5
11270echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011271else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011272 { echo "$as_me:$LINENO: result: no" >&5
11273echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011274fi
11275
Theodore Ts'oe1052142006-10-21 21:46:47 -040011276
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011277# Extract the first word of "perl", so it can be a program name with args.
11278set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011281if test "${ac_cv_path_PERL+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011283else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011284 case $PERL in
11285 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011286 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11287 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011288 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011295 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 -050011296 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300done
11301done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011302IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011303
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011304 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11305 ;;
11306esac
11307fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011308PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011309if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011310 { echo "$as_me:$LINENO: result: $PERL" >&5
11311echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011312else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011313 { echo "$as_me:$LINENO: result: no" >&5
11314echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011315fi
11316
Theodore Ts'oe1052142006-10-21 21:46:47 -040011317
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011318# Extract the first word of "ldconfig", so it can be a program name with args.
11319set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011322if test "${ac_cv_path_LDCONFIG+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011324else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325 case $LDCONFIG in
11326 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011327 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11328 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011329 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011336 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 -050011337 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11340 fi
11341done
11342done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011343IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011344
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011345 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11346 ;;
11347esac
11348fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011349LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011350if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011351 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11352echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011353else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011354 { echo "$as_me:$LINENO: result: no" >&5
11355echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011356fi
11357
Theodore Ts'oe1052142006-10-21 21:46:47 -040011358
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011359if test -n "$ac_tool_prefix"; then
11360 # 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 +000011361set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011364if test "${ac_cv_prog_AR+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011366else
11367 if test -n "$AR"; then
11368 ac_cv_prog_AR="$AR" # Let the user override the test.
11369else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011376 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 -050011377 ac_cv_prog_AR="${ac_tool_prefix}ar"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381done
11382done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011383IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011384
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011385fi
11386fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011388if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011389 { echo "$as_me:$LINENO: result: $AR" >&5
11390echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011391else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011392 { echo "$as_me:$LINENO: result: no" >&5
11393echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011394fi
11395
Theodore Ts'oe1052142006-10-21 21:46:47 -040011396
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011397fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011398if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011399 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011400 # Extract the first word of "ar", so it can be a program name with args.
11401set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011406else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011407 if test -n "$ac_ct_AR"; then
11408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011409else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411for as_dir in $PATH
11412do
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011416 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 -050011417 ac_cv_prog_ac_ct_AR="ar"
11418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11419 break 2
11420 fi
11421done
11422done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011423IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011424
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011425fi
11426fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011427ac_ct_AR=$ac_cv_prog_ac_ct_AR
11428if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011429 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11430echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011431else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011432 { echo "$as_me:$LINENO: result: no" >&5
11433echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011434fi
11435
Theodore Ts'oe1052142006-10-21 21:46:47 -040011436 if test "x$ac_ct_AR" = x; then
11437 AR="ar"
11438 else
11439 case $cross_compiling:$ac_tool_warned in
11440yes:)
11441{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11442whose name does not start with the host triplet. If you think this
11443configuration is useful to you, please write to autoconf@gnu.org." >&5
11444echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11445whose name does not start with the host triplet. If you think this
11446configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11447ac_tool_warned=yes ;;
11448esac
11449 AR=$ac_ct_AR
11450 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011451else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011452 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011453fi
11454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455if test -n "$ac_tool_prefix"; then
11456 # 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 +000011457set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011460if test "${ac_cv_prog_RANLIB+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011462else
11463 if test -n "$RANLIB"; then
11464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11465else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011472 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 -050011473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477done
11478done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011479IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011481fi
11482fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011484if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011485 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11486echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011487else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011488 { echo "$as_me:$LINENO: result: no" >&5
11489echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011490fi
11491
Theodore Ts'oe1052142006-10-21 21:46:47 -040011492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011493fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011494if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011495 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011496 # Extract the first word of "ranlib", so it can be a program name with args.
11497set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011502else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503 if test -n "$ac_ct_RANLIB"; then
11504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011505else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507for as_dir in $PATH
11508do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011512 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 -050011513 ac_cv_prog_ac_ct_RANLIB="ranlib"
11514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517done
11518done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011519IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011520
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011521fi
11522fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11524if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011525 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11526echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011527else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011528 { echo "$as_me:$LINENO: result: no" >&5
11529echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530fi
11531
Theodore Ts'oe1052142006-10-21 21:46:47 -040011532 if test "x$ac_ct_RANLIB" = x; then
11533 RANLIB=":"
11534 else
11535 case $cross_compiling:$ac_tool_warned in
11536yes:)
11537{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11538whose name does not start with the host triplet. If you think this
11539configuration is useful to you, please write to autoconf@gnu.org." >&5
11540echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11541whose name does not start with the host triplet. If you think this
11542configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11543ac_tool_warned=yes ;;
11544esac
11545 RANLIB=$ac_ct_RANLIB
11546 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011547else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011548 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011549fi
11550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551if test -n "$ac_tool_prefix"; then
11552 # 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 +000011553set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011556if test "${ac_cv_prog_STRIP+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011558else
11559 if test -n "$STRIP"; then
11560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11561else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011568 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 -050011569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11572 fi
11573done
11574done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011575IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011576
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011577fi
11578fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011580if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011581 { echo "$as_me:$LINENO: result: $STRIP" >&5
11582echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011583else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011584 { echo "$as_me:$LINENO: result: no" >&5
11585echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011586fi
11587
Theodore Ts'oe1052142006-10-21 21:46:47 -040011588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011590if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011592 # Extract the first word of "strip", so it can be a program name with args.
11593set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011598else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599 if test -n "$ac_ct_STRIP"; then
11600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011601else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603for as_dir in $PATH
11604do
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011608 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 -050011609 ac_cv_prog_ac_ct_STRIP="strip"
11610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 break 2
11612 fi
11613done
11614done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011615IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011616
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011617fi
11618fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011619ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11620if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011621 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11622echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011623else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011624 { echo "$as_me:$LINENO: result: no" >&5
11625echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011626fi
11627
Theodore Ts'oe1052142006-10-21 21:46:47 -040011628 if test "x$ac_ct_STRIP" = x; then
11629 STRIP=":"
11630 else
11631 case $cross_compiling:$ac_tool_warned in
11632yes:)
11633{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11634whose name does not start with the host triplet. If you think this
11635configuration is useful to you, please write to autoconf@gnu.org." >&5
11636echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11637whose name does not start with the host triplet. If you think this
11638configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11639ac_tool_warned=yes ;;
11640esac
11641 STRIP=$ac_ct_STRIP
11642 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011643else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011644 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011645fi
11646
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011647# Find a good install program. We prefer a C program (faster),
11648# so one script is as good as another. But avoid the broken or
11649# incompatible versions:
11650# SysV /etc/install, /usr/sbin/install
11651# SunOS /usr/etc/install
11652# IRIX /sbin/install
11653# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011654# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011658# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011659# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011660{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11661echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011662if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663if test "${ac_cv_path_install+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011665else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667for as_dir in $PATH
11668do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 # Account for people who put trailing slashes in PATH elements.
11672case $as_dir/ in
11673 ./ | .// | /cC/* | \
11674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11676 /usr/ucb/* ) ;;
11677 *)
11678 # OSF1 and SCO ODT 3.0 have their own names for install.
11679 # Don't use installbsd from OSF since it installs stuff as root
11680 # by default.
11681 for ac_prog in ginstall scoinst install; do
11682 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011683 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 +000011684 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011686 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011687 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011688 elif test $ac_prog = install &&
11689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11690 # program-specific install script used by HP pwplus--don't use.
11691 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11694 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011695 fi
11696 fi
11697 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 done
11699 ;;
11700esac
11701done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011702IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011704
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011705fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011706 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011707 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011708 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011709 # As a last resort, use the slow shell script. Don't cache a
11710 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011711 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011712 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011713 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011714 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011716{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11717echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718
11719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11720# It thinks the first close brace ends the variable substitution.
11721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011724
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11726
Theodore Ts'o6c133521999-07-03 20:37:03 +000011727# See if we need a separate native compiler.
11728if test $cross_compiling = no; then
11729 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011730
Theodore Ts'o6c133521999-07-03 20:37:03 +000011731else
11732 for ac_prog in gcc cc
11733do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011734 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011735set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011738if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011740else
11741 if test -n "$BUILD_CC"; then
11742 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11743else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011746do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011750 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 -050011751 ac_cv_prog_BUILD_CC="$ac_prog"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011757IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011759fi
11760fi
11761BUILD_CC=$ac_cv_prog_BUILD_CC
11762if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011763 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11764echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011765else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011766 { echo "$as_me:$LINENO: result: no" >&5
11767echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011768fi
11769
Theodore Ts'oe1052142006-10-21 21:46:47 -040011770
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011771 test -n "$BUILD_CC" && break
11772done
11773
11774fi
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011804
Theodore Ts'o106ad962007-04-04 21:26:37 -040011805
11806
Theodore Ts'o29dd9d12007-12-31 14:36:48 -050011807
11808for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h sys/syscall.h net/if_dl.h netinet/in.h utime.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011809do
11810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011817ac_res=`eval echo '${'$as_ac_Header'}'`
11818 { echo "$as_me:$LINENO: result: $ac_res" >&5
11819echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011820else
11821 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011824cat >conftest.$ac_ext <<_ACEOF
11825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
11830$ac_includes_default
11831#include <$ac_header>
11832_ACEOF
11833rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011834if { (ac_try="$ac_compile"
11835case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838esac
11839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850 ac_header_compiler=yes
11851else
11852 echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
Theodore Ts'oe1052142006-10-21 21:46:47 -040011855 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857
11858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11860echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011861
11862# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011865cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
11871#include <$ac_header>
11872_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011873if { (ac_try="$ac_cpp conftest.$ac_ext"
11874case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011885 (exit $ac_status); } >/dev/null && {
11886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11887 test ! -s conftest.err
11888 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011889 ac_header_preproc=yes
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 ac_header_preproc=no
11895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011896
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011897rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11899echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900
11901# So? What about this header?
11902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11903 yes:no: )
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11908 ac_header_preproc=yes
11909 ;;
11910 no:yes:* )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011923
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924 ;;
11925esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011926{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930else
11931 eval "$as_ac_Header=\$ac_header_preproc"
11932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011933ac_res=`eval echo '${'$as_ac_Header'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936
11937fi
11938if test `eval echo '${'$as_ac_Header'}'` = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11941_ACEOF
11942
11943fi
11944
11945done
11946
11947
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011948
11949for ac_header in sys/disk.h sys/mount.h
11950do
11951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011952{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956else
11957 cat >conftest.$ac_ext <<_ACEOF
11958/* confdefs.h. */
11959_ACEOF
11960cat confdefs.h >>conftest.$ac_ext
11961cat >>conftest.$ac_ext <<_ACEOF
11962/* end confdefs.h. */
11963
11964#if HAVE_SYS_QUEUE_H
11965#include <sys/queue.h>
11966#endif
11967
11968
11969#include <$ac_header>
11970_ACEOF
11971rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011972if { (ac_try="$ac_compile"
11973case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011988 eval "$as_ac_Header=yes"
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
Theodore Ts'oe1052142006-10-21 21:46:47 -040011993 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011994fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011995
11996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011997fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011998ac_res=`eval echo '${'$as_ac_Header'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012001if test `eval echo '${'$as_ac_Header'}'` = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12004_ACEOF
12005
12006fi
12007
12008done
12009
12010
12011for ac_header in net/if.h
12012do
12013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018else
12019 cat >conftest.$ac_ext <<_ACEOF
12020/* confdefs.h. */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h. */
12025
12026#if HAVE_SYS_TYPES_H
12027#include <sys/types.h>
12028#endif
12029#if HAVE_SYS_SOCKET
12030#include <sys/socket.h>
12031#endif
12032
12033
12034#include <$ac_header>
12035_ACEOF
12036rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012037if { (ac_try="$ac_compile"
12038case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012053 eval "$as_ac_Header=yes"
12054else
12055 echo "$as_me: failed program was:" >&5
12056sed 's/^/| /' conftest.$ac_ext >&5
12057
Theodore Ts'oe1052142006-10-21 21:46:47 -040012058 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012059fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012060
12061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012062fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012063ac_res=`eval echo '${'$as_ac_Header'}'`
12064 { echo "$as_me:$LINENO: result: $ac_res" >&5
12065echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012066if test `eval echo '${'$as_ac_Header'}'` = yes; then
12067 cat >>confdefs.h <<_ACEOF
12068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12069_ACEOF
12070
12071fi
12072
12073done
12074
12075
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076for ac_func in vprintf
12077do
12078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012079{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12081if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083else
12084 cat >conftest.$ac_ext <<_ACEOF
12085/* confdefs.h. */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h. */
12090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12092#define $ac_func innocuous_$ac_func
12093
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012094/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012095 which can conflict with char $ac_func (); below.
12096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 <limits.h> exists even on freestanding compilers. */
12098
12099#ifdef __STDC__
12100# include <limits.h>
12101#else
12102# include <assert.h>
12103#endif
12104
12105#undef $ac_func
12106
Theodore Ts'oe1052142006-10-21 21:46:47 -040012107/* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110#ifdef __cplusplus
12111extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012113char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012114/* The GNU C library defines this for functions which it implements
12115 to always fail with ENOSYS. Some functions are actually named
12116 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012117#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012118choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012119#endif
12120
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121int
12122main ()
12123{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012124return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012130if { (ac_try="$ac_link"
12131case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134esac
12135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest$ac_exeext &&
12146 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012147 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012148else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012151
Theodore Ts'oe1052142006-10-21 21:46:47 -040012152 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012154
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156 conftest$ac_exeext conftest.$ac_ext
12157fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158ac_res=`eval echo '${'$as_ac_var'}'`
12159 { echo "$as_me:$LINENO: result: $ac_res" >&5
12160echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161if test `eval echo '${'$as_ac_var'}'` = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12164_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012165
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12167echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168if test "${ac_cv_func__doprnt+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012170else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012171 cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12179#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012180
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012181/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182 which can conflict with char _doprnt (); below.
12183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12184 <limits.h> exists even on freestanding compilers. */
12185
12186#ifdef __STDC__
12187# include <limits.h>
12188#else
12189# include <assert.h>
12190#endif
12191
12192#undef _doprnt
12193
Theodore Ts'oe1052142006-10-21 21:46:47 -040012194/* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197#ifdef __cplusplus
12198extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012201/* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012204#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012205choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012206#endif
12207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012208int
12209main ()
12210{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012211return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012212 ;
12213 return 0;
12214}
12215_ACEOF
12216rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012234 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012235else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012238
Theodore Ts'oe1052142006-10-21 21:46:47 -040012239 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012240fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243 conftest$ac_exeext conftest.$ac_ext
12244fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012245{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12246echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012247if test $ac_cv_func__doprnt = yes; then
12248
12249cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012252
12253fi
12254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012255fi
12256done
12257
12258
Theodore Ts'oe1052142006-10-21 21:46:47 -040012259{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12260echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012261if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012264 cat >conftest.$ac_ext <<_ACEOF
12265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012270#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272int
12273main ()
12274{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012275static struct dirent ac_aggr;
12276if (ac_aggr.d_reclen)
12277return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278 ;
12279 return 0;
12280}
12281_ACEOF
12282rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012283if { (ac_try="$ac_compile"
12284case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287esac
12288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012295 (exit $ac_status); } && {
12296 test -z "$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012299 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012300else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301 echo "$as_me: failed program was:" >&5
12302sed 's/^/| /' conftest.$ac_ext >&5
12303
Theodore Ts'oe1052142006-10-21 21:46:47 -040012304 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012305/* confdefs.h. */
12306_ACEOF
12307cat confdefs.h >>conftest.$ac_ext
12308cat >>conftest.$ac_ext <<_ACEOF
12309/* end confdefs.h. */
12310#include <dirent.h>
12311
12312int
12313main ()
12314{
12315static struct dirent ac_aggr;
12316if (sizeof ac_aggr.d_reclen)
12317return 0;
12318 ;
12319 return 0;
12320}
12321_ACEOF
12322rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012323if { (ac_try="$ac_compile"
12324case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327esac
12328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012339 ac_cv_member_struct_dirent_d_reclen=yes
12340else
12341 echo "$as_me: failed program was:" >&5
12342sed 's/^/| /' conftest.$ac_ext >&5
12343
Theodore Ts'oe1052142006-10-21 21:46:47 -040012344 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012346
12347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012349
12350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012351fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012352{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12353echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012354if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12355 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012356#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012357_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012358
12359fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012360
Theodore Ts'oe1052142006-10-21 21:46:47 -040012361{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12362echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012363if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012365else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012366 cat >conftest.$ac_ext <<_ACEOF
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012372#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012373
Theodore Ts'oe1052142006-10-21 21:46:47 -040012374typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012375int
12376main ()
12377{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012378if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012379 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012380if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012381 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012382 ;
12383 return 0;
12384}
12385_ACEOF
12386rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012387if { (ac_try="$ac_compile"
12388case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391esac
12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012403 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012404else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012405 echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
Theodore Ts'oe1052142006-10-21 21:46:47 -040012408 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012409fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012410
12411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012412fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012413{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12414echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012415if test $ac_cv_type_ssize_t = yes; then
12416 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012417#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012418_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012419
12420fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012421
Theodore Ts'oe1052142006-10-21 21:46:47 -040012422{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12423echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012424if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012425 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012426else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012427 cat >conftest.$ac_ext <<_ACEOF
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012433#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012434
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012435int
12436main ()
12437{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012438#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012439 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012440#endif
12441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012442 ;
12443 return 0;
12444}
12445_ACEOF
12446rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012447if { (ac_try="$ac_compile"
12448case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12451esac
12452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012459 (exit $ac_status); } && {
12460 test -z "$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012463 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012464else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012465 echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
Theodore Ts'oe1052142006-10-21 21:46:47 -040012468 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012469fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012470
12471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012472fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012473{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12474echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012475if test $ac_cv_have_decl_llseek = yes; then
12476 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012477#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012478_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012479
12480fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012481
Theodore Ts'oe1052142006-10-21 21:46:47 -040012482{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12483echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012484if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012485 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012486else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012487 cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012493#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012494 #define _LARGEFILE64_SOURCE
12495 #include <unistd.h>
12496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012497int
12498main ()
12499{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012500#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012501 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012502#endif
12503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012509if { (ac_try="$ac_compile"
12510case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513esac
12514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012525 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012526else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012527 echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
Theodore Ts'oe1052142006-10-21 21:46:47 -040012530 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012531fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012532
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012535{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12536echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012537if test $ac_cv_have_decl_lseek64 = yes; then
12538 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012539#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012540_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012541
12542fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012543
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012544if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012545 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012546 ac_cv_sizeof_short=2
12547 ac_cv_sizeof_int=4
12548 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012549 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012550 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12551echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012553{ echo "$as_me:$LINENO: checking for short" >&5
12554echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012555if test "${ac_cv_type_short+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557else
12558 cat >conftest.$ac_ext <<_ACEOF
12559/* confdefs.h. */
12560_ACEOF
12561cat confdefs.h >>conftest.$ac_ext
12562cat >>conftest.$ac_ext <<_ACEOF
12563/* end confdefs.h. */
12564$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012565typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012566int
12567main ()
12568{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012569if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012570 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012571if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012572 return 0;
12573 ;
12574 return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012578if { (ac_try="$ac_compile"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585 ac_status=$?
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012590 (exit $ac_status); } && {
12591 test -z "$ac_c_werror_flag" ||
12592 test ! -s conftest.err
12593 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012594 ac_cv_type_short=yes
12595else
12596 echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
Theodore Ts'oe1052142006-10-21 21:46:47 -040012599 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012600fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012601
Theodore Ts'oe1052142006-10-21 21:46:47 -040012602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603fi
12604{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12605echo "${ECHO_T}$ac_cv_type_short" >&6; }
12606
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012607# The cast to long int works around a bug in the HP C Compiler
12608# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12609# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12610# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012611{ echo "$as_me:$LINENO: checking size of short" >&5
12612echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012613if test "${ac_cv_sizeof_short+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012616 if test "$cross_compiling" = yes; then
12617 # Depending upon the size, compute the lo and hi bounds.
12618cat >conftest.$ac_ext <<_ACEOF
12619/* confdefs.h. */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h. */
12624$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012625 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012626int
12627main ()
12628{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012629static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012630test_array [0] = 0
12631
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012637if { (ac_try="$ac_compile"
12638case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641esac
12642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012649 (exit $ac_status); } && {
12650 test -z "$ac_c_werror_flag" ||
12651 test ! -s conftest.err
12652 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012653 ac_lo=0 ac_mid=0
12654 while :; do
12655 cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012662 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012663int
12664main ()
12665{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012666static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012667test_array [0] = 0
12668
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012674if { (ac_try="$ac_compile"
12675case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012690 ac_hi=$ac_mid; break
12691else
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
Theodore Ts'oe1052142006-10-21 21:46:47 -040012695 ac_lo=`expr $ac_mid + 1`
12696 if test $ac_lo -le $ac_mid; then
12697 ac_lo= ac_hi=
12698 break
12699 fi
12700 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012701fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012702
12703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012704 done
12705else
12706 echo "$as_me: failed program was:" >&5
12707sed 's/^/| /' conftest.$ac_ext >&5
12708
Theodore Ts'oe1052142006-10-21 21:46:47 -040012709 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012710/* confdefs.h. */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h. */
12715$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012716 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012717int
12718main ()
12719{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012720static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012721test_array [0] = 0
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012728if { (ac_try="$ac_compile"
12729case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732esac
12733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012740 (exit $ac_status); } && {
12741 test -z "$ac_c_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744 ac_hi=-1 ac_mid=-1
12745 while :; do
12746 cat >conftest.$ac_ext <<_ACEOF
12747/* confdefs.h. */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */
12752$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012753 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012754int
12755main ()
12756{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012757static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758test_array [0] = 0
12759
12760 ;
12761 return 0;
12762}
12763_ACEOF
12764rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012765if { (ac_try="$ac_compile"
12766case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769esac
12770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012781 ac_lo=$ac_mid; break
12782else
12783 echo "$as_me: failed program was:" >&5
12784sed 's/^/| /' conftest.$ac_ext >&5
12785
Theodore Ts'oe1052142006-10-21 21:46:47 -040012786 ac_hi=`expr '(' $ac_mid ')' - 1`
12787 if test $ac_mid -le $ac_hi; then
12788 ac_lo= ac_hi=
12789 break
12790 fi
12791 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012792fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012793
12794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012795 done
12796else
12797 echo "$as_me: failed program was:" >&5
12798sed 's/^/| /' conftest.$ac_ext >&5
12799
Theodore Ts'oe1052142006-10-21 21:46:47 -040012800 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012801fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012802
12803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012804fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012805
12806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012807# Binary search between lo and hi bounds.
12808while test "x$ac_lo" != "x$ac_hi"; do
12809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12810 cat >conftest.$ac_ext <<_ACEOF
12811/* confdefs.h. */
12812_ACEOF
12813cat confdefs.h >>conftest.$ac_ext
12814cat >>conftest.$ac_ext <<_ACEOF
12815/* end confdefs.h. */
12816$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012817 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818int
12819main ()
12820{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012821static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012822test_array [0] = 0
12823
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012829if { (ac_try="$ac_compile"
12830case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833esac
12834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012841 (exit $ac_status); } && {
12842 test -z "$ac_c_werror_flag" ||
12843 test ! -s conftest.err
12844 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012845 ac_hi=$ac_mid
12846else
12847 echo "$as_me: failed program was:" >&5
12848sed 's/^/| /' conftest.$ac_ext >&5
12849
Theodore Ts'oe1052142006-10-21 21:46:47 -040012850 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012852
12853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012854done
12855case $ac_lo in
12856?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012857'') if test "$ac_cv_type_short" = yes; then
12858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012859See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012860echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012861See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012862 { (exit 77); exit 77; }; }
12863 else
12864 ac_cv_sizeof_short=0
12865 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012866esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012867else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012868 cat >conftest.$ac_ext <<_ACEOF
12869/* confdefs.h. */
12870_ACEOF
12871cat confdefs.h >>conftest.$ac_ext
12872cat >>conftest.$ac_ext <<_ACEOF
12873/* end confdefs.h. */
12874$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012875 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012876static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12877static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012878#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012879#include <stdlib.h>
12880int
12881main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012882{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012883
12884 FILE *f = fopen ("conftest.val", "w");
12885 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012886 return 1;
12887 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012888 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012889 long int i = longval ();
12890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12891 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892 fprintf (f, "%ld\n", i);
12893 }
12894 else
12895 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012896 unsigned long int i = ulongval ();
12897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12898 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012899 fprintf (f, "%lu\n", i);
12900 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012901 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012902
12903 ;
12904 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012905}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906_ACEOF
12907rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012908if { (ac_try="$ac_link"
12909case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912esac
12913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012918 { (case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12921esac
12922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012928else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929 echo "$as_me: program exited with status $ac_status" >&5
12930echo "$as_me: failed program was:" >&5
12931sed 's/^/| /' conftest.$ac_ext >&5
12932
12933( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012934if test "$ac_cv_type_short" = yes; then
12935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012936See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012937echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012938See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012939 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012940 else
12941 ac_cv_sizeof_short=0
12942 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012944rm -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 -050012945fi
12946rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012947fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012948{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12949echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012950
12951
12952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012954#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012955_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012956
12957
Theodore Ts'oe1052142006-10-21 21:46:47 -040012958{ echo "$as_me:$LINENO: checking for int" >&5
12959echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012960if test "${ac_cv_type_int+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962else
12963 cat >conftest.$ac_ext <<_ACEOF
12964/* confdefs.h. */
12965_ACEOF
12966cat confdefs.h >>conftest.$ac_ext
12967cat >>conftest.$ac_ext <<_ACEOF
12968/* end confdefs.h. */
12969$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012970typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971int
12972main ()
12973{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012974if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012976if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012977 return 0;
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012983if { (ac_try="$ac_compile"
12984case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987esac
12988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012995 (exit $ac_status); } && {
12996 test -z "$ac_c_werror_flag" ||
12997 test ! -s conftest.err
12998 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012999 ac_cv_type_int=yes
13000else
13001 echo "$as_me: failed program was:" >&5
13002sed 's/^/| /' conftest.$ac_ext >&5
13003
Theodore Ts'oe1052142006-10-21 21:46:47 -040013004 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013005fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013006
Theodore Ts'oe1052142006-10-21 21:46:47 -040013007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008fi
13009{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13010echo "${ECHO_T}$ac_cv_type_int" >&6; }
13011
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013012# The cast to long int works around a bug in the HP C Compiler
13013# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13014# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13015# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013016{ echo "$as_me:$LINENO: checking size of int" >&5
13017echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013018if test "${ac_cv_sizeof_int+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013021 if test "$cross_compiling" = yes; then
13022 # Depending upon the size, compute the lo and hi bounds.
13023cat >conftest.$ac_ext <<_ACEOF
13024/* confdefs.h. */
13025_ACEOF
13026cat confdefs.h >>conftest.$ac_ext
13027cat >>conftest.$ac_ext <<_ACEOF
13028/* end confdefs.h. */
13029$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013030 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013031int
13032main ()
13033{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013034static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013035test_array [0] = 0
13036
13037 ;
13038 return 0;
13039}
13040_ACEOF
13041rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013042if { (ac_try="$ac_compile"
13043case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
13047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013054 (exit $ac_status); } && {
13055 test -z "$ac_c_werror_flag" ||
13056 test ! -s conftest.err
13057 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013058 ac_lo=0 ac_mid=0
13059 while :; do
13060 cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013067 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013068int
13069main ()
13070{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013071static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013072test_array [0] = 0
13073
13074 ;
13075 return 0;
13076}
13077_ACEOF
13078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013079if { (ac_try="$ac_compile"
13080case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013091 (exit $ac_status); } && {
13092 test -z "$ac_c_werror_flag" ||
13093 test ! -s conftest.err
13094 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013095 ac_hi=$ac_mid; break
13096else
13097 echo "$as_me: failed program was:" >&5
13098sed 's/^/| /' conftest.$ac_ext >&5
13099
Theodore Ts'oe1052142006-10-21 21:46:47 -040013100 ac_lo=`expr $ac_mid + 1`
13101 if test $ac_lo -le $ac_mid; then
13102 ac_lo= ac_hi=
13103 break
13104 fi
13105 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013106fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013107
13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013109 done
13110else
13111 echo "$as_me: failed program was:" >&5
13112sed 's/^/| /' conftest.$ac_ext >&5
13113
Theodore Ts'oe1052142006-10-21 21:46:47 -040013114 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013115/* confdefs.h. */
13116_ACEOF
13117cat confdefs.h >>conftest.$ac_ext
13118cat >>conftest.$ac_ext <<_ACEOF
13119/* end confdefs.h. */
13120$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013121 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013122int
13123main ()
13124{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013125static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013126test_array [0] = 0
13127
13128 ;
13129 return 0;
13130}
13131_ACEOF
13132rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013133if { (ac_try="$ac_compile"
13134case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137esac
13138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013145 (exit $ac_status); } && {
13146 test -z "$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013149 ac_hi=-1 ac_mid=-1
13150 while :; do
13151 cat >conftest.$ac_ext <<_ACEOF
13152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
13156/* end confdefs.h. */
13157$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013158 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013159int
13160main ()
13161{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013162static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013163test_array [0] = 0
13164
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013170if { (ac_try="$ac_compile"
13171case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174esac
13175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013182 (exit $ac_status); } && {
13183 test -z "$ac_c_werror_flag" ||
13184 test ! -s conftest.err
13185 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013186 ac_lo=$ac_mid; break
13187else
13188 echo "$as_me: failed program was:" >&5
13189sed 's/^/| /' conftest.$ac_ext >&5
13190
Theodore Ts'oe1052142006-10-21 21:46:47 -040013191 ac_hi=`expr '(' $ac_mid ')' - 1`
13192 if test $ac_mid -le $ac_hi; then
13193 ac_lo= ac_hi=
13194 break
13195 fi
13196 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013197fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013198
13199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013200 done
13201else
13202 echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
Theodore Ts'oe1052142006-10-21 21:46:47 -040013205 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013206fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013207
13208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013209fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013210
13211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013212# Binary search between lo and hi bounds.
13213while test "x$ac_lo" != "x$ac_hi"; do
13214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13215 cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h. */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h. */
13221$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013222 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013223int
13224main ()
13225{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013226static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013227test_array [0] = 0
13228
13229 ;
13230 return 0;
13231}
13232_ACEOF
13233rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013234if { (ac_try="$ac_compile"
13235case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238esac
13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013250 ac_hi=$ac_mid
13251else
13252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
Theodore Ts'oe1052142006-10-21 21:46:47 -040013255 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013257
13258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013259done
13260case $ac_lo in
13261?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013262'') if test "$ac_cv_type_int" = yes; then
13263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013264See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013265echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013266See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013267 { (exit 77); exit 77; }; }
13268 else
13269 ac_cv_sizeof_int=0
13270 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013271esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013272else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013273 cat >conftest.$ac_ext <<_ACEOF
13274/* confdefs.h. */
13275_ACEOF
13276cat confdefs.h >>conftest.$ac_ext
13277cat >>conftest.$ac_ext <<_ACEOF
13278/* end confdefs.h. */
13279$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013280 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013281static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13282static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013283#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013284#include <stdlib.h>
13285int
13286main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013287{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013288
13289 FILE *f = fopen ("conftest.val", "w");
13290 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013291 return 1;
13292 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013293 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013294 long int i = longval ();
13295 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13296 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013297 fprintf (f, "%ld\n", i);
13298 }
13299 else
13300 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013301 unsigned long int i = ulongval ();
13302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13303 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013304 fprintf (f, "%lu\n", i);
13305 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013306 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013307
13308 ;
13309 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013310}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013311_ACEOF
13312rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013313if { (ac_try="$ac_link"
13314case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013333else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013334 echo "$as_me: program exited with status $ac_status" >&5
13335echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
13338( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013339if test "$ac_cv_type_int" = yes; then
13340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013341See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013342echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013343See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013344 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013345 else
13346 ac_cv_sizeof_int=0
13347 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013349rm -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 -050013350fi
13351rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013352fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013353{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13354echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013355
13356
13357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013358cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013359#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013360_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013361
13362
Theodore Ts'oe1052142006-10-21 21:46:47 -040013363{ echo "$as_me:$LINENO: checking for long" >&5
13364echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013365if test "${ac_cv_type_long+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
13368 cat >conftest.$ac_ext <<_ACEOF
13369/* confdefs.h. */
13370_ACEOF
13371cat confdefs.h >>conftest.$ac_ext
13372cat >>conftest.$ac_ext <<_ACEOF
13373/* end confdefs.h. */
13374$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013375typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013376int
13377main ()
13378{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013379if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013380 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013381if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013382 return 0;
13383 ;
13384 return 0;
13385}
13386_ACEOF
13387rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013388if { (ac_try="$ac_compile"
13389case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392esac
13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013404 ac_cv_type_long=yes
13405else
13406 echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
Theodore Ts'oe1052142006-10-21 21:46:47 -040013409 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013410fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013411
Theodore Ts'oe1052142006-10-21 21:46:47 -040013412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413fi
13414{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13415echo "${ECHO_T}$ac_cv_type_long" >&6; }
13416
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013417# The cast to long int works around a bug in the HP C Compiler
13418# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13419# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13420# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013421{ echo "$as_me:$LINENO: checking size of long" >&5
13422echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013423if test "${ac_cv_sizeof_long+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013426 if test "$cross_compiling" = yes; then
13427 # Depending upon the size, compute the lo and hi bounds.
13428cat >conftest.$ac_ext <<_ACEOF
13429/* confdefs.h. */
13430_ACEOF
13431cat confdefs.h >>conftest.$ac_ext
13432cat >>conftest.$ac_ext <<_ACEOF
13433/* end confdefs.h. */
13434$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013435 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013436int
13437main ()
13438{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013439static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013440test_array [0] = 0
13441
13442 ;
13443 return 0;
13444}
13445_ACEOF
13446rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013447if { (ac_try="$ac_compile"
13448case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13451esac
13452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013454 ac_status=$?
13455 grep -v '^ *+' conftest.er1 >conftest.err
13456 rm -f conftest.er1
13457 cat conftest.err >&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013459 (exit $ac_status); } && {
13460 test -z "$ac_c_werror_flag" ||
13461 test ! -s conftest.err
13462 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013463 ac_lo=0 ac_mid=0
13464 while :; do
13465 cat >conftest.$ac_ext <<_ACEOF
13466/* confdefs.h. */
13467_ACEOF
13468cat confdefs.h >>conftest.$ac_ext
13469cat >>conftest.$ac_ext <<_ACEOF
13470/* end confdefs.h. */
13471$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013472 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013473int
13474main ()
13475{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013476static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013477test_array [0] = 0
13478
13479 ;
13480 return 0;
13481}
13482_ACEOF
13483rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484if { (ac_try="$ac_compile"
13485case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488esac
13489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013496 (exit $ac_status); } && {
13497 test -z "$ac_c_werror_flag" ||
13498 test ! -s conftest.err
13499 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013500 ac_hi=$ac_mid; break
13501else
13502 echo "$as_me: failed program was:" >&5
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
Theodore Ts'oe1052142006-10-21 21:46:47 -040013505 ac_lo=`expr $ac_mid + 1`
13506 if test $ac_lo -le $ac_mid; then
13507 ac_lo= ac_hi=
13508 break
13509 fi
13510 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013512
13513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013514 done
13515else
13516 echo "$as_me: failed program was:" >&5
13517sed 's/^/| /' conftest.$ac_ext >&5
13518
Theodore Ts'oe1052142006-10-21 21:46:47 -040013519 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013520/* confdefs.h. */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h. */
13525$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013526 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013527int
13528main ()
13529{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013530static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013531test_array [0] = 0
13532
13533 ;
13534 return 0;
13535}
13536_ACEOF
13537rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013538if { (ac_try="$ac_compile"
13539case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013550 (exit $ac_status); } && {
13551 test -z "$ac_c_werror_flag" ||
13552 test ! -s conftest.err
13553 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013554 ac_hi=-1 ac_mid=-1
13555 while :; do
13556 cat >conftest.$ac_ext <<_ACEOF
13557/* confdefs.h. */
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
13562$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013563 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013564int
13565main ()
13566{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013567static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013568test_array [0] = 0
13569
13570 ;
13571 return 0;
13572}
13573_ACEOF
13574rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013575if { (ac_try="$ac_compile"
13576case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579esac
13580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591 ac_lo=$ac_mid; break
13592else
13593 echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
13595
Theodore Ts'oe1052142006-10-21 21:46:47 -040013596 ac_hi=`expr '(' $ac_mid ')' - 1`
13597 if test $ac_mid -le $ac_hi; then
13598 ac_lo= ac_hi=
13599 break
13600 fi
13601 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013603
13604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013605 done
13606else
13607 echo "$as_me: failed program was:" >&5
13608sed 's/^/| /' conftest.$ac_ext >&5
13609
Theodore Ts'oe1052142006-10-21 21:46:47 -040013610 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013612
13613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013614fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013615
13616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013617# Binary search between lo and hi bounds.
13618while test "x$ac_lo" != "x$ac_hi"; do
13619 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13620 cat >conftest.$ac_ext <<_ACEOF
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
13626$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013627 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013628int
13629main ()
13630{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013631static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013632test_array [0] = 0
13633
13634 ;
13635 return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013639if { (ac_try="$ac_compile"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013651 (exit $ac_status); } && {
13652 test -z "$ac_c_werror_flag" ||
13653 test ! -s conftest.err
13654 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013655 ac_hi=$ac_mid
13656else
13657 echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
Theodore Ts'oe1052142006-10-21 21:46:47 -040013660 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013662
13663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013664done
13665case $ac_lo in
13666?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013667'') if test "$ac_cv_type_long" = yes; then
13668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013669See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013670echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013671See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013672 { (exit 77); exit 77; }; }
13673 else
13674 ac_cv_sizeof_long=0
13675 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013676esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013677else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013678 cat >conftest.$ac_ext <<_ACEOF
13679/* confdefs.h. */
13680_ACEOF
13681cat confdefs.h >>conftest.$ac_ext
13682cat >>conftest.$ac_ext <<_ACEOF
13683/* end confdefs.h. */
13684$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013685 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013686static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13687static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013688#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013689#include <stdlib.h>
13690int
13691main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013692{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013693
13694 FILE *f = fopen ("conftest.val", "w");
13695 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013696 return 1;
13697 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013698 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013699 long int i = longval ();
13700 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13701 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013702 fprintf (f, "%ld\n", i);
13703 }
13704 else
13705 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013706 unsigned long int i = ulongval ();
13707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13708 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013709 fprintf (f, "%lu\n", i);
13710 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013711 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013712
13713 ;
13714 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013715}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013716_ACEOF
13717rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013718if { (ac_try="$ac_link"
13719case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13722esac
13723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013728 { (case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731esac
13732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013738else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739 echo "$as_me: program exited with status $ac_status" >&5
13740echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
13743( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013744if test "$ac_cv_type_long" = yes; then
13745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013746See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013747echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013748See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013749 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013750 else
13751 ac_cv_sizeof_long=0
13752 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013753fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013754rm -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 -050013755fi
13756rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013757fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013758{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13759echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013760
13761
13762
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013763cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013764#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013765_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013766
13767
Theodore Ts'oe1052142006-10-21 21:46:47 -040013768{ echo "$as_me:$LINENO: checking for long long" >&5
13769echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013770if test "${ac_cv_type_long_long+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772else
13773 cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
13779$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013780typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013781int
13782main ()
13783{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013784if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013785 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013786if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013787 return 0;
13788 ;
13789 return 0;
13790}
13791_ACEOF
13792rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013793if { (ac_try="$ac_compile"
13794case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13797esac
13798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013805 (exit $ac_status); } && {
13806 test -z "$ac_c_werror_flag" ||
13807 test ! -s conftest.err
13808 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013809 ac_cv_type_long_long=yes
13810else
13811 echo "$as_me: failed program was:" >&5
13812sed 's/^/| /' conftest.$ac_ext >&5
13813
Theodore Ts'oe1052142006-10-21 21:46:47 -040013814 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013815fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013816
Theodore Ts'oe1052142006-10-21 21:46:47 -040013817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818fi
13819{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13820echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13821
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013822# The cast to long int works around a bug in the HP C Compiler
13823# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13824# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13825# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013826{ echo "$as_me:$LINENO: checking size of long long" >&5
13827echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013828if test "${ac_cv_sizeof_long_long+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013831 if test "$cross_compiling" = yes; then
13832 # Depending upon the size, compute the lo and hi bounds.
13833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013840 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013841int
13842main ()
13843{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013844static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013845test_array [0] = 0
13846
13847 ;
13848 return 0;
13849}
13850_ACEOF
13851rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852if { (ac_try="$ac_compile"
13853case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856esac
13857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013864 (exit $ac_status); } && {
13865 test -z "$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13867 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013868 ac_lo=0 ac_mid=0
13869 while :; do
13870 cat >conftest.$ac_ext <<_ACEOF
13871/* confdefs.h. */
13872_ACEOF
13873cat confdefs.h >>conftest.$ac_ext
13874cat >>conftest.$ac_ext <<_ACEOF
13875/* end confdefs.h. */
13876$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013877 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013878int
13879main ()
13880{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013881static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013882test_array [0] = 0
13883
13884 ;
13885 return 0;
13886}
13887_ACEOF
13888rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013889if { (ac_try="$ac_compile"
13890case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893esac
13894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013901 (exit $ac_status); } && {
13902 test -z "$ac_c_werror_flag" ||
13903 test ! -s conftest.err
13904 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013905 ac_hi=$ac_mid; break
13906else
13907 echo "$as_me: failed program was:" >&5
13908sed 's/^/| /' conftest.$ac_ext >&5
13909
Theodore Ts'oe1052142006-10-21 21:46:47 -040013910 ac_lo=`expr $ac_mid + 1`
13911 if test $ac_lo -le $ac_mid; then
13912 ac_lo= ac_hi=
13913 break
13914 fi
13915 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013917
13918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013919 done
13920else
13921 echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
Theodore Ts'oe1052142006-10-21 21:46:47 -040013924 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013925/* confdefs.h. */
13926_ACEOF
13927cat confdefs.h >>conftest.$ac_ext
13928cat >>conftest.$ac_ext <<_ACEOF
13929/* end confdefs.h. */
13930$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013931 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013932int
13933main ()
13934{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013935static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013936test_array [0] = 0
13937
13938 ;
13939 return 0;
13940}
13941_ACEOF
13942rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013943if { (ac_try="$ac_compile"
13944case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947esac
13948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959 ac_hi=-1 ac_mid=-1
13960 while :; do
13961 cat >conftest.$ac_ext <<_ACEOF
13962/* confdefs.h. */
13963_ACEOF
13964cat confdefs.h >>conftest.$ac_ext
13965cat >>conftest.$ac_ext <<_ACEOF
13966/* end confdefs.h. */
13967$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013968 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013969int
13970main ()
13971{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013972static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013973test_array [0] = 0
13974
13975 ;
13976 return 0;
13977}
13978_ACEOF
13979rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013980if { (ac_try="$ac_compile"
13981case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013992 (exit $ac_status); } && {
13993 test -z "$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013996 ac_lo=$ac_mid; break
13997else
13998 echo "$as_me: failed program was:" >&5
13999sed 's/^/| /' conftest.$ac_ext >&5
14000
Theodore Ts'oe1052142006-10-21 21:46:47 -040014001 ac_hi=`expr '(' $ac_mid ')' - 1`
14002 if test $ac_mid -le $ac_hi; then
14003 ac_lo= ac_hi=
14004 break
14005 fi
14006 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014007fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014008
14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014010 done
14011else
14012 echo "$as_me: failed program was:" >&5
14013sed 's/^/| /' conftest.$ac_ext >&5
14014
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014016fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014017
14018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014019fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014020
14021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014022# Binary search between lo and hi bounds.
14023while test "x$ac_lo" != "x$ac_hi"; do
14024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14025 cat >conftest.$ac_ext <<_ACEOF
14026/* confdefs.h. */
14027_ACEOF
14028cat confdefs.h >>conftest.$ac_ext
14029cat >>conftest.$ac_ext <<_ACEOF
14030/* end confdefs.h. */
14031$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014032 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014033int
14034main ()
14035{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014036static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014037test_array [0] = 0
14038
14039 ;
14040 return 0;
14041}
14042_ACEOF
14043rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014044if { (ac_try="$ac_compile"
14045case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048esac
14049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014056 (exit $ac_status); } && {
14057 test -z "$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014060 ac_hi=$ac_mid
14061else
14062 echo "$as_me: failed program was:" >&5
14063sed 's/^/| /' conftest.$ac_ext >&5
14064
Theodore Ts'oe1052142006-10-21 21:46:47 -040014065 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014067
14068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014069done
14070case $ac_lo in
14071?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014072'') if test "$ac_cv_type_long_long" = yes; then
14073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014074See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014075echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014077 { (exit 77); exit 77; }; }
14078 else
14079 ac_cv_sizeof_long_long=0
14080 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014081esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014083 cat >conftest.$ac_ext <<_ACEOF
14084/* confdefs.h. */
14085_ACEOF
14086cat confdefs.h >>conftest.$ac_ext
14087cat >>conftest.$ac_ext <<_ACEOF
14088/* end confdefs.h. */
14089$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014090 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014091static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14092static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014093#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014094#include <stdlib.h>
14095int
14096main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014097{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014098
14099 FILE *f = fopen ("conftest.val", "w");
14100 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014101 return 1;
14102 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014103 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014104 long int i = longval ();
14105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14106 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107 fprintf (f, "%ld\n", i);
14108 }
14109 else
14110 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014111 unsigned long int i = ulongval ();
14112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14113 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014114 fprintf (f, "%lu\n", i);
14115 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014116 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014117
14118 ;
14119 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014120}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121_ACEOF
14122rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014123if { (ac_try="$ac_link"
14124case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127esac
14128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014133 { (case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136esac
14137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014143else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014144 echo "$as_me: program exited with status $ac_status" >&5
14145echo "$as_me: failed program was:" >&5
14146sed 's/^/| /' conftest.$ac_ext >&5
14147
14148( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014149if test "$ac_cv_type_long_long" = yes; then
14150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014151See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014152echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014153See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014154 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014155 else
14156 ac_cv_sizeof_long_long=0
14157 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014158fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014159rm -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 -050014160fi
14161rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014162fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014163{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14164echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014165
14166
14167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014168cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014169#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014170_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014171
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014172
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014173SIZEOF_SHORT=$ac_cv_sizeof_short
14174SIZEOF_INT=$ac_cv_sizeof_int
14175SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014176SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14177
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014178
14179
14180
Theodore Ts'oe1052142006-10-21 21:46:47 -040014181{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14182echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014183if test "${ac_cv_c_bigendian+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014185else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014186 # See if sys/param.h defines the BYTE_ORDER macro.
14187cat >conftest.$ac_ext <<_ACEOF
14188/* confdefs.h. */
14189_ACEOF
14190cat confdefs.h >>conftest.$ac_ext
14191cat >>conftest.$ac_ext <<_ACEOF
14192/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014193#include <sys/types.h>
14194#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014195
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014196int
14197main ()
14198{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014199#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14200 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014201 bogus endian macros
14202#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014203
14204 ;
14205 return 0;
14206}
14207_ACEOF
14208rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014209if { (ac_try="$ac_compile"
14210case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213esac
14214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014221 (exit $ac_status); } && {
14222 test -z "$ac_c_werror_flag" ||
14223 test ! -s conftest.err
14224 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014225 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014226cat >conftest.$ac_ext <<_ACEOF
14227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014232#include <sys/types.h>
14233#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014235int
14236main ()
14237{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014238#if BYTE_ORDER != BIG_ENDIAN
14239 not big endian
14240#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014241
14242 ;
14243 return 0;
14244}
14245_ACEOF
14246rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014247if { (ac_try="$ac_compile"
14248case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14251esac
14252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014254 ac_status=$?
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014259 (exit $ac_status); } && {
14260 test -z "$ac_c_werror_flag" ||
14261 test ! -s conftest.err
14262 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014263 ac_cv_c_bigendian=yes
14264else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014265 echo "$as_me: failed program was:" >&5
14266sed 's/^/| /' conftest.$ac_ext >&5
14267
Theodore Ts'oe1052142006-10-21 21:46:47 -040014268 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014270
14271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014272else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
Theodore Ts'oe1052142006-10-21 21:46:47 -040014276 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014277if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014278 # try to guess the endianness by grepping values into an object file
14279 ac_cv_c_bigendian=unknown
14280 cat >conftest.$ac_ext <<_ACEOF
14281/* confdefs.h. */
14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
14285/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014286short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14287short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014288void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014289short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14290short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014291void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14292int
14293main ()
14294{
14295 _ascii (); _ebcdic ();
14296 ;
14297 return 0;
14298}
14299_ACEOF
14300rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014301if { (ac_try="$ac_compile"
14302case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305esac
14306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14318 ac_cv_c_bigendian=yes
14319fi
14320if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14321 if test "$ac_cv_c_bigendian" = unknown; then
14322 ac_cv_c_bigendian=no
14323 else
14324 # finding both strings is unlikely to happen, but who knows?
14325 ac_cv_c_bigendian=unknown
14326 fi
14327fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014328else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
Theodore Ts'oe1052142006-10-21 21:46:47 -040014332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014333fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014334
14335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014336else
14337 cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014343$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014344int
14345main ()
14346{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014347
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014348 /* Are we little or big endian? From Harbison&Steele. */
14349 union
14350 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014351 long int l;
14352 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014353 } u;
14354 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014355 return u.c[sizeof (long int) - 1] == 1;
14356
14357 ;
14358 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014359}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014360_ACEOF
14361rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014362if { (ac_try="$ac_link"
14363case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366esac
14367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014372 { (case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375esac
14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014381 ac_cv_c_bigendian=no
14382else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014383 echo "$as_me: program exited with status $ac_status" >&5
14384echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014386
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014387( exit $ac_status )
14388ac_cv_c_bigendian=yes
14389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014390rm -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 -040014391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014392
14393
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014394fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014395
14396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014397fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014398{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14399echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014400case $ac_cv_c_bigendian in
14401 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014402
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014403cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014404#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014405_ACEOF
14406 ;;
14407 no)
14408 ;;
14409 *)
14410 { { echo "$as_me:$LINENO: error: unknown endianness
14411presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14412echo "$as_me: error: unknown endianness
14413presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14414 { (exit 1); exit 1; }; } ;;
14415esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014416
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014417BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014418ASM_TYPES_HEADER=./asm_types.h
14419
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014421for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014422do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014428 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014430ac_res=`eval echo '${'$as_ac_Header'}'`
14431 { echo "$as_me:$LINENO: result: $ac_res" >&5
14432echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014433else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014434 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014435{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014437cat >conftest.$ac_ext <<_ACEOF
14438/* confdefs.h. */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h. */
14443$ac_includes_default
14444#include <$ac_header>
14445_ACEOF
14446rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014447if { (ac_try="$ac_compile"
14448case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14451esac
14452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014459 (exit $ac_status); } && {
14460 test -z "$ac_c_werror_flag" ||
14461 test ! -s conftest.err
14462 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463 ac_header_compiler=yes
14464else
14465 echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
Theodore Ts'oe1052142006-10-21 21:46:47 -040014468 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014469fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014470
14471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14473echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014474
14475# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014476{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014478cat >conftest.$ac_ext <<_ACEOF
14479/* confdefs.h. */
14480_ACEOF
14481cat confdefs.h >>conftest.$ac_ext
14482cat >>conftest.$ac_ext <<_ACEOF
14483/* end confdefs.h. */
14484#include <$ac_header>
14485_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014486if { (ac_try="$ac_cpp conftest.$ac_ext"
14487case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14490esac
14491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014493 ac_status=$?
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014498 (exit $ac_status); } >/dev/null && {
14499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14501 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014502 ac_header_preproc=yes
14503else
14504 echo "$as_me: failed program was:" >&5
14505sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_header_preproc=no
14508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014510rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014511{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14512echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014513
14514# So? What about this header?
14515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14516 yes:no: )
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14521 ac_header_preproc=yes
14522 ;;
14523 no:yes:* )
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014536
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014537 ;;
14538esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014539{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543else
14544 eval "$as_ac_Header=\$ac_header_preproc"
14545fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014546ac_res=`eval echo '${'$as_ac_Header'}'`
14547 { echo "$as_me:$LINENO: result: $ac_res" >&5
14548echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014549
14550fi
14551if test `eval echo '${'$as_ac_Header'}'` = yes; then
14552 cat >>confdefs.h <<_ACEOF
14553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14554_ACEOF
14555
14556fi
14557
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014558done
14559
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14561echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014562if test "${ac_cv_type_intptr_t+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014564else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014565 cat >conftest.$ac_ext <<_ACEOF
14566/* confdefs.h. */
14567_ACEOF
14568cat confdefs.h >>conftest.$ac_ext
14569cat >>conftest.$ac_ext <<_ACEOF
14570/* end confdefs.h. */
14571$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014572typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014573int
14574main ()
14575{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014576if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014577 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014578if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014579 return 0;
14580 ;
14581 return 0;
14582}
14583_ACEOF
14584rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014585if { (ac_try="$ac_compile"
14586case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589esac
14590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014597 (exit $ac_status); } && {
14598 test -z "$ac_c_werror_flag" ||
14599 test ! -s conftest.err
14600 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014601 ac_cv_type_intptr_t=yes
14602else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014603 echo "$as_me: failed program was:" >&5
14604sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014605
Theodore Ts'oe1052142006-10-21 21:46:47 -040014606 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014608
14609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014611{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14612echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014613if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014614
14615cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014616#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014617_ACEOF
14618
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014619
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014620fi
14621
Theodore Ts'oe1052142006-10-21 21:46:47 -040014622{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14623echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014624if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14626else
14627 cat >conftest.$ac_ext <<_ACEOF
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014633#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634int
14635main ()
14636{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014637struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014643if { (ac_try="$ac_compile"
14644case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014659 e2fsprogs_cv_struct_st_flags=yes
14660else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014661 echo "$as_me: failed program was:" >&5
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
Theodore Ts'oe1052142006-10-21 21:46:47 -040014664 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014665fi
14666
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668fi
14669
14670{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14671echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014672if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014673 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14674echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014675 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014677else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014678 cat >conftest.$ac_ext <<_ACEOF
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014684#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014685int
14686main ()
14687{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014688struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014689 ;
14690 return 0;
14691}
14692_ACEOF
14693rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014694if { (ac_try="$ac_compile"
14695case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698esac
14699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014710 e2fsprogs_cv_struct_st_flags_immut=yes
14711else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014712 echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
Theodore Ts'oe1052142006-10-21 21:46:47 -040014715 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014716fi
14717
Theodore Ts'oe1052142006-10-21 21:46:47 -040014718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719fi
14720
14721 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14722echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014723 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014724 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014725#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014726_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014727
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014728 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014729fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014730{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14731echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014732if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014733 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014734else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014735 cat >conftest.$ac_ext <<_ACEOF
14736/* confdefs.h. */
14737_ACEOF
14738cat confdefs.h >>conftest.$ac_ext
14739cat >>conftest.$ac_ext <<_ACEOF
14740/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014741#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014742 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014743
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014744int
14745main ()
14746{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014747static struct sockaddr ac_aggr;
14748if (ac_aggr.sa_len)
14749return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750 ;
14751 return 0;
14752}
14753_ACEOF
14754rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014755if { (ac_try="$ac_compile"
14756case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759esac
14760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014767 (exit $ac_status); } && {
14768 test -z "$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14770 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014771 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014772else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014773 echo "$as_me: failed program was:" >&5
14774sed 's/^/| /' conftest.$ac_ext >&5
14775
Theodore Ts'oe1052142006-10-21 21:46:47 -040014776 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014777/* confdefs.h. */
14778_ACEOF
14779cat confdefs.h >>conftest.$ac_ext
14780cat >>conftest.$ac_ext <<_ACEOF
14781/* end confdefs.h. */
14782#include <sys/types.h>
14783 #include <sys/socket.h>
14784
14785int
14786main ()
14787{
14788static struct sockaddr ac_aggr;
14789if (sizeof ac_aggr.sa_len)
14790return 0;
14791 ;
14792 return 0;
14793}
14794_ACEOF
14795rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014796if { (ac_try="$ac_compile"
14797case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14800esac
14801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014808 (exit $ac_status); } && {
14809 test -z "$ac_c_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014812 ac_cv_member_struct_sockaddr_sa_len=yes
14813else
14814 echo "$as_me: failed program was:" >&5
14815sed 's/^/| /' conftest.$ac_ext >&5
14816
Theodore Ts'oe1052142006-10-21 21:46:47 -040014817 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014818fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014819
14820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014821fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014822
14823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014824fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014825{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14826echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014827if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014828
14829cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014830#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014831_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014832
14833fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014853
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014854
14855
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014856
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014857
Theodore Ts'o106ad962007-04-04 21:26:37 -040014858
14859
14860
Theodore Ts'o740837d2007-12-16 17:21:38 -050014861
14862
14863for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014864do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014866{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14868if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014869 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014870else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014871 cat >conftest.$ac_ext <<_ACEOF
14872/* confdefs.h. */
14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
14876/* end confdefs.h. */
14877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879#define $ac_func innocuous_$ac_func
14880
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014881/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014882 which can conflict with char $ac_func (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14885
14886#ifdef __STDC__
14887# include <limits.h>
14888#else
14889# include <assert.h>
14890#endif
14891
14892#undef $ac_func
14893
Theodore Ts'oe1052142006-10-21 21:46:47 -040014894/* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014897#ifdef __cplusplus
14898extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014899#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014900char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014901/* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014904#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014905choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014906#endif
14907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014908int
14909main ()
14910{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014911return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014912 ;
14913 return 0;
14914}
14915_ACEOF
14916rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014917if { (ac_try="$ac_link"
14918case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921esac
14922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014934 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014936 echo "$as_me: failed program was:" >&5
14937sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014938
Theodore Ts'oe1052142006-10-21 21:46:47 -040014939 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014940fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014941
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014943 conftest$ac_exeext conftest.$ac_ext
14944fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014945ac_res=`eval echo '${'$as_ac_var'}'`
14946 { echo "$as_me:$LINENO: result: $ac_res" >&5
14947echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014948if test `eval echo '${'$as_ac_var'}'` = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14951_ACEOF
14952
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014953fi
14954done
14955
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014956SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014957{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14958echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014959if test "${ac_cv_lib_socket_socket+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014961else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014962 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014963LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014964cat >conftest.$ac_ext <<_ACEOF
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
14970
Theodore Ts'oe1052142006-10-21 21:46:47 -040014971/* Override any GCC internal prototype to avoid an error.
14972 Use char because int might match the return type of a GCC
14973 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014974#ifdef __cplusplus
14975extern "C"
14976#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014977char socket ();
14978int
14979main ()
14980{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014981return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014982 ;
14983 return 0;
14984}
14985_ACEOF
14986rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014987if { (ac_try="$ac_link"
14988case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991esac
14992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext &&
15003 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015004 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015006 echo "$as_me: failed program was:" >&5
15007sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015008
Theodore Ts'oe1052142006-10-21 21:46:47 -040015009 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015011
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015013 conftest$ac_exeext conftest.$ac_ext
15014LIBS=$ac_check_lib_save_LIBS
15015fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015016{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15017echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015018if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015019 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015020fi
15021
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015022
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015023DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015024{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15025echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015026if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015029 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015030LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015031cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037
Theodore Ts'oe1052142006-10-21 21:46:47 -040015038/* Override any GCC internal prototype to avoid an error.
15039 Use char because int might match the return type of a GCC
15040 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015041#ifdef __cplusplus
15042extern "C"
15043#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015044char dlopen ();
15045int
15046main ()
15047{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015048return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015049 ;
15050 return 0;
15051}
15052_ACEOF
15053rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015054if { (ac_try="$ac_link"
15055case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058esac
15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015066 (exit $ac_status); } && {
15067 test -z "$ac_c_werror_flag" ||
15068 test ! -s conftest.err
15069 } && test -s conftest$ac_exeext &&
15070 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015071 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015072else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015075
Theodore Ts'oe1052142006-10-21 21:46:47 -040015076 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015078
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015080 conftest$ac_exeext conftest.$ac_ext
15081LIBS=$ac_check_lib_save_LIBS
15082fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015083{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15084echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015085if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015086 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015087cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015088#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015089_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015090
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015091fi
15092
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015093
Theodore Ts'oe1052142006-10-21 21:46:47 -040015094{ echo "$as_me:$LINENO: checking for optreset" >&5
15095echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015096if test "${ac_cv_have_optreset+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015099 cat >conftest.$ac_ext <<_ACEOF
15100/* confdefs.h. */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015105#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015106
15107_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015109 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015110 ac_cv_have_optreset=yes
15111else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015112 ac_cv_have_optreset=no
15113fi
15114rm -f conftest*
15115
15116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015117{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15118echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015119if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015120 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015121#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015122_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015123
15124fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015125{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15126echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015127if diff -u $0 $0 >& /dev/null ; then
15128 UNI_DIFF_OPTS=-u
15129else
15130 UNI_DIFF_OPTS=-c
15131fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015132{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15133echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015134
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015135case "$host_os" in
15136linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015137 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015138#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015139_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015140
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015141 ;;
15142esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015143LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015144CYGWIN_CMT="#"
15145UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015146case "$host_os" in
15147linux*)
15148 LINUX_CMT=
15149 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015150cygwin)
15151 CYGWIN_CMT=
15152 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015153 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015154esac
15155
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015156
15157
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015158case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015159linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015160 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15161 root_prefix="";
15162 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015163 fi
15164 ;;
15165esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015166case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015167linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015168 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015169 prefix="/usr";
15170 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015171 if test "$mandir" = '${prefix}/man' ; then
15172 echo "...and mandir defaults to /usr/share/man"
15173 mandir=/usr/share/man
15174 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015175 fi
15176;;
15177esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015178if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015179 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015180 root_prefix="$ac_default_prefix"
15181 else
15182 root_prefix="$prefix"
15183 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015184 root_bindir=$bindir
15185 root_sbindir=$sbindir
15186 root_libdir=$libdir
15187 root_sysconfdir=$sysconfdir
15188else
15189 root_bindir='${root_prefix}/bin'
15190 root_sbindir='${root_prefix}/sbin'
15191 root_libdir='${root_prefix}/lib'
15192 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015193fi
15194
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015195
15196
15197
15198
Theodore Ts'oe1052142006-10-21 21:46:47 -040015199{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15200echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015201if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015203else
15204 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015205cat >conftest.$ac_ext <<_ACEOF
15206/* confdefs.h. */
15207_ACEOF
15208cat confdefs.h >>conftest.$ac_ext
15209cat >>conftest.$ac_ext <<_ACEOF
15210/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015211#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015212int
15213main ()
15214{
Theodore Ts'oae851481997-04-29 18:13:24 +000015215fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015216 ;
15217 return 0;
15218}
15219_ACEOF
15220rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015221if { (ac_try="$ac_link"
15222case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225esac
15226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015228 ac_status=$?
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015233 (exit $ac_status); } && {
15234 test -z "$ac_c_werror_flag" ||
15235 test ! -s conftest.err
15236 } && test -s conftest$ac_exeext &&
15237 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015238 ac_cv_e2fsprogs_use_static=yes
15239else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015240 echo "$as_me: failed program was:" >&5
15241sed 's/^/| /' conftest.$ac_ext >&5
15242
Theodore Ts'oe1052142006-10-21 21:46:47 -040015243 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015244fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015245
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015247 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015248LDFLAGS=$SAVE_LDFLAGS
15249fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015250
Theodore Ts'odefde781999-01-04 07:39:19 +000015251case "$host_os" in
15252solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015253 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015254;;
15255esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015256{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15257echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015258LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015259if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015260 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015261fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015262
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015263case "$host_os" in
15264darwin*)
15265 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015266 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015267#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015268_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015269
15270 ;;
15271esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015272SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15273ET_DIR=`cd ${srcdir}/lib/et; pwd`
15274
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015275
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015276if test "$cross_compiling" = yes ; then
15277 DO_TEST_SUITE=
15278else
15279 DO_TEST_SUITE=check
15280fi
15281
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015282INTL_FLAGS=
15283if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15284 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15285fi
15286
Theodore Ts'odd947da2005-11-09 18:37:07 -040015287if test $cross_compiling = no; then
15288 BUILD_CFLAGS="$CFLAGS"
15289 BUILD_LDFLAGS="$LDFLAGS"
15290else
15291 BUILD_CFLAGS=
15292 BUILD_LDFLAGS=
15293fi
15294
15295
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015296test -d lib || mkdir lib
15297test -d include || mkdir include
15298test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015299test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015300for i in MCONFIG Makefile e2fsprogs.spec \
15301 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015302 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15303 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015304 lib/uuid/Makefile lib/uuid/uuid_types.h \
15305 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015306 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15307 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015308 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015309 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15310 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15311 if test -d `dirname ${srcdir}/$i` ; then
15312 outlist="$outlist $i"
15313 fi
15314done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015315ac_config_files="$ac_config_files $outlist"
15316
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015317cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015318# This file is a shell script that caches the results of configure
15319# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015320# scripts and configure runs, see configure's option --config-cache.
15321# It is not useful on other systems. If it contains results you don't
15322# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015323#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015324# config.status only pays attention to the cache file if you give it
15325# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015326#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015327# `ac_cv_env_foo' variables (set or unset) will be overridden when
15328# loading this file, other *unset* `ac_cv_foo' will be assigned the
15329# following values.
15330
15331_ACEOF
15332
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015333# The following way of writing the cache mishandles newlines in values,
15334# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015335# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015336# Ultrix sh set writes to stderr and can't be redirected directly,
15337# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015338(
15339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15340 eval ac_val=\$$ac_var
15341 case $ac_val in #(
15342 *${as_nl}*)
15343 case $ac_var in #(
15344 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15345echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15346 esac
15347 case $ac_var in #(
15348 _ | IFS | as_nl) ;; #(
15349 *) $as_unset $ac_var ;;
15350 esac ;;
15351 esac
15352 done
15353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015354 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015355 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15356 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015357 # `set' does not quote correctly, so add quotes (double-quote
15358 # substitution turns \\\\ into \\, and sed turns \\ into \).
15359 sed -n \
15360 "s/'/'\\\\''/g;
15361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015362 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015363 *)
15364 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015366 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015367 esac |
15368 sort
15369) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015370 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015371 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015372 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015373 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15375 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015376 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15377 :end' >>confcache
15378if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15379 if test -w "$cache_file"; then
15380 test "x$cache_file" != "x/dev/null" &&
15381 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15382echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015383 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015384 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015385 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15386echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015387 fi
15388fi
15389rm -f confcache
15390
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015391test "x$prefix" = xNONE && prefix=$ac_default_prefix
15392# Let make expand exec_prefix.
15393test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15394
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015395# Transform confdefs.h into DEFS.
15396# Protect against shell expansion while executing Makefile rules.
15397# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015398#
15399# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015400# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015401# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015402ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015403t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015404:clear
15405s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015406t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015407s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015408t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015409b any
15410:quote
15411s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15412s/\[/\\&/g
15413s/\]/\\&/g
15414s/\$/$$/g
15415H
15416:any
15417${
15418 g
15419 s/^\n//
15420 s/\n/ /g
15421 p
15422}
15423'
15424DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015425
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427ac_libobjs=
15428ac_ltlibobjs=
15429for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15430 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15432 ac_i=`echo "$ac_i" | sed "$ac_script"`
15433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15434 # will be set to the directory where LIBOBJS objects are built.
15435 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15436 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015437done
15438LIBOBJS=$ac_libobjs
15439
15440LTLIBOBJS=$ac_ltlibobjs
15441
15442
15443
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015444: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015445ac_clean_files_save=$ac_clean_files
15446ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15447{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15448echo "$as_me: creating $CONFIG_STATUS" >&6;}
15449cat >$CONFIG_STATUS <<_ACEOF
15450#! $SHELL
15451# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015452# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015453# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015454# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015456debug=false
15457ac_cs_recheck=false
15458ac_cs_silent=false
15459SHELL=\${CONFIG_SHELL-$SHELL}
15460_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015462cat >>$CONFIG_STATUS <<\_ACEOF
15463## --------------------- ##
15464## M4sh Initialization. ##
15465## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015466
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015467# Be more Bourne compatible
15468DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15470 emulate sh
15471 NULLCMD=:
15472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15473 # is contrary to our usage. Disable this feature.
15474 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015475 setopt NO_GLOB_SUBST
15476else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015477 case `(set -o) 2>/dev/null` in
15478 *posix*) set -o posix ;;
15479esac
15480
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015481fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015482
15483
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015484
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015485
Theodore Ts'oe1052142006-10-21 21:46:47 -040015486# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015487# Avoid depending upon Character Ranges.
15488as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15490as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15491as_cr_digits='0123456789'
15492as_cr_alnum=$as_cr_Letters$as_cr_digits
15493
15494# The user is always right.
15495if test "${PATH_SEPARATOR+set}" != set; then
15496 echo "#! /bin/sh" >conf$$.sh
15497 echo "exit 0" >>conf$$.sh
15498 chmod +x conf$$.sh
15499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15500 PATH_SEPARATOR=';'
15501 else
15502 PATH_SEPARATOR=:
15503 fi
15504 rm -f conf$$.sh
15505fi
15506
Theodore Ts'oe1052142006-10-21 21:46:47 -040015507# Support unset when possible.
15508if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15509 as_unset=unset
15510else
15511 as_unset=false
15512fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015513
Theodore Ts'oe1052142006-10-21 21:46:47 -040015514
15515# IFS
15516# We need space, tab and new line, in precisely that order. Quoting is
15517# there to prevent editors from complaining about space-tab.
15518# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15519# splitting by setting IFS to empty value.)
15520as_nl='
15521'
15522IFS=" "" $as_nl"
15523
15524# Find who we are. Look in the path if we contain no directory separator.
15525case $0 in
15526 *[\\/]* ) as_myself=$0 ;;
15527 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015528for as_dir in $PATH
15529do
15530 IFS=$as_save_IFS
15531 test -z "$as_dir" && as_dir=.
15532 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15533done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015534IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015535
Theodore Ts'oe1052142006-10-21 21:46:47 -040015536 ;;
15537esac
15538# We did not find ourselves, most probably we were run as `sh COMMAND'
15539# in which case we are not to be found in the path.
15540if test "x$as_myself" = x; then
15541 as_myself=$0
15542fi
15543if test ! -f "$as_myself"; then
15544 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15545 { (exit 1); exit 1; }
15546fi
15547
15548# Work around bugs in pre-3.0 UWIN ksh.
15549for as_var in ENV MAIL MAILPATH
15550do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15551done
15552PS1='$ '
15553PS2='> '
15554PS4='+ '
15555
15556# NLS nuisances.
15557for as_var in \
15558 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15559 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15560 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015561do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015562 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15563 eval $as_var=C; export $as_var
15564 else
15565 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15566 fi
15567done
15568
15569# Required to use basename.
15570if expr a : '\(a\)' >/dev/null 2>&1 &&
15571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15572 as_expr=expr
15573else
15574 as_expr=false
15575fi
15576
15577if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15578 as_basename=basename
15579else
15580 as_basename=false
15581fi
15582
15583
15584# Name of the executable.
15585as_me=`$as_basename -- "$0" ||
15586$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15587 X"$0" : 'X\(//\)$' \| \
15588 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15589echo X/"$0" |
15590 sed '/^.*\/\([^/][^/]*\)\/*$/{
15591 s//\1/
15592 q
15593 }
15594 /^X\/\(\/\/\)$/{
15595 s//\1/
15596 q
15597 }
15598 /^X\/\(\/\).*/{
15599 s//\1/
15600 q
15601 }
15602 s/.*/./; q'`
15603
15604# CDPATH.
15605$as_unset CDPATH
15606
15607
15608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015609 as_lineno_1=$LINENO
15610 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015611 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015612 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015614 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15615 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015616 # line-number line after each line using $LINENO; the second 'sed'
15617 # does the real work. The second script uses 'N' to pair each
15618 # line-number line with the line containing $LINENO, and appends
15619 # trailing '-' during substitution so that $LINENO is not a special
15620 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015621 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015622 # scripts with optimization help from Paolo Bonzini. Blame Lee
15623 # E. McMahon (1931-1989) for sed's syntax. :-)
15624 sed -n '
15625 p
15626 /[$]LINENO/=
15627 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015628 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015629 s/[$]LINENO.*/&-/
15630 t lineno
15631 b
15632 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015633 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015634 :loop
15635 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015636 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015637 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015638 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015639 chmod +x "$as_me.lineno" ||
15640 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015641 { (exit 1); exit 1; }; }
15642
15643 # Don't try to exec as it changes $[0], causing all sort of problems
15644 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015645 # original and so on. Autoconf is especially sensitive to this).
15646 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015647 # Exit status is that of the last command.
15648 exit
15649}
15650
15651
Theodore Ts'oe1052142006-10-21 21:46:47 -040015652if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15653 as_dirname=dirname
15654else
15655 as_dirname=false
15656fi
15657
15658ECHO_C= ECHO_N= ECHO_T=
15659case `echo -n x` in
15660-n*)
15661 case `echo 'x\c'` in
15662 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15663 *) ECHO_C='\c';;
15664 esac;;
15665*)
15666 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015667esac
15668
Theodore Ts'oe1052142006-10-21 21:46:47 -040015669if expr a : '\(a\)' >/dev/null 2>&1 &&
15670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015671 as_expr=expr
15672else
15673 as_expr=false
15674fi
15675
15676rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015677if test -d conf$$.dir; then
15678 rm -f conf$$.dir/conf$$.file
15679else
15680 rm -f conf$$.dir
15681 mkdir conf$$.dir
15682fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015683echo >conf$$.file
15684if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015685 as_ln_s='ln -s'
15686 # ... but there are two gotchas:
15687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15689 # In both cases, we have to default to `cp -p'.
15690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015691 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015692elif ln conf$$.file conf$$ 2>/dev/null; then
15693 as_ln_s=ln
15694else
15695 as_ln_s='cp -p'
15696fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015697rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15698rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015699
15700if mkdir -p . 2>/dev/null; then
15701 as_mkdir_p=:
15702else
15703 test -d ./-p && rmdir ./-p
15704 as_mkdir_p=false
15705fi
15706
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015707if test -x / >/dev/null 2>&1; then
15708 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015709else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015710 if ls -dL / >/dev/null 2>&1; then
15711 as_ls_L_option=L
15712 else
15713 as_ls_L_option=
15714 fi
15715 as_test_x='
15716 eval sh -c '\''
15717 if test -d "$1"; then
15718 test -d "$1/.";
15719 else
15720 case $1 in
15721 -*)set "./$1";;
15722 esac;
15723 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15724 ???[sx]*):;;*)false;;esac;fi
15725 '\'' sh
15726 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015727fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015728as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015729
15730# Sed expression to map a string onto a valid CPP name.
15731as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15732
15733# Sed expression to map a string onto a valid variable name.
15734as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15735
15736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015737exec 6>&1
15738
Theodore Ts'oe1052142006-10-21 21:46:47 -040015739# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015740# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015741# values after options handling.
15742ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015743This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015744generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015745
15746 CONFIG_FILES = $CONFIG_FILES
15747 CONFIG_HEADERS = $CONFIG_HEADERS
15748 CONFIG_LINKS = $CONFIG_LINKS
15749 CONFIG_COMMANDS = $CONFIG_COMMANDS
15750 $ $0 $@
15751
Theodore Ts'oe1052142006-10-21 21:46:47 -040015752on `(hostname || uname -n) 2>/dev/null | sed 1q`
15753"
15754
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015755_ACEOF
15756
Theodore Ts'oe1052142006-10-21 21:46:47 -040015757cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015758# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015759config_files="$ac_config_files"
15760config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015761
Theodore Ts'oe1052142006-10-21 21:46:47 -040015762_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015763
15764cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015765ac_cs_usage="\
15766\`$as_me' instantiates files from templates according to the
15767current configuration.
15768
15769Usage: $0 [OPTIONS] [FILE]...
15770
15771 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015772 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015773 -q, --quiet do not print progress messages
15774 -d, --debug don't remove temporary files
15775 --recheck update $as_me by reconfiguring in the same conditions
15776 --file=FILE[:TEMPLATE]
15777 instantiate the configuration file FILE
15778
15779Configuration files:
15780$config_files
15781
15782Configuration commands:
15783$config_commands
15784
15785Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015786
Theodore Ts'oe1052142006-10-21 21:46:47 -040015787_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015788cat >>$CONFIG_STATUS <<_ACEOF
15789ac_cs_version="\\
15790config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015791configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015792 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015793
Theodore Ts'oe1052142006-10-21 21:46:47 -040015794Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015795This config.status script is free software; the Free Software Foundation
15796gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015797
15798ac_pwd='$ac_pwd'
15799srcdir='$srcdir'
15800INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015801_ACEOF
15802
15803cat >>$CONFIG_STATUS <<\_ACEOF
15804# If no file are specified by the user, then we need to provide default
15805# value. By we need to know if files were specified by the user.
15806ac_need_defaults=:
15807while test $# != 0
15808do
15809 case $1 in
15810 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015813 ac_shift=:
15814 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015815 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015816 ac_option=$1
15817 ac_optarg=$2
15818 ac_shift=shift
15819 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015820 esac
15821
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015822 case $ac_option in
15823 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15825 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015826 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15827 echo "$ac_cs_version"; exit ;;
15828 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015829 debug=: ;;
15830 --file | --fil | --fi | --f )
15831 $ac_shift
15832 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15833 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015834 --he | --h | --help | --hel | -h )
15835 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15838 ac_cs_silent=: ;;
15839
15840 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015841 -*) { echo "$as_me: error: unrecognized option: $1
15842Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015843 { (exit 1); exit 1; }; } ;;
15844
Theodore Ts'oe1052142006-10-21 21:46:47 -040015845 *) ac_config_targets="$ac_config_targets $1"
15846 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015847
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015848 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015849 shift
15850done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015852ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015853
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015854if $ac_cs_silent; then
15855 exec 6>/dev/null
15856 ac_configure_extra_args="$ac_configure_extra_args --silent"
15857fi
15858
15859_ACEOF
15860cat >>$CONFIG_STATUS <<_ACEOF
15861if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015862 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15863 CONFIG_SHELL=$SHELL
15864 export CONFIG_SHELL
15865 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015866fi
15867
15868_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015869cat >>$CONFIG_STATUS <<\_ACEOF
15870exec 5>>config.log
15871{
15872 echo
15873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15874## Running $as_me. ##
15875_ASBOX
15876 echo "$ac_log"
15877} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015878
Theodore Ts'oe1052142006-10-21 21:46:47 -040015879_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015880cat >>$CONFIG_STATUS <<_ACEOF
15881#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015882# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015883#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015884# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015885 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015886 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015887 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015888 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15889 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015890
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015891
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015892_ACEOF
15893
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015894cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015895
15896# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015897for ac_config_target in $ac_config_targets
15898do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015899 case $ac_config_target in
15900 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15901 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15904echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15905 { (exit 1); exit 1; }; };;
15906 esac
15907done
15908
Theodore Ts'oe1052142006-10-21 21:46:47 -040015909
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015910# If the user did not use the arguments to specify the items to instantiate,
15911# then the envvar interface is used. Set only those that are not.
15912# We use the long form for the default assignment because of an extremely
15913# bizarre bug on SunOS 4.1.3.
15914if $ac_need_defaults; then
15915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15917fi
15918
15919# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015920# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015921# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015922# Hook for its removal unless debugging.
15923# Note that there is a small window in which the directory will not be cleaned:
15924# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015925$debug ||
15926{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015927 tmp=
15928 trap 'exit_status=$?
15929 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15930' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015931 trap '{ (exit 1); exit 1; }' 1 2 13 15
15932}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015933# Create a (secure) tmp directory for tmp files.
15934
15935{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015937 test -n "$tmp" && test -d "$tmp"
15938} ||
15939{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015940 tmp=./conf$$-$RANDOM
15941 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015942} ||
15943{
15944 echo "$me: cannot create a temporary directory in ." >&2
15945 { (exit 1); exit 1; }
15946}
15947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015948#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015949# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015950#
15951
15952# No need to generate the scripts if there are no CONFIG_FILES.
15953# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015954if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015955
15956_ACEOF
15957
Theodore Ts'oe1052142006-10-21 21:46:47 -040015958# Create sed commands to just substitute file output variables.
15959
15960# Remaining file output variables are in a fragment that also has non-file
15961# output varibles.
15962
15963
15964
15965ac_delim='%!_!# '
15966for ac_last_try in false false false false false :; do
15967 cat >conf$$subs.sed <<_ACEOF
15968SHELL!$SHELL$ac_delim
15969PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15970PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15971PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15972PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15973PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15974PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15975exec_prefix!$exec_prefix$ac_delim
15976prefix!$prefix$ac_delim
15977program_transform_name!$program_transform_name$ac_delim
15978bindir!$bindir$ac_delim
15979sbindir!$sbindir$ac_delim
15980libexecdir!$libexecdir$ac_delim
15981datarootdir!$datarootdir$ac_delim
15982datadir!$datadir$ac_delim
15983sysconfdir!$sysconfdir$ac_delim
15984sharedstatedir!$sharedstatedir$ac_delim
15985localstatedir!$localstatedir$ac_delim
15986includedir!$includedir$ac_delim
15987oldincludedir!$oldincludedir$ac_delim
15988docdir!$docdir$ac_delim
15989infodir!$infodir$ac_delim
15990htmldir!$htmldir$ac_delim
15991dvidir!$dvidir$ac_delim
15992pdfdir!$pdfdir$ac_delim
15993psdir!$psdir$ac_delim
15994libdir!$libdir$ac_delim
15995localedir!$localedir$ac_delim
15996mandir!$mandir$ac_delim
15997DEFS!$DEFS$ac_delim
15998ECHO_C!$ECHO_C$ac_delim
15999ECHO_N!$ECHO_N$ac_delim
16000ECHO_T!$ECHO_T$ac_delim
16001LIBS!$LIBS$ac_delim
16002build_alias!$build_alias$ac_delim
16003host_alias!$host_alias$ac_delim
16004target_alias!$target_alias$ac_delim
16005E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16006E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16007E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16008E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016009E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016010build!$build$ac_delim
16011build_cpu!$build_cpu$ac_delim
16012build_vendor!$build_vendor$ac_delim
16013build_os!$build_os$ac_delim
16014host!$host$ac_delim
16015host_cpu!$host_cpu$ac_delim
16016host_vendor!$host_vendor$ac_delim
16017host_os!$host_os$ac_delim
16018CC!$CC$ac_delim
16019CFLAGS!$CFLAGS$ac_delim
16020LDFLAGS!$LDFLAGS$ac_delim
16021CPPFLAGS!$CPPFLAGS$ac_delim
16022ac_ct_CC!$ac_ct_CC$ac_delim
16023EXEEXT!$EXEEXT$ac_delim
16024OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016025CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016026LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016027GREP!$GREP$ac_delim
16028EGREP!$EGREP$ac_delim
16029LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16030MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16031HTREE_CMT!$HTREE_CMT$ac_delim
16032ELF_CMT!$ELF_CMT$ac_delim
16033BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16034PROFILE_CMT!$PROFILE_CMT$ac_delim
16035CHECKER_CMT!$CHECKER_CMT$ac_delim
16036LIB_EXT!$LIB_EXT$ac_delim
16037STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16038PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16039SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16040DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16041IMAGER_CMT!$IMAGER_CMT$ac_delim
16042RESIZER_CMT!$RESIZER_CMT$ac_delim
16043E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016044_ACEOF
16045
16046 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16047 break
16048 elif $ac_last_try; then
16049 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16050echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16051 { (exit 1); exit 1; }; }
16052 else
16053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016054 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016055done
16056
16057ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16058if test -n "$ac_eof"; then
16059 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16060 ac_eof=`expr $ac_eof + 1`
16061fi
16062
16063cat >>$CONFIG_STATUS <<_ACEOF
16064cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16065/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16066/^[ ]*@MCONFIG@[ ]*$/{
16067r $MCONFIG
16068d
16069}
16070/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16071r $MAKEFILE_ELF
16072d
16073}
16074/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16075r $MAKEFILE_BSDLIB
16076d
16077}
16078/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16079r $MAKEFILE_PROFILE
16080d
16081}
16082/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16083r $MAKEFILE_CHECKER
16084d
16085}
16086/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16087r $MAKEFILE_LIBRARY
16088d
16089}
16090/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16091r $ASM_TYPES_HEADER
16092d
16093}
16094_ACEOF
16095sed '
16096s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16097s/^/s,@/; s/!/@,|#_!!_#|/
16098:n
16099t n
16100s/'"$ac_delim"'$/,g/; t
16101s/$/\\/; p
16102N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16103' >>$CONFIG_STATUS <conf$$subs.sed
16104rm -f conf$$subs.sed
16105cat >>$CONFIG_STATUS <<_ACEOF
16106CEOF$ac_eof
16107_ACEOF
16108
16109
16110ac_delim='%!_!# '
16111for ac_last_try in false false false false false :; do
16112 cat >conf$$subs.sed <<_ACEOF
Andreas Dilger927566a2006-11-12 19:41:25 -050016113FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016114FSCK_MAN!$FSCK_MAN$ac_delim
16115E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16116E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016117PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016118DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16119DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16120DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16121STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016122STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016123UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016124GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16125PACKAGE!$PACKAGE$ac_delim
16126VERSION!$VERSION$ac_delim
16127SET_MAKE!$SET_MAKE$ac_delim
16128INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16129INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16130INSTALL_DATA!$INSTALL_DATA$ac_delim
16131MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16132USE_NLS!$USE_NLS$ac_delim
16133MSGFMT!$MSGFMT$ac_delim
16134GMSGFMT!$GMSGFMT$ac_delim
16135XGETTEXT!$XGETTEXT$ac_delim
16136MSGMERGE!$MSGMERGE$ac_delim
16137RANLIB!$RANLIB$ac_delim
16138ALLOCA!$ALLOCA$ac_delim
16139GLIBC21!$GLIBC21$ac_delim
16140HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16141HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16142HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16143HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16144LIBICONV!$LIBICONV$ac_delim
16145LTLIBICONV!$LTLIBICONV$ac_delim
16146INTLBISON!$INTLBISON$ac_delim
16147BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16148USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16149CATOBJEXT!$CATOBJEXT$ac_delim
16150DATADIRNAME!$DATADIRNAME$ac_delim
16151INSTOBJEXT!$INSTOBJEXT$ac_delim
16152GENCAT!$GENCAT$ac_delim
16153INTLOBJS!$INTLOBJS$ac_delim
16154INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16155INTLLIBS!$INTLLIBS$ac_delim
16156LIBINTL!$LIBINTL$ac_delim
16157LTLIBINTL!$LTLIBINTL$ac_delim
16158POSUB!$POSUB$ac_delim
16159BINARY_TYPE!$BINARY_TYPE$ac_delim
16160LN!$LN$ac_delim
16161LN_S!$LN_S$ac_delim
16162MV!$MV$ac_delim
16163CP!$CP$ac_delim
16164RM!$RM$ac_delim
16165CHMOD!$CHMOD$ac_delim
16166AWK!$AWK$ac_delim
16167SED!$SED$ac_delim
16168PERL!$PERL$ac_delim
16169LDCONFIG!$LDCONFIG$ac_delim
16170AR!$AR$ac_delim
16171STRIP!$STRIP$ac_delim
16172BUILD_CC!$BUILD_CC$ac_delim
16173SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16174SIZEOF_INT!$SIZEOF_INT$ac_delim
16175SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16176SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16177SOCKET_LIB!$SOCKET_LIB$ac_delim
16178DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16179UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16180LINUX_CMT!$LINUX_CMT$ac_delim
16181CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16182UNIX_CMT!$UNIX_CMT$ac_delim
16183root_prefix!$root_prefix$ac_delim
16184root_bindir!$root_bindir$ac_delim
16185root_sbindir!$root_sbindir$ac_delim
16186root_libdir!$root_libdir$ac_delim
16187root_sysconfdir!$root_sysconfdir$ac_delim
16188LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16189SS_DIR!$SS_DIR$ac_delim
16190ET_DIR!$ET_DIR$ac_delim
16191DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16192INTL_FLAGS!$INTL_FLAGS$ac_delim
16193BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16194BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16195LIBOBJS!$LIBOBJS$ac_delim
16196LTLIBOBJS!$LTLIBOBJS$ac_delim
16197_ACEOF
16198
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016199 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016200 break
16201 elif $ac_last_try; then
16202 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16203echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16204 { (exit 1); exit 1; }; }
16205 else
16206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16207 fi
16208done
16209
16210ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16211if test -n "$ac_eof"; then
16212 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16213 ac_eof=`expr $ac_eof + 1`
16214fi
16215
16216cat >>$CONFIG_STATUS <<_ACEOF
16217cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16218/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16219_ACEOF
16220sed '
16221s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16222s/^/s,@/; s/!/@,|#_!!_#|/
16223:n
16224t n
16225s/'"$ac_delim"'$/,g/; t
16226s/$/\\/; p
16227N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16228' >>$CONFIG_STATUS <conf$$subs.sed
16229rm -f conf$$subs.sed
16230cat >>$CONFIG_STATUS <<_ACEOF
16231:end
16232s/|#_!!_#|//g
16233CEOF$ac_eof
16234_ACEOF
16235
16236
16237# VPATH may cause trouble with some makes, so we remove $(srcdir),
16238# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16239# trailing colons and then remove the whole line if VPATH becomes empty
16240# (actually we leave an empty line to preserve line numbers).
16241if test "x$srcdir" = x.; then
16242 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16243s/:*\$(srcdir):*/:/
16244s/:*\${srcdir}:*/:/
16245s/:*@srcdir@:*/:/
16246s/^\([^=]*=[ ]*\):*/\1/
16247s/:*$//
16248s/^[^=]*=[ ]*$//
16249}'
16250fi
16251
16252cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016253fi # test -n "$CONFIG_FILES"
16254
Theodore Ts'oe1052142006-10-21 21:46:47 -040016255
16256for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16257do
16258 case $ac_tag in
16259 :[FHLC]) ac_mode=$ac_tag; continue;;
16260 esac
16261 case $ac_mode$ac_tag in
16262 :[FHL]*:*);;
16263 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16264echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16265 { (exit 1); exit 1; }; };;
16266 :[FH]-) ac_tag=-:-;;
16267 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16268 esac
16269 ac_save_IFS=$IFS
16270 IFS=:
16271 set x $ac_tag
16272 IFS=$ac_save_IFS
16273 shift
16274 ac_file=$1
16275 shift
16276
16277 case $ac_mode in
16278 :L) ac_source=$1;;
16279 :[FH])
16280 ac_file_inputs=
16281 for ac_f
16282 do
16283 case $ac_f in
16284 -) ac_f="$tmp/stdin";;
16285 *) # Look for the file first in the build tree, then in the source tree
16286 # (if the path is not absolute). The absolute path cannot be DOS-style,
16287 # because $ac_f cannot contain `:'.
16288 test -f "$ac_f" ||
16289 case $ac_f in
16290 [\\/$]*) false;;
16291 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16292 esac ||
16293 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16294echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16295 { (exit 1); exit 1; }; };;
16296 esac
16297 ac_file_inputs="$ac_file_inputs $ac_f"
16298 done
16299
16300 # Let's still pretend it is `configure' which instantiates (i.e., don't
16301 # use $as_me), people would be surprised to read:
16302 # /* config.h. Generated by config.status. */
16303 configure_input="Generated from "`IFS=:
16304 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16305 if test x"$ac_file" != x-; then
16306 configure_input="$ac_file. $configure_input"
16307 { echo "$as_me:$LINENO: creating $ac_file" >&5
16308echo "$as_me: creating $ac_file" >&6;}
16309 fi
16310
16311 case $ac_tag in
16312 *:-:* | *:-) cat >"$tmp/stdin";;
16313 esac
16314 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016315 esac
16316
Theodore Ts'oe1052142006-10-21 21:46:47 -040016317 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16319 X"$ac_file" : 'X\(//\)[^/]' \| \
16320 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016321 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016322echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16324 s//\1/
16325 q
16326 }
16327 /^X\(\/\/\)[^/].*/{
16328 s//\1/
16329 q
16330 }
16331 /^X\(\/\/\)$/{
16332 s//\1/
16333 q
16334 }
16335 /^X\(\/\).*/{
16336 s//\1/
16337 q
16338 }
16339 s/.*/./; q'`
16340 { as_dir="$ac_dir"
16341 case $as_dir in #(
16342 -*) as_dir=./$as_dir;;
16343 esac
16344 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016345 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016346 while :; do
16347 case $as_dir in #(
16348 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16349 *) as_qdir=$as_dir;;
16350 esac
16351 as_dirs="'$as_qdir' $as_dirs"
16352 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016353$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16354 X"$as_dir" : 'X\(//\)[^/]' \| \
16355 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016357echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16359 s//\1/
16360 q
16361 }
16362 /^X\(\/\/\)[^/].*/{
16363 s//\1/
16364 q
16365 }
16366 /^X\(\/\/\)$/{
16367 s//\1/
16368 q
16369 }
16370 /^X\(\/\).*/{
16371 s//\1/
16372 q
16373 }
16374 s/.*/./; q'`
16375 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016376 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016377 test -z "$as_dirs" || eval "mkdir $as_dirs"
16378 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16379echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016380 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016381 ac_builddir=.
16382
Theodore Ts'oe1052142006-10-21 21:46:47 -040016383case "$ac_dir" in
16384.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16385*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016387 # A ".." for each directory in $ac_dir_suffix.
16388 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16389 case $ac_top_builddir_sub in
16390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16392 esac ;;
16393esac
16394ac_abs_top_builddir=$ac_pwd
16395ac_abs_builddir=$ac_pwd$ac_dir_suffix
16396# for backward compatibility:
16397ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016398
16399case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016400 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016401 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016402 ac_top_srcdir=$ac_top_builddir_sub
16403 ac_abs_top_srcdir=$ac_pwd ;;
16404 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016405 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016406 ac_top_srcdir=$srcdir
16407 ac_abs_top_srcdir=$srcdir ;;
16408 *) # Relative name.
16409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16410 ac_top_srcdir=$ac_top_build_prefix$srcdir
16411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016412esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016413ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016414
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016415
Theodore Ts'oe1052142006-10-21 21:46:47 -040016416 case $ac_mode in
16417 :F)
16418 #
16419 # CONFIG_FILE
16420 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016421
16422 case $INSTALL in
16423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016424 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016425 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016426_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016427
16428cat >>$CONFIG_STATUS <<\_ACEOF
16429# If the template does not know about datarootdir, expand it.
16430# FIXME: This hack should be removed a few years after 2.60.
16431ac_datarootdir_hack=; ac_datarootdir_seen=
16432
16433case `sed -n '/datarootdir/ {
16434 p
16435 q
16436}
16437/@datadir@/p
16438/@docdir@/p
16439/@infodir@/p
16440/@localedir@/p
16441/@mandir@/p
16442' $ac_file_inputs` in
16443*datarootdir*) ac_datarootdir_seen=yes;;
16444*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16445 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16446echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16447_ACEOF
16448cat >>$CONFIG_STATUS <<_ACEOF
16449 ac_datarootdir_hack='
16450 s&@datadir@&$datadir&g
16451 s&@docdir@&$docdir&g
16452 s&@infodir@&$infodir&g
16453 s&@localedir@&$localedir&g
16454 s&@mandir@&$mandir&g
16455 s&\\\${datarootdir}&$datarootdir&g' ;;
16456esac
16457_ACEOF
16458
16459# Neutralize VPATH when `$srcdir' = `.'.
16460# Shell code in configure.ac might set extrasub.
16461# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016462cat >>$CONFIG_STATUS <<_ACEOF
16463 sed "$ac_vpsub
16464$extrasub
16465_ACEOF
16466cat >>$CONFIG_STATUS <<\_ACEOF
16467:t
16468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016469s&@configure_input@&$configure_input&;t t
16470s&@top_builddir@&$ac_top_builddir_sub&;t t
16471s&@srcdir@&$ac_srcdir&;t t
16472s&@abs_srcdir@&$ac_abs_srcdir&;t t
16473s&@top_srcdir@&$ac_top_srcdir&;t t
16474s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16475s&@builddir@&$ac_builddir&;t t
16476s&@abs_builddir@&$ac_abs_builddir&;t t
16477s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16478s&@INSTALL@&$ac_INSTALL&;t t
16479$ac_datarootdir_hack
16480" $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 -050016481
Theodore Ts'oe1052142006-10-21 21:46:47 -040016482test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16483 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16484 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16485 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16486which seems to be undefined. Please make sure it is defined." >&5
16487echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16488which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016489
Theodore Ts'oe1052142006-10-21 21:46:47 -040016490 rm -f "$tmp/stdin"
16491 case $ac_file in
16492 -) cat "$tmp/out"; rm -f "$tmp/out";;
16493 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16494 esac
16495 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016496
16497
Theodore Ts'oe1052142006-10-21 21:46:47 -040016498 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16499echo "$as_me: executing $ac_file commands" >&6;}
16500 ;;
16501 esac
16502
16503
16504 case $ac_file$ac_mode in
16505 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016506 for ac_file in $CONFIG_FILES; do
16507 # Support "outfile[:infile[:infile...]]"
16508 case "$ac_file" in
16509 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016510 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016511 # PO directories have a Makefile.in generated from Makefile.in.in.
16512 case "$ac_file" in */Makefile.in)
16513 # Adjust a relative srcdir.
16514 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16515 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16516 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16517 # In autoconf-2.13 it is called $ac_given_srcdir.
16518 # In autoconf-2.50 it is called $srcdir.
16519 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16520 case "$ac_given_srcdir" in
16521 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16522 /*) top_srcdir="$ac_given_srcdir" ;;
16523 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16524 esac
16525 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16526 rm -f "$ac_dir/POTFILES"
16527 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16528 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 -050016529 POMAKEFILEDEPS="POTFILES.in"
16530 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016531 # on $ac_dir but don't depend on user-specified configuration
16532 # parameters.
16533 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16534 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016535 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016536 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16537 fi
16538 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16539 # Hide the ALL_LINGUAS assigment from automake.
16540 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016541 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16542 else
16543 # The set of available languages was given in configure.in.
16544 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016545 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016546 # Compute POFILES
16547 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16548 # Compute UPDATEPOFILES
16549 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16550 # Compute DUMMYPOFILES
16551 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16552 # Compute GMOFILES
16553 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016554 case "$ac_given_srcdir" in
16555 .) srcdirpre= ;;
16556 *) srcdirpre='$(srcdir)/' ;;
16557 esac
16558 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016559 UPDATEPOFILES=
16560 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016561 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016562 for lang in $ALL_LINGUAS; do
16563 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016564 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16565 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016566 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016567 done
16568 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16569 # environment variable.
16570 INST_LINGUAS=
16571 if test -n "$ALL_LINGUAS"; then
16572 for presentlang in $ALL_LINGUAS; do
16573 useit=no
16574 if test "%UNSET%" != "$LINGUAS"; then
16575 desiredlanguages="$LINGUAS"
16576 else
16577 desiredlanguages="$ALL_LINGUAS"
16578 fi
16579 for desiredlang in $desiredlanguages; do
16580 # Use the presentlang catalog if desiredlang is
16581 # a. equal to presentlang, or
16582 # b. a variant of presentlang (because in this case,
16583 # presentlang can be used as a fallback for messages
16584 # which are not translated in the desiredlang catalog).
16585 case "$desiredlang" in
16586 "$presentlang"*) useit=yes;;
16587 esac
16588 done
16589 if test $useit = yes; then
16590 INST_LINGUAS="$INST_LINGUAS $presentlang"
16591 fi
16592 done
16593 fi
16594 CATALOGS=
16595 if test -n "$INST_LINGUAS"; then
16596 for lang in $INST_LINGUAS; do
16597 CATALOGS="$CATALOGS $lang.gmo"
16598 done
16599 fi
16600 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016601 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 -040016602 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16603 if test -f "$f"; then
16604 case "$f" in
16605 *.orig | *.bak | *~) ;;
16606 *) cat "$f" >> "$ac_dir/Makefile" ;;
16607 esac
16608 fi
16609 done
16610 fi
16611 ;;
16612 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016613 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016614
Theodore Ts'oe1052142006-10-21 21:46:47 -040016615 esac
16616done # for ac_tag
16617
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016618
16619{ (exit 0); exit 0; }
16620_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016621chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016622ac_clean_files=$ac_clean_files_save
16623
16624
16625# configure is writing to config.log, and then calls config.status.
16626# config.status does its own redirection, appending to config.log.
16627# Unfortunately, on DOS this fails, as config.log is still kept open
16628# by configure, so config.status won't be able to write to it; its
16629# output is simply discarded. So we exec the FD to /dev/null,
16630# effectively closing config.log, so it can be properly (re)opened and
16631# appended to by config.status. When coming back to configure, we
16632# need to make the FD available again.
16633if test "$no_create" != yes; then
16634 ac_cs_success=:
16635 ac_config_status_args=
16636 test "$silent" = yes &&
16637 ac_config_status_args="$ac_config_status_args --quiet"
16638 exec 5>/dev/null
16639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16640 exec 5>>config.log
16641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16642 # would make configure fail if this is the last instruction.
16643 $ac_cs_success || { (exit 1); exit 1; }
16644fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016645
Theodore Ts'oee683a12005-02-05 15:53:56 -050016646if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16647