blob: bdef3cc932b73e5bd24ee374e65c72becaf7bd17 [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
Theodore Ts'oe1052142006-10-21 21:46:47 -0400691FSCK_PROG
692FSCK_MAN
693E2INITRD_PROG
694E2INITRD_MAN
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500695PKG_CONFIG
Theodore Ts'oe1052142006-10-21 21:46:47 -0400696DEVMAPPER_REQ
697DEVMAPPER_PC_LIBS
698DEVMAPPER_LIBS
699STATIC_DEVMAPPER_LIBS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500700STATIC_BLKID_DEVMAPPER_LIBS
Theodore Ts'o5610f992007-12-31 11:16:56 -0500701UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400702GETTEXT_PACKAGE
703PACKAGE
704VERSION
705SET_MAKE
706INSTALL_PROGRAM
707INSTALL_SCRIPT
708INSTALL_DATA
709MKINSTALLDIRS
710USE_NLS
711MSGFMT
712GMSGFMT
713XGETTEXT
714MSGMERGE
715RANLIB
716ALLOCA
717GLIBC21
718HAVE_POSIX_PRINTF
719HAVE_ASPRINTF
720HAVE_SNPRINTF
721HAVE_WPRINTF
722LIBICONV
723LTLIBICONV
724INTLBISON
725BUILD_INCLUDED_LIBINTL
726USE_INCLUDED_LIBINTL
727CATOBJEXT
728DATADIRNAME
729INSTOBJEXT
730GENCAT
731INTLOBJS
732INTL_LIBTOOL_SUFFIX_PREFIX
733INTLLIBS
734LIBINTL
735LTLIBINTL
736POSUB
737BINARY_TYPE
738LN
739LN_S
740MV
741CP
742RM
743CHMOD
744AWK
745SED
746PERL
747LDCONFIG
748AR
749STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530750MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400751BUILD_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
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400782ASM_TYPES_HEADER
783PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400790LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400791CPPFLAGS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500792CPP
793PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400794
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000795
796# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500797ac_init_help=
798ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000799# The variables have the same names as the options, with
800# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500801cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000802exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000803no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000804no_recursion=
805prefix=NONE
806program_prefix=NONE
807program_suffix=NONE
808program_transform_name=s,x,x,
809silent=
810site=
811srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000812verbose=
813x_includes=NONE
814x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500815
816# Installation directory options.
817# These are left unexpanded so users can "make install exec_prefix=/foo"
818# and all the variables that are supposed to be based on exec_prefix
819# by default will actually change.
820# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400821# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000822bindir='${exec_prefix}/bin'
823sbindir='${exec_prefix}/sbin'
824libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400825datarootdir='${prefix}/share'
826datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000827sysconfdir='${prefix}/etc'
828sharedstatedir='${prefix}/com'
829localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000830includedir='${prefix}/include'
831oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400832docdir='${datarootdir}/doc/${PACKAGE}'
833infodir='${datarootdir}/info'
834htmldir='${docdir}'
835dvidir='${docdir}'
836pdfdir='${docdir}'
837psdir='${docdir}'
838libdir='${exec_prefix}/lib'
839localedir='${datarootdir}/locale'
840mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000842ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400843ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000844for ac_option
845do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400848 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000849 ac_prev=
850 continue
851 fi
852
Theodore Ts'oe1052142006-10-21 21:46:47 -0400853 case $ac_option in
854 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *) ac_optarg=yes ;;
856 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
Theodore Ts'oe1052142006-10-21 21:46:47 -0400860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000863
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500867 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000868
869 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500870 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500872 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000883
Theodore Ts'oe1052142006-10-21 21:46:47 -0400884 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000885 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500887 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000888
Theodore Ts'oe1052142006-10-21 21:46:47 -0400889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000896 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500897 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000898 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400899 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500900 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
901 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400902 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400903 eval enable_$ac_feature=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914
915 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400918 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500919 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
920 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400921 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400922 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500931 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000943
944 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500945 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000946 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500947 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000948
Theodore Ts'oe1052142006-10-21 21:46:47 -0400949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500960 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500965 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500970 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500977 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000978
Theodore Ts'oe1052142006-10-21 21:46:47 -0400979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000984 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400985 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500994 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000995
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001001 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001015 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001016
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001020 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001027 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001034 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001051 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001052
Theodore Ts'oe1052142006-10-21 21:46:47 -04001053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001071 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001072
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001082 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001083
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001088
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001093
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001099 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001100
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001101 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001102 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001104 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001105
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1108
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001111
1112 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001113 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001114 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001115 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001116 { echo "$as_me: error: invalid package name: $ac_package" >&2
1117 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001118 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001119 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001120
1121 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001123 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001124 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001125 { echo "$as_me: error: invalid package name: $ac_package" >&2
1126 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001127 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001128 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129
1130 --x)
1131 # Obsolete; use --with-x.
1132 with_x=yes ;;
1133
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001139 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001140
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001148 -*) { echo "$as_me: error: unrecognized option: $ac_option
1149Try \`$0 --help' for more information." >&2
1150 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001151 ;;
1152
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001159 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001160 export $ac_envvar ;;
1161
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001162 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001163 # FIXME: should be removed in autoconf 3.0.
1164 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001168 ;;
1169
1170 esac
1171done
1172
1173if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 { echo "$as_me: error: missing argument to $ac_option" >&2
1176 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001177fi
1178
Theodore Ts'oe1052142006-10-21 21:46:47 -04001179# Be sure to have absolute directory names.
1180for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001184do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001185 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001186 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001190 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1191 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001192done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001194# There might be people who depend on the old broken behavior: `$host'
1195# used to hold the argument of --host etc.
1196# FIXME: To remove some day.
1197build=$build_alias
1198host=$host_alias
1199target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001200
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001201# FIXME: To remove some day.
1202if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used." >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1209 fi
1210fi
1211
1212ac_tool_prefix=
1213test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215test "$silent" = yes && exec 6>/dev/null
1216
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001217
Theodore Ts'oe1052142006-10-21 21:46:47 -04001218ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219ac_ls_di=`ls -di .` &&
1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 { echo "$as_me: error: Working directory cannot be determined" >&2
1222 { (exit 1); exit 1; }; }
1223test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 { echo "$as_me: error: pwd does not report name of working directory" >&2
1225 { (exit 1); exit 1; }; }
1226
1227
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001228# Find the source files, if location was not specified.
1229if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001233$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$0" : 'X\(//\)[^/]' \| \
1235 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001237echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)[^/].*/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\/\)$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\).*/{
1251 s//\1/
1252 q
1253 }
1254 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001255 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001256 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001257 srcdir=..
1258 fi
1259else
1260 ac_srcdir_defaulted=no
1261fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001262if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001265 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001266fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001267ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001271 pwd)`
1272# When building in place, set srcdir=.
1273if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 srcdir=.
1275fi
1276# Remove unnecessary trailing slashes from srcdir.
1277# Double slashes in file names in object file debugging info
1278# mess up M-x gdb in Emacs.
1279case $srcdir in
1280*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281esac
1282for ac_var in $ac_precious_vars; do
1283 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_${ac_var}_value=\$${ac_var}
1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001289#
1290# Report the --help message.
1291#
1292if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1295 cat <<_ACEOF
1296\`configure' configures this package to adapt to many kinds of systems.
1297
1298Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301VAR=VALUE. See below for descriptions of some of the useful variables.
1302
1303Defaults for the options are specified in brackets.
1304
1305Configuration:
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001316Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 [PREFIX]
1321
1322By default, \`make install' will install all the files in
1323\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325for instance \`--prefix=\$HOME'.
1326
1327For better control, use the options below.
1328
1329Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001349_ACEOF
1350
1351 cat <<\_ACEOF
1352
1353System types:
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1356_ACEOF
1357fi
1358
1359if test -n "$ac_init_help"; then
1360
1361 cat <<\_ACEOF
1362
1363Optional Features:
1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001366 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001367 --enable-compression enable EXPERIMENTAL compression support
1368 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001369 --enable-elf-shlibs select ELF shared libraries
1370 --enable-bsd-shlibs select BSD shared libraries
1371 --enable-profile build profiling libraries
1372 --enable-checker build checker libraries
1373 --enable-jbd-debug enable journal debugging
1374 --enable-blkid-debug enable blkid debugging
1375 --enable-testio-debug enable the use of the test I/O manager for debugging
1376 --disable-swapfs disable support of legacy byte-swapped filesystems
1377 --disable-debugfs disable support of debugfs program
1378 --disable-imager disable support of e2image program
1379 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001380 --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//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001906
1907date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1908
1909case $E2FSPROGS_VERSION in
1910*-WIP|pre-*)
Theodore Ts'od69e7e22008-02-15 21:28:48 -05001911 pre_vers=`echo $base_ver 0.01 - p | dc`
Andreas Dilger927566a2006-11-12 19:41:25 -05001912 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
Theodore Ts'oe1052142006-10-21 21:46:47 -04004085# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004086if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004087 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004088then
4089 FSCK_PROG='' FSCK_MAN=''
4090 echo "Not building fsck wrapper"
4091else
4092 FSCK_PROG=fsck FSCK_MAN=fsck.8
4093 echo "Building fsck wrapper"
4094fi
4095
4096else
4097 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004098 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004099 FSCK_PROG='' FSCK_MAN=''
4100 echo "Not building fsck wrapper by default"
4101 ;;
4102 *)
4103 FSCK_PROG=fsck FSCK_MAN=fsck.8
4104 echo "Building fsck wrapper by default"
4105esac
4106
Theodore Ts'oe1052142006-10-21 21:46:47 -04004107fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004108
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004109
Theodore Ts'oe1052142006-10-21 21:46:47 -04004110
4111# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004112if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004113 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004114then
4115 E2INITRD_PROG='' E2INITRD_MAN=''
4116 echo "Not building e2initrd helper"
4117else
4118 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4119 echo "Building e2initrd helper"
4120fi
4121
4122else
4123 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4124echo "Building e2initrd helper by default"
4125
Theodore Ts'oe1052142006-10-21 21:46:47 -04004126fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004127
4128
Theodore Ts'oe1052142006-10-21 21:46:47 -04004129
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004130STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004131# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004132if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004133 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004134then
4135 echo "Disabling device-mapper support"
4136 DEVMAPPER_REQ=''
4137 DEVMAPPER_LIBS=''
4138 STATIC_DEVMAPPER_LIBS=''
4139else
4140 cat >>confdefs.h <<\_ACEOF
4141#define HAVE_DEVMAPPER 1
4142_ACEOF
4143
4144 echo "Enabling device-mapper support"
4145
Karel Zak4db2f592006-03-08 14:17:28 -05004146
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004147
4148if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4151set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4154if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157 case $PKG_CONFIG in
4158 [\\/]* | ?:[\\/]*)
4159 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4160 ;;
4161 *)
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173done
4174done
4175IFS=$as_save_IFS
4176
4177 ;;
4178esac
4179fi
4180PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4181if test -n "$PKG_CONFIG"; then
4182 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4183echo "${ECHO_T}$PKG_CONFIG" >&6; }
4184else
4185 { echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6; }
4187fi
4188
4189
4190fi
4191if test -z "$ac_cv_path_PKG_CONFIG"; then
4192 ac_pt_PKG_CONFIG=$PKG_CONFIG
4193 # Extract the first word of "pkg-config", so it can be a program name with args.
4194set dummy pkg-config; ac_word=$2
4195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4197if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 case $ac_pt_PKG_CONFIG in
4201 [\\/]* | ?:[\\/]*)
4202 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4203 ;;
4204 *)
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216done
4217done
4218IFS=$as_save_IFS
4219
4220 ;;
4221esac
4222fi
4223ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4224if test -n "$ac_pt_PKG_CONFIG"; then
4225 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4226echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4227else
4228 { echo "$as_me:$LINENO: result: no" >&5
4229echo "${ECHO_T}no" >&6; }
4230fi
4231
4232 if test "x$ac_pt_PKG_CONFIG" = x; then
4233 PKG_CONFIG=""
4234 else
4235 case $cross_compiling:$ac_tool_warned in
4236yes:)
4237{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4238whose name does not start with the host triplet. If you think this
4239configuration is useful to you, please write to autoconf@gnu.org." >&5
4240echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4241whose name does not start with the host triplet. If you think this
4242configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4243ac_tool_warned=yes ;;
4244esac
4245 PKG_CONFIG=$ac_pt_PKG_CONFIG
4246 fi
4247else
4248 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4249fi
4250
4251fi
4252if test -n "$PKG_CONFIG"; then
4253 _pkg_min_version=0.9.0
4254 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4255echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4256 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4257 { echo "$as_me:$LINENO: result: yes" >&5
4258echo "${ECHO_T}yes" >&6; }
4259 else
4260 { echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6; }
4262 PKG_CONFIG=""
4263 fi
4264
4265fi
4266
4267 if test -z "$PKG_CONFIG"; then
4268 echo "pkg-config not installed; please install it."
4269 exit 1;
4270 fi
4271
4272 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4273echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4274if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277 ac_check_lib_save_LIBS=$LIBS
4278LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4279cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h. */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h. */
4285
4286/* Override any GCC internal prototype to avoid an error.
4287 Use char because int might match the return type of a GCC
4288 builtin and then its argument prototype would still apply. */
4289#ifdef __cplusplus
4290extern "C"
4291#endif
4292char dm_tree_create ();
4293int
4294main ()
4295{
4296return dm_tree_create ();
4297 ;
4298 return 0;
4299}
4300_ACEOF
4301rm -f conftest.$ac_objext conftest$ac_exeext
4302if { (ac_try="$ac_link"
4303case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306esac
4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_link") 2>conftest.er1
4309 ac_status=$?
4310 grep -v '^ *+' conftest.er1 >conftest.err
4311 rm -f conftest.er1
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest$ac_exeext &&
4318 $as_test_x conftest$ac_exeext; then
4319 ac_cv_lib_devmapper_dm_tree_create=yes
4320else
4321 echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ac_cv_lib_devmapper_dm_tree_create=no
4325fi
4326
4327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4328 conftest$ac_exeext conftest.$ac_ext
4329LIBS=$ac_check_lib_save_LIBS
4330fi
4331{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4332echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4333if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4334 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4335 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4336 DEVMAPPER_REQ="devmapper";
4337 DEVMAPPER_PC_LIBS="-ldevmapper"
4338else
4339 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4340echo "$as_me: error: device-mapper library not found" >&2;}
4341 { (exit 1); exit 1; }; }
4342fi
4343
4344 # work around stupid devmapper.pc bug in Debian
4345 case "$STATIC_DEVMAPPER_LIBS" in
4346 *pthread*)
4347 ;;
4348 *)
4349 echo "Working around Debian bug #390243..."
4350 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4351 ;;
4352 esac
4353 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4354 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4355 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4356 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004357fi
4358
4359else
4360 echo "Disabling device-mapper support by default"
4361
Theodore Ts'oe1052142006-10-21 21:46:47 -04004362fi
4363
Karel Zak4db2f592006-03-08 14:17:28 -05004364
4365
4366
4367
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004368
Theodore Ts'o32493942007-12-31 10:45:01 -05004369# Check whether --enable-tls was given.
4370if test "${enable_tls+set}" = set; then
4371 enableval=$enable_tls; if test "$enableval" = "no"
4372then
4373 try_tls=""
4374 echo "Disabling thread local support"
4375else
4376 try_tls="yes"
4377 echo "Enabling thread local support"
4378fi
4379
4380else
4381 try_tls="yes"
4382echo "Try using thread local support by default"
4383
4384fi
4385
4386if test "$try_tls" = "yes"
4387then
4388
4389 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4390echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4391 if test "${ac_cv_tls+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393else
4394
4395 ax_tls_keywords="__thread __declspec(thread) none"
4396 for ax_tls_keyword in $ax_tls_keywords; do
4397 case $ax_tls_keyword in
4398 none) ac_cv_tls=none ; break ;;
4399 *)
4400 cat >conftest.$ac_ext <<_ACEOF
4401/* confdefs.h. */
4402_ACEOF
4403cat confdefs.h >>conftest.$ac_ext
4404cat >>conftest.$ac_ext <<_ACEOF
4405/* end confdefs.h. */
4406#include <stdlib.h>
4407 static void
4408 foo(void) {
4409 static $ax_tls_keyword int bar;
4410 exit(1);
4411 }
4412int
4413main ()
4414{
4415
4416 ;
4417 return 0;
4418}
4419_ACEOF
4420rm -f conftest.$ac_objext
4421if { (ac_try="$ac_compile"
4422case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425esac
4426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_compile") 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } && {
4434 test -z "$ac_c_werror_flag" ||
4435 test ! -s conftest.err
4436 } && test -s conftest.$ac_objext; then
4437 ac_cv_tls=$ax_tls_keyword ; break
4438else
4439 echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 ac_cv_tls=none
4443
4444fi
4445
4446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 esac
4448 done
4449
4450fi
4451
4452
4453 if test "$ac_cv_tls" != "none"; then
4454
4455cat >>confdefs.h <<_ACEOF
4456#define TLS $ac_cv_tls
4457_ACEOF
4458
4459 fi
4460 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4461echo "${ECHO_T}$ac_cv_tls" >&6; }
4462
4463fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004464# Check whether --enable-uuidd was given.
4465if test "${enable_uuidd+set}" = set; then
4466 enableval=$enable_uuidd; if test "$enableval" = "no"
4467then
4468 echo "Not building uuidd"
4469 UUIDD_CMT="#"
4470else
4471 cat >>confdefs.h <<\_ACEOF
4472#define USE_UUIDD 1
4473_ACEOF
4474
4475 UUIDD_CMT=""
4476 echo "Building uuidd"
4477fi
4478
4479else
4480 cat >>confdefs.h <<\_ACEOF
4481#define USE_UUIDD 1
4482_ACEOF
4483
4484UUIDD_CMT=""
4485echo "Building uuidd by default"
4486
4487fi
4488
4489
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004490MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004492GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004493PACKAGE=e2fsprogs
4494VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004495VERSION=0.14.1
4496cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004497#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004498_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004500cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004501#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004502_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004503
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004504
4505
4506
4507
Theodore Ts'oe1052142006-10-21 21:46:47 -04004508{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4509echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4510set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4511if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004512 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004513else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004514 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004515SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004516all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004517 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004518_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004519# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004520case `${MAKE-make} -f conftest.make 2>/dev/null` in
4521 *@@@%%%=?*=@@@%%%*)
4522 eval ac_cv_prog_make_${ac_make}_set=yes;;
4523 *)
4524 eval ac_cv_prog_make_${ac_make}_set=no;;
4525esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004526rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004527fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004528if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4529 { echo "$as_me:$LINENO: result: yes" >&5
4530echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004531 SET_MAKE=
4532else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004533 { echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004535 SET_MAKE="MAKE=${MAKE-make}"
4536fi
4537
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004538# Find a good install program. We prefer a C program (faster),
4539# so one script is as good as another. But avoid the broken or
4540# incompatible versions:
4541# SysV /etc/install, /usr/sbin/install
4542# SunOS /usr/etc/install
4543# IRIX /sbin/install
4544# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004545# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004546# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4547# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4548# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004549# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004550# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004551{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4552echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004553if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004554if test "${ac_cv_path_install+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004556else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 # Account for people who put trailing slashes in PATH elements.
4563case $as_dir/ in
4564 ./ | .// | /cC/* | \
4565 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4566 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4567 /usr/ucb/* ) ;;
4568 *)
4569 # OSF1 and SCO ODT 3.0 have their own names for install.
4570 # Don't use installbsd from OSF since it installs stuff as root
4571 # by default.
4572 for ac_prog in ginstall scoinst install; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004574 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 -04004575 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004576 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004577 # AIX install. It has an incompatible calling convention.
4578 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004579 elif test $ac_prog = install &&
4580 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4581 # program-specific install script used by HP pwplus--don't use.
4582 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004583 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4585 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004586 fi
4587 fi
4588 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004589 done
4590 ;;
4591esac
4592done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004593IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004594
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004595
4596fi
4597 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004598 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004599 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004600 # As a last resort, use the slow shell script. Don't cache a
4601 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004602 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004603 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004604 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004605 fi
4606fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004607{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4608echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004609
4610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4611# It thinks the first close brace ends the variable substitution.
4612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004615
4616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4617
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004619 MKINSTALLDIRS=
4620 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004621 case "$ac_aux_dir" in
4622 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4623 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4624 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004625 fi
4626 if test -z "$MKINSTALLDIRS"; then
4627 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4628 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004629
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004630
4631
Theodore Ts'oe1052142006-10-21 21:46:47 -04004632 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4633echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4634 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004635if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004636 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004637else
4638 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004639fi
4640
4641 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4642echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004643
4644
4645
4646
4647
4648
4649# Prepare PATH_SEPARATOR.
4650# The user is always right.
4651if test "${PATH_SEPARATOR+set}" != set; then
4652 echo "#! /bin/sh" >conf$$.sh
4653 echo "exit 0" >>conf$$.sh
4654 chmod +x conf$$.sh
4655 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4656 PATH_SEPARATOR=';'
4657 else
4658 PATH_SEPARATOR=:
4659 fi
4660 rm -f conf$$.sh
4661fi
4662
4663# Find out how to test for executable files. Don't use a zero-byte file,
4664# as systems may use methods other than mode bits to determine executability.
4665cat >conf$$.file <<_ASEOF
4666#! /bin/sh
4667exit 0
4668_ASEOF
4669chmod +x conf$$.file
4670if test -x conf$$.file >/dev/null 2>&1; then
4671 ac_executable_p="test -x"
4672else
4673 ac_executable_p="test -f"
4674fi
4675rm -f conf$$.file
4676
4677# Extract the first word of "msgfmt", so it can be a program name with args.
4678set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004681if test "${ac_cv_path_MSGFMT+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 case "$MSGFMT" in
4685 [\\/]* | ?:[\\/]*)
4686 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4687 ;;
4688 *)
4689 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4690 for ac_dir in $PATH; do
4691 IFS="$ac_save_IFS"
4692 test -z "$ac_dir" && ac_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4695 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4696 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4697 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4698 break 2
4699 fi
4700 fi
4701 done
4702 done
4703 IFS="$ac_save_IFS"
4704 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4705 ;;
4706esac
4707fi
4708MSGFMT="$ac_cv_path_MSGFMT"
4709if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004710 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4711echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004712else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004713 { echo "$as_me:$LINENO: result: no" >&5
4714echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004715fi
4716
4717 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4718set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004721if test "${ac_cv_path_GMSGFMT+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724 case $GMSGFMT in
4725 [\\/]* | ?:[\\/]*)
4726 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4727 ;;
4728 *)
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004735 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 -05004736 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4739 fi
4740done
4741done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004742IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004743
4744 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4745 ;;
4746esac
4747fi
4748GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004749if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004750 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4751echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004752else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004753 { echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004755fi
4756
4757
4758
Theodore Ts'oe1052142006-10-21 21:46:47 -04004759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004760# Prepare PATH_SEPARATOR.
4761# The user is always right.
4762if test "${PATH_SEPARATOR+set}" != set; then
4763 echo "#! /bin/sh" >conf$$.sh
4764 echo "exit 0" >>conf$$.sh
4765 chmod +x conf$$.sh
4766 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4767 PATH_SEPARATOR=';'
4768 else
4769 PATH_SEPARATOR=:
4770 fi
4771 rm -f conf$$.sh
4772fi
4773
4774# Find out how to test for executable files. Don't use a zero-byte file,
4775# as systems may use methods other than mode bits to determine executability.
4776cat >conf$$.file <<_ASEOF
4777#! /bin/sh
4778exit 0
4779_ASEOF
4780chmod +x conf$$.file
4781if test -x conf$$.file >/dev/null 2>&1; then
4782 ac_executable_p="test -x"
4783else
4784 ac_executable_p="test -f"
4785fi
4786rm -f conf$$.file
4787
4788# Extract the first word of "xgettext", so it can be a program name with args.
4789set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004792if test "${ac_cv_path_XGETTEXT+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795 case "$XGETTEXT" in
4796 [\\/]* | ?:[\\/]*)
4797 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4798 ;;
4799 *)
4800 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4801 for ac_dir in $PATH; do
4802 IFS="$ac_save_IFS"
4803 test -z "$ac_dir" && ac_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4806 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4807 (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
4808 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4809 break 2
4810 fi
4811 fi
4812 done
4813 done
4814 IFS="$ac_save_IFS"
4815 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4816 ;;
4817esac
4818fi
4819XGETTEXT="$ac_cv_path_XGETTEXT"
4820if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004821 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4822echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004823else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004824 { echo "$as_me:$LINENO: result: no" >&5
4825echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004826fi
4827
4828 rm -f messages.po
4829
4830
4831# Prepare PATH_SEPARATOR.
4832# The user is always right.
4833if test "${PATH_SEPARATOR+set}" != set; then
4834 echo "#! /bin/sh" >conf$$.sh
4835 echo "exit 0" >>conf$$.sh
4836 chmod +x conf$$.sh
4837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4838 PATH_SEPARATOR=';'
4839 else
4840 PATH_SEPARATOR=:
4841 fi
4842 rm -f conf$$.sh
4843fi
4844
4845# Find out how to test for executable files. Don't use a zero-byte file,
4846# as systems may use methods other than mode bits to determine executability.
4847cat >conf$$.file <<_ASEOF
4848#! /bin/sh
4849exit 0
4850_ASEOF
4851chmod +x conf$$.file
4852if test -x conf$$.file >/dev/null 2>&1; then
4853 ac_executable_p="test -x"
4854else
4855 ac_executable_p="test -f"
4856fi
4857rm -f conf$$.file
4858
4859# Extract the first word of "msgmerge", so it can be a program name with args.
4860set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004863if test "${ac_cv_path_MSGMERGE+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866 case "$MSGMERGE" in
4867 [\\/]* | ?:[\\/]*)
4868 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4869 ;;
4870 *)
4871 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4872 for ac_dir in $PATH; do
4873 IFS="$ac_save_IFS"
4874 test -z "$ac_dir" && ac_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4877 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4878 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4879 break 2
4880 fi
4881 fi
4882 done
4883 done
4884 IFS="$ac_save_IFS"
4885 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4886 ;;
4887esac
4888fi
4889MSGMERGE="$ac_cv_path_MSGMERGE"
4890if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004891 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4892echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004893else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004894 { echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004896fi
4897
4898
4899 if test "$GMSGFMT" != ":"; then
4900 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4901 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4902 : ;
4903 else
4904 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004905 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4906echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004907 GMSGFMT=":"
4908 fi
4909 fi
4910
4911 if test "$XGETTEXT" != ":"; then
4912 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4913 (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
4914 : ;
4915 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004916 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4917echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004918 XGETTEXT=":"
4919 fi
4920 rm -f messages.po
4921 fi
4922
Theodore Ts'oe1052142006-10-21 21:46:47 -04004923 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004924
4925
4926if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4928set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004931if test "${ac_cv_prog_RANLIB+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004933else
4934 if test -n "$RANLIB"; then
4935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4936else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004943 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 -05004944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004949done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004950IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004951
4952fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004953fi
4954RANLIB=$ac_cv_prog_RANLIB
4955if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004956 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4957echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004958else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004959 { echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004961fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004962
Theodore Ts'oe1052142006-10-21 21:46:47 -04004963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004964fi
4965if test -z "$ac_cv_prog_RANLIB"; then
4966 ac_ct_RANLIB=$RANLIB
4967 # Extract the first word of "ranlib", so it can be a program name with args.
4968set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 if test -n "$ac_ct_RANLIB"; then
4975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004983 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 -05004984 ac_cv_prog_ac_ct_RANLIB="ranlib"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988done
4989done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004990IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004992fi
4993fi
4994ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004996 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4997echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004998else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004999 { echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005001fi
5002
Theodore Ts'oe1052142006-10-21 21:46:47 -04005003 if test "x$ac_ct_RANLIB" = x; then
5004 RANLIB=":"
5005 else
5006 case $cross_compiling:$ac_tool_warned in
5007yes:)
5008{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5009whose name does not start with the host triplet. If you think this
5010configuration is useful to you, please write to autoconf@gnu.org." >&5
5011echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5012whose name does not start with the host triplet. If you think this
5013configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5014ac_tool_warned=yes ;;
5015esac
5016 RANLIB=$ac_ct_RANLIB
5017 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005018else
5019 RANLIB="$ac_cv_prog_RANLIB"
5020fi
5021
5022
Theodore Ts'oe1052142006-10-21 21:46:47 -04005023 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5024echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005025if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 ac_check_lib_save_LIBS=$LIBS
5029LIBS="-lcposix $LIBS"
5030cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h. */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h. */
5036
Theodore Ts'oe1052142006-10-21 21:46:47 -04005037/* Override any GCC internal prototype to avoid an error.
5038 Use char because int might match the return type of a GCC
5039 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005040#ifdef __cplusplus
5041extern "C"
5042#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005043char strerror ();
5044int
5045main ()
5046{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005047return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005048 ;
5049 return 0;
5050}
5051_ACEOF
5052rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005053if { (ac_try="$ac_link"
5054case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057esac
5058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005065 (exit $ac_status); } && {
5066 test -z "$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5068 } && test -s conftest$ac_exeext &&
5069 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005070 ac_cv_lib_cposix_strerror=yes
5071else
5072 echo "$as_me: failed program was:" >&5
5073sed 's/^/| /' conftest.$ac_ext >&5
5074
Theodore Ts'oe1052142006-10-21 21:46:47 -04005075 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005076fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005077
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005079 conftest$ac_exeext conftest.$ac_ext
5080LIBS=$ac_check_lib_save_LIBS
5081fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005082{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5083echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005084if test $ac_cv_lib_cposix_strerror = yes; then
5085 LIBS="$LIBS -lcposix"
5086fi
5087
5088
5089
Theodore Ts'oe1052142006-10-21 21:46:47 -04005090{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5091echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005092if test "${ac_cv_c_const+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095 cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h. */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h. */
5101
5102int
5103main ()
5104{
5105/* FIXME: Include the comments suggested by Paul. */
5106#ifndef __cplusplus
5107 /* Ultrix mips cc rejects this. */
5108 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005109 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005110 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005111 char const *const *pcpcc;
5112 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005113 /* NEC SVR4.0.2 mips cc rejects this. */
5114 struct point {int x, y;};
5115 static struct point const zero = {0,0};
5116 /* AIX XL C 1.02.0.0 rejects this.
5117 It does not let you subtract one const X* pointer from another in
5118 an arm of an if-expression whose if-part is not a constant
5119 expression */
5120 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005121 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005122 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005123 ++pcpcc;
5124 ppc = (char**) pcpcc;
5125 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005126 { /* SCO 3.2v4 cc rejects this. */
5127 char *t;
5128 char const *s = 0 ? (char *) 0 : (char const *) 0;
5129
5130 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005131 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005132 }
5133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5134 int x[] = {25, 17};
5135 const int *foo = &x[0];
5136 ++foo;
5137 }
5138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5139 typedef const int *iptr;
5140 iptr p = 0;
5141 ++p;
5142 }
5143 { /* AIX XL C 1.02.0.0 rejects this saying
5144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5145 struct s { int j; const int *ap[3]; };
5146 struct s *b; b->j = 5;
5147 }
5148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5149 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005150 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005151 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005152 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005153#endif
5154
5155 ;
5156 return 0;
5157}
5158_ACEOF
5159rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005160if { (ac_try="$ac_compile"
5161case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164esac
5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005176 ac_cv_c_const=yes
5177else
5178 echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
Theodore Ts'oe1052142006-10-21 21:46:47 -04005181 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005182fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005183
5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005185fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005186{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5187echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005188if test $ac_cv_c_const = no; then
5189
5190cat >>confdefs.h <<\_ACEOF
5191#define const
5192_ACEOF
5193
5194fi
5195
5196
Theodore Ts'oe1052142006-10-21 21:46:47 -04005197 { echo "$as_me:$LINENO: checking for signed" >&5
5198echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005199if test "${bh_cv_c_signed+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5201else
5202 cat >conftest.$ac_ext <<_ACEOF
5203/* confdefs.h. */
5204_ACEOF
5205cat confdefs.h >>conftest.$ac_ext
5206cat >>conftest.$ac_ext <<_ACEOF
5207/* end confdefs.h. */
5208
5209int
5210main ()
5211{
5212signed char x;
5213 ;
5214 return 0;
5215}
5216_ACEOF
5217rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005218if { (ac_try="$ac_compile"
5219case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222esac
5223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005230 (exit $ac_status); } && {
5231 test -z "$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005234 bh_cv_c_signed=yes
5235else
5236 echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
Theodore Ts'oe1052142006-10-21 21:46:47 -04005239 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005240fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005241
5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005244{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5245echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005246 if test $bh_cv_c_signed = no; then
5247
5248cat >>confdefs.h <<\_ACEOF
5249#define signed
5250_ACEOF
5251
5252 fi
5253
Theodore Ts'oe1052142006-10-21 21:46:47 -04005254{ echo "$as_me:$LINENO: checking for inline" >&5
5255echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005256if test "${ac_cv_c_inline+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259 ac_cv_c_inline=no
5260for ac_kw in inline __inline__ __inline; do
5261 cat >conftest.$ac_ext <<_ACEOF
5262/* confdefs.h. */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h. */
5267#ifndef __cplusplus
5268typedef int foo_t;
5269static $ac_kw foo_t static_foo () {return 0; }
5270$ac_kw foo_t foo () {return 0; }
5271#endif
5272
5273_ACEOF
5274rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005275if { (ac_try="$ac_compile"
5276case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279esac
5280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005287 (exit $ac_status); } && {
5288 test -z "$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005291 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005292else
5293 echo "$as_me: failed program was:" >&5
5294sed 's/^/| /' conftest.$ac_ext >&5
5295
Theodore Ts'oe1052142006-10-21 21:46:47 -04005296
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005297fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005298
5299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005301done
5302
5303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005304{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5305echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005306
5307
5308case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005309 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005310 *)
5311 case $ac_cv_c_inline in
5312 no) ac_val=;;
5313 *) ac_val=$ac_cv_c_inline;;
5314 esac
5315 cat >>confdefs.h <<_ACEOF
5316#ifndef __cplusplus
5317#define inline $ac_val
5318#endif
5319_ACEOF
5320 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005321esac
5322
Theodore Ts'oe1052142006-10-21 21:46:47 -04005323{ echo "$as_me:$LINENO: checking for off_t" >&5
5324echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005325if test "${ac_cv_type_off_t+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005327else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005328 cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005335typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005336int
5337main ()
5338{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005339if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005340 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005341if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005342 return 0;
5343 ;
5344 return 0;
5345}
5346_ACEOF
5347rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005348if { (ac_try="$ac_compile"
5349case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352esac
5353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005360 (exit $ac_status); } && {
5361 test -z "$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5363 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005364 ac_cv_type_off_t=yes
5365else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005366 echo "$as_me: failed program was:" >&5
5367sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005368
Theodore Ts'oe1052142006-10-21 21:46:47 -04005369 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005370fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005371
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005373fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005374{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5375echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005376if test $ac_cv_type_off_t = yes; then
5377 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005378else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005379
5380cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005381#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005382_ACEOF
5383
5384fi
5385
Theodore Ts'oe1052142006-10-21 21:46:47 -04005386{ echo "$as_me:$LINENO: checking for size_t" >&5
5387echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005388if test "${ac_cv_type_size_t+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391 cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005398typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005399int
5400main ()
5401{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005402if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005403 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005405 return 0;
5406 ;
5407 return 0;
5408}
5409_ACEOF
5410rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005411if { (ac_try="$ac_compile"
5412case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005427 ac_cv_type_size_t=yes
5428else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005429 echo "$as_me: failed program was:" >&5
5430sed 's/^/| /' conftest.$ac_ext >&5
5431
Theodore Ts'oe1052142006-10-21 21:46:47 -04005432 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005433fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005434
5435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005437{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5438echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005439if test $ac_cv_type_size_t = yes; then
5440 :
5441else
5442
5443cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005444#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005445_ACEOF
5446
5447fi
5448
5449
Theodore Ts'oe1052142006-10-21 21:46:47 -04005450 { echo "$as_me:$LINENO: checking for long long" >&5
5451echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005452if test "${ac_cv_type_long_long+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455 cat >conftest.$ac_ext <<_ACEOF
5456/* confdefs.h. */
5457_ACEOF
5458cat confdefs.h >>conftest.$ac_ext
5459cat >>conftest.$ac_ext <<_ACEOF
5460/* end confdefs.h. */
5461long long ll = 1LL; int i = 63;
5462int
5463main ()
5464{
5465long long llmax = (long long) -1;
5466 return ll << i | ll >> i | llmax / ll | llmax % ll;
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005472if { (ac_try="$ac_link"
5473case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest$ac_exeext &&
5488 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005489 ac_cv_type_long_long=yes
5490else
5491 echo "$as_me: failed program was:" >&5
5492sed 's/^/| /' conftest.$ac_ext >&5
5493
Theodore Ts'oe1052142006-10-21 21:46:47 -04005494 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005495fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005496
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005498 conftest$ac_exeext conftest.$ac_ext
5499fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005500{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5501echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005502 if test $ac_cv_type_long_long = yes; then
5503
5504cat >>confdefs.h <<\_ACEOF
5505#define HAVE_LONG_LONG 1
5506_ACEOF
5507
5508 fi
5509
5510
Theodore Ts'oe1052142006-10-21 21:46:47 -04005511 { echo "$as_me:$LINENO: checking for long double" >&5
5512echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005513if test "${gt_cv_c_long_double+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 if test "$GCC" = yes; then
5517 gt_cv_c_long_double=yes
5518 else
5519 cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h. */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h. */
5525
5526 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5527 long double foo = 0.0;
5528 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5529 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5530
5531int
5532main ()
5533{
5534
5535 ;
5536 return 0;
5537}
5538_ACEOF
5539rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005540if { (ac_try="$ac_compile"
5541case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544esac
5545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005552 (exit $ac_status); } && {
5553 test -z "$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005556 gt_cv_c_long_double=yes
5557else
5558 echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
5560
Theodore Ts'oe1052142006-10-21 21:46:47 -04005561 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005563
5564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005565 fi
5566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005567{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5568echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005569 if test $gt_cv_c_long_double = yes; then
5570
5571cat >>confdefs.h <<\_ACEOF
5572#define HAVE_LONG_DOUBLE 1
5573_ACEOF
5574
5575 fi
5576
5577
Theodore Ts'oe1052142006-10-21 21:46:47 -04005578 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5579echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005580if test "${gt_cv_c_wchar_t+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583 cat >conftest.$ac_ext <<_ACEOF
5584/* confdefs.h. */
5585_ACEOF
5586cat confdefs.h >>conftest.$ac_ext
5587cat >>conftest.$ac_ext <<_ACEOF
5588/* end confdefs.h. */
5589#include <stddef.h>
5590 wchar_t foo = (wchar_t)'\0';
5591int
5592main ()
5593{
5594
5595 ;
5596 return 0;
5597}
5598_ACEOF
5599rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005600if { (ac_try="$ac_compile"
5601case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604esac
5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005616 gt_cv_c_wchar_t=yes
5617else
5618 echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
Theodore Ts'oe1052142006-10-21 21:46:47 -04005621 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005622fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005623
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005625fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005626{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5627echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005628 if test $gt_cv_c_wchar_t = yes; then
5629
5630cat >>confdefs.h <<\_ACEOF
5631#define HAVE_WCHAR_T 1
5632_ACEOF
5633
5634 fi
5635
5636
Theodore Ts'oe1052142006-10-21 21:46:47 -04005637 { echo "$as_me:$LINENO: checking for wint_t" >&5
5638echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639if test "${gt_cv_c_wint_t+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642 cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h. */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h. */
5648#include <wchar.h>
5649 wint_t foo = (wchar_t)'\0';
5650int
5651main ()
5652{
5653
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005659if { (ac_try="$ac_compile"
5660case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663esac
5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005671 (exit $ac_status); } && {
5672 test -z "$ac_c_werror_flag" ||
5673 test ! -s conftest.err
5674 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005675 gt_cv_c_wint_t=yes
5676else
5677 echo "$as_me: failed program was:" >&5
5678sed 's/^/| /' conftest.$ac_ext >&5
5679
Theodore Ts'oe1052142006-10-21 21:46:47 -04005680 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005682
5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005684fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005685{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5686echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005687 if test $gt_cv_c_wint_t = yes; then
5688
5689cat >>confdefs.h <<\_ACEOF
5690#define HAVE_WINT_T 1
5691_ACEOF
5692
5693 fi
5694
5695
Theodore Ts'oe1052142006-10-21 21:46:47 -04005696 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5697echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005698if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701 cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h. */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h. */
5707#include <sys/types.h>
5708#include <inttypes.h>
5709int
5710main ()
5711{
5712uintmax_t i = (uintmax_t) -1;
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005718if { (ac_try="$ac_compile"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005734 jm_ac_cv_header_inttypes_h=yes
5735else
5736 echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5
5738
Theodore Ts'oe1052142006-10-21 21:46:47 -04005739 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005741
5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005744{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5745echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005746 if test $jm_ac_cv_header_inttypes_h = yes; then
5747
5748cat >>confdefs.h <<_ACEOF
5749#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5750_ACEOF
5751
5752 fi
5753
5754
Theodore Ts'oe1052142006-10-21 21:46:47 -04005755 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5756echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005757if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 cat >conftest.$ac_ext <<_ACEOF
5761/* confdefs.h. */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h. */
5766#include <sys/types.h>
5767#include <stdint.h>
5768int
5769main ()
5770{
5771uintmax_t i = (uintmax_t) -1;
5772 ;
5773 return 0;
5774}
5775_ACEOF
5776rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005777if { (ac_try="$ac_compile"
5778case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005793 jm_ac_cv_header_stdint_h=yes
5794else
5795 echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
Theodore Ts'oe1052142006-10-21 21:46:47 -04005798 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005800
5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005803{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5804echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005805 if test $jm_ac_cv_header_stdint_h = yes; then
5806
5807cat >>confdefs.h <<_ACEOF
5808#define HAVE_STDINT_H_WITH_UINTMAX 1
5809_ACEOF
5810
5811 fi
5812
5813
5814
5815
Theodore Ts'oe1052142006-10-21 21:46:47 -04005816 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5817echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005818if test "${gt_cv_c_intmax_t+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820else
5821 cat >conftest.$ac_ext <<_ACEOF
5822/* confdefs.h. */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
5826/* end confdefs.h. */
5827
5828#include <stddef.h>
5829#include <stdlib.h>
5830#if HAVE_STDINT_H_WITH_UINTMAX
5831#include <stdint.h>
5832#endif
5833#if HAVE_INTTYPES_H_WITH_UINTMAX
5834#include <inttypes.h>
5835#endif
5836
5837int
5838main ()
5839{
5840intmax_t x = -1;
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005846if { (ac_try="$ac_compile"
5847case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005858 (exit $ac_status); } && {
5859 test -z "$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005862 gt_cv_c_intmax_t=yes
5863else
5864 echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
Theodore Ts'oe1052142006-10-21 21:46:47 -04005867 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005868fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005869
5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005871fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005872{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5873echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005874 if test $gt_cv_c_intmax_t = yes; then
5875
5876cat >>confdefs.h <<\_ACEOF
5877#define HAVE_INTMAX_T 1
5878_ACEOF
5879
5880 fi
5881
5882
5883
Theodore Ts'oe1052142006-10-21 21:46:47 -04005884 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5885echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886if test "${gt_cv_func_printf_posix+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889
5890 if test "$cross_compiling" = yes; then
5891
5892 cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898
5899#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5900 notposix
5901#endif
5902
5903_ACEOF
5904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905 $EGREP "notposix" >/dev/null 2>&1; then
5906 gt_cv_func_printf_posix="guessing no"
5907else
5908 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005909fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005910rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005912
5913else
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920
5921#include <stdio.h>
5922#include <string.h>
5923/* The string "%2$d %1$d", with dollar characters protected from the shell's
5924 dollar expansion (possibly an autoconf bug). */
5925static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5926static char buf[100];
5927int main ()
5928{
5929 sprintf (buf, format, 33, 55);
5930 return (strcmp (buf, "55 33") != 0);
5931}
5932_ACEOF
5933rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005934if { (ac_try="$ac_link"
5935case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005944 { (case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 gt_cv_func_printf_posix=yes
5954else
5955 echo "$as_me: program exited with status $ac_status" >&5
5956echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959( exit $ac_status )
5960gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005961fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005962rm -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 -05005963fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005964
Theodore Ts'oe1052142006-10-21 21:46:47 -04005965
5966
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005968{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5969echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005970 case $gt_cv_func_printf_posix in
5971 *yes)
5972
5973cat >>confdefs.h <<\_ACEOF
5974#define HAVE_POSIX_PRINTF 1
5975_ACEOF
5976
5977 ;;
5978 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005979
5980# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5981# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005982{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5983echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005984if test "${ac_cv_working_alloca_h+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005986else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005987 cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h. */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005993#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994int
5995main ()
5996{
5997char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005998 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999 ;
6000 return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006004if { (ac_try="$ac_link"
6005case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008esac
6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest$ac_exeext &&
6020 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006021 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006022else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006023 echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006025
Theodore Ts'oe1052142006-10-21 21:46:47 -04006026 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006028
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030 conftest$ac_exeext conftest.$ac_ext
6031fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006032{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6033echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034if test $ac_cv_working_alloca_h = yes; then
6035
6036cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006037#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006038_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006039
6040fi
6041
Theodore Ts'oe1052142006-10-21 21:46:47 -04006042{ echo "$as_me:$LINENO: checking for alloca" >&5
6043echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006044if test "${ac_cv_func_alloca_works+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006046else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047 cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006053#ifdef __GNUC__
6054# define alloca __builtin_alloca
6055#else
6056# ifdef _MSC_VER
6057# include <malloc.h>
6058# define alloca _alloca
6059# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006060# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006061# include <alloca.h>
6062# else
6063# ifdef _AIX
6064 #pragma alloca
6065# else
6066# ifndef alloca /* predefined by HP cc +Olibcalls */
6067char *alloca ();
6068# endif
6069# endif
6070# endif
6071# endif
6072#endif
6073
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074int
6075main ()
6076{
6077char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006078 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079 ;
6080 return 0;
6081}
6082_ACEOF
6083rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006084if { (ac_try="$ac_link"
6085case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest$ac_exeext &&
6100 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006101 ac_cv_func_alloca_works=yes
6102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006103 echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006105
Theodore Ts'oe1052142006-10-21 21:46:47 -04006106 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006108
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006110 conftest$ac_exeext conftest.$ac_ext
6111fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006112{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6113echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006115if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006116
6117cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006118#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006119_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006120
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006121else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6123# that cause trouble. Some versions do not even contain alloca or
6124# contain a buggy version. If you still want to use their alloca,
6125# use ar to extract alloca.o from them instead of compiling alloca.c.
6126
Theodore Ts'oe1052142006-10-21 21:46:47 -04006127ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006128
6129cat >>confdefs.h <<\_ACEOF
6130#define C_ALLOCA 1
6131_ACEOF
6132
6133
Theodore Ts'oe1052142006-10-21 21:46:47 -04006134{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6135echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136if test "${ac_cv_os_cray+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139 cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h. */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006145#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006146webecray
6147#else
6148wenotbecray
6149#endif
6150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006154 ac_cv_os_cray=yes
6155else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006156 ac_cv_os_cray=no
6157fi
6158rm -f conftest*
6159
6160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006161{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6162echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006163if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006164 for ac_func in _getb67 GETB67 getb67; do
6165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006166{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6168if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006170else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171 cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h. */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h. */
6177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6179#define $ac_func innocuous_$ac_func
6180
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006181/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182 which can conflict with char $ac_func (); below.
6183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6184 <limits.h> exists even on freestanding compilers. */
6185
6186#ifdef __STDC__
6187# include <limits.h>
6188#else
6189# include <assert.h>
6190#endif
6191
6192#undef $ac_func
6193
Theodore Ts'oe1052142006-10-21 21:46:47 -04006194/* Override any GCC internal prototype to avoid an error.
6195 Use char because int might match the return type of a GCC
6196 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006197#ifdef __cplusplus
6198extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006200char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006201/* The GNU C library defines this for functions which it implements
6202 to always fail with ENOSYS. Some functions are actually named
6203 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006204#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006205choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006206#endif
6207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006208int
6209main ()
6210{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006211return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006212 ;
6213 return 0;
6214}
6215_ACEOF
6216rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006217if { (ac_try="$ac_link"
6218case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221esac
6222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest$ac_exeext &&
6233 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006234 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006235else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006236 echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006238
Theodore Ts'oe1052142006-10-21 21:46:47 -04006239 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006240fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006241
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006243 conftest$ac_exeext conftest.$ac_ext
6244fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006245ac_res=`eval echo '${'$as_ac_var'}'`
6246 { echo "$as_me:$LINENO: result: $ac_res" >&5
6247echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006248if test `eval echo '${'$as_ac_var'}'` = yes; then
6249
6250cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006251#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006252_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006254 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006255fi
6256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006257 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006258fi
6259
Theodore Ts'oe1052142006-10-21 21:46:47 -04006260{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6261echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006262if test "${ac_cv_c_stack_direction+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006264else
6265 if test "$cross_compiling" = yes; then
6266 ac_cv_c_stack_direction=0
6267else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006268 cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h. */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006274$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006276find_stack_direction ()
6277{
6278 static char *addr = 0;
6279 auto char dummy;
6280 if (addr == 0)
6281 {
6282 addr = &dummy;
6283 return find_stack_direction ();
6284 }
6285 else
6286 return (&dummy > addr) ? 1 : -1;
6287}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006288
6289int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006290main ()
6291{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006292 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006293}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006294_ACEOF
6295rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006296if { (ac_try="$ac_link"
6297case "(($ac_try" in
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6300esac
6301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006315 ac_cv_c_stack_direction=1
6316else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006317 echo "$as_me: program exited with status $ac_status" >&5
6318echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006321( exit $ac_status )
6322ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006323fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006324rm -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 -05006325fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006326
6327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006328fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006329{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6330echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006332cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006333#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006334_ACEOF
6335
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006336
6337fi
6338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006339
6340
6341for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006342do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006348 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006350ac_res=`eval echo '${'$as_ac_Header'}'`
6351 { echo "$as_me:$LINENO: result: $ac_res" >&5
6352echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006353else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006354 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006355{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h. */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h. */
6363$ac_includes_default
6364#include <$ac_header>
6365_ACEOF
6366rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006367if { (ac_try="$ac_compile"
6368case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371esac
6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006379 (exit $ac_status); } && {
6380 test -z "$ac_c_werror_flag" ||
6381 test ! -s conftest.err
6382 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006383 ac_header_compiler=yes
6384else
6385 echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
Theodore Ts'oe1052142006-10-21 21:46:47 -04006388 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006390
6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6393echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006394
6395# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006396{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006398cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h. */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h. */
6404#include <$ac_header>
6405_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006406if { (ac_try="$ac_cpp conftest.$ac_ext"
6407case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410esac
6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006418 (exit $ac_status); } >/dev/null && {
6419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6420 test ! -s conftest.err
6421 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422 ac_header_preproc=yes
6423else
6424 echo "$as_me: failed program was:" >&5
6425sed 's/^/| /' conftest.$ac_ext >&5
6426
6427 ac_header_preproc=no
6428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006430rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006431{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6432echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006433
6434# So? What about this header?
6435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6436 yes:no: )
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6441 ac_header_preproc=yes
6442 ;;
6443 no:yes:* )
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006457 ;;
6458esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006459{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463else
6464 eval "$as_ac_Header=\$ac_header_preproc"
6465fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006466ac_res=`eval echo '${'$as_ac_Header'}'`
6467 { echo "$as_me:$LINENO: result: $ac_res" >&5
6468echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006469
6470fi
6471if test `eval echo '${'$as_ac_Header'}'` = yes; then
6472 cat >>confdefs.h <<_ACEOF
6473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474_ACEOF
6475
6476fi
6477
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006478done
6479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006481for ac_func in getpagesize
6482do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006488else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489 cat >conftest.$ac_ext <<_ACEOF
6490/* confdefs.h. */
6491_ACEOF
6492cat confdefs.h >>conftest.$ac_ext
6493cat >>conftest.$ac_ext <<_ACEOF
6494/* end confdefs.h. */
6495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6497#define $ac_func innocuous_$ac_func
6498
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006499/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006500 which can conflict with char $ac_func (); below.
6501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6502 <limits.h> exists even on freestanding compilers. */
6503
6504#ifdef __STDC__
6505# include <limits.h>
6506#else
6507# include <assert.h>
6508#endif
6509
6510#undef $ac_func
6511
Theodore Ts'oe1052142006-10-21 21:46:47 -04006512/* Override any GCC internal prototype to avoid an error.
6513 Use char because int might match the return type of a GCC
6514 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006515#ifdef __cplusplus
6516extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006519/* The GNU C library defines this for functions which it implements
6520 to always fail with ENOSYS. Some functions are actually named
6521 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006522#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006523choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006524#endif
6525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006526int
6527main ()
6528{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006529return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530 ;
6531 return 0;
6532}
6533_ACEOF
6534rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006535if { (ac_try="$ac_link"
6536case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539esac
6540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006547 (exit $ac_status); } && {
6548 test -z "$ac_c_werror_flag" ||
6549 test ! -s conftest.err
6550 } && test -s conftest$ac_exeext &&
6551 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006553else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006554 echo "$as_me: failed program was:" >&5
6555sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006556
Theodore Ts'oe1052142006-10-21 21:46:47 -04006557 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006558fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006559
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561 conftest$ac_exeext conftest.$ac_ext
6562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006563ac_res=`eval echo '${'$as_ac_var'}'`
6564 { echo "$as_me:$LINENO: result: $ac_res" >&5
6565echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006566if test `eval echo '${'$as_ac_var'}'` = yes; then
6567 cat >>confdefs.h <<_ACEOF
6568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6569_ACEOF
6570
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006571fi
6572done
6573
Theodore Ts'oe1052142006-10-21 21:46:47 -04006574{ echo "$as_me:$LINENO: checking for working mmap" >&5
6575echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006576if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006578else
6579 if test "$cross_compiling" = yes; then
6580 ac_cv_func_mmap_fixed_mapped=no
6581else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006582 cat >conftest.$ac_ext <<_ACEOF
6583/* confdefs.h. */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h. */
6588$ac_includes_default
6589/* malloc might have been renamed as rpl_malloc. */
6590#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006591
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006592/* Thanks to Mike Haertel and Jim Avera for this test.
6593 Here is a matrix of mmap possibilities:
6594 mmap private not fixed
6595 mmap private fixed at somewhere currently unmapped
6596 mmap private fixed at somewhere already mapped
6597 mmap shared not fixed
6598 mmap shared fixed at somewhere currently unmapped
6599 mmap shared fixed at somewhere already mapped
6600 For private mappings, we should verify that changes cannot be read()
6601 back from the file, nor mmap's back from the file at a different
6602 address. (There have been systems where private was not correctly
6603 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006604 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006605 like early versions of FreeBSD and possibly contemporary NetBSD.)
6606 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006607 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006608
6609 Grep wants private fixed already mapped.
6610 The main things grep needs to know about mmap are:
6611 * does it exist and is it safe to write into the mmap'd area
6612 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006613
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006614#include <fcntl.h>
6615#include <sys/mman.h>
6616
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006617#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006618char *malloc ();
6619#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006621/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006622#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006623/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006624# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006625# define HAVE_SYS_PARAM_H 1
6626# endif
6627
6628# ifdef _SC_PAGESIZE
6629# define getpagesize() sysconf(_SC_PAGESIZE)
6630# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006631# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006632# include <sys/param.h>
6633# ifdef EXEC_PAGESIZE
6634# define getpagesize() EXEC_PAGESIZE
6635# else /* no EXEC_PAGESIZE */
6636# ifdef NBPG
6637# define getpagesize() NBPG * CLSIZE
6638# ifndef CLSIZE
6639# define CLSIZE 1
6640# endif /* no CLSIZE */
6641# else /* no NBPG */
6642# ifdef NBPC
6643# define getpagesize() NBPC
6644# else /* no NBPC */
6645# ifdef PAGESIZE
6646# define getpagesize() PAGESIZE
6647# endif /* PAGESIZE */
6648# endif /* no NBPC */
6649# endif /* no NBPG */
6650# endif /* no EXEC_PAGESIZE */
6651# else /* no HAVE_SYS_PARAM_H */
6652# define getpagesize() 8192 /* punt totally */
6653# endif /* no HAVE_SYS_PARAM_H */
6654# endif /* no _SC_PAGESIZE */
6655
6656#endif /* no HAVE_GETPAGESIZE */
6657
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006658int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006659main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006660{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661 char *data, *data2, *data3;
6662 int i, pagesize;
6663 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006664
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006667 /* First, make a file with some known garbage in it. */
6668 data = (char *) malloc (pagesize);
6669 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006670 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006671 for (i = 0; i < pagesize; ++i)
6672 *(data + i) = rand ();
6673 umask (0);
6674 fd = creat ("conftest.mmap", 0600);
6675 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006678 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681 /* Next, try to mmap the file at a fixed address which already has
6682 something else allocated at it. If we can, also make sure that
6683 we see the same garbage. */
6684 fd = open ("conftest.mmap", O_RDWR);
6685 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006686 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006687 data2 = (char *) malloc (2 * pagesize);
6688 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006689 return 1;
6690 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006693 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694 for (i = 0; i < pagesize; ++i)
6695 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006696 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006697
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006698 /* Finally, make sure that changes to the mapped area do not
6699 percolate back to the file as seen by read(). (This is a bug on
6700 some variants of i386 svr4.0.) */
6701 for (i = 0; i < pagesize; ++i)
6702 *(data2 + i) = *(data2 + i) + 1;
6703 data3 = (char *) malloc (pagesize);
6704 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006705 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006707 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708 for (i = 0; i < pagesize; ++i)
6709 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006710 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006711 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006712 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006713}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006714_ACEOF
6715rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006716if { (ac_try="$ac_link"
6717case "(($ac_try" in
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6720esac
6721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006726 { (case "(($ac_try" in
6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728 *) ac_try_echo=$ac_try;;
6729esac
6730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6731 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006735 ac_cv_func_mmap_fixed_mapped=yes
6736else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737 echo "$as_me: program exited with status $ac_status" >&5
6738echo "$as_me: failed program was:" >&5
6739sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006740
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006741( exit $ac_status )
6742ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006744rm -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 -05006745fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006746
6747
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006748fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006749{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6750echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006751if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006752
6753cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006754#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006756
6757fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006759
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006760
Theodore Ts'oe1052142006-10-21 21:46:47 -04006761 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6762echo $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 -05006763if test "${ac_cv_gnu_library_2_1+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006765else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766 cat >conftest.$ac_ext <<_ACEOF
6767/* confdefs.h. */
6768_ACEOF
6769cat confdefs.h >>conftest.$ac_ext
6770cat >>conftest.$ac_ext <<_ACEOF
6771/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006772
6773#include <features.h>
6774#ifdef __GNU_LIBRARY__
6775 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6776 Lucky GNU user
6777 #endif
6778#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006779
6780_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006782 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006783 ac_cv_gnu_library_2_1=yes
6784else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006785 ac_cv_gnu_library_2_1=no
6786fi
6787rm -f conftest*
6788
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789
6790
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006792{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6793echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006794
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006795 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006796
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006797
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006798
6799
Theodore Ts'oe1052142006-10-21 21:46:47 -04006800 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6801echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006802if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006804else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006806 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006808 # Guess based on the CPU.
6809 case "$host_cpu" in
6810 alpha* | i3456786 | m68k | s390*)
6811 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6812 *)
6813 gt_cv_int_divbyzero_sigfpe="guessing no";;
6814 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006816else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006817 cat >conftest.$ac_ext <<_ACEOF
6818/* confdefs.h. */
6819_ACEOF
6820cat confdefs.h >>conftest.$ac_ext
6821cat >>conftest.$ac_ext <<_ACEOF
6822/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006823
6824#include <stdlib.h>
6825#include <signal.h>
6826
6827static void
6828#ifdef __cplusplus
6829sigfpe_handler (int sig)
6830#else
6831sigfpe_handler (sig) int sig;
6832#endif
6833{
6834 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6835 exit (sig != SIGFPE);
6836}
6837
6838int x = 1;
6839int y = 0;
6840int z;
6841int nan;
6842
6843int main ()
6844{
6845 signal (SIGFPE, sigfpe_handler);
6846/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6847#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6848 signal (SIGTRAP, sigfpe_handler);
6849#endif
6850/* Linux/SPARC yields signal SIGILL. */
6851#if defined (__sparc__) && defined (__linux__)
6852 signal (SIGILL, sigfpe_handler);
6853#endif
6854
6855 z = x / y;
6856 nan = y / y;
6857 exit (1);
6858}
6859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860_ACEOF
6861rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006862if { (ac_try="$ac_link"
6863case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866esac
6867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006872 { (case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875esac
6876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006881 gt_cv_int_divbyzero_sigfpe=yes
6882else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883 echo "$as_me: program exited with status $ac_status" >&5
6884echo "$as_me: failed program was:" >&5
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887( exit $ac_status )
6888gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006889fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006890rm -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 -04006891fi
6892
Theodore Ts'oe1052142006-10-21 21:46:47 -04006893
6894
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006896{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6897echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006898 case "$gt_cv_int_divbyzero_sigfpe" in
6899 *yes) value=1;;
6900 *) value=0;;
6901 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902
6903cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006904#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006906
6907
6908
Theodore Ts'oe1052142006-10-21 21:46:47 -04006909 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6910echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914 cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h. */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h. */
6920unsigned long long ull = 1ULL; int i = 63;
6921int
6922main ()
6923{
6924unsigned long long ullmax = (unsigned long long) -1;
6925 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6926 ;
6927 return 0;
6928}
6929_ACEOF
6930rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006931if { (ac_try="$ac_link"
6932case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935esac
6936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006943 (exit $ac_status); } && {
6944 test -z "$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 } && test -s conftest$ac_exeext &&
6947 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948 ac_cv_type_unsigned_long_long=yes
6949else
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
Theodore Ts'oe1052142006-10-21 21:46:47 -04006953 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006954fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006955
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957 conftest$ac_exeext conftest.$ac_ext
6958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006959{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6960echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006961 if test $ac_cv_type_unsigned_long_long = yes; then
6962
6963cat >>confdefs.h <<\_ACEOF
6964#define HAVE_UNSIGNED_LONG_LONG 1
6965_ACEOF
6966
6967 fi
6968
6969
6970
6971
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006972 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 -05006973
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006974 test $ac_cv_type_unsigned_long_long = yes \
6975 && ac_type='unsigned long long' \
6976 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006977
6978cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006979#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980_ACEOF
6981
6982 else
6983
6984cat >>confdefs.h <<\_ACEOF
6985#define HAVE_UINTMAX_T 1
6986_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006987
6988 fi
6989
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006990
Theodore Ts'oe1052142006-10-21 21:46:47 -04006991 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6992echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006993if test "${gt_cv_header_inttypes_h+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996
6997 cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h. */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007003#include <sys/types.h>
7004#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005int
7006main ()
7007{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007008
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007009 ;
7010 return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007014if { (ac_try="$ac_compile"
7015case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018esac
7019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007030 gt_cv_header_inttypes_h=yes
7031else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007032 echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007034
Theodore Ts'oe1052142006-10-21 21:46:47 -04007035 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007036fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007037
7038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039
7040fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007041{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7042echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007043 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007044
7045cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007046#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007048
7049 fi
7050
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007053 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007054 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7055echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007058else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059
7060 cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h. */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007066#include <inttypes.h>
7067#ifdef PRId32
7068char *p = PRId32;
7069#endif
7070
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007071int
7072main ()
7073{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007074
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075 ;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007080if { (ac_try="$ac_compile"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007092 (exit $ac_status); } && {
7093 test -z "$ac_c_werror_flag" ||
7094 test ! -s conftest.err
7095 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007096 gt_cv_inttypes_pri_broken=no
7097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098 echo "$as_me: failed program was:" >&5
7099sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007100
Theodore Ts'oe1052142006-10-21 21:46:47 -04007101 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007102fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007103
7104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007105
7106fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007107{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7108echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007109 fi
7110 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111
7112cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007113#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007114_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007115
7116 fi
7117
7118
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120for ac_header in stdint.h
7121do
7122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007129ac_res=`eval echo '${'$as_ac_Header'}'`
7130 { echo "$as_me:$LINENO: result: $ac_res" >&5
7131echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132else
7133 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007134{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007136cat >conftest.$ac_ext <<_ACEOF
7137/* confdefs.h. */
7138_ACEOF
7139cat confdefs.h >>conftest.$ac_ext
7140cat >>conftest.$ac_ext <<_ACEOF
7141/* end confdefs.h. */
7142$ac_includes_default
7143#include <$ac_header>
7144_ACEOF
7145rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007146if { (ac_try="$ac_compile"
7147case "(($ac_try" in
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7150esac
7151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007153 ac_status=$?
7154 grep -v '^ *+' conftest.er1 >conftest.err
7155 rm -f conftest.er1
7156 cat conftest.err >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007162 ac_header_compiler=yes
7163else
7164 echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
Theodore Ts'oe1052142006-10-21 21:46:47 -04007167 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007168fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007169
7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7172echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173
7174# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007175{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h. */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h. */
7183#include <$ac_header>
7184_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007185if { (ac_try="$ac_cpp conftest.$ac_ext"
7186case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189esac
7190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007197 (exit $ac_status); } >/dev/null && {
7198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201 ac_header_preproc=yes
7202else
7203 echo "$as_me: failed program was:" >&5
7204sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 ac_header_preproc=no
7207fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007208
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007209rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7211echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007212
7213# So? What about this header?
7214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7215 yes:no: )
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7220 ac_header_preproc=yes
7221 ;;
7222 no:yes:* )
7223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236 ;;
7237esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007238{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242else
7243 eval "$as_ac_Header=\$ac_header_preproc"
7244fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007245ac_res=`eval echo '${'$as_ac_Header'}'`
7246 { echo "$as_me:$LINENO: result: $ac_res" >&5
7247echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007248
7249fi
7250if test `eval echo '${'$as_ac_Header'}'` = yes; then
7251 cat >>confdefs.h <<_ACEOF
7252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7253_ACEOF
7254
7255fi
7256
7257done
7258
Theodore Ts'oe1052142006-10-21 21:46:47 -04007259 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7260echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261 result=
7262 cat >conftest.$ac_ext <<_ACEOF
7263/* confdefs.h. */
7264_ACEOF
7265cat confdefs.h >>conftest.$ac_ext
7266cat >>conftest.$ac_ext <<_ACEOF
7267/* end confdefs.h. */
7268
7269#include <limits.h>
7270#if HAVE_STDINT_H
7271#include <stdint.h>
7272#endif
7273#ifdef SIZE_MAX
7274Found it
7275#endif
7276
7277_ACEOF
7278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7279 $EGREP "Found it" >/dev/null 2>&1; then
7280 result=yes
7281fi
7282rm -f conftest*
7283
7284 if test -z "$result"; then
7285 if test "$cross_compiling" = yes; then
7286 # Depending upon the size, compute the lo and hi bounds.
7287cat >conftest.$ac_ext <<_ACEOF
7288/* confdefs.h. */
7289_ACEOF
7290cat confdefs.h >>conftest.$ac_ext
7291cat >>conftest.$ac_ext <<_ACEOF
7292/* end confdefs.h. */
7293#include <stddef.h>
7294int
7295main ()
7296{
7297static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7298test_array [0] = 0
7299
7300 ;
7301 return 0;
7302}
7303_ACEOF
7304rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007305if { (ac_try="$ac_compile"
7306case "(($ac_try" in
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7309esac
7310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321 ac_lo=0 ac_mid=0
7322 while :; do
7323 cat >conftest.$ac_ext <<_ACEOF
7324/* confdefs.h. */
7325_ACEOF
7326cat confdefs.h >>conftest.$ac_ext
7327cat >>conftest.$ac_ext <<_ACEOF
7328/* end confdefs.h. */
7329#include <stddef.h>
7330int
7331main ()
7332{
7333static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7334test_array [0] = 0
7335
7336 ;
7337 return 0;
7338}
7339_ACEOF
7340rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007341if { (ac_try="$ac_compile"
7342case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345esac
7346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007357 ac_hi=$ac_mid; break
7358else
7359 echo "$as_me: failed program was:" >&5
7360sed 's/^/| /' conftest.$ac_ext >&5
7361
Theodore Ts'oe1052142006-10-21 21:46:47 -04007362 ac_lo=`expr $ac_mid + 1`
7363 if test $ac_lo -le $ac_mid; then
7364 ac_lo= ac_hi=
7365 break
7366 fi
7367 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007368fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007369
7370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007371 done
7372else
7373 echo "$as_me: failed program was:" >&5
7374sed 's/^/| /' conftest.$ac_ext >&5
7375
Theodore Ts'oe1052142006-10-21 21:46:47 -04007376 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007377/* confdefs.h. */
7378_ACEOF
7379cat confdefs.h >>conftest.$ac_ext
7380cat >>conftest.$ac_ext <<_ACEOF
7381/* end confdefs.h. */
7382#include <stddef.h>
7383int
7384main ()
7385{
7386static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7387test_array [0] = 0
7388
7389 ;
7390 return 0;
7391}
7392_ACEOF
7393rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007394if { (ac_try="$ac_compile"
7395case "(($ac_try" in
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7398esac
7399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007406 (exit $ac_status); } && {
7407 test -z "$ac_c_werror_flag" ||
7408 test ! -s conftest.err
7409 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007410 ac_hi=-1 ac_mid=-1
7411 while :; do
7412 cat >conftest.$ac_ext <<_ACEOF
7413/* confdefs.h. */
7414_ACEOF
7415cat confdefs.h >>conftest.$ac_ext
7416cat >>conftest.$ac_ext <<_ACEOF
7417/* end confdefs.h. */
7418#include <stddef.h>
7419int
7420main ()
7421{
7422static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7423test_array [0] = 0
7424
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007430if { (ac_try="$ac_compile"
7431case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434esac
7435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007442 (exit $ac_status); } && {
7443 test -z "$ac_c_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007446 ac_lo=$ac_mid; break
7447else
7448 echo "$as_me: failed program was:" >&5
7449sed 's/^/| /' conftest.$ac_ext >&5
7450
Theodore Ts'oe1052142006-10-21 21:46:47 -04007451 ac_hi=`expr '(' $ac_mid ')' - 1`
7452 if test $ac_mid -le $ac_hi; then
7453 ac_lo= ac_hi=
7454 break
7455 fi
7456 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007457fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007458
7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007460 done
7461else
7462 echo "$as_me: failed program was:" >&5
7463sed 's/^/| /' conftest.$ac_ext >&5
7464
Theodore Ts'oe1052142006-10-21 21:46:47 -04007465 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007466fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007467
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007469fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007470
7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007472# Binary search between lo and hi bounds.
7473while test "x$ac_lo" != "x$ac_hi"; do
7474 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7475 cat >conftest.$ac_ext <<_ACEOF
7476/* confdefs.h. */
7477_ACEOF
7478cat confdefs.h >>conftest.$ac_ext
7479cat >>conftest.$ac_ext <<_ACEOF
7480/* end confdefs.h. */
7481#include <stddef.h>
7482int
7483main ()
7484{
7485static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7486test_array [0] = 0
7487
7488 ;
7489 return 0;
7490}
7491_ACEOF
7492rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007493if { (ac_try="$ac_compile"
7494case "(($ac_try" in
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7497esac
7498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007505 (exit $ac_status); } && {
7506 test -z "$ac_c_werror_flag" ||
7507 test ! -s conftest.err
7508 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509 ac_hi=$ac_mid
7510else
7511 echo "$as_me: failed program was:" >&5
7512sed 's/^/| /' conftest.$ac_ext >&5
7513
Theodore Ts'oe1052142006-10-21 21:46:47 -04007514 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007515fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007516
7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518done
7519case $ac_lo in
7520?*) res_hi=$ac_lo;;
7521'') result=? ;;
7522esac
7523else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524 cat >conftest.$ac_ext <<_ACEOF
7525/* confdefs.h. */
7526_ACEOF
7527cat confdefs.h >>conftest.$ac_ext
7528cat >>conftest.$ac_ext <<_ACEOF
7529/* end confdefs.h. */
7530#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007531static long int longval () { return ~(size_t)0 / 10; }
7532static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007533#include <stdio.h>
7534#include <stdlib.h>
7535int
7536main ()
7537{
7538
7539 FILE *f = fopen ("conftest.val", "w");
7540 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007541 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542 if ((~(size_t)0 / 10) < 0)
7543 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007544 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007546 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007547 fprintf (f, "%ld\n", i);
7548 }
7549 else
7550 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007551 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007552 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007553 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007554 fprintf (f, "%lu\n", i);
7555 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007556 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007557
7558 ;
7559 return 0;
7560}
7561_ACEOF
7562rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007563if { (ac_try="$ac_link"
7564case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7567esac
7568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007573 { (case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576esac
7577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 res_hi=`cat conftest.val`
7583else
7584 echo "$as_me: program exited with status $ac_status" >&5
7585echo "$as_me: failed program was:" >&5
7586sed 's/^/| /' conftest.$ac_ext >&5
7587
7588( exit $ac_status )
7589result=?
7590fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007591rm -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 -05007592fi
7593rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007595 if test "$cross_compiling" = yes; then
7596 # Depending upon the size, compute the lo and hi bounds.
7597cat >conftest.$ac_ext <<_ACEOF
7598/* confdefs.h. */
7599_ACEOF
7600cat confdefs.h >>conftest.$ac_ext
7601cat >>conftest.$ac_ext <<_ACEOF
7602/* end confdefs.h. */
7603#include <stddef.h>
7604int
7605main ()
7606{
7607static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7608test_array [0] = 0
7609
7610 ;
7611 return 0;
7612}
7613_ACEOF
7614rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007615if { (ac_try="$ac_compile"
7616case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619esac
7620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631 ac_lo=0 ac_mid=0
7632 while :; do
7633 cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h. */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h. */
7639#include <stddef.h>
7640int
7641main ()
7642{
7643static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7644test_array [0] = 0
7645
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007651if { (ac_try="$ac_compile"
7652case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655esac
7656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007663 (exit $ac_status); } && {
7664 test -z "$ac_c_werror_flag" ||
7665 test ! -s conftest.err
7666 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007667 ac_hi=$ac_mid; break
7668else
7669 echo "$as_me: failed program was:" >&5
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
Theodore Ts'oe1052142006-10-21 21:46:47 -04007672 ac_lo=`expr $ac_mid + 1`
7673 if test $ac_lo -le $ac_mid; then
7674 ac_lo= ac_hi=
7675 break
7676 fi
7677 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007679
7680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007681 done
7682else
7683 echo "$as_me: failed program was:" >&5
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
Theodore Ts'oe1052142006-10-21 21:46:47 -04007686 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007687/* confdefs.h. */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h. */
7692#include <stddef.h>
7693int
7694main ()
7695{
7696static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7697test_array [0] = 0
7698
7699 ;
7700 return 0;
7701}
7702_ACEOF
7703rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007704if { (ac_try="$ac_compile"
7705case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7708esac
7709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007720 ac_hi=-1 ac_mid=-1
7721 while :; do
7722 cat >conftest.$ac_ext <<_ACEOF
7723/* confdefs.h. */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h. */
7728#include <stddef.h>
7729int
7730main ()
7731{
7732static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7733test_array [0] = 0
7734
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007740if { (ac_try="$ac_compile"
7741case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744esac
7745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007756 ac_lo=$ac_mid; break
7757else
7758 echo "$as_me: failed program was:" >&5
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
Theodore Ts'oe1052142006-10-21 21:46:47 -04007761 ac_hi=`expr '(' $ac_mid ')' - 1`
7762 if test $ac_mid -le $ac_hi; then
7763 ac_lo= ac_hi=
7764 break
7765 fi
7766 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007767fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007768
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007770 done
7771else
7772 echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
Theodore Ts'oe1052142006-10-21 21:46:47 -04007775 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007776fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007777
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007779fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007780
7781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007782# Binary search between lo and hi bounds.
7783while test "x$ac_lo" != "x$ac_hi"; do
7784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7785 cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h. */
7791#include <stddef.h>
7792int
7793main ()
7794{
7795static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7796test_array [0] = 0
7797
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007803if { (ac_try="$ac_compile"
7804case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807esac
7808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007810 ac_status=$?
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007815 (exit $ac_status); } && {
7816 test -z "$ac_c_werror_flag" ||
7817 test ! -s conftest.err
7818 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007819 ac_hi=$ac_mid
7820else
7821 echo "$as_me: failed program was:" >&5
7822sed 's/^/| /' conftest.$ac_ext >&5
7823
Theodore Ts'oe1052142006-10-21 21:46:47 -04007824 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007825fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007826
7827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007828done
7829case $ac_lo in
7830?*) res_lo=$ac_lo;;
7831'') result=? ;;
7832esac
7833else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834 cat >conftest.$ac_ext <<_ACEOF
7835/* confdefs.h. */
7836_ACEOF
7837cat confdefs.h >>conftest.$ac_ext
7838cat >>conftest.$ac_ext <<_ACEOF
7839/* end confdefs.h. */
7840#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007841static long int longval () { return ~(size_t)0 % 10; }
7842static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007843#include <stdio.h>
7844#include <stdlib.h>
7845int
7846main ()
7847{
7848
7849 FILE *f = fopen ("conftest.val", "w");
7850 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007851 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007852 if ((~(size_t)0 % 10) < 0)
7853 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007854 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007855 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007856 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007857 fprintf (f, "%ld\n", i);
7858 }
7859 else
7860 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007861 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007862 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007863 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007864 fprintf (f, "%lu\n", i);
7865 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007866 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007867
7868 ;
7869 return 0;
7870}
7871_ACEOF
7872rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007873if { (ac_try="$ac_link"
7874case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877esac
7878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886esac
7887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 res_lo=`cat conftest.val`
7893else
7894 echo "$as_me: program exited with status $ac_status" >&5
7895echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898( exit $ac_status )
7899result=?
7900fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007901rm -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 -05007902fi
7903rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007904
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007905 if test "$cross_compiling" = yes; then
7906 # Depending upon the size, compute the lo and hi bounds.
7907cat >conftest.$ac_ext <<_ACEOF
7908/* confdefs.h. */
7909_ACEOF
7910cat confdefs.h >>conftest.$ac_ext
7911cat >>conftest.$ac_ext <<_ACEOF
7912/* end confdefs.h. */
7913#include <stddef.h>
7914int
7915main ()
7916{
7917static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7918test_array [0] = 0
7919
7920 ;
7921 return 0;
7922}
7923_ACEOF
7924rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007925if { (ac_try="$ac_compile"
7926case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929esac
7930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007941 ac_lo=0 ac_mid=0
7942 while :; do
7943 cat >conftest.$ac_ext <<_ACEOF
7944/* confdefs.h. */
7945_ACEOF
7946cat confdefs.h >>conftest.$ac_ext
7947cat >>conftest.$ac_ext <<_ACEOF
7948/* end confdefs.h. */
7949#include <stddef.h>
7950int
7951main ()
7952{
7953static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7954test_array [0] = 0
7955
7956 ;
7957 return 0;
7958}
7959_ACEOF
7960rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007961if { (ac_try="$ac_compile"
7962case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965esac
7966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007977 ac_hi=$ac_mid; break
7978else
7979 echo "$as_me: failed program was:" >&5
7980sed 's/^/| /' conftest.$ac_ext >&5
7981
Theodore Ts'oe1052142006-10-21 21:46:47 -04007982 ac_lo=`expr $ac_mid + 1`
7983 if test $ac_lo -le $ac_mid; then
7984 ac_lo= ac_hi=
7985 break
7986 fi
7987 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007988fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007989
7990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007991 done
7992else
7993 echo "$as_me: failed program was:" >&5
7994sed 's/^/| /' conftest.$ac_ext >&5
7995
Theodore Ts'oe1052142006-10-21 21:46:47 -04007996 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007997/* confdefs.h. */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h. */
8002#include <stddef.h>
8003int
8004main ()
8005{
8006static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8007test_array [0] = 0
8008
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008014if { (ac_try="$ac_compile"
8015case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018esac
8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008026 (exit $ac_status); } && {
8027 test -z "$ac_c_werror_flag" ||
8028 test ! -s conftest.err
8029 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008030 ac_hi=-1 ac_mid=-1
8031 while :; do
8032 cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h. */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h. */
8038#include <stddef.h>
8039int
8040main ()
8041{
8042static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8043test_array [0] = 0
8044
8045 ;
8046 return 0;
8047}
8048_ACEOF
8049rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008050if { (ac_try="$ac_compile"
8051case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054esac
8055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008066 ac_lo=$ac_mid; break
8067else
8068 echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
8070
Theodore Ts'oe1052142006-10-21 21:46:47 -04008071 ac_hi=`expr '(' $ac_mid ')' - 1`
8072 if test $ac_mid -le $ac_hi; then
8073 ac_lo= ac_hi=
8074 break
8075 fi
8076 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008078
8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008080 done
8081else
8082 echo "$as_me: failed program was:" >&5
8083sed 's/^/| /' conftest.$ac_ext >&5
8084
Theodore Ts'oe1052142006-10-21 21:46:47 -04008085 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008086fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008087
8088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008089fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008090
8091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008092# Binary search between lo and hi bounds.
8093while test "x$ac_lo" != "x$ac_hi"; do
8094 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8095 cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h. */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h. */
8101#include <stddef.h>
8102int
8103main ()
8104{
8105static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8106test_array [0] = 0
8107
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008113if { (ac_try="$ac_compile"
8114case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117esac
8118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008129 ac_hi=$ac_mid
8130else
8131 echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
Theodore Ts'oe1052142006-10-21 21:46:47 -04008134 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008136
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008138done
8139case $ac_lo in
8140?*) fits_in_uint=$ac_lo;;
8141'') result=? ;;
8142esac
8143else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008144 cat >conftest.$ac_ext <<_ACEOF
8145/* confdefs.h. */
8146_ACEOF
8147cat confdefs.h >>conftest.$ac_ext
8148cat >>conftest.$ac_ext <<_ACEOF
8149/* end confdefs.h. */
8150#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008151static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8152static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008153#include <stdio.h>
8154#include <stdlib.h>
8155int
8156main ()
8157{
8158
8159 FILE *f = fopen ("conftest.val", "w");
8160 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008161 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008162 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8163 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008164 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008165 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008166 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008167 fprintf (f, "%ld\n", i);
8168 }
8169 else
8170 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008171 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008172 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008173 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008174 fprintf (f, "%lu\n", i);
8175 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008176 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008177
8178 ;
8179 return 0;
8180}
8181_ACEOF
8182rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008183if { (ac_try="$ac_link"
8184case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187esac
8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008193 { (case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196esac
8197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 fits_in_uint=`cat conftest.val`
8203else
8204 echo "$as_me: program exited with status $ac_status" >&5
8205echo "$as_me: failed program was:" >&5
8206sed 's/^/| /' conftest.$ac_ext >&5
8207
8208( exit $ac_status )
8209result=?
8210fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008211rm -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 -05008212fi
8213rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008215 if test "$fits_in_uint" = 1; then
8216 cat >conftest.$ac_ext <<_ACEOF
8217/* confdefs.h. */
8218_ACEOF
8219cat confdefs.h >>conftest.$ac_ext
8220cat >>conftest.$ac_ext <<_ACEOF
8221/* end confdefs.h. */
8222#include <stddef.h>
8223 extern size_t foo;
8224 extern unsigned long foo;
8225
8226int
8227main ()
8228{
8229
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008235if { (ac_try="$ac_compile"
8236case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239esac
8240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008247 (exit $ac_status); } && {
8248 test -z "$ac_c_werror_flag" ||
8249 test ! -s conftest.err
8250 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008251 fits_in_uint=0
8252else
8253 echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
Theodore Ts'oe1052142006-10-21 21:46:47 -04008256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008257fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008258
8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008260 fi
8261 if test -z "$result"; then
8262 if test "$fits_in_uint" = 1; then
8263 result="$res_hi$res_lo"U
8264 else
8265 result="$res_hi$res_lo"UL
8266 fi
8267 else
8268 result='~(size_t)0'
8269 fi
8270 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008271 { echo "$as_me:$LINENO: result: $result" >&5
8272echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008273 if test "$result" != yes; then
8274
8275cat >>confdefs.h <<_ACEOF
8276#define SIZE_MAX $result
8277_ACEOF
8278
8279 fi
8280
8281
8282
8283
8284for ac_header in stdint.h
8285do
8286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008293ac_res=`eval echo '${'$as_ac_Header'}'`
8294 { echo "$as_me:$LINENO: result: $ac_res" >&5
8295echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008296else
8297 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008298{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h. */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */
8306$ac_includes_default
8307#include <$ac_header>
8308_ACEOF
8309rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008310if { (ac_try="$ac_compile"
8311case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008322 (exit $ac_status); } && {
8323 test -z "$ac_c_werror_flag" ||
8324 test ! -s conftest.err
8325 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008326 ac_header_compiler=yes
8327else
8328 echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
Theodore Ts'oe1052142006-10-21 21:46:47 -04008331 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008332fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008333
8334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8336echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008337
8338# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008339{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008341cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
8347#include <$ac_header>
8348_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008349if { (ac_try="$ac_cpp conftest.$ac_ext"
8350case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353esac
8354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008361 (exit $ac_status); } >/dev/null && {
8362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008365 ac_header_preproc=yes
8366else
8367 echo "$as_me: failed program was:" >&5
8368sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 ac_header_preproc=no
8371fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008372
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008373rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008376
8377# So? What about this header?
8378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8379 yes:no: )
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8384 ac_header_preproc=yes
8385 ;;
8386 no:yes:* )
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400 ;;
8401esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008402{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406else
8407 eval "$as_ac_Header=\$ac_header_preproc"
8408fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008409ac_res=`eval echo '${'$as_ac_Header'}'`
8410 { echo "$as_me:$LINENO: result: $ac_res" >&5
8411echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008412
8413fi
8414if test `eval echo '${'$as_ac_Header'}'` = yes; then
8415 cat >>confdefs.h <<_ACEOF
8416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8417_ACEOF
8418
8419fi
8420
8421done
8422
8423
8424
8425 if test "X$prefix" = "XNONE"; then
8426 acl_final_prefix="$ac_default_prefix"
8427 else
8428 acl_final_prefix="$prefix"
8429 fi
8430 if test "X$exec_prefix" = "XNONE"; then
8431 acl_final_exec_prefix='${prefix}'
8432 else
8433 acl_final_exec_prefix="$exec_prefix"
8434 fi
8435 acl_save_prefix="$prefix"
8436 prefix="$acl_final_prefix"
8437 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8438 prefix="$acl_save_prefix"
8439
8440
Theodore Ts'oe1052142006-10-21 21:46:47 -04008441# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008442if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008444else
8445 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008446fi
8447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008448# Prepare PATH_SEPARATOR.
8449# The user is always right.
8450if test "${PATH_SEPARATOR+set}" != set; then
8451 echo "#! /bin/sh" >conf$$.sh
8452 echo "exit 0" >>conf$$.sh
8453 chmod +x conf$$.sh
8454 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8455 PATH_SEPARATOR=';'
8456 else
8457 PATH_SEPARATOR=:
8458 fi
8459 rm -f conf$$.sh
8460fi
8461ac_prog=ld
8462if test "$GCC" = yes; then
8463 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008464 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8465echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008466 case $host in
8467 *-*-mingw*)
8468 # gcc leaves a trailing carriage return which upsets mingw
8469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8470 *)
8471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8472 esac
8473 case $ac_prog in
8474 # Accept absolute paths.
8475 [\\/]* | [A-Za-z]:[\\/]*)
8476 re_direlt='/[^/][^/]*/\.\./'
8477 # Canonicalize the path of ld
8478 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8479 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8480 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8481 done
8482 test -z "$LD" && LD="$ac_prog"
8483 ;;
8484 "")
8485 # If it fails, then pretend we aren't using GCC.
8486 ac_prog=ld
8487 ;;
8488 *)
8489 # If it is relative, then search for the first ld in PATH.
8490 with_gnu_ld=unknown
8491 ;;
8492 esac
8493elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008494 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8495echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008496else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008497 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8498echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008499fi
8500if test "${acl_cv_path_LD+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 if test -z "$LD"; then
8504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8505 for ac_dir in $PATH; do
8506 test -z "$ac_dir" && ac_dir=.
8507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8508 acl_cv_path_LD="$ac_dir/$ac_prog"
8509 # Check to see if the program is GNU ld. I'd rather use --version,
8510 # but apparently some GNU ld's only accept -v.
8511 # Break only if it was the GNU/non-GNU ld that we prefer.
8512 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8513 *GNU* | *'with BFD'*)
8514 test "$with_gnu_ld" != no && break ;;
8515 *)
8516 test "$with_gnu_ld" != yes && break ;;
8517 esac
8518 fi
8519 done
8520 IFS="$ac_save_ifs"
8521else
8522 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8523fi
8524fi
8525
8526LD="$acl_cv_path_LD"
8527if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008528 { echo "$as_me:$LINENO: result: $LD" >&5
8529echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008530else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008531 { echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008533fi
8534test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8535echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8536 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008537{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8538echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008539if test "${acl_cv_prog_gnu_ld+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8543case `$LD -v 2>&1 </dev/null` in
8544*GNU* | *'with BFD'*)
8545 acl_cv_prog_gnu_ld=yes ;;
8546*)
8547 acl_cv_prog_gnu_ld=no ;;
8548esac
8549fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008550{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8551echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008552with_gnu_ld=$acl_cv_prog_gnu_ld
8553
8554
8555
Theodore Ts'oe1052142006-10-21 21:46:47 -04008556 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8557echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008558if test "${acl_cv_rpath+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560else
8561
8562 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8563 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8564 . ./conftest.sh
8565 rm -f ./conftest.sh
8566 acl_cv_rpath=done
8567
8568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008569{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8570echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008571 wl="$acl_cv_wl"
8572 libext="$acl_cv_libext"
8573 shlibext="$acl_cv_shlibext"
8574 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8575 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8576 hardcode_direct="$acl_cv_hardcode_direct"
8577 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008578 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008579if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008580 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008581else
8582 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008583fi
8584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008585
8586
8587
8588
8589
8590
8591
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008592 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008594 acl_save_prefix="$prefix"
8595 prefix="$acl_final_prefix"
8596 acl_save_exec_prefix="$exec_prefix"
8597 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008598
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008599 eval additional_includedir=\"$includedir\"
8600 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008601
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008602 exec_prefix="$acl_save_exec_prefix"
8603 prefix="$acl_save_prefix"
8604
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008605
Theodore Ts'oe1052142006-10-21 21:46:47 -04008606# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008607if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008608 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008609 if test "X$withval" = "Xno"; then
8610 use_additional=no
8611 else
8612 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008613
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008614 acl_save_prefix="$prefix"
8615 prefix="$acl_final_prefix"
8616 acl_save_exec_prefix="$exec_prefix"
8617 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008619 eval additional_includedir=\"$includedir\"
8620 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008621
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008622 exec_prefix="$acl_save_exec_prefix"
8623 prefix="$acl_save_prefix"
8624
8625 else
8626 additional_includedir="$withval/include"
8627 additional_libdir="$withval/lib"
8628 fi
8629 fi
8630
Theodore Ts'oe1052142006-10-21 21:46:47 -04008631fi
8632
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008633 LIBICONV=
8634 LTLIBICONV=
8635 INCICONV=
8636 rpathdirs=
8637 ltrpathdirs=
8638 names_already_handled=
8639 names_next_round='iconv '
8640 while test -n "$names_next_round"; do
8641 names_this_round="$names_next_round"
8642 names_next_round=
8643 for name in $names_this_round; do
8644 already_handled=
8645 for n in $names_already_handled; do
8646 if test "$n" = "$name"; then
8647 already_handled=yes
8648 break
8649 fi
8650 done
8651 if test -z "$already_handled"; then
8652 names_already_handled="$names_already_handled $name"
8653 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8654 eval value=\"\$HAVE_LIB$uppername\"
8655 if test -n "$value"; then
8656 if test "$value" = yes; then
8657 eval value=\"\$LIB$uppername\"
8658 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8659 eval value=\"\$LTLIB$uppername\"
8660 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8661 else
8662 :
8663 fi
8664 else
8665 found_dir=
8666 found_la=
8667 found_so=
8668 found_a=
8669 if test $use_additional = yes; then
8670 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8671 found_dir="$additional_libdir"
8672 found_so="$additional_libdir/lib$name.$shlibext"
8673 if test -f "$additional_libdir/lib$name.la"; then
8674 found_la="$additional_libdir/lib$name.la"
8675 fi
8676 else
8677 if test -f "$additional_libdir/lib$name.$libext"; then
8678 found_dir="$additional_libdir"
8679 found_a="$additional_libdir/lib$name.$libext"
8680 if test -f "$additional_libdir/lib$name.la"; then
8681 found_la="$additional_libdir/lib$name.la"
8682 fi
8683 fi
8684 fi
8685 fi
8686 if test "X$found_dir" = "X"; then
8687 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008688
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008689 acl_save_prefix="$prefix"
8690 prefix="$acl_final_prefix"
8691 acl_save_exec_prefix="$exec_prefix"
8692 exec_prefix="$acl_final_exec_prefix"
8693 eval x=\"$x\"
8694 exec_prefix="$acl_save_exec_prefix"
8695 prefix="$acl_save_prefix"
8696
8697 case "$x" in
8698 -L*)
8699 dir=`echo "X$x" | sed -e 's/^X-L//'`
8700 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8701 found_dir="$dir"
8702 found_so="$dir/lib$name.$shlibext"
8703 if test -f "$dir/lib$name.la"; then
8704 found_la="$dir/lib$name.la"
8705 fi
8706 else
8707 if test -f "$dir/lib$name.$libext"; then
8708 found_dir="$dir"
8709 found_a="$dir/lib$name.$libext"
8710 if test -f "$dir/lib$name.la"; then
8711 found_la="$dir/lib$name.la"
8712 fi
8713 fi
8714 fi
8715 ;;
8716 esac
8717 if test "X$found_dir" != "X"; then
8718 break
8719 fi
8720 done
8721 fi
8722 if test "X$found_dir" != "X"; then
8723 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8724 if test "X$found_so" != "X"; then
8725 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8726 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8727 else
8728 haveit=
8729 for x in $ltrpathdirs; do
8730 if test "X$x" = "X$found_dir"; then
8731 haveit=yes
8732 break
8733 fi
8734 done
8735 if test -z "$haveit"; then
8736 ltrpathdirs="$ltrpathdirs $found_dir"
8737 fi
8738 if test "$hardcode_direct" = yes; then
8739 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8740 else
8741 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8742 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8743 haveit=
8744 for x in $rpathdirs; do
8745 if test "X$x" = "X$found_dir"; then
8746 haveit=yes
8747 break
8748 fi
8749 done
8750 if test -z "$haveit"; then
8751 rpathdirs="$rpathdirs $found_dir"
8752 fi
8753 else
8754 haveit=
8755 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008756
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008757 acl_save_prefix="$prefix"
8758 prefix="$acl_final_prefix"
8759 acl_save_exec_prefix="$exec_prefix"
8760 exec_prefix="$acl_final_exec_prefix"
8761 eval x=\"$x\"
8762 exec_prefix="$acl_save_exec_prefix"
8763 prefix="$acl_save_prefix"
8764
8765 if test "X$x" = "X-L$found_dir"; then
8766 haveit=yes
8767 break
8768 fi
8769 done
8770 if test -z "$haveit"; then
8771 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8772 fi
8773 if test "$hardcode_minus_L" != no; then
8774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8775 else
8776 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8777 fi
8778 fi
8779 fi
8780 fi
8781 else
8782 if test "X$found_a" != "X"; then
8783 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8784 else
8785 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8786 fi
8787 fi
8788 additional_includedir=
8789 case "$found_dir" in
8790 */lib | */lib/)
8791 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8792 additional_includedir="$basedir/include"
8793 ;;
8794 esac
8795 if test "X$additional_includedir" != "X"; then
8796 if test "X$additional_includedir" != "X/usr/include"; then
8797 haveit=
8798 if test "X$additional_includedir" = "X/usr/local/include"; then
8799 if test -n "$GCC"; then
8800 case $host_os in
8801 linux*) haveit=yes;;
8802 esac
8803 fi
8804 fi
8805 if test -z "$haveit"; then
8806 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008807
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008808 acl_save_prefix="$prefix"
8809 prefix="$acl_final_prefix"
8810 acl_save_exec_prefix="$exec_prefix"
8811 exec_prefix="$acl_final_exec_prefix"
8812 eval x=\"$x\"
8813 exec_prefix="$acl_save_exec_prefix"
8814 prefix="$acl_save_prefix"
8815
8816 if test "X$x" = "X-I$additional_includedir"; then
8817 haveit=yes
8818 break
8819 fi
8820 done
8821 if test -z "$haveit"; then
8822 if test -d "$additional_includedir"; then
8823 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8824 fi
8825 fi
8826 fi
8827 fi
8828 fi
8829 if test -n "$found_la"; then
8830 save_libdir="$libdir"
8831 case "$found_la" in
8832 */* | *\\*) . "$found_la" ;;
8833 *) . "./$found_la" ;;
8834 esac
8835 libdir="$save_libdir"
8836 for dep in $dependency_libs; do
8837 case "$dep" in
8838 -L*)
8839 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8840 if test "X$additional_libdir" != "X/usr/lib"; then
8841 haveit=
8842 if test "X$additional_libdir" = "X/usr/local/lib"; then
8843 if test -n "$GCC"; then
8844 case $host_os in
8845 linux*) haveit=yes;;
8846 esac
8847 fi
8848 fi
8849 if test -z "$haveit"; then
8850 haveit=
8851 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008852
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008853 acl_save_prefix="$prefix"
8854 prefix="$acl_final_prefix"
8855 acl_save_exec_prefix="$exec_prefix"
8856 exec_prefix="$acl_final_exec_prefix"
8857 eval x=\"$x\"
8858 exec_prefix="$acl_save_exec_prefix"
8859 prefix="$acl_save_prefix"
8860
8861 if test "X$x" = "X-L$additional_libdir"; then
8862 haveit=yes
8863 break
8864 fi
8865 done
8866 if test -z "$haveit"; then
8867 if test -d "$additional_libdir"; then
8868 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8869 fi
8870 fi
8871 haveit=
8872 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008873
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008874 acl_save_prefix="$prefix"
8875 prefix="$acl_final_prefix"
8876 acl_save_exec_prefix="$exec_prefix"
8877 exec_prefix="$acl_final_exec_prefix"
8878 eval x=\"$x\"
8879 exec_prefix="$acl_save_exec_prefix"
8880 prefix="$acl_save_prefix"
8881
8882 if test "X$x" = "X-L$additional_libdir"; then
8883 haveit=yes
8884 break
8885 fi
8886 done
8887 if test -z "$haveit"; then
8888 if test -d "$additional_libdir"; then
8889 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8890 fi
8891 fi
8892 fi
8893 fi
8894 ;;
8895 -R*)
8896 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8897 if test "$enable_rpath" != no; then
8898 haveit=
8899 for x in $rpathdirs; do
8900 if test "X$x" = "X$dir"; then
8901 haveit=yes
8902 break
8903 fi
8904 done
8905 if test -z "$haveit"; then
8906 rpathdirs="$rpathdirs $dir"
8907 fi
8908 haveit=
8909 for x in $ltrpathdirs; do
8910 if test "X$x" = "X$dir"; then
8911 haveit=yes
8912 break
8913 fi
8914 done
8915 if test -z "$haveit"; then
8916 ltrpathdirs="$ltrpathdirs $dir"
8917 fi
8918 fi
8919 ;;
8920 -l*)
8921 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8922 ;;
8923 *.la)
8924 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8925 ;;
8926 *)
8927 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8929 ;;
8930 esac
8931 done
8932 fi
8933 else
8934 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8936 fi
8937 fi
8938 fi
8939 done
8940 done
8941 if test "X$rpathdirs" != "X"; then
8942 if test -n "$hardcode_libdir_separator"; then
8943 alldirs=
8944 for found_dir in $rpathdirs; do
8945 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8946 done
8947 acl_save_libdir="$libdir"
8948 libdir="$alldirs"
8949 eval flag=\"$hardcode_libdir_flag_spec\"
8950 libdir="$acl_save_libdir"
8951 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8952 else
8953 for found_dir in $rpathdirs; do
8954 acl_save_libdir="$libdir"
8955 libdir="$found_dir"
8956 eval flag=\"$hardcode_libdir_flag_spec\"
8957 libdir="$acl_save_libdir"
8958 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8959 done
8960 fi
8961 fi
8962 if test "X$ltrpathdirs" != "X"; then
8963 for found_dir in $ltrpathdirs; do
8964 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8965 done
8966 fi
8967
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008968
8969
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008970
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008971
8972
8973
8974
Theodore Ts'oe1052142006-10-21 21:46:47 -04008975 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8976echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008977if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008979else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008980 cat >conftest.$ac_ext <<_ACEOF
8981/* confdefs.h. */
8982_ACEOF
8983cat confdefs.h >>conftest.$ac_ext
8984cat >>conftest.$ac_ext <<_ACEOF
8985/* end confdefs.h. */
8986$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008987typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008988int
8989main ()
8990{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008991if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008992 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008993if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008994 return 0;
8995 ;
8996 return 0;
8997}
8998_ACEOF
8999rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009000if { (ac_try="$ac_compile"
9001case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004esac
9005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009016 ac_cv_type_ptrdiff_t=yes
9017else
9018 echo "$as_me: failed program was:" >&5
9019sed 's/^/| /' conftest.$ac_ext >&5
9020
Theodore Ts'oe1052142006-10-21 21:46:47 -04009021 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009022fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009023
9024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009025fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009026{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9027echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009028if test $ac_cv_type_ptrdiff_t = yes; then
9029 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009031
9032cat >>confdefs.h <<\_ACEOF
9033#define ptrdiff_t long
9034_ACEOF
9035
9036
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009037fi
9038
9039
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009040
9041
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009042
9043
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009044
9045
9046
9047
9048
9049for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009050stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009051do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009057 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009058fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009059ac_res=`eval echo '${'$as_ac_Header'}'`
9060 { echo "$as_me:$LINENO: result: $ac_res" >&5
9061echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009063 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009066cat >conftest.$ac_ext <<_ACEOF
9067/* confdefs.h. */
9068_ACEOF
9069cat confdefs.h >>conftest.$ac_ext
9070cat >>conftest.$ac_ext <<_ACEOF
9071/* end confdefs.h. */
9072$ac_includes_default
9073#include <$ac_header>
9074_ACEOF
9075rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009076if { (ac_try="$ac_compile"
9077case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9080esac
9081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009083 ac_status=$?
9084 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009088 (exit $ac_status); } && {
9089 test -z "$ac_c_werror_flag" ||
9090 test ! -s conftest.err
9091 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009092 ac_header_compiler=yes
9093else
9094 echo "$as_me: failed program was:" >&5
9095sed 's/^/| /' conftest.$ac_ext >&5
9096
Theodore Ts'oe1052142006-10-21 21:46:47 -04009097 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009098fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009099
9100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9102echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009103
9104# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009105{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009107cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113#include <$ac_header>
9114_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009115if { (ac_try="$ac_cpp conftest.$ac_ext"
9116case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119esac
9120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009127 (exit $ac_status); } >/dev/null && {
9128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009131 ac_header_preproc=yes
9132else
9133 echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 ac_header_preproc=no
9137fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009138
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009139rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009140{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9141echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009142
9143# So? What about this header?
9144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9145 yes:no: )
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9150 ac_header_preproc=yes
9151 ;;
9152 no:yes:* )
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009166 ;;
9167esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009168{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172else
9173 eval "$as_ac_Header=\$ac_header_preproc"
9174fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009175ac_res=`eval echo '${'$as_ac_Header'}'`
9176 { echo "$as_me:$LINENO: result: $ac_res" >&5
9177echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009178
9179fi
9180if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181 cat >>confdefs.h <<_ACEOF
9182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183_ACEOF
9184
9185fi
9186
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009187done
9188
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9213mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9214strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9215__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009216do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009221 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009222else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223 cat >conftest.$ac_ext <<_ACEOF
9224/* confdefs.h. */
9225_ACEOF
9226cat confdefs.h >>conftest.$ac_ext
9227cat >>conftest.$ac_ext <<_ACEOF
9228/* end confdefs.h. */
9229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9231#define $ac_func innocuous_$ac_func
9232
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009233/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009234 which can conflict with char $ac_func (); below.
9235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9236 <limits.h> exists even on freestanding compilers. */
9237
9238#ifdef __STDC__
9239# include <limits.h>
9240#else
9241# include <assert.h>
9242#endif
9243
9244#undef $ac_func
9245
Theodore Ts'oe1052142006-10-21 21:46:47 -04009246/* Override any GCC internal prototype to avoid an error.
9247 Use char because int might match the return type of a GCC
9248 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009249#ifdef __cplusplus
9250extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009251#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009253/* The GNU C library defines this for functions which it implements
9254 to always fail with ENOSYS. Some functions are actually named
9255 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009256#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009257choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009258#endif
9259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260int
9261main ()
9262{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009263return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009264 ;
9265 return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009269if { (ac_try="$ac_link"
9270case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273esac
9274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest$ac_exeext &&
9285 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009287else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288 echo "$as_me: failed program was:" >&5
9289sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009290
Theodore Ts'oe1052142006-10-21 21:46:47 -04009291 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009292fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009293
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009295 conftest$ac_exeext conftest.$ac_ext
9296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009297ac_res=`eval echo '${'$as_ac_var'}'`
9298 { echo "$as_me:$LINENO: result: $ac_res" >&5
9299echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009300if test `eval echo '${'$as_ac_var'}'` = yes; then
9301 cat >>confdefs.h <<_ACEOF
9302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9303_ACEOF
9304
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009305fi
9306done
9307
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009309
Theodore Ts'oe1052142006-10-21 21:46:47 -04009310 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9311echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312if test "${ac_cv_have_decl__snprintf+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315 cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h. */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
9321#include <stdio.h>
9322int
9323main ()
9324{
9325
9326#ifndef _snprintf
9327 char *p = (char *) _snprintf;
9328#endif
9329
9330 ;
9331 return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009335if { (ac_try="$ac_compile"
9336case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339esac
9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009351 ac_cv_have_decl__snprintf=yes
9352else
9353 echo "$as_me: failed program was:" >&5
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
Theodore Ts'oe1052142006-10-21 21:46:47 -04009356 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009357fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009358
9359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009361{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9362echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009363 if test $ac_cv_have_decl__snprintf = yes; then
9364 gt_value=1
9365 else
9366 gt_value=0
9367 fi
9368
9369cat >>confdefs.h <<_ACEOF
9370#define HAVE_DECL__SNPRINTF $gt_value
9371_ACEOF
9372
9373
9374
Theodore Ts'oe1052142006-10-21 21:46:47 -04009375 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9376echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009377if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9379else
9380 cat >conftest.$ac_ext <<_ACEOF
9381/* confdefs.h. */
9382_ACEOF
9383cat confdefs.h >>conftest.$ac_ext
9384cat >>conftest.$ac_ext <<_ACEOF
9385/* end confdefs.h. */
9386#include <stdio.h>
9387int
9388main ()
9389{
9390
9391#ifndef _snwprintf
9392 char *p = (char *) _snwprintf;
9393#endif
9394
9395 ;
9396 return 0;
9397}
9398_ACEOF
9399rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009400if { (ac_try="$ac_compile"
9401case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404esac
9405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009412 (exit $ac_status); } && {
9413 test -z "$ac_c_werror_flag" ||
9414 test ! -s conftest.err
9415 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009416 ac_cv_have_decl__snwprintf=yes
9417else
9418 echo "$as_me: failed program was:" >&5
9419sed 's/^/| /' conftest.$ac_ext >&5
9420
Theodore Ts'oe1052142006-10-21 21:46:47 -04009421 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009422fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009423
9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009426{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9427echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009428 if test $ac_cv_have_decl__snwprintf = yes; then
9429 gt_value=1
9430 else
9431 gt_value=0
9432 fi
9433
9434cat >>confdefs.h <<_ACEOF
9435#define HAVE_DECL__SNWPRINTF $gt_value
9436_ACEOF
9437
9438
9439
9440
Theodore Ts'oe1052142006-10-21 21:46:47 -04009441 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9442echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009443if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446 cat >conftest.$ac_ext <<_ACEOF
9447/* confdefs.h. */
9448_ACEOF
9449cat confdefs.h >>conftest.$ac_ext
9450cat >>conftest.$ac_ext <<_ACEOF
9451/* end confdefs.h. */
9452#include <stdio.h>
9453int
9454main ()
9455{
9456
9457#ifndef feof_unlocked
9458 char *p = (char *) feof_unlocked;
9459#endif
9460
9461 ;
9462 return 0;
9463}
9464_ACEOF
9465rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009466if { (ac_try="$ac_compile"
9467case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470esac
9471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009482 ac_cv_have_decl_feof_unlocked=yes
9483else
9484 echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
Theodore Ts'oe1052142006-10-21 21:46:47 -04009487 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009489
9490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009491fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009492{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9493echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009494 if test $ac_cv_have_decl_feof_unlocked = yes; then
9495 gt_value=1
9496 else
9497 gt_value=0
9498 fi
9499
9500cat >>confdefs.h <<_ACEOF
9501#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9502_ACEOF
9503
9504
9505
Theodore Ts'oe1052142006-10-21 21:46:47 -04009506 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9507echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009508if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511 cat >conftest.$ac_ext <<_ACEOF
9512/* confdefs.h. */
9513_ACEOF
9514cat confdefs.h >>conftest.$ac_ext
9515cat >>conftest.$ac_ext <<_ACEOF
9516/* end confdefs.h. */
9517#include <stdio.h>
9518int
9519main ()
9520{
9521
9522#ifndef fgets_unlocked
9523 char *p = (char *) fgets_unlocked;
9524#endif
9525
9526 ;
9527 return 0;
9528}
9529_ACEOF
9530rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009531if { (ac_try="$ac_compile"
9532case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535esac
9536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009547 ac_cv_have_decl_fgets_unlocked=yes
9548else
9549 echo "$as_me: failed program was:" >&5
9550sed 's/^/| /' conftest.$ac_ext >&5
9551
Theodore Ts'oe1052142006-10-21 21:46:47 -04009552 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009554
9555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009557{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9558echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009559 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9560 gt_value=1
9561 else
9562 gt_value=0
9563 fi
9564
9565cat >>confdefs.h <<_ACEOF
9566#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9567_ACEOF
9568
9569
9570
Theodore Ts'oe1052142006-10-21 21:46:47 -04009571 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9572echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009573if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575else
9576 cat >conftest.$ac_ext <<_ACEOF
9577/* confdefs.h. */
9578_ACEOF
9579cat confdefs.h >>conftest.$ac_ext
9580cat >>conftest.$ac_ext <<_ACEOF
9581/* end confdefs.h. */
9582#include <stdio.h>
9583int
9584main ()
9585{
9586
9587#ifndef getc_unlocked
9588 char *p = (char *) getc_unlocked;
9589#endif
9590
9591 ;
9592 return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009596if { (ac_try="$ac_compile"
9597case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009612 ac_cv_have_decl_getc_unlocked=yes
9613else
9614 echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
Theodore Ts'oe1052142006-10-21 21:46:47 -04009617 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009619
9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009622{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9623echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009624 if test $ac_cv_have_decl_getc_unlocked = yes; then
9625 gt_value=1
9626 else
9627 gt_value=0
9628 fi
9629
9630cat >>confdefs.h <<_ACEOF
9631#define HAVE_DECL_GETC_UNLOCKED $gt_value
9632_ACEOF
9633
9634
9635
9636 case $gt_cv_func_printf_posix in
9637 *yes) HAVE_POSIX_PRINTF=1 ;;
9638 *) HAVE_POSIX_PRINTF=0 ;;
9639 esac
9640
9641 if test "$ac_cv_func_asprintf" = yes; then
9642 HAVE_ASPRINTF=1
9643 else
9644 HAVE_ASPRINTF=0
9645 fi
9646
9647 if test "$ac_cv_func_snprintf" = yes; then
9648 HAVE_SNPRINTF=1
9649 else
9650 HAVE_SNPRINTF=0
9651 fi
9652
9653 if test "$ac_cv_func_wprintf" = yes; then
9654 HAVE_WPRINTF=1
9655 else
9656 HAVE_WPRINTF=0
9657 fi
9658
9659
9660
9661
9662
9663
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009664
9665 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009667 for element in $INCICONV; do
9668 haveit=
9669 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009670
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009671 acl_save_prefix="$prefix"
9672 prefix="$acl_final_prefix"
9673 acl_save_exec_prefix="$exec_prefix"
9674 exec_prefix="$acl_final_exec_prefix"
9675 eval x=\"$x\"
9676 exec_prefix="$acl_save_exec_prefix"
9677 prefix="$acl_save_prefix"
9678
9679 if test "X$x" = "X$element"; then
9680 haveit=yes
9681 break
9682 fi
9683 done
9684 if test -z "$haveit"; then
9685 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9686 fi
9687 done
9688
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009689
Theodore Ts'oe1052142006-10-21 21:46:47 -04009690 { echo "$as_me:$LINENO: checking for iconv" >&5
9691echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009692if test "${am_cv_func_iconv+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009694else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009695
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009696 am_cv_func_iconv="no, consider installing GNU libiconv"
9697 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009698 cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009704#include <stdlib.h>
9705#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009706int
9707main ()
9708{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009709iconv_t cd = iconv_open("","");
9710 iconv(cd,NULL,NULL,NULL,NULL);
9711 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009712 ;
9713 return 0;
9714}
9715_ACEOF
9716rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009717if { (ac_try="$ac_link"
9718case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest$ac_exeext &&
9733 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009734 am_cv_func_iconv=yes
9735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009736 echo "$as_me: failed program was:" >&5
9737sed 's/^/| /' conftest.$ac_ext >&5
9738
Theodore Ts'oe1052142006-10-21 21:46:47 -04009739
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009741
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009743 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009744 if test "$am_cv_func_iconv" != yes; then
9745 am_save_LIBS="$LIBS"
9746 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009747 cat >conftest.$ac_ext <<_ACEOF
9748/* confdefs.h. */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009753#include <stdlib.h>
9754#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009755int
9756main ()
9757{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009758iconv_t cd = iconv_open("","");
9759 iconv(cd,NULL,NULL,NULL,NULL);
9760 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009761 ;
9762 return 0;
9763}
9764_ACEOF
9765rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009766if { (ac_try="$ac_link"
9767case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770esac
9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest$ac_exeext &&
9782 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009783 am_cv_lib_iconv=yes
9784 am_cv_func_iconv=yes
9785else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009786 echo "$as_me: failed program was:" >&5
9787sed 's/^/| /' conftest.$ac_ext >&5
9788
Theodore Ts'oe1052142006-10-21 21:46:47 -04009789
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009791
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009793 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009794 LIBS="$am_save_LIBS"
9795 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009798{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9799echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009800 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009801
9802cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009803#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009804_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009805
9806 fi
9807 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009808 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9809echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9810 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9811echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009812 else
9813 CPPFLAGS="$am_save_CPPFLAGS"
9814 LIBICONV=
9815 LTLIBICONV=
9816 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009817
9818
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009819
9820 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009821 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9822echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009823 if test "${am_cv_proto_iconv+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009825else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009826
9827 cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h. */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009833
9834#include <stdlib.h>
9835#include <iconv.h>
9836extern
9837#ifdef __cplusplus
9838"C"
9839#endif
9840#if defined(__STDC__) || defined(__cplusplus)
9841size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9842#else
9843size_t iconv();
9844#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009846int
9847main ()
9848{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009849
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009850 ;
9851 return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009855if { (ac_try="$ac_compile"
9856case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859esac
9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009867 (exit $ac_status); } && {
9868 test -z "$ac_c_werror_flag" ||
9869 test ! -s conftest.err
9870 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009871 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009872else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009873 echo "$as_me: failed program was:" >&5
9874sed 's/^/| /' conftest.$ac_ext >&5
9875
Theodore Ts'oe1052142006-10-21 21:46:47 -04009876 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009877fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009878
9879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009880 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 +00009881fi
9882
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009883 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009884 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009885 }$am_cv_proto_iconv" >&5
9886echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009887 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009888
9889cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009890#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009891_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009892
9893 fi
9894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009895
Theodore Ts'oe1052142006-10-21 21:46:47 -04009896 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9897echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009898if test "${am_cv_langinfo_codeset+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009900else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009901 cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009907#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009908int
9909main ()
9910{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009911char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912 ;
9913 return 0;
9914}
9915_ACEOF
9916rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009917if { (ac_try="$ac_link"
9918case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest$ac_exeext &&
9933 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009934 am_cv_langinfo_codeset=yes
9935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009936 echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009938
Theodore Ts'oe1052142006-10-21 21:46:47 -04009939 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009940fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009941
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009943 conftest$ac_exeext conftest.$ac_ext
9944
9945fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009946{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9947echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009948 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949
9950cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009951#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009952_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009953
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009954 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009955
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009956 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009957
Theodore Ts'oe1052142006-10-21 21:46:47 -04009958 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9959echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009960if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009963 cat >conftest.$ac_ext <<_ACEOF
9964/* confdefs.h. */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009969#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970int
9971main ()
9972{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009973return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009974 ;
9975 return 0;
9976}
9977_ACEOF
9978rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009979if { (ac_try="$ac_link"
9980case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983esac
9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest$ac_exeext &&
9995 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009996 am_cv_val_LC_MESSAGES=yes
9997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009998 echo "$as_me: failed program was:" >&5
9999sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010000
Theodore Ts'oe1052142006-10-21 21:46:47 -040010001 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010003
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010005 conftest$ac_exeext conftest.$ac_ext
10006fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010007{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10008echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010009 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010010
10011cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010012#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010013_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010014
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010015 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010016
10017 fi
10018
10019 for ac_prog in bison
10020do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010021 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010022set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010025if test "${ac_cv_prog_INTLBISON+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010027else
10028 if test -n "$INTLBISON"; then
10029 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032for as_dir in $PATH
10033do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010037 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 -050010038 ac_cv_prog_INTLBISON="$ac_prog"
10039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042done
10043done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010044IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010045
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010046fi
10047fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010048INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010049if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010050 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10051echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010052else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010053 { echo "$as_me:$LINENO: result: no" >&5
10054echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010055fi
10056
Theodore Ts'oe1052142006-10-21 21:46:47 -040010057
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010058 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010059done
10060
10061 if test -z "$INTLBISON"; then
10062 ac_verc_fail=yes
10063 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010064 { echo "$as_me:$LINENO: checking version of bison" >&5
10065echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010066 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10067 case $ac_prog_version in
10068 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10069 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10070 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10071 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10072 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010073 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10074echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010075 fi
10076 if test $ac_verc_fail = yes; then
10077 INTLBISON=:
10078 fi
10079
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010080
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010081
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010082
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010083
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010085
10086
10087
10088
10089
10090
10091
10092
10093
10094
Theodore Ts'oe1052142006-10-21 21:46:47 -040010095 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10096echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10097 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010098if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010099 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010100else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010101 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010102fi
10103
10104 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10105echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010106
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010108
10109
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010110 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010111 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010112
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010113 LIBINTL=
10114 LTLIBINTL=
10115 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010116
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010117 if test "$USE_NLS" = "yes"; then
10118 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010119
Theodore Ts'oe1052142006-10-21 21:46:47 -040010120 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10121echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010122
Theodore Ts'oe1052142006-10-21 21:46:47 -040010123# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010124if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010125 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010126else
10127 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010128fi
10129
10130 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10131echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010132
10133 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10134 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010135
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010136
10137
10138
10139
10140
Theodore Ts'oe1052142006-10-21 21:46:47 -040010141 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10142echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010143if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010145else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146 cat >conftest.$ac_ext <<_ACEOF
10147/* confdefs.h. */
10148_ACEOF
10149cat confdefs.h >>conftest.$ac_ext
10150cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010152#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010153extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010154extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010155int
10156main ()
10157{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010158bindtextdomain ("", "");
10159return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010160 ;
10161 return 0;
10162}
10163_ACEOF
10164rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010165if { (ac_try="$ac_link"
10166case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169esac
10170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest$ac_exeext &&
10181 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010182 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184 echo "$as_me: failed program was:" >&5
10185sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010186
Theodore Ts'oe1052142006-10-21 21:46:47 -040010187 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010188fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010189
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010191 conftest$ac_exeext conftest.$ac_ext
10192fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010193{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10194echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010195
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010196 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010197
10198
10199
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010200 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010202 acl_save_prefix="$prefix"
10203 prefix="$acl_final_prefix"
10204 acl_save_exec_prefix="$exec_prefix"
10205 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010206
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010207 eval additional_includedir=\"$includedir\"
10208 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010210 exec_prefix="$acl_save_exec_prefix"
10211 prefix="$acl_save_prefix"
10212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010213
Theodore Ts'oe1052142006-10-21 21:46:47 -040010214# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010215if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010216 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010217 if test "X$withval" = "Xno"; then
10218 use_additional=no
10219 else
10220 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010221
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010222 acl_save_prefix="$prefix"
10223 prefix="$acl_final_prefix"
10224 acl_save_exec_prefix="$exec_prefix"
10225 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010226
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010227 eval additional_includedir=\"$includedir\"
10228 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010229
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010230 exec_prefix="$acl_save_exec_prefix"
10231 prefix="$acl_save_prefix"
10232
10233 else
10234 additional_includedir="$withval/include"
10235 additional_libdir="$withval/lib"
10236 fi
10237 fi
10238
Theodore Ts'oe1052142006-10-21 21:46:47 -040010239fi
10240
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010241 LIBINTL=
10242 LTLIBINTL=
10243 INCINTL=
10244 rpathdirs=
10245 ltrpathdirs=
10246 names_already_handled=
10247 names_next_round='intl '
10248 while test -n "$names_next_round"; do
10249 names_this_round="$names_next_round"
10250 names_next_round=
10251 for name in $names_this_round; do
10252 already_handled=
10253 for n in $names_already_handled; do
10254 if test "$n" = "$name"; then
10255 already_handled=yes
10256 break
10257 fi
10258 done
10259 if test -z "$already_handled"; then
10260 names_already_handled="$names_already_handled $name"
10261 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10262 eval value=\"\$HAVE_LIB$uppername\"
10263 if test -n "$value"; then
10264 if test "$value" = yes; then
10265 eval value=\"\$LIB$uppername\"
10266 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10267 eval value=\"\$LTLIB$uppername\"
10268 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10269 else
10270 :
10271 fi
10272 else
10273 found_dir=
10274 found_la=
10275 found_so=
10276 found_a=
10277 if test $use_additional = yes; then
10278 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10279 found_dir="$additional_libdir"
10280 found_so="$additional_libdir/lib$name.$shlibext"
10281 if test -f "$additional_libdir/lib$name.la"; then
10282 found_la="$additional_libdir/lib$name.la"
10283 fi
10284 else
10285 if test -f "$additional_libdir/lib$name.$libext"; then
10286 found_dir="$additional_libdir"
10287 found_a="$additional_libdir/lib$name.$libext"
10288 if test -f "$additional_libdir/lib$name.la"; then
10289 found_la="$additional_libdir/lib$name.la"
10290 fi
10291 fi
10292 fi
10293 fi
10294 if test "X$found_dir" = "X"; then
10295 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010296
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010297 acl_save_prefix="$prefix"
10298 prefix="$acl_final_prefix"
10299 acl_save_exec_prefix="$exec_prefix"
10300 exec_prefix="$acl_final_exec_prefix"
10301 eval x=\"$x\"
10302 exec_prefix="$acl_save_exec_prefix"
10303 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010304
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010305 case "$x" in
10306 -L*)
10307 dir=`echo "X$x" | sed -e 's/^X-L//'`
10308 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10309 found_dir="$dir"
10310 found_so="$dir/lib$name.$shlibext"
10311 if test -f "$dir/lib$name.la"; then
10312 found_la="$dir/lib$name.la"
10313 fi
10314 else
10315 if test -f "$dir/lib$name.$libext"; then
10316 found_dir="$dir"
10317 found_a="$dir/lib$name.$libext"
10318 if test -f "$dir/lib$name.la"; then
10319 found_la="$dir/lib$name.la"
10320 fi
10321 fi
10322 fi
10323 ;;
10324 esac
10325 if test "X$found_dir" != "X"; then
10326 break
10327 fi
10328 done
10329 fi
10330 if test "X$found_dir" != "X"; then
10331 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10332 if test "X$found_so" != "X"; then
10333 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10334 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10335 else
10336 haveit=
10337 for x in $ltrpathdirs; do
10338 if test "X$x" = "X$found_dir"; then
10339 haveit=yes
10340 break
10341 fi
10342 done
10343 if test -z "$haveit"; then
10344 ltrpathdirs="$ltrpathdirs $found_dir"
10345 fi
10346 if test "$hardcode_direct" = yes; then
10347 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10348 else
10349 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10350 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10351 haveit=
10352 for x in $rpathdirs; do
10353 if test "X$x" = "X$found_dir"; then
10354 haveit=yes
10355 break
10356 fi
10357 done
10358 if test -z "$haveit"; then
10359 rpathdirs="$rpathdirs $found_dir"
10360 fi
10361 else
10362 haveit=
10363 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010364
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010365 acl_save_prefix="$prefix"
10366 prefix="$acl_final_prefix"
10367 acl_save_exec_prefix="$exec_prefix"
10368 exec_prefix="$acl_final_exec_prefix"
10369 eval x=\"$x\"
10370 exec_prefix="$acl_save_exec_prefix"
10371 prefix="$acl_save_prefix"
10372
10373 if test "X$x" = "X-L$found_dir"; then
10374 haveit=yes
10375 break
10376 fi
10377 done
10378 if test -z "$haveit"; then
10379 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10380 fi
10381 if test "$hardcode_minus_L" != no; then
10382 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10383 else
10384 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10385 fi
10386 fi
10387 fi
10388 fi
10389 else
10390 if test "X$found_a" != "X"; then
10391 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10392 else
10393 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10394 fi
10395 fi
10396 additional_includedir=
10397 case "$found_dir" in
10398 */lib | */lib/)
10399 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10400 additional_includedir="$basedir/include"
10401 ;;
10402 esac
10403 if test "X$additional_includedir" != "X"; then
10404 if test "X$additional_includedir" != "X/usr/include"; then
10405 haveit=
10406 if test "X$additional_includedir" = "X/usr/local/include"; then
10407 if test -n "$GCC"; then
10408 case $host_os in
10409 linux*) haveit=yes;;
10410 esac
10411 fi
10412 fi
10413 if test -z "$haveit"; then
10414 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010415
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010416 acl_save_prefix="$prefix"
10417 prefix="$acl_final_prefix"
10418 acl_save_exec_prefix="$exec_prefix"
10419 exec_prefix="$acl_final_exec_prefix"
10420 eval x=\"$x\"
10421 exec_prefix="$acl_save_exec_prefix"
10422 prefix="$acl_save_prefix"
10423
10424 if test "X$x" = "X-I$additional_includedir"; then
10425 haveit=yes
10426 break
10427 fi
10428 done
10429 if test -z "$haveit"; then
10430 if test -d "$additional_includedir"; then
10431 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10432 fi
10433 fi
10434 fi
10435 fi
10436 fi
10437 if test -n "$found_la"; then
10438 save_libdir="$libdir"
10439 case "$found_la" in
10440 */* | *\\*) . "$found_la" ;;
10441 *) . "./$found_la" ;;
10442 esac
10443 libdir="$save_libdir"
10444 for dep in $dependency_libs; do
10445 case "$dep" in
10446 -L*)
10447 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10448 if test "X$additional_libdir" != "X/usr/lib"; then
10449 haveit=
10450 if test "X$additional_libdir" = "X/usr/local/lib"; then
10451 if test -n "$GCC"; then
10452 case $host_os in
10453 linux*) haveit=yes;;
10454 esac
10455 fi
10456 fi
10457 if test -z "$haveit"; then
10458 haveit=
10459 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010460
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010461 acl_save_prefix="$prefix"
10462 prefix="$acl_final_prefix"
10463 acl_save_exec_prefix="$exec_prefix"
10464 exec_prefix="$acl_final_exec_prefix"
10465 eval x=\"$x\"
10466 exec_prefix="$acl_save_exec_prefix"
10467 prefix="$acl_save_prefix"
10468
10469 if test "X$x" = "X-L$additional_libdir"; then
10470 haveit=yes
10471 break
10472 fi
10473 done
10474 if test -z "$haveit"; then
10475 if test -d "$additional_libdir"; then
10476 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10477 fi
10478 fi
10479 haveit=
10480 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010481
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010482 acl_save_prefix="$prefix"
10483 prefix="$acl_final_prefix"
10484 acl_save_exec_prefix="$exec_prefix"
10485 exec_prefix="$acl_final_exec_prefix"
10486 eval x=\"$x\"
10487 exec_prefix="$acl_save_exec_prefix"
10488 prefix="$acl_save_prefix"
10489
10490 if test "X$x" = "X-L$additional_libdir"; then
10491 haveit=yes
10492 break
10493 fi
10494 done
10495 if test -z "$haveit"; then
10496 if test -d "$additional_libdir"; then
10497 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10498 fi
10499 fi
10500 fi
10501 fi
10502 ;;
10503 -R*)
10504 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10505 if test "$enable_rpath" != no; then
10506 haveit=
10507 for x in $rpathdirs; do
10508 if test "X$x" = "X$dir"; then
10509 haveit=yes
10510 break
10511 fi
10512 done
10513 if test -z "$haveit"; then
10514 rpathdirs="$rpathdirs $dir"
10515 fi
10516 haveit=
10517 for x in $ltrpathdirs; do
10518 if test "X$x" = "X$dir"; then
10519 haveit=yes
10520 break
10521 fi
10522 done
10523 if test -z "$haveit"; then
10524 ltrpathdirs="$ltrpathdirs $dir"
10525 fi
10526 fi
10527 ;;
10528 -l*)
10529 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10530 ;;
10531 *.la)
10532 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10533 ;;
10534 *)
10535 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10536 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10537 ;;
10538 esac
10539 done
10540 fi
10541 else
10542 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10543 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10544 fi
10545 fi
10546 fi
10547 done
10548 done
10549 if test "X$rpathdirs" != "X"; then
10550 if test -n "$hardcode_libdir_separator"; then
10551 alldirs=
10552 for found_dir in $rpathdirs; do
10553 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10554 done
10555 acl_save_libdir="$libdir"
10556 libdir="$alldirs"
10557 eval flag=\"$hardcode_libdir_flag_spec\"
10558 libdir="$acl_save_libdir"
10559 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10560 else
10561 for found_dir in $rpathdirs; do
10562 acl_save_libdir="$libdir"
10563 libdir="$found_dir"
10564 eval flag=\"$hardcode_libdir_flag_spec\"
10565 libdir="$acl_save_libdir"
10566 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10567 done
10568 fi
10569 fi
10570 if test "X$ltrpathdirs" != "X"; then
10571 for found_dir in $ltrpathdirs; do
10572 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10573 done
10574 fi
10575
Theodore Ts'oe1052142006-10-21 21:46:47 -040010576 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10577echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010578if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010580else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010581 gt_save_CPPFLAGS="$CPPFLAGS"
10582 CPPFLAGS="$CPPFLAGS $INCINTL"
10583 gt_save_LIBS="$LIBS"
10584 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010585 cat >conftest.$ac_ext <<_ACEOF
10586/* confdefs.h. */
10587_ACEOF
10588cat confdefs.h >>conftest.$ac_ext
10589cat >>conftest.$ac_ext <<_ACEOF
10590/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010591#include <libintl.h>
10592extern int _nl_msg_cat_cntr;
10593extern
10594#ifdef __cplusplus
10595"C"
10596#endif
10597const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010598int
10599main ()
10600{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010601bindtextdomain ("", "");
10602return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010603 ;
10604 return 0;
10605}
10606_ACEOF
10607rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010608if { (ac_try="$ac_link"
10609case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612esac
10613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest$ac_exeext &&
10624 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010625 gt_cv_func_gnugettext1_libintl=yes
10626else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010627 echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
Theodore Ts'oe1052142006-10-21 21:46:47 -040010630 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010631fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010632
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010634 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010635 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10636 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637 cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h. */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010643#include <libintl.h>
10644extern int _nl_msg_cat_cntr;
10645extern
10646#ifdef __cplusplus
10647"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010648#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010649const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010650int
10651main ()
10652{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010653bindtextdomain ("", "");
10654return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010655 ;
10656 return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010660if { (ac_try="$ac_link"
10661case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664esac
10665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010672 (exit $ac_status); } && {
10673 test -z "$ac_c_werror_flag" ||
10674 test ! -s conftest.err
10675 } && test -s conftest$ac_exeext &&
10676 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010677 LIBINTL="$LIBINTL $LIBICONV"
10678 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10679 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010681else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010682 echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
Theodore Ts'oe1052142006-10-21 21:46:47 -040010685
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010686fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010687
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010689 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010690 fi
10691 CPPFLAGS="$gt_save_CPPFLAGS"
10692 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010693fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010694{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10695echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010696 fi
10697
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010698 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10699 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010700 && test "$PACKAGE" != gettext-runtime \
10701 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010702 gt_use_preinstalled_gnugettext=yes
10703 else
10704 LIBINTL=
10705 LTLIBINTL=
10706 INCINTL=
10707 fi
10708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010709
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010710 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10711 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010712 fi
10713 fi
10714
10715 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010717 USE_INCLUDED_LIBINTL=yes
10718 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10719 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10720 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010721 fi
10722
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010723 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10724 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10725 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010726 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010727
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010728
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010729 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10730 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010731
10732cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010733#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010734_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010735
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010736 else
10737 USE_NLS=no
10738 fi
10739 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010740
Theodore Ts'oe1052142006-10-21 21:46:47 -040010741 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10742echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10743 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10744echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010746 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10747echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10749 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10750 gt_source="external libintl"
10751 else
10752 gt_source="libc"
10753 fi
10754 else
10755 gt_source="included intl directory"
10756 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010757 { echo "$as_me:$LINENO: result: $gt_source" >&5
10758echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010759 fi
10760
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010761 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010762
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10764 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010765 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10766echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10767 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10768echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010769
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010770 for element in $INCINTL; do
10771 haveit=
10772 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010773
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010774 acl_save_prefix="$prefix"
10775 prefix="$acl_final_prefix"
10776 acl_save_exec_prefix="$exec_prefix"
10777 exec_prefix="$acl_final_exec_prefix"
10778 eval x=\"$x\"
10779 exec_prefix="$acl_save_exec_prefix"
10780 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010781
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010782 if test "X$x" = "X$element"; then
10783 haveit=yes
10784 break
10785 fi
10786 done
10787 if test -z "$haveit"; then
10788 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10789 fi
10790 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010791
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010793
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010795cat >>confdefs.h <<\_ACEOF
10796#define HAVE_GETTEXT 1
10797_ACEOF
10798
10799
10800cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010801#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010802_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010803
10804 fi
10805
10806 POSUB=po
10807 fi
10808
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010809
10810 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010811 BUILD_INCLUDED_LIBINTL=yes
10812 fi
10813
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010814
10815
10816
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010817
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010818 nls_cv_header_intl=
10819 nls_cv_header_libgt=
10820
10821 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010822
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010823
10824 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010825
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010826
10827 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010828
10829
10830 if test "$USE_INCLUDED_LIBINTL" = yes; then
10831 INTLOBJS="\$(GETTOBJS)"
10832 fi
10833
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010834
10835 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010836
10837
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010838
10839 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010840
10841
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010842
10843
10844
10845
10846
Theodore Ts'oe1052142006-10-21 21:46:47 -040010847{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10848echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10849set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10850if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010851 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010852else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010853 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010854SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010855all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010856 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010857_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010858# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010859case `${MAKE-make} -f conftest.make 2>/dev/null` in
10860 *@@@%%%=?*=@@@%%%*)
10861 eval ac_cv_prog_make_${ac_make}_set=yes;;
10862 *)
10863 eval ac_cv_prog_make_${ac_make}_set=no;;
10864esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010865rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010867if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10868 { echo "$as_me:$LINENO: result: yes" >&5
10869echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010870 SET_MAKE=
10871else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010872 { echo "$as_me:$LINENO: result: no" >&5
10873echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010874 SET_MAKE="MAKE=${MAKE-make}"
10875fi
10876
10877# Extract the first word of "ln", so it can be a program name with args.
10878set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010881if test "${ac_cv_path_LN+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010883else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010884 case $LN in
10885 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010886 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10887 ;;
10888 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890for as_dir in $PATH
10891do
10892 IFS=$as_save_IFS
10893 test -z "$as_dir" && as_dir=.
10894 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010895 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 -050010896 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 break 2
10899 fi
10900done
10901done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010902IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010903
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010904 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10905 ;;
10906esac
10907fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010908LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010909if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010910 { echo "$as_me:$LINENO: result: $LN" >&5
10911echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010912else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010913 { echo "$as_me:$LINENO: result: no" >&5
10914echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010915fi
10916
Theodore Ts'oe1052142006-10-21 21:46:47 -040010917
10918{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10919echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010920LN_S=$as_ln_s
10921if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010922 { echo "$as_me:$LINENO: result: yes" >&5
10923echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010924else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010925 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10926echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010927fi
10928
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010929# Extract the first word of "mv", so it can be a program name with args.
10930set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010933if test "${ac_cv_path_MV+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010936 case $MV in
10937 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010938 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10939 ;;
10940 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942for as_dir in $PATH
10943do
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010947 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 -050010948 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 break 2
10951 fi
10952done
10953done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010954IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010955
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010956 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10957 ;;
10958esac
10959fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010960MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010961if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010962 { echo "$as_me:$LINENO: result: $MV" >&5
10963echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010964else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010965 { echo "$as_me:$LINENO: result: no" >&5
10966echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010967fi
10968
Theodore Ts'oe1052142006-10-21 21:46:47 -040010969
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010970# Extract the first word of "cp", so it can be a program name with args.
10971set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010974if test "${ac_cv_path_CP+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010976else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010977 case $CP in
10978 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010979 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10980 ;;
10981 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $PATH
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010988 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 -050010989 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10992 fi
10993done
10994done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010995IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010996
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010997 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10998 ;;
10999esac
11000fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011001CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011002if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011003 { echo "$as_me:$LINENO: result: $CP" >&5
11004echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011005else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011006 { echo "$as_me:$LINENO: result: no" >&5
11007echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011008fi
11009
Theodore Ts'oe1052142006-10-21 21:46:47 -040011010
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011011# Extract the first word of "rm", so it can be a program name with args.
11012set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011015if test "${ac_cv_path_RM+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011018 case $RM in
11019 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011020 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11021 ;;
11022 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011029 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 -050011030 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11033 fi
11034done
11035done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011036IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011037
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011038 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11039 ;;
11040esac
11041fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011042RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011043if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011044 { echo "$as_me:$LINENO: result: $RM" >&5
11045echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011046else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011047 { echo "$as_me:$LINENO: result: no" >&5
11048echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011049fi
11050
Theodore Ts'oe1052142006-10-21 21:46:47 -040011051
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011052# Extract the first word of "chmod", so it can be a program name with args.
11053set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011056if test "${ac_cv_path_CHMOD+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011058else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011059 case $CHMOD in
11060 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011061 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11062 ;;
11063 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065for as_dir in $PATH
11066do
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011070 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 -050011071 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11074 fi
11075done
11076done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011077IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011078
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011079 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11080 ;;
11081esac
11082fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011083CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011084if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011085 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11086echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011087else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011088 { echo "$as_me:$LINENO: result: no" >&5
11089echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011090fi
11091
Theodore Ts'oe1052142006-10-21 21:46:47 -040011092
Theodore Ts'o32237012005-01-17 19:13:39 -050011093for ac_prog in gawk mawk nawk awk
11094do
11095 # Extract the first word of "$ac_prog", so it can be a program name with args.
11096set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011099if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011100 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011101else
Theodore Ts'o32237012005-01-17 19:13:39 -050011102 if test -n "$AWK"; then
11103 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11104else
11105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011106for as_dir in $PATH
11107do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011111 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 -050011112 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116done
11117done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011118IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011119
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011120fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011121fi
11122AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011123if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011124 { echo "$as_me:$LINENO: result: $AWK" >&5
11125echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011126else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011127 { echo "$as_me:$LINENO: result: no" >&5
11128echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011129fi
11130
Theodore Ts'oe1052142006-10-21 21:46:47 -040011131
Theodore Ts'o32237012005-01-17 19:13:39 -050011132 test -n "$AWK" && break
11133done
11134
Theodore Ts'oe1052142006-10-21 21:46:47 -040011135{ echo "$as_me:$LINENO: checking for egrep" >&5
11136echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11137if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011140 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11141 then ac_cv_path_EGREP="$GREP -E"
11142 else
11143 # Extract the first word of "egrep" to use in msg output
11144if test -z "$EGREP"; then
11145set dummy egrep; ac_prog_name=$2
11146if test "${ac_cv_path_EGREP+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149 ac_path_EGREP_found=false
11150# Loop through the user's path and test for each of PROGNAME-LIST
11151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11153do
11154 IFS=$as_save_IFS
11155 test -z "$as_dir" && as_dir=.
11156 for ac_prog in egrep; do
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011159 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011160 # Check for GNU ac_path_EGREP and select it if it is found.
11161 # Check for GNU $ac_path_EGREP
11162case `"$ac_path_EGREP" --version 2>&1` in
11163*GNU*)
11164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11165*)
11166 ac_count=0
11167 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11168 while :
11169 do
11170 cat "conftest.in" "conftest.in" >"conftest.tmp"
11171 mv "conftest.tmp" "conftest.in"
11172 cp "conftest.in" "conftest.nl"
11173 echo 'EGREP' >> "conftest.nl"
11174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11176 ac_count=`expr $ac_count + 1`
11177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11178 # Best one so far, save it but keep looking for a better one
11179 ac_cv_path_EGREP="$ac_path_EGREP"
11180 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011181 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011182 # 10*(2^10) chars as input seems more than enough
11183 test $ac_count -gt 10 && break
11184 done
11185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11186esac
11187
11188
11189 $ac_path_EGREP_found && break 3
11190 done
11191done
11192
11193done
11194IFS=$as_save_IFS
11195
11196
Theodore Ts'o32237012005-01-17 19:13:39 -050011197fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011198
11199EGREP="$ac_cv_path_EGREP"
11200if test -z "$EGREP"; then
11201 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11202echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11203 { (exit 1); exit 1; }; }
11204fi
11205
11206else
11207 ac_cv_path_EGREP=$EGREP
11208fi
11209
11210
11211 fi
11212fi
11213{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11214echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11215 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011216
11217
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011218# Extract the first word of "sed", so it can be a program name with args.
11219set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011222if test "${ac_cv_path_SED+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011224else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011225 case $SED in
11226 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011227 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11228 ;;
11229 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231for as_dir in $PATH
11232do
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011236 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 -050011237 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11240 fi
11241done
11242done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011243IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011244
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011245 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11246 ;;
11247esac
11248fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011249SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011250if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011251 { echo "$as_me:$LINENO: result: $SED" >&5
11252echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011253else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011254 { echo "$as_me:$LINENO: result: no" >&5
11255echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011256fi
11257
Theodore Ts'oe1052142006-10-21 21:46:47 -040011258
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011259# Extract the first word of "perl", so it can be a program name with args.
11260set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011263if test "${ac_cv_path_PERL+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011265else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011266 case $PERL in
11267 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011268 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11269 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011270 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011277 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 -050011278 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11281 fi
11282done
11283done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011284IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011285
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011286 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11287 ;;
11288esac
11289fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011290PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011291if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011292 { echo "$as_me:$LINENO: result: $PERL" >&5
11293echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011294else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011295 { echo "$as_me:$LINENO: result: no" >&5
11296echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011297fi
11298
Theodore Ts'oe1052142006-10-21 21:46:47 -040011299
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011300# Extract the first word of "ldconfig", so it can be a program name with args.
11301set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011304if test "${ac_cv_path_LDCONFIG+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011306else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011307 case $LDCONFIG in
11308 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011309 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11310 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011311 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011318 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 -050011319 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 break 2
11322 fi
11323done
11324done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011325IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011326
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011327 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11328 ;;
11329esac
11330fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011331LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011332if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011333 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11334echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011335else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011336 { echo "$as_me:$LINENO: result: no" >&5
11337echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011338fi
11339
Theodore Ts'oe1052142006-10-21 21:46:47 -040011340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011341if test -n "$ac_tool_prefix"; then
11342 # 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 +000011343set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011346if test "${ac_cv_prog_AR+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011348else
11349 if test -n "$AR"; then
11350 ac_cv_prog_AR="$AR" # Let the user override the test.
11351else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011358 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 -050011359 ac_cv_prog_AR="${ac_tool_prefix}ar"
11360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363done
11364done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011365IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011366
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011367fi
11368fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011369AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011370if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011371 { echo "$as_me:$LINENO: result: $AR" >&5
11372echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011373else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011374 { echo "$as_me:$LINENO: result: no" >&5
11375echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011376fi
11377
Theodore Ts'oe1052142006-10-21 21:46:47 -040011378
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011380if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011381 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011382 # Extract the first word of "ar", so it can be a program name with args.
11383set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011386if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011388else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011389 if test -n "$ac_ct_AR"; then
11390 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011391else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393for as_dir in $PATH
11394do
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011398 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 -050011399 ac_cv_prog_ac_ct_AR="ar"
11400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11402 fi
11403done
11404done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011405IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011406
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011407fi
11408fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011409ac_ct_AR=$ac_cv_prog_ac_ct_AR
11410if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011411 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11412echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011413else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011414 { echo "$as_me:$LINENO: result: no" >&5
11415echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011416fi
11417
Theodore Ts'oe1052142006-10-21 21:46:47 -040011418 if test "x$ac_ct_AR" = x; then
11419 AR="ar"
11420 else
11421 case $cross_compiling:$ac_tool_warned in
11422yes:)
11423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11424whose name does not start with the host triplet. If you think this
11425configuration is useful to you, please write to autoconf@gnu.org." >&5
11426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11427whose name does not start with the host triplet. If you think this
11428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11429ac_tool_warned=yes ;;
11430esac
11431 AR=$ac_ct_AR
11432 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011433else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011434 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011435fi
11436
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437if test -n "$ac_tool_prefix"; then
11438 # 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 +000011439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011442if test "${ac_cv_prog_RANLIB+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011444else
11445 if test -n "$RANLIB"; then
11446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11447else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449for as_dir in $PATH
11450do
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011454 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 -050011455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11458 fi
11459done
11460done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011461IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011462
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011463fi
11464fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011465RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011466if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011467 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11468echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011469else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011470 { echo "$as_me:$LINENO: result: no" >&5
11471echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011472fi
11473
Theodore Ts'oe1052142006-10-21 21:46:47 -040011474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011475fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011476if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011477 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011478 # Extract the first word of "ranlib", so it can be a program name with args.
11479set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011482if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011484else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011485 if test -n "$ac_ct_RANLIB"; then
11486 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011487else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489for as_dir in $PATH
11490do
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011494 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 -050011495 ac_cv_prog_ac_ct_RANLIB="ranlib"
11496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11498 fi
11499done
11500done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011501IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011502
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011503fi
11504fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11506if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011507 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11508echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011509else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011510 { echo "$as_me:$LINENO: result: no" >&5
11511echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011512fi
11513
Theodore Ts'oe1052142006-10-21 21:46:47 -040011514 if test "x$ac_ct_RANLIB" = x; then
11515 RANLIB=":"
11516 else
11517 case $cross_compiling:$ac_tool_warned in
11518yes:)
11519{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11520whose name does not start with the host triplet. If you think this
11521configuration is useful to you, please write to autoconf@gnu.org." >&5
11522echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11523whose name does not start with the host triplet. If you think this
11524configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11525ac_tool_warned=yes ;;
11526esac
11527 RANLIB=$ac_ct_RANLIB
11528 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011529else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011530 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011531fi
11532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533if test -n "$ac_tool_prefix"; then
11534 # 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 +000011535set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011538if test "${ac_cv_prog_STRIP+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011540else
11541 if test -n "$STRIP"; then
11542 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11543else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545for as_dir in $PATH
11546do
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011550 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 -050011551 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 break 2
11554 fi
11555done
11556done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011557IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011558
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011559fi
11560fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011561STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011562if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011563 { echo "$as_me:$LINENO: result: $STRIP" >&5
11564echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011565else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011566 { echo "$as_me:$LINENO: result: no" >&5
11567echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011568fi
11569
Theodore Ts'oe1052142006-10-21 21:46:47 -040011570
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011574 # Extract the first word of "strip", so it can be a program name with args.
11575set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011578if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011580else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011581 if test -n "$ac_ct_STRIP"; then
11582 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011583else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011590 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 -050011591 ac_cv_prog_ac_ct_STRIP="strip"
11592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11594 fi
11595done
11596done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011597IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011599fi
11600fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011601ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11602if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011603 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11604echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011605else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011606 { echo "$as_me:$LINENO: result: no" >&5
11607echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011608fi
11609
Theodore Ts'oe1052142006-10-21 21:46:47 -040011610 if test "x$ac_ct_STRIP" = x; then
11611 STRIP=":"
11612 else
11613 case $cross_compiling:$ac_tool_warned in
11614yes:)
11615{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11616whose name does not start with the host triplet. If you think this
11617configuration is useful to you, please write to autoconf@gnu.org." >&5
11618echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11619whose name does not start with the host triplet. If you think this
11620configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11621ac_tool_warned=yes ;;
11622esac
11623 STRIP=$ac_ct_STRIP
11624 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011625else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011626 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011627fi
11628
Manish Katiyar7321d942008-04-14 17:20:03 +053011629# Extract the first word of "makeinfo", so it can be a program name with args.
11630set dummy makeinfo; ac_word=$2
11631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11633if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 if test -n "$MAKEINFO"; then
11637 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11638else
11639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640for as_dir in $PATH
11641do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11646 ac_cv_prog_MAKEINFO="makeinfo"
11647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650done
11651done
11652IFS=$as_save_IFS
11653
11654fi
11655fi
11656MAKEINFO=$ac_cv_prog_MAKEINFO
11657if test -n "$MAKEINFO"; then
11658 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11659echo "${ECHO_T}$MAKEINFO" >&6; }
11660else
11661 { echo "$as_me:$LINENO: result: no" >&5
11662echo "${ECHO_T}no" >&6; }
11663fi
11664
11665
11666if test "_$MAKEINFO" = "_"; then
11667 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11668else
11669 case "$MAKEINFO" in
11670 */missing.*)
11671 { echo "$as_me:$LINENO: WARNING:
11672*** Makeinfo is missing. Info documentation will not be built." >&5
11673echo "$as_me: WARNING:
11674*** Makeinfo is missing. Info documentation will not be built." >&2;}
11675 ;;
11676 *)
11677 ;;
11678 esac
11679fi
11680
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011681# Find a good install program. We prefer a C program (faster),
11682# so one script is as good as another. But avoid the broken or
11683# incompatible versions:
11684# SysV /etc/install, /usr/sbin/install
11685# SunOS /usr/etc/install
11686# IRIX /sbin/install
11687# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011688# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011690# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011693# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011694{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11695echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011696if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011697if test "${ac_cv_path_install+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011699else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 # Account for people who put trailing slashes in PATH elements.
11706case $as_dir/ in
11707 ./ | .// | /cC/* | \
11708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11710 /usr/ucb/* ) ;;
11711 *)
11712 # OSF1 and SCO ODT 3.0 have their own names for install.
11713 # Don't use installbsd from OSF since it installs stuff as root
11714 # by default.
11715 for ac_prog in ginstall scoinst install; do
11716 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011717 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 +000011718 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011722 elif test $ac_prog = install &&
11723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11724 # program-specific install script used by HP pwplus--don't use.
11725 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011726 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11728 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011729 fi
11730 fi
11731 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011732 done
11733 ;;
11734esac
11735done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011736IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011737
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011738
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011739fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011740 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011741 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011742 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011743 # As a last resort, use the slow shell script. Don't cache a
11744 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011745 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011746 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011747 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011748 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011749fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011750{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11751echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011752
11753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11754# It thinks the first close brace ends the variable substitution.
11755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11756
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011758
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11760
Theodore Ts'o6c133521999-07-03 20:37:03 +000011761# See if we need a separate native compiler.
11762if test $cross_compiling = no; then
11763 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011764
Theodore Ts'o6c133521999-07-03 20:37:03 +000011765else
11766 for ac_prog in gcc cc
11767do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011768 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011769set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011772if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011774else
11775 if test -n "$BUILD_CC"; then
11776 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11777else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011780do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
11783 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011784 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 -050011785 ac_cv_prog_BUILD_CC="$ac_prog"
11786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11787 break 2
11788 fi
11789done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011790done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011791IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011793fi
11794fi
11795BUILD_CC=$ac_cv_prog_BUILD_CC
11796if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011797 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11798echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011799else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011800 { echo "$as_me:$LINENO: result: no" >&5
11801echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011802fi
11803
Theodore Ts'oe1052142006-10-21 21:46:47 -040011804
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011805 test -n "$BUILD_CC" && break
11806done
11807
11808fi
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011838
Theodore Ts'o106ad962007-04-04 21:26:37 -040011839
11840
Theodore Ts'o29dd9d12007-12-31 14:36:48 -050011841
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011842
11843
11844for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011845do
11846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011853ac_res=`eval echo '${'$as_ac_Header'}'`
11854 { echo "$as_me:$LINENO: result: $ac_res" >&5
11855echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011856else
11857 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011858{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011860cat >conftest.$ac_ext <<_ACEOF
11861/* confdefs.h. */
11862_ACEOF
11863cat confdefs.h >>conftest.$ac_ext
11864cat >>conftest.$ac_ext <<_ACEOF
11865/* end confdefs.h. */
11866$ac_includes_default
11867#include <$ac_header>
11868_ACEOF
11869rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870if { (ac_try="$ac_compile"
11871case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011886 ac_header_compiler=yes
11887else
11888 echo "$as_me: failed program was:" >&5
11889sed 's/^/| /' conftest.$ac_ext >&5
11890
Theodore Ts'oe1052142006-10-21 21:46:47 -040011891 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011892fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011893
11894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11896echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011897
11898# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011899{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011901cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
11907#include <$ac_header>
11908_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011909if { (ac_try="$ac_cpp conftest.$ac_ext"
11910case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011921 (exit $ac_status); } >/dev/null && {
11922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011925 ac_header_preproc=yes
11926else
11927 echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930 ac_header_preproc=no
11931fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011933rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011934{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11935echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936
11937# So? What about this header?
11938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11939 yes:no: )
11940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11944 ac_header_preproc=yes
11945 ;;
11946 no:yes:* )
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11954echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011959
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960 ;;
11961esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011962{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966else
11967 eval "$as_ac_Header=\$ac_header_preproc"
11968fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011969ac_res=`eval echo '${'$as_ac_Header'}'`
11970 { echo "$as_me:$LINENO: result: $ac_res" >&5
11971echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011972
11973fi
11974if test `eval echo '${'$as_ac_Header'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977_ACEOF
11978
11979fi
11980
11981done
11982
11983
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011984
11985for ac_header in sys/disk.h sys/mount.h
11986do
11987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011988{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992else
11993 cat >conftest.$ac_ext <<_ACEOF
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999
12000#if HAVE_SYS_QUEUE_H
12001#include <sys/queue.h>
12002#endif
12003
12004
12005#include <$ac_header>
12006_ACEOF
12007rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012008if { (ac_try="$ac_compile"
12009case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012esac
12013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012020 (exit $ac_status); } && {
12021 test -z "$ac_c_werror_flag" ||
12022 test ! -s conftest.err
12023 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012024 eval "$as_ac_Header=yes"
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
Theodore Ts'oe1052142006-10-21 21:46:47 -040012029 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012031
12032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012033fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012034ac_res=`eval echo '${'$as_ac_Header'}'`
12035 { echo "$as_me:$LINENO: result: $ac_res" >&5
12036echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012037if test `eval echo '${'$as_ac_Header'}'` = yes; then
12038 cat >>confdefs.h <<_ACEOF
12039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12040_ACEOF
12041
12042fi
12043
12044done
12045
12046
12047for ac_header in net/if.h
12048do
12049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012050{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054else
12055 cat >conftest.$ac_ext <<_ACEOF
12056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
12061
12062#if HAVE_SYS_TYPES_H
12063#include <sys/types.h>
12064#endif
12065#if HAVE_SYS_SOCKET
12066#include <sys/socket.h>
12067#endif
12068
12069
12070#include <$ac_header>
12071_ACEOF
12072rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012073if { (ac_try="$ac_compile"
12074case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12077esac
12078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012080 ac_status=$?
12081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012089 eval "$as_ac_Header=yes"
12090else
12091 echo "$as_me: failed program was:" >&5
12092sed 's/^/| /' conftest.$ac_ext >&5
12093
Theodore Ts'oe1052142006-10-21 21:46:47 -040012094 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012095fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012096
12097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012098fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012099ac_res=`eval echo '${'$as_ac_Header'}'`
12100 { echo "$as_me:$LINENO: result: $ac_res" >&5
12101echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012102if test `eval echo '${'$as_ac_Header'}'` = yes; then
12103 cat >>confdefs.h <<_ACEOF
12104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12105_ACEOF
12106
12107fi
12108
12109done
12110
12111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112for ac_func in vprintf
12113do
12114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012115{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12117if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 cat >conftest.$ac_ext <<_ACEOF
12121/* confdefs.h. */
12122_ACEOF
12123cat confdefs.h >>conftest.$ac_ext
12124cat >>conftest.$ac_ext <<_ACEOF
12125/* end confdefs.h. */
12126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12128#define $ac_func innocuous_$ac_func
12129
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012130/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012131 which can conflict with char $ac_func (); below.
12132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12133 <limits.h> exists even on freestanding compilers. */
12134
12135#ifdef __STDC__
12136# include <limits.h>
12137#else
12138# include <assert.h>
12139#endif
12140
12141#undef $ac_func
12142
Theodore Ts'oe1052142006-10-21 21:46:47 -040012143/* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012146#ifdef __cplusplus
12147extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012148#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012149char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012150/* The GNU C library defines this for functions which it implements
12151 to always fail with ENOSYS. Some functions are actually named
12152 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012153#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012154choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155#endif
12156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157int
12158main ()
12159{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161 ;
12162 return 0;
12163}
12164_ACEOF
12165rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166if { (ac_try="$ac_link"
12167case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170esac
12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest$ac_exeext &&
12182 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012183 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012184else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012185 echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012187
Theodore Ts'oe1052142006-10-21 21:46:47 -040012188 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012190
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012192 conftest$ac_exeext conftest.$ac_ext
12193fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012194ac_res=`eval echo '${'$as_ac_var'}'`
12195 { echo "$as_me:$LINENO: result: $ac_res" >&5
12196echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197if test `eval echo '${'$as_ac_var'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012201
Theodore Ts'oe1052142006-10-21 21:46:47 -040012202{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12203echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204if test "${ac_cv_func__doprnt+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012206else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012207 cat >conftest.$ac_ext <<_ACEOF
12208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
12212/* end confdefs.h. */
12213/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12215#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012216
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012217/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218 which can conflict with char _doprnt (); below.
12219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12220 <limits.h> exists even on freestanding compilers. */
12221
12222#ifdef __STDC__
12223# include <limits.h>
12224#else
12225# include <assert.h>
12226#endif
12227
12228#undef _doprnt
12229
Theodore Ts'oe1052142006-10-21 21:46:47 -040012230/* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012233#ifdef __cplusplus
12234extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012236char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012237/* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012240#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012241choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012242#endif
12243
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012244int
12245main ()
12246{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012247return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248 ;
12249 return 0;
12250}
12251_ACEOF
12252rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012253if { (ac_try="$ac_link"
12254case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257esac
12258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest$ac_exeext &&
12269 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012270 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012271else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012274
Theodore Ts'oe1052142006-10-21 21:46:47 -040012275 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012277
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012279 conftest$ac_exeext conftest.$ac_ext
12280fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012281{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12282echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012283if test $ac_cv_func__doprnt = yes; then
12284
12285cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012286#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012287_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012288
12289fi
12290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012291fi
12292done
12293
12294
Theodore Ts'oe1052142006-10-21 21:46:47 -040012295{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12296echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012297if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012298 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012306#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012308int
12309main ()
12310{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012311static struct dirent ac_aggr;
12312if (ac_aggr.d_reclen)
12313return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012314 ;
12315 return 0;
12316}
12317_ACEOF
12318rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012319if { (ac_try="$ac_compile"
12320case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323esac
12324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012331 (exit $ac_status); } && {
12332 test -z "$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12334 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012335 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012337 echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
Theodore Ts'oe1052142006-10-21 21:46:47 -040012340 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h. */
12346#include <dirent.h>
12347
12348int
12349main ()
12350{
12351static struct dirent ac_aggr;
12352if (sizeof ac_aggr.d_reclen)
12353return 0;
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012359if { (ac_try="$ac_compile"
12360case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363esac
12364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012371 (exit $ac_status); } && {
12372 test -z "$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12374 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012375 ac_cv_member_struct_dirent_d_reclen=yes
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
Theodore Ts'oe1052142006-10-21 21:46:47 -040012380 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012381fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012382
12383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012384fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012385
12386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012388{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12389echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012390if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12391 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012392#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012393_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012394
12395fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012396
Theodore Ts'oe1052142006-10-21 21:46:47 -040012397{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12398echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012399if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012401else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012402 cat >conftest.$ac_ext <<_ACEOF
12403/* confdefs.h. */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012408#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012409
Theodore Ts'oe1052142006-10-21 21:46:47 -040012410typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012411int
12412main ()
12413{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012414if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012415 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012416if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012417 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012418 ;
12419 return 0;
12420}
12421_ACEOF
12422rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012423if { (ac_try="$ac_compile"
12424case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427esac
12428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012439 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012440else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
Theodore Ts'oe1052142006-10-21 21:46:47 -040012444 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012446
12447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012449{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12450echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012451if test $ac_cv_type_ssize_t = yes; then
12452 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012453#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012455
12456fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012457
Theodore Ts'oe1052142006-10-21 21:46:47 -040012458{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12459echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012460if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012461 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012462else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012463 cat >conftest.$ac_ext <<_ACEOF
12464/* confdefs.h. */
12465_ACEOF
12466cat confdefs.h >>conftest.$ac_ext
12467cat >>conftest.$ac_ext <<_ACEOF
12468/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012469#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012471int
12472main ()
12473{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012474#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012475 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012476#endif
12477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012483if { (ac_try="$ac_compile"
12484case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12487esac
12488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012490 ac_status=$?
12491 grep -v '^ *+' conftest.er1 >conftest.err
12492 rm -f conftest.er1
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012499 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012500else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501 echo "$as_me: failed program was:" >&5
12502sed 's/^/| /' conftest.$ac_ext >&5
12503
Theodore Ts'oe1052142006-10-21 21:46:47 -040012504 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012505fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012506
12507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012509{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12510echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012511if test $ac_cv_have_decl_llseek = yes; then
12512 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012513#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012515
12516fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012517
Theodore Ts'oe1052142006-10-21 21:46:47 -040012518{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12519echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012520if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012522else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012523 cat >conftest.$ac_ext <<_ACEOF
12524/* confdefs.h. */
12525_ACEOF
12526cat confdefs.h >>conftest.$ac_ext
12527cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012529#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012530 #define _LARGEFILE64_SOURCE
12531 #include <unistd.h>
12532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012533int
12534main ()
12535{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012536#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012537 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012538#endif
12539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012540 ;
12541 return 0;
12542}
12543_ACEOF
12544rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012545if { (ac_try="$ac_compile"
12546case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549esac
12550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012561 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012562else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
Theodore Ts'oe1052142006-10-21 21:46:47 -040012566 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012567fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012568
12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012571{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12572echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012573if test $ac_cv_have_decl_lseek64 = yes; then
12574 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012575#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012576_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012577
12578fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012579
Theodore Ts'oe1052142006-10-21 21:46:47 -040012580{ echo "$as_me:$LINENO: checking for short" >&5
12581echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012582if test "${ac_cv_type_short+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584else
12585 cat >conftest.$ac_ext <<_ACEOF
12586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h. */
12591$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012592typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012593int
12594main ()
12595{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012596if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012597 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012598if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012599 return 0;
12600 ;
12601 return 0;
12602}
12603_ACEOF
12604rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012605if { (ac_try="$ac_compile"
12606case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609esac
12610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012612 ac_status=$?
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012617 (exit $ac_status); } && {
12618 test -z "$ac_c_werror_flag" ||
12619 test ! -s conftest.err
12620 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012621 ac_cv_type_short=yes
12622else
12623 echo "$as_me: failed program was:" >&5
12624sed 's/^/| /' conftest.$ac_ext >&5
12625
Theodore Ts'oe1052142006-10-21 21:46:47 -040012626 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012627fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012628
Theodore Ts'oe1052142006-10-21 21:46:47 -040012629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630fi
12631{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12632echo "${ECHO_T}$ac_cv_type_short" >&6; }
12633
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012634# The cast to long int works around a bug in the HP C Compiler
12635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12637# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012638{ echo "$as_me:$LINENO: checking size of short" >&5
12639echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012640if test "${ac_cv_sizeof_short+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643 if test "$cross_compiling" = yes; then
12644 # Depending upon the size, compute the lo and hi bounds.
12645cat >conftest.$ac_ext <<_ACEOF
12646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
12650/* end confdefs.h. */
12651$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012652 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012653int
12654main ()
12655{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012656static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012657test_array [0] = 0
12658
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664if { (ac_try="$ac_compile"
12665case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668esac
12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012671 ac_status=$?
12672 grep -v '^ *+' conftest.er1 >conftest.err
12673 rm -f conftest.er1
12674 cat conftest.err >&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012676 (exit $ac_status); } && {
12677 test -z "$ac_c_werror_flag" ||
12678 test ! -s conftest.err
12679 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012680 ac_lo=0 ac_mid=0
12681 while :; do
12682 cat >conftest.$ac_ext <<_ACEOF
12683/* confdefs.h. */
12684_ACEOF
12685cat confdefs.h >>conftest.$ac_ext
12686cat >>conftest.$ac_ext <<_ACEOF
12687/* end confdefs.h. */
12688$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012689 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012690int
12691main ()
12692{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012693static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012694test_array [0] = 0
12695
12696 ;
12697 return 0;
12698}
12699_ACEOF
12700rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012701if { (ac_try="$ac_compile"
12702case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12705esac
12706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012713 (exit $ac_status); } && {
12714 test -z "$ac_c_werror_flag" ||
12715 test ! -s conftest.err
12716 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012717 ac_hi=$ac_mid; break
12718else
12719 echo "$as_me: failed program was:" >&5
12720sed 's/^/| /' conftest.$ac_ext >&5
12721
Theodore Ts'oe1052142006-10-21 21:46:47 -040012722 ac_lo=`expr $ac_mid + 1`
12723 if test $ac_lo -le $ac_mid; then
12724 ac_lo= ac_hi=
12725 break
12726 fi
12727 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012729
12730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731 done
12732else
12733 echo "$as_me: failed program was:" >&5
12734sed 's/^/| /' conftest.$ac_ext >&5
12735
Theodore Ts'oe1052142006-10-21 21:46:47 -040012736 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012743 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744int
12745main ()
12746{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012747static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012748test_array [0] = 0
12749
12750 ;
12751 return 0;
12752}
12753_ACEOF
12754rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012755if { (ac_try="$ac_compile"
12756case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012762 ac_status=$?
12763 grep -v '^ *+' conftest.er1 >conftest.err
12764 rm -f conftest.er1
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012767 (exit $ac_status); } && {
12768 test -z "$ac_c_werror_flag" ||
12769 test ! -s conftest.err
12770 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012771 ac_hi=-1 ac_mid=-1
12772 while :; do
12773 cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012780 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012781int
12782main ()
12783{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012784static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012785test_array [0] = 0
12786
12787 ;
12788 return 0;
12789}
12790_ACEOF
12791rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012792if { (ac_try="$ac_compile"
12793case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012804 (exit $ac_status); } && {
12805 test -z "$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12807 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012808 ac_lo=$ac_mid; break
12809else
12810 echo "$as_me: failed program was:" >&5
12811sed 's/^/| /' conftest.$ac_ext >&5
12812
Theodore Ts'oe1052142006-10-21 21:46:47 -040012813 ac_hi=`expr '(' $ac_mid ')' - 1`
12814 if test $ac_mid -le $ac_hi; then
12815 ac_lo= ac_hi=
12816 break
12817 fi
12818 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012819fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012820
12821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012822 done
12823else
12824 echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
Theodore Ts'oe1052142006-10-21 21:46:47 -040012827 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012828fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012829
12830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012832
12833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012834# Binary search between lo and hi bounds.
12835while test "x$ac_lo" != "x$ac_hi"; do
12836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12837 cat >conftest.$ac_ext <<_ACEOF
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h. */
12843$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012844 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012845int
12846main ()
12847{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012848static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012849test_array [0] = 0
12850
12851 ;
12852 return 0;
12853}
12854_ACEOF
12855rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012856if { (ac_try="$ac_compile"
12857case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012868 (exit $ac_status); } && {
12869 test -z "$ac_c_werror_flag" ||
12870 test ! -s conftest.err
12871 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012872 ac_hi=$ac_mid
12873else
12874 echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
Theodore Ts'oe1052142006-10-21 21:46:47 -040012877 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012878fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012879
12880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012881done
12882case $ac_lo in
12883?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012884'') if test "$ac_cv_type_short" = yes; then
12885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012886See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012887echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012888See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012889 { (exit 77); exit 77; }; }
12890 else
12891 ac_cv_sizeof_short=0
12892 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012893esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012894else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012895 cat >conftest.$ac_ext <<_ACEOF
12896/* confdefs.h. */
12897_ACEOF
12898cat confdefs.h >>conftest.$ac_ext
12899cat >>conftest.$ac_ext <<_ACEOF
12900/* end confdefs.h. */
12901$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012902 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012903static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12904static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012905#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906#include <stdlib.h>
12907int
12908main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012909{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012910
12911 FILE *f = fopen ("conftest.val", "w");
12912 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012913 return 1;
12914 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012916 long int i = longval ();
12917 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12918 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012919 fprintf (f, "%ld\n", i);
12920 }
12921 else
12922 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012923 unsigned long int i = ulongval ();
12924 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12925 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012926 fprintf (f, "%lu\n", i);
12927 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012928 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929
12930 ;
12931 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012932}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012933_ACEOF
12934rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012935if { (ac_try="$ac_link"
12936case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12939esac
12940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012945 { (case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948esac
12949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012955else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012956 echo "$as_me: program exited with status $ac_status" >&5
12957echo "$as_me: failed program was:" >&5
12958sed 's/^/| /' conftest.$ac_ext >&5
12959
12960( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012961if test "$ac_cv_type_short" = yes; then
12962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012963See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012964echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012965See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012966 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012967 else
12968 ac_cv_sizeof_short=0
12969 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012971rm -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 -050012972fi
12973rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012974fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012975{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12976echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012977
12978
12979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012981#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012982_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012983
12984
Theodore Ts'oe1052142006-10-21 21:46:47 -040012985{ echo "$as_me:$LINENO: checking for int" >&5
12986echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012987if test "${ac_cv_type_int+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12989else
12990 cat >conftest.$ac_ext <<_ACEOF
12991/* confdefs.h. */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
12995/* end confdefs.h. */
12996$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012997typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012998int
12999main ()
13000{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013001if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013002 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013003if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013004 return 0;
13005 ;
13006 return 0;
13007}
13008_ACEOF
13009rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013010if { (ac_try="$ac_compile"
13011case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014esac
13015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013022 (exit $ac_status); } && {
13023 test -z "$ac_c_werror_flag" ||
13024 test ! -s conftest.err
13025 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013026 ac_cv_type_int=yes
13027else
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
Theodore Ts'oe1052142006-10-21 21:46:47 -040013031 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013032fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013033
Theodore Ts'oe1052142006-10-21 21:46:47 -040013034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035fi
13036{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13037echo "${ECHO_T}$ac_cv_type_int" >&6; }
13038
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013039# The cast to long int works around a bug in the HP C Compiler
13040# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13041# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13042# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013043{ echo "$as_me:$LINENO: checking size of int" >&5
13044echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013045if test "${ac_cv_sizeof_int+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013048 if test "$cross_compiling" = yes; then
13049 # Depending upon the size, compute the lo and hi bounds.
13050cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013057 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013058int
13059main ()
13060{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013061static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013062test_array [0] = 0
13063
13064 ;
13065 return 0;
13066}
13067_ACEOF
13068rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013069if { (ac_try="$ac_compile"
13070case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073esac
13074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013081 (exit $ac_status); } && {
13082 test -z "$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13084 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013085 ac_lo=0 ac_mid=0
13086 while :; do
13087 cat >conftest.$ac_ext <<_ACEOF
13088/* confdefs.h. */
13089_ACEOF
13090cat confdefs.h >>conftest.$ac_ext
13091cat >>conftest.$ac_ext <<_ACEOF
13092/* end confdefs.h. */
13093$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013094 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013095int
13096main ()
13097{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013098static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013099test_array [0] = 0
13100
13101 ;
13102 return 0;
13103}
13104_ACEOF
13105rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013106if { (ac_try="$ac_compile"
13107case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013118 (exit $ac_status); } && {
13119 test -z "$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013122 ac_hi=$ac_mid; break
13123else
13124 echo "$as_me: failed program was:" >&5
13125sed 's/^/| /' conftest.$ac_ext >&5
13126
Theodore Ts'oe1052142006-10-21 21:46:47 -040013127 ac_lo=`expr $ac_mid + 1`
13128 if test $ac_lo -le $ac_mid; then
13129 ac_lo= ac_hi=
13130 break
13131 fi
13132 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013133fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013134
13135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013136 done
13137else
13138 echo "$as_me: failed program was:" >&5
13139sed 's/^/| /' conftest.$ac_ext >&5
13140
Theodore Ts'oe1052142006-10-21 21:46:47 -040013141 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013148 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013149int
13150main ()
13151{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013152static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013153test_array [0] = 0
13154
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013160if { (ac_try="$ac_compile"
13161case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164esac
13165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013176 ac_hi=-1 ac_mid=-1
13177 while :; do
13178 cat >conftest.$ac_ext <<_ACEOF
13179/* confdefs.h. */
13180_ACEOF
13181cat confdefs.h >>conftest.$ac_ext
13182cat >>conftest.$ac_ext <<_ACEOF
13183/* end confdefs.h. */
13184$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013185 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013186int
13187main ()
13188{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013189static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013190test_array [0] = 0
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013197if { (ac_try="$ac_compile"
13198case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201esac
13202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013209 (exit $ac_status); } && {
13210 test -z "$ac_c_werror_flag" ||
13211 test ! -s conftest.err
13212 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013213 ac_lo=$ac_mid; break
13214else
13215 echo "$as_me: failed program was:" >&5
13216sed 's/^/| /' conftest.$ac_ext >&5
13217
Theodore Ts'oe1052142006-10-21 21:46:47 -040013218 ac_hi=`expr '(' $ac_mid ')' - 1`
13219 if test $ac_mid -le $ac_hi; then
13220 ac_lo= ac_hi=
13221 break
13222 fi
13223 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013224fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013225
13226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013227 done
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
Theodore Ts'oe1052142006-10-21 21:46:47 -040013232 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013233fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013234
13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013236fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013237
13238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013239# Binary search between lo and hi bounds.
13240while test "x$ac_lo" != "x$ac_hi"; do
13241 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13242 cat >conftest.$ac_ext <<_ACEOF
13243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h. */
13248$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013249 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013250int
13251main ()
13252{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013253static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013254test_array [0] = 0
13255
13256 ;
13257 return 0;
13258}
13259_ACEOF
13260rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013261if { (ac_try="$ac_compile"
13262case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13265esac
13266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013268 ac_status=$?
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013273 (exit $ac_status); } && {
13274 test -z "$ac_c_werror_flag" ||
13275 test ! -s conftest.err
13276 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013277 ac_hi=$ac_mid
13278else
13279 echo "$as_me: failed program was:" >&5
13280sed 's/^/| /' conftest.$ac_ext >&5
13281
Theodore Ts'oe1052142006-10-21 21:46:47 -040013282 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013283fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013284
13285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013286done
13287case $ac_lo in
13288?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013289'') if test "$ac_cv_type_int" = yes; then
13290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013291See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013292echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013293See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013294 { (exit 77); exit 77; }; }
13295 else
13296 ac_cv_sizeof_int=0
13297 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013298esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013300 cat >conftest.$ac_ext <<_ACEOF
13301/* confdefs.h. */
13302_ACEOF
13303cat confdefs.h >>conftest.$ac_ext
13304cat >>conftest.$ac_ext <<_ACEOF
13305/* end confdefs.h. */
13306$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013307 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013308static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13309static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013310#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013311#include <stdlib.h>
13312int
13313main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013314{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013315
13316 FILE *f = fopen ("conftest.val", "w");
13317 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013318 return 1;
13319 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013320 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013321 long int i = longval ();
13322 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13323 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013324 fprintf (f, "%ld\n", i);
13325 }
13326 else
13327 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013328 unsigned long int i = ulongval ();
13329 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13330 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013331 fprintf (f, "%lu\n", i);
13332 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013333 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013334
13335 ;
13336 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013337}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013338_ACEOF
13339rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013340if { (ac_try="$ac_link"
13341case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344esac
13345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013360else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013361 echo "$as_me: program exited with status $ac_status" >&5
13362echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013366if test "$ac_cv_type_int" = yes; then
13367 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013368See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013369echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013370See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013371 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013372 else
13373 ac_cv_sizeof_int=0
13374 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013375fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013376rm -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 -050013377fi
13378rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013380{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13381echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013382
13383
13384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013385cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013386#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013387_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013388
13389
Theodore Ts'oe1052142006-10-21 21:46:47 -040013390{ echo "$as_me:$LINENO: checking for long" >&5
13391echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013392if test "${ac_cv_type_long+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013402typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013403int
13404main ()
13405{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013406if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013407 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013408if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013409 return 0;
13410 ;
13411 return 0;
13412}
13413_ACEOF
13414rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013415if { (ac_try="$ac_compile"
13416case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013427 (exit $ac_status); } && {
13428 test -z "$ac_c_werror_flag" ||
13429 test ! -s conftest.err
13430 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013431 ac_cv_type_long=yes
13432else
13433 echo "$as_me: failed program was:" >&5
13434sed 's/^/| /' conftest.$ac_ext >&5
13435
Theodore Ts'oe1052142006-10-21 21:46:47 -040013436 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013437fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013438
Theodore Ts'oe1052142006-10-21 21:46:47 -040013439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13440fi
13441{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13442echo "${ECHO_T}$ac_cv_type_long" >&6; }
13443
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013444# The cast to long int works around a bug in the HP C Compiler
13445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13447# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013448{ echo "$as_me:$LINENO: checking size of long" >&5
13449echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013450if test "${ac_cv_sizeof_long+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013453 if test "$cross_compiling" = yes; then
13454 # Depending upon the size, compute the lo and hi bounds.
13455cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013462 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013463int
13464main ()
13465{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013466static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013467test_array [0] = 0
13468
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013474if { (ac_try="$ac_compile"
13475case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013486 (exit $ac_status); } && {
13487 test -z "$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13489 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013490 ac_lo=0 ac_mid=0
13491 while :; do
13492 cat >conftest.$ac_ext <<_ACEOF
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
13497/* end confdefs.h. */
13498$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013499 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013500int
13501main ()
13502{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013503static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013504test_array [0] = 0
13505
13506 ;
13507 return 0;
13508}
13509_ACEOF
13510rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013511if { (ac_try="$ac_compile"
13512case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13515esac
13516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013523 (exit $ac_status); } && {
13524 test -z "$ac_c_werror_flag" ||
13525 test ! -s conftest.err
13526 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013527 ac_hi=$ac_mid; break
13528else
13529 echo "$as_me: failed program was:" >&5
13530sed 's/^/| /' conftest.$ac_ext >&5
13531
Theodore Ts'oe1052142006-10-21 21:46:47 -040013532 ac_lo=`expr $ac_mid + 1`
13533 if test $ac_lo -le $ac_mid; then
13534 ac_lo= ac_hi=
13535 break
13536 fi
13537 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013539
13540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013541 done
13542else
13543 echo "$as_me: failed program was:" >&5
13544sed 's/^/| /' conftest.$ac_ext >&5
13545
Theodore Ts'oe1052142006-10-21 21:46:47 -040013546 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013553 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013554int
13555main ()
13556{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013557static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013558test_array [0] = 0
13559
13560 ;
13561 return 0;
13562}
13563_ACEOF
13564rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013565if { (ac_try="$ac_compile"
13566case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13569esac
13570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013581 ac_hi=-1 ac_mid=-1
13582 while :; do
13583 cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h. */
13589$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013590 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591int
13592main ()
13593{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013594static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013595test_array [0] = 0
13596
13597 ;
13598 return 0;
13599}
13600_ACEOF
13601rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013602if { (ac_try="$ac_compile"
13603case "(($ac_try" in
13604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605 *) ac_try_echo=$ac_try;;
13606esac
13607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013614 (exit $ac_status); } && {
13615 test -z "$ac_c_werror_flag" ||
13616 test ! -s conftest.err
13617 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013618 ac_lo=$ac_mid; break
13619else
13620 echo "$as_me: failed program was:" >&5
13621sed 's/^/| /' conftest.$ac_ext >&5
13622
Theodore Ts'oe1052142006-10-21 21:46:47 -040013623 ac_hi=`expr '(' $ac_mid ')' - 1`
13624 if test $ac_mid -le $ac_hi; then
13625 ac_lo= ac_hi=
13626 break
13627 fi
13628 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013630
13631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013632 done
13633else
13634 echo "$as_me: failed program was:" >&5
13635sed 's/^/| /' conftest.$ac_ext >&5
13636
Theodore Ts'oe1052142006-10-21 21:46:47 -040013637 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013638fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013639
13640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013641fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013642
13643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013644# Binary search between lo and hi bounds.
13645while test "x$ac_lo" != "x$ac_hi"; do
13646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13647 cat >conftest.$ac_ext <<_ACEOF
13648/* confdefs.h. */
13649_ACEOF
13650cat confdefs.h >>conftest.$ac_ext
13651cat >>conftest.$ac_ext <<_ACEOF
13652/* end confdefs.h. */
13653$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013654 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013655int
13656main ()
13657{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013658static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013659test_array [0] = 0
13660
13661 ;
13662 return 0;
13663}
13664_ACEOF
13665rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013666if { (ac_try="$ac_compile"
13667case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13670esac
13671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013678 (exit $ac_status); } && {
13679 test -z "$ac_c_werror_flag" ||
13680 test ! -s conftest.err
13681 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013682 ac_hi=$ac_mid
13683else
13684 echo "$as_me: failed program was:" >&5
13685sed 's/^/| /' conftest.$ac_ext >&5
13686
Theodore Ts'oe1052142006-10-21 21:46:47 -040013687 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013689
13690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013691done
13692case $ac_lo in
13693?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013694'') if test "$ac_cv_type_long" = yes; then
13695 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013696See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013697echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013698See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013699 { (exit 77); exit 77; }; }
13700 else
13701 ac_cv_sizeof_long=0
13702 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013703esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013704else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013705 cat >conftest.$ac_ext <<_ACEOF
13706/* confdefs.h. */
13707_ACEOF
13708cat confdefs.h >>conftest.$ac_ext
13709cat >>conftest.$ac_ext <<_ACEOF
13710/* end confdefs.h. */
13711$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013712 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013713static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13714static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013715#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013716#include <stdlib.h>
13717int
13718main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013719{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013720
13721 FILE *f = fopen ("conftest.val", "w");
13722 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013723 return 1;
13724 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013725 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013726 long int i = longval ();
13727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13728 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013729 fprintf (f, "%ld\n", i);
13730 }
13731 else
13732 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013733 unsigned long int i = ulongval ();
13734 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13735 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013736 fprintf (f, "%lu\n", i);
13737 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013738 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739
13740 ;
13741 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013742}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013743_ACEOF
13744rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013745if { (ac_try="$ac_link"
13746case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13749esac
13750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
13759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013765else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013766 echo "$as_me: program exited with status $ac_status" >&5
13767echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
13770( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013771if test "$ac_cv_type_long" = yes; then
13772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013773See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013774echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013775See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013776 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013777 else
13778 ac_cv_sizeof_long=0
13779 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013780fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013781rm -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 -050013782fi
13783rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013784fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013785{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13786echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013787
13788
13789
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013790cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013791#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013792_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013793
13794
Theodore Ts'oe1052142006-10-21 21:46:47 -040013795{ echo "$as_me:$LINENO: checking for long long" >&5
13796echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013797if test "${ac_cv_type_long_long+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799else
13800 cat >conftest.$ac_ext <<_ACEOF
13801/* confdefs.h. */
13802_ACEOF
13803cat confdefs.h >>conftest.$ac_ext
13804cat >>conftest.$ac_ext <<_ACEOF
13805/* end confdefs.h. */
13806$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013807typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013808int
13809main ()
13810{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013811if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013812 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013813if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013814 return 0;
13815 ;
13816 return 0;
13817}
13818_ACEOF
13819rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013820if { (ac_try="$ac_compile"
13821case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824esac
13825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013836 ac_cv_type_long_long=yes
13837else
13838 echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
13840
Theodore Ts'oe1052142006-10-21 21:46:47 -040013841 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013842fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013843
Theodore Ts'oe1052142006-10-21 21:46:47 -040013844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845fi
13846{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13847echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13848
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013849# The cast to long int works around a bug in the HP C Compiler
13850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13852# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013853{ echo "$as_me:$LINENO: checking size of long long" >&5
13854echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013855if test "${ac_cv_sizeof_long_long+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013858 if test "$cross_compiling" = yes; then
13859 # Depending upon the size, compute the lo and hi bounds.
13860cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
13866$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013867 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013868int
13869main ()
13870{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013871static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013872test_array [0] = 0
13873
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013879if { (ac_try="$ac_compile"
13880case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883esac
13884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013891 (exit $ac_status); } && {
13892 test -z "$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013895 ac_lo=0 ac_mid=0
13896 while :; do
13897 cat >conftest.$ac_ext <<_ACEOF
13898/* confdefs.h. */
13899_ACEOF
13900cat confdefs.h >>conftest.$ac_ext
13901cat >>conftest.$ac_ext <<_ACEOF
13902/* end confdefs.h. */
13903$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013904 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013905int
13906main ()
13907{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013908static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013909test_array [0] = 0
13910
13911 ;
13912 return 0;
13913}
13914_ACEOF
13915rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013916if { (ac_try="$ac_compile"
13917case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13920esac
13921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013932 ac_hi=$ac_mid; break
13933else
13934 echo "$as_me: failed program was:" >&5
13935sed 's/^/| /' conftest.$ac_ext >&5
13936
Theodore Ts'oe1052142006-10-21 21:46:47 -040013937 ac_lo=`expr $ac_mid + 1`
13938 if test $ac_lo -le $ac_mid; then
13939 ac_lo= ac_hi=
13940 break
13941 fi
13942 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013943fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013944
13945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013946 done
13947else
13948 echo "$as_me: failed program was:" >&5
13949sed 's/^/| /' conftest.$ac_ext >&5
13950
Theodore Ts'oe1052142006-10-21 21:46:47 -040013951 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
13956/* end confdefs.h. */
13957$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013958 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959int
13960main ()
13961{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013962static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013963test_array [0] = 0
13964
13965 ;
13966 return 0;
13967}
13968_ACEOF
13969rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013970if { (ac_try="$ac_compile"
13971case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974esac
13975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013982 (exit $ac_status); } && {
13983 test -z "$ac_c_werror_flag" ||
13984 test ! -s conftest.err
13985 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013986 ac_hi=-1 ac_mid=-1
13987 while :; do
13988 cat >conftest.$ac_ext <<_ACEOF
13989/* confdefs.h. */
13990_ACEOF
13991cat confdefs.h >>conftest.$ac_ext
13992cat >>conftest.$ac_ext <<_ACEOF
13993/* end confdefs.h. */
13994$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013995 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013996int
13997main ()
13998{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013999static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014000test_array [0] = 0
14001
14002 ;
14003 return 0;
14004}
14005_ACEOF
14006rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014007if { (ac_try="$ac_compile"
14008case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011esac
14012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014019 (exit $ac_status); } && {
14020 test -z "$ac_c_werror_flag" ||
14021 test ! -s conftest.err
14022 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014023 ac_lo=$ac_mid; break
14024else
14025 echo "$as_me: failed program was:" >&5
14026sed 's/^/| /' conftest.$ac_ext >&5
14027
Theodore Ts'oe1052142006-10-21 21:46:47 -040014028 ac_hi=`expr '(' $ac_mid ')' - 1`
14029 if test $ac_mid -le $ac_hi; then
14030 ac_lo= ac_hi=
14031 break
14032 fi
14033 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014034fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014035
14036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014037 done
14038else
14039 echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
Theodore Ts'oe1052142006-10-21 21:46:47 -040014042 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014043fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014044
14045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014046fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014047
14048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014049# Binary search between lo and hi bounds.
14050while test "x$ac_lo" != "x$ac_hi"; do
14051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14052 cat >conftest.$ac_ext <<_ACEOF
14053/* confdefs.h. */
14054_ACEOF
14055cat confdefs.h >>conftest.$ac_ext
14056cat >>conftest.$ac_ext <<_ACEOF
14057/* end confdefs.h. */
14058$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014059 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014060int
14061main ()
14062{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014063static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014064test_array [0] = 0
14065
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014071if { (ac_try="$ac_compile"
14072case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14075esac
14076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014083 (exit $ac_status); } && {
14084 test -z "$ac_c_werror_flag" ||
14085 test ! -s conftest.err
14086 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014087 ac_hi=$ac_mid
14088else
14089 echo "$as_me: failed program was:" >&5
14090sed 's/^/| /' conftest.$ac_ext >&5
14091
Theodore Ts'oe1052142006-10-21 21:46:47 -040014092 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014094
14095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014096done
14097case $ac_lo in
14098?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014099'') if test "$ac_cv_type_long_long" = yes; then
14100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014101See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014102echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014103See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014104 { (exit 77); exit 77; }; }
14105 else
14106 ac_cv_sizeof_long_long=0
14107 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014108esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014109else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014110 cat >conftest.$ac_ext <<_ACEOF
14111/* confdefs.h. */
14112_ACEOF
14113cat confdefs.h >>conftest.$ac_ext
14114cat >>conftest.$ac_ext <<_ACEOF
14115/* end confdefs.h. */
14116$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014117 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14119static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014120#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121#include <stdlib.h>
14122int
14123main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014124{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014125
14126 FILE *f = fopen ("conftest.val", "w");
14127 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014128 return 1;
14129 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014130 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014131 long int i = longval ();
14132 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14133 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014134 fprintf (f, "%ld\n", i);
14135 }
14136 else
14137 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014138 unsigned long int i = ulongval ();
14139 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14140 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014141 fprintf (f, "%lu\n", i);
14142 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014143 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014144
14145 ;
14146 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014147}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014148_ACEOF
14149rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014150if { (ac_try="$ac_link"
14151case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154esac
14155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014160 { (case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163esac
14164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14169 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014170else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014171 echo "$as_me: program exited with status $ac_status" >&5
14172echo "$as_me: failed program was:" >&5
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
14175( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014176if test "$ac_cv_type_long_long" = yes; then
14177 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014178See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014179echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014180See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014181 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014182 else
14183 ac_cv_sizeof_long_long=0
14184 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014185fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014186rm -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 -050014187fi
14188rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014189fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014190{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14191echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014192
14193
14194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014195cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014196#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014197_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014198
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014199
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014200SIZEOF_SHORT=$ac_cv_sizeof_short
14201SIZEOF_INT=$ac_cv_sizeof_int
14202SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014203SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14204
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014205
14206
14207
Theodore Ts'oe1052142006-10-21 21:46:47 -040014208{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14209echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210if test "${ac_cv_c_bigendian+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014212else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014213 # See if sys/param.h defines the BYTE_ORDER macro.
14214cat >conftest.$ac_ext <<_ACEOF
14215/* confdefs.h. */
14216_ACEOF
14217cat confdefs.h >>conftest.$ac_ext
14218cat >>conftest.$ac_ext <<_ACEOF
14219/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014220#include <sys/types.h>
14221#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014223int
14224main ()
14225{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014226#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14227 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014228 bogus endian macros
14229#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014230
14231 ;
14232 return 0;
14233}
14234_ACEOF
14235rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014236if { (ac_try="$ac_compile"
14237case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240esac
14241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014248 (exit $ac_status); } && {
14249 test -z "$ac_c_werror_flag" ||
14250 test ! -s conftest.err
14251 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014252 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014253cat >conftest.$ac_ext <<_ACEOF
14254/* confdefs.h. */
14255_ACEOF
14256cat confdefs.h >>conftest.$ac_ext
14257cat >>conftest.$ac_ext <<_ACEOF
14258/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014259#include <sys/types.h>
14260#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014262int
14263main ()
14264{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014265#if BYTE_ORDER != BIG_ENDIAN
14266 not big endian
14267#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014268
14269 ;
14270 return 0;
14271}
14272_ACEOF
14273rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014274if { (ac_try="$ac_compile"
14275case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278esac
14279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014286 (exit $ac_status); } && {
14287 test -z "$ac_c_werror_flag" ||
14288 test ! -s conftest.err
14289 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014290 ac_cv_c_bigendian=yes
14291else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014292 echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
Theodore Ts'oe1052142006-10-21 21:46:47 -040014295 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014297
14298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014300 echo "$as_me: failed program was:" >&5
14301sed 's/^/| /' conftest.$ac_ext >&5
14302
Theodore Ts'oe1052142006-10-21 21:46:47 -040014303 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014304if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014305 # try to guess the endianness by grepping values into an object file
14306 ac_cv_c_bigendian=unknown
14307 cat >conftest.$ac_ext <<_ACEOF
14308/* confdefs.h. */
14309_ACEOF
14310cat confdefs.h >>conftest.$ac_ext
14311cat >>conftest.$ac_ext <<_ACEOF
14312/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014313short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14314short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014315void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14317short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014318void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14319int
14320main ()
14321{
14322 _ascii (); _ebcdic ();
14323 ;
14324 return 0;
14325}
14326_ACEOF
14327rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014328if { (ac_try="$ac_compile"
14329case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332esac
14333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014340 (exit $ac_status); } && {
14341 test -z "$ac_c_werror_flag" ||
14342 test ! -s conftest.err
14343 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014344 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14345 ac_cv_c_bigendian=yes
14346fi
14347if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14348 if test "$ac_cv_c_bigendian" = unknown; then
14349 ac_cv_c_bigendian=no
14350 else
14351 # finding both strings is unlikely to happen, but who knows?
14352 ac_cv_c_bigendian=unknown
14353 fi
14354fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014355else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014356 echo "$as_me: failed program was:" >&5
14357sed 's/^/| /' conftest.$ac_ext >&5
14358
Theodore Ts'oe1052142006-10-21 21:46:47 -040014359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014361
14362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014363else
14364 cat >conftest.$ac_ext <<_ACEOF
14365/* confdefs.h. */
14366_ACEOF
14367cat confdefs.h >>conftest.$ac_ext
14368cat >>conftest.$ac_ext <<_ACEOF
14369/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014370$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014371int
14372main ()
14373{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014374
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014375 /* Are we little or big endian? From Harbison&Steele. */
14376 union
14377 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014378 long int l;
14379 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014380 } u;
14381 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014382 return u.c[sizeof (long int) - 1] == 1;
14383
14384 ;
14385 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014386}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014387_ACEOF
14388rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014389if { (ac_try="$ac_link"
14390case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393esac
14394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402esac
14403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014408 ac_cv_c_bigendian=no
14409else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410 echo "$as_me: program exited with status $ac_status" >&5
14411echo "$as_me: failed program was:" >&5
14412sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014413
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014414( exit $ac_status )
14415ac_cv_c_bigendian=yes
14416fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417rm -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 -040014418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014419
14420
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014422
14423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014425{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14426echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427case $ac_cv_c_bigendian in
14428 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014430cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014431#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014432_ACEOF
14433 ;;
14434 no)
14435 ;;
14436 *)
14437 { { echo "$as_me:$LINENO: error: unknown endianness
14438presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14439echo "$as_me: error: unknown endianness
14440presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14441 { (exit 1); exit 1; }; } ;;
14442esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014443
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014444BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014445ASM_TYPES_HEADER=./asm_types.h
14446
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014447echo "/* These defines are needed for the public ext2fs.h header file */" \
14448 > public_config.h
14449if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14450 uniq tmp_config.$$ >> public_config.h
14451else
14452 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14453fi
14454if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14455 uniq tmp_config.$$ >> public_config.h
14456else
14457 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14458fi
14459rm -f tmp_config.$$
14460PUBLIC_CONFIG_HEADER=./public_config.h
14461
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014464do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014470 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014471fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014472ac_res=`eval echo '${'$as_ac_Header'}'`
14473 { echo "$as_me:$LINENO: result: $ac_res" >&5
14474echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014475else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014476 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014477{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014479cat >conftest.$ac_ext <<_ACEOF
14480/* confdefs.h. */
14481_ACEOF
14482cat confdefs.h >>conftest.$ac_ext
14483cat >>conftest.$ac_ext <<_ACEOF
14484/* end confdefs.h. */
14485$ac_includes_default
14486#include <$ac_header>
14487_ACEOF
14488rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014489if { (ac_try="$ac_compile"
14490case "(($ac_try" in
14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14493esac
14494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014501 (exit $ac_status); } && {
14502 test -z "$ac_c_werror_flag" ||
14503 test ! -s conftest.err
14504 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014505 ac_header_compiler=yes
14506else
14507 echo "$as_me: failed program was:" >&5
14508sed 's/^/| /' conftest.$ac_ext >&5
14509
Theodore Ts'oe1052142006-10-21 21:46:47 -040014510 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014512
14513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14515echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014516
14517# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014518{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14519echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014520cat >conftest.$ac_ext <<_ACEOF
14521/* confdefs.h. */
14522_ACEOF
14523cat confdefs.h >>conftest.$ac_ext
14524cat >>conftest.$ac_ext <<_ACEOF
14525/* end confdefs.h. */
14526#include <$ac_header>
14527_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014528if { (ac_try="$ac_cpp conftest.$ac_ext"
14529case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014540 (exit $ac_status); } >/dev/null && {
14541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14542 test ! -s conftest.err
14543 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014544 ac_header_preproc=yes
14545else
14546 echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 ac_header_preproc=no
14550fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014552rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014553{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14554echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014555
14556# So? What about this header?
14557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14558 yes:no: )
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14563 ac_header_preproc=yes
14564 ;;
14565 no:yes:* )
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014579 ;;
14580esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014581{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585else
14586 eval "$as_ac_Header=\$ac_header_preproc"
14587fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014588ac_res=`eval echo '${'$as_ac_Header'}'`
14589 { echo "$as_me:$LINENO: result: $ac_res" >&5
14590echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014591
14592fi
14593if test `eval echo '${'$as_ac_Header'}'` = yes; then
14594 cat >>confdefs.h <<_ACEOF
14595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14596_ACEOF
14597
14598fi
14599
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014600done
14601
Theodore Ts'oe1052142006-10-21 21:46:47 -040014602{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14603echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014604if test "${ac_cv_type_intptr_t+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014606else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014607 cat >conftest.$ac_ext <<_ACEOF
14608/* confdefs.h. */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h. */
14613$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014614typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014615int
14616main ()
14617{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014618if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014619 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014620if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014621 return 0;
14622 ;
14623 return 0;
14624}
14625_ACEOF
14626rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014627if { (ac_try="$ac_compile"
14628case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014643 ac_cv_type_intptr_t=yes
14644else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014645 echo "$as_me: failed program was:" >&5
14646sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014647
Theodore Ts'oe1052142006-10-21 21:46:47 -040014648 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014650
14651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014652fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014653{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14654echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014655if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014656
14657cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014658#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014659_ACEOF
14660
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014662fi
14663
Theodore Ts'oe1052142006-10-21 21:46:47 -040014664{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14665echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014666if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14668else
14669 cat >conftest.$ac_ext <<_ACEOF
14670/* confdefs.h. */
14671_ACEOF
14672cat confdefs.h >>conftest.$ac_ext
14673cat >>conftest.$ac_ext <<_ACEOF
14674/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014675#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014676int
14677main ()
14678{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014679struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014680 ;
14681 return 0;
14682}
14683_ACEOF
14684rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014685if { (ac_try="$ac_compile"
14686case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689esac
14690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014697 (exit $ac_status); } && {
14698 test -z "$ac_c_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014701 e2fsprogs_cv_struct_st_flags=yes
14702else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014703 echo "$as_me: failed program was:" >&5
14704sed 's/^/| /' conftest.$ac_ext >&5
14705
Theodore Ts'oe1052142006-10-21 21:46:47 -040014706 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014707fi
14708
Theodore Ts'oe1052142006-10-21 21:46:47 -040014709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14710fi
14711
14712{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14713echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014714if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014715 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14716echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014717 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014719else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014720 cat >conftest.$ac_ext <<_ACEOF
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014726#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014727int
14728main ()
14729{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014730struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014731 ;
14732 return 0;
14733}
14734_ACEOF
14735rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014736if { (ac_try="$ac_compile"
14737case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740esac
14741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014743 ac_status=$?
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014748 (exit $ac_status); } && {
14749 test -z "$ac_c_werror_flag" ||
14750 test ! -s conftest.err
14751 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014752 e2fsprogs_cv_struct_st_flags_immut=yes
14753else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014754 echo "$as_me: failed program was:" >&5
14755sed 's/^/| /' conftest.$ac_ext >&5
14756
Theodore Ts'oe1052142006-10-21 21:46:47 -040014757 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014758fi
14759
Theodore Ts'oe1052142006-10-21 21:46:47 -040014760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761fi
14762
14763 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14764echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014765 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014766 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014767#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014768_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014769
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014770 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014772{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14773echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014774if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014775 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014777 cat >conftest.$ac_ext <<_ACEOF
14778/* confdefs.h. */
14779_ACEOF
14780cat confdefs.h >>conftest.$ac_ext
14781cat >>conftest.$ac_ext <<_ACEOF
14782/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014783#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014784 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014785
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786int
14787main ()
14788{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014789static struct sockaddr ac_aggr;
14790if (ac_aggr.sa_len)
14791return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014792 ;
14793 return 0;
14794}
14795_ACEOF
14796rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014797if { (ac_try="$ac_compile"
14798case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801esac
14802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014804 ac_status=$?
14805 grep -v '^ *+' conftest.er1 >conftest.err
14806 rm -f conftest.er1
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014809 (exit $ac_status); } && {
14810 test -z "$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14812 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014813 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014814else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
Theodore Ts'oe1052142006-10-21 21:46:47 -040014818 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014819/* confdefs.h. */
14820_ACEOF
14821cat confdefs.h >>conftest.$ac_ext
14822cat >>conftest.$ac_ext <<_ACEOF
14823/* end confdefs.h. */
14824#include <sys/types.h>
14825 #include <sys/socket.h>
14826
14827int
14828main ()
14829{
14830static struct sockaddr ac_aggr;
14831if (sizeof ac_aggr.sa_len)
14832return 0;
14833 ;
14834 return 0;
14835}
14836_ACEOF
14837rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014838if { (ac_try="$ac_compile"
14839case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14842esac
14843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014845 ac_status=$?
14846 grep -v '^ *+' conftest.er1 >conftest.err
14847 rm -f conftest.er1
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014850 (exit $ac_status); } && {
14851 test -z "$ac_c_werror_flag" ||
14852 test ! -s conftest.err
14853 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014854 ac_cv_member_struct_sockaddr_sa_len=yes
14855else
14856 echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
14858
Theodore Ts'oe1052142006-10-21 21:46:47 -040014859 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014860fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014861
14862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014863fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014864
14865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014867{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14868echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014869if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014870
14871cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014872#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014873_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014874
14875fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014895
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014896
14897
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014898
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014899
Theodore Ts'o106ad962007-04-04 21:26:37 -040014900
14901
14902
Theodore Ts'o740837d2007-12-16 17:21:38 -050014903
14904
Theodore Ts'o261cd392008-01-21 13:45:00 -050014905
14906for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014907do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014912 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014913else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014914 cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h. */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h. */
14920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14922#define $ac_func innocuous_$ac_func
14923
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014924/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014925 which can conflict with char $ac_func (); below.
14926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14927 <limits.h> exists even on freestanding compilers. */
14928
14929#ifdef __STDC__
14930# include <limits.h>
14931#else
14932# include <assert.h>
14933#endif
14934
14935#undef $ac_func
14936
Theodore Ts'oe1052142006-10-21 21:46:47 -040014937/* Override any GCC internal prototype to avoid an error.
14938 Use char because int might match the return type of a GCC
14939 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014940#ifdef __cplusplus
14941extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014942#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014943char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014944/* The GNU C library defines this for functions which it implements
14945 to always fail with ENOSYS. Some functions are actually named
14946 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014947#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014948choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014949#endif
14950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951int
14952main ()
14953{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014954return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014955 ;
14956 return 0;
14957}
14958_ACEOF
14959rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014960if { (ac_try="$ac_link"
14961case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964esac
14965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest$ac_exeext &&
14976 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014977 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014978else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014979 echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014981
Theodore Ts'oe1052142006-10-21 21:46:47 -040014982 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014983fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014984
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014986 conftest$ac_exeext conftest.$ac_ext
14987fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014988ac_res=`eval echo '${'$as_ac_var'}'`
14989 { echo "$as_me:$LINENO: result: $ac_res" >&5
14990echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014991if test `eval echo '${'$as_ac_var'}'` = yes; then
14992 cat >>confdefs.h <<_ACEOF
14993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14994_ACEOF
14995
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014996fi
14997done
14998
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014999SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015000{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15001echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015002if test "${ac_cv_lib_socket_socket+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015004else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015005 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015006LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015007cat >conftest.$ac_ext <<_ACEOF
15008/* confdefs.h. */
15009_ACEOF
15010cat confdefs.h >>conftest.$ac_ext
15011cat >>conftest.$ac_ext <<_ACEOF
15012/* end confdefs.h. */
15013
Theodore Ts'oe1052142006-10-21 21:46:47 -040015014/* Override any GCC internal prototype to avoid an error.
15015 Use char because int might match the return type of a GCC
15016 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015017#ifdef __cplusplus
15018extern "C"
15019#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015020char socket ();
15021int
15022main ()
15023{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015024return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015030if { (ac_try="$ac_link"
15031case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034esac
15035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015042 (exit $ac_status); } && {
15043 test -z "$ac_c_werror_flag" ||
15044 test ! -s conftest.err
15045 } && test -s conftest$ac_exeext &&
15046 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015047 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015048else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015049 echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015051
Theodore Ts'oe1052142006-10-21 21:46:47 -040015052 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015053fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015054
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015056 conftest$ac_exeext conftest.$ac_ext
15057LIBS=$ac_check_lib_save_LIBS
15058fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015059{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15060echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015062 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015063fi
15064
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015065
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015066DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015067{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15068echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015069if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015071else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015072 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015073LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015074cat >conftest.$ac_ext <<_ACEOF
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080
Theodore Ts'oe1052142006-10-21 21:46:47 -040015081/* Override any GCC internal prototype to avoid an error.
15082 Use char because int might match the return type of a GCC
15083 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015084#ifdef __cplusplus
15085extern "C"
15086#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015087char dlopen ();
15088int
15089main ()
15090{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015091return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015092 ;
15093 return 0;
15094}
15095_ACEOF
15096rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015097if { (ac_try="$ac_link"
15098case "(($ac_try" in
15099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100 *) ac_try_echo=$ac_try;;
15101esac
15102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015104 ac_status=$?
15105 grep -v '^ *+' conftest.er1 >conftest.err
15106 rm -f conftest.er1
15107 cat conftest.err >&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015109 (exit $ac_status); } && {
15110 test -z "$ac_c_werror_flag" ||
15111 test ! -s conftest.err
15112 } && test -s conftest$ac_exeext &&
15113 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015114 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015115else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015118
Theodore Ts'oe1052142006-10-21 21:46:47 -040015119 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015120fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015121
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015123 conftest$ac_exeext conftest.$ac_ext
15124LIBS=$ac_check_lib_save_LIBS
15125fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015126{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15127echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015128if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015129 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015130cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015131#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015132_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015133
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015134fi
15135
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015136
Theodore Ts'oe1052142006-10-21 21:46:47 -040015137{ echo "$as_me:$LINENO: checking for optreset" >&5
15138echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015139if test "${ac_cv_have_optreset+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015142 cat >conftest.$ac_ext <<_ACEOF
15143/* confdefs.h. */
15144_ACEOF
15145cat confdefs.h >>conftest.$ac_ext
15146cat >>conftest.$ac_ext <<_ACEOF
15147/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015148#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015149
15150_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015152 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015153 ac_cv_have_optreset=yes
15154else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015155 ac_cv_have_optreset=no
15156fi
15157rm -f conftest*
15158
15159fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015160{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15161echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015162if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015163 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015164#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015165_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015166
15167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015168{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15169echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015170if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015171 UNI_DIFF_OPTS=-u
15172else
15173 UNI_DIFF_OPTS=-c
15174fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015175{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15176echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015177
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015178case "$host_os" in
15179linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015180 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015181#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015182_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015183
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015184 ;;
15185esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015186LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015187CYGWIN_CMT="#"
15188UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015189case "$host_os" in
15190linux*)
15191 LINUX_CMT=
15192 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015193cygwin)
15194 CYGWIN_CMT=
15195 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015196 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015197esac
15198
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015199
15200
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015201case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015202linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015203 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15204 root_prefix="";
15205 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015206 fi
15207 ;;
15208esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015209case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015210linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015211 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015212 prefix="/usr";
15213 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015214 if test "$mandir" = '${prefix}/man' ; then
15215 echo "...and mandir defaults to /usr/share/man"
15216 mandir=/usr/share/man
15217 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015218 fi
15219;;
15220esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015221if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015222 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015223 root_prefix="$ac_default_prefix"
15224 else
15225 root_prefix="$prefix"
15226 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015227 root_bindir=$bindir
15228 root_sbindir=$sbindir
15229 root_libdir=$libdir
15230 root_sysconfdir=$sysconfdir
15231else
15232 root_bindir='${root_prefix}/bin'
15233 root_sbindir='${root_prefix}/sbin'
15234 root_libdir='${root_prefix}/lib'
15235 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015236fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015237if test "$bindir" != '${exec_prefix}/bin'; then
15238 root_bindir=$bindir
15239 echo "Setting root_bindir to $root_bindir"
15240fi
15241if test "$sbindir" != '${exec_prefix}/sbin'; then
15242 root_sbindir=$sbindir
15243 echo "Setting root_sbindir to $root_sbindir"
15244fi
15245if test "$libdir" != '${exec_prefix}/lib'; then
15246 root_libdir=$libdir
15247 echo "Setting root_libdir to $root_libdir"
15248fi
15249if test "$sysconfdir" != '${prefix}/etc'; then
15250 root_sysconfdir=$sysconfdir
15251 echo "Setting root_sysconfdir to $root_sysconfdir"
15252fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015253
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015254
15255
15256
15257
Theodore Ts'oe1052142006-10-21 21:46:47 -040015258{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15259echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015260if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015262else
15263 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015264cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015270#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015271int
15272main ()
15273{
Theodore Ts'oae851481997-04-29 18:13:24 +000015274fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015275 ;
15276 return 0;
15277}
15278_ACEOF
15279rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015280if { (ac_try="$ac_link"
15281case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15284esac
15285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015292 (exit $ac_status); } && {
15293 test -z "$ac_c_werror_flag" ||
15294 test ! -s conftest.err
15295 } && test -s conftest$ac_exeext &&
15296 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015297 ac_cv_e2fsprogs_use_static=yes
15298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015299 echo "$as_me: failed program was:" >&5
15300sed 's/^/| /' conftest.$ac_ext >&5
15301
Theodore Ts'oe1052142006-10-21 21:46:47 -040015302 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015304
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015306 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015307LDFLAGS=$SAVE_LDFLAGS
15308fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015309
Theodore Ts'odefde781999-01-04 07:39:19 +000015310case "$host_os" in
15311solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015312 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015313;;
15314esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015315{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15316echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015317LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015318if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015319 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015320fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015321
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015322case "$host_os" in
15323darwin*)
15324 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015325 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015326#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015327_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015328
15329 ;;
15330esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015331SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15332ET_DIR=`cd ${srcdir}/lib/et; pwd`
15333
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015334
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015335if test "$cross_compiling" = yes ; then
15336 DO_TEST_SUITE=
15337else
15338 DO_TEST_SUITE=check
15339fi
15340
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015341INTL_FLAGS=
15342if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15343 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15344fi
15345
Theodore Ts'odd947da2005-11-09 18:37:07 -040015346if test $cross_compiling = no; then
15347 BUILD_CFLAGS="$CFLAGS"
15348 BUILD_LDFLAGS="$LDFLAGS"
15349else
15350 BUILD_CFLAGS=
15351 BUILD_LDFLAGS=
15352fi
15353
15354
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015355test -d lib || mkdir lib
15356test -d include || mkdir include
15357test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015358test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015359for i in MCONFIG Makefile e2fsprogs.spec \
15360 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015361 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15362 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015363 lib/uuid/Makefile lib/uuid/uuid_types.h \
15364 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015365 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15366 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015367 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015368 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15369 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15370 if test -d `dirname ${srcdir}/$i` ; then
15371 outlist="$outlist $i"
15372 fi
15373done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015374ac_config_files="$ac_config_files $outlist"
15375
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015376cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015377# This file is a shell script that caches the results of configure
15378# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015379# scripts and configure runs, see configure's option --config-cache.
15380# It is not useful on other systems. If it contains results you don't
15381# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015382#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015383# config.status only pays attention to the cache file if you give it
15384# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015385#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015386# `ac_cv_env_foo' variables (set or unset) will be overridden when
15387# loading this file, other *unset* `ac_cv_foo' will be assigned the
15388# following values.
15389
15390_ACEOF
15391
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015392# The following way of writing the cache mishandles newlines in values,
15393# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015394# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015395# Ultrix sh set writes to stderr and can't be redirected directly,
15396# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015397(
15398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15399 eval ac_val=\$$ac_var
15400 case $ac_val in #(
15401 *${as_nl}*)
15402 case $ac_var in #(
15403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15404echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15405 esac
15406 case $ac_var in #(
15407 _ | IFS | as_nl) ;; #(
15408 *) $as_unset $ac_var ;;
15409 esac ;;
15410 esac
15411 done
15412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015413 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15415 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015416 # `set' does not quote correctly, so add quotes (double-quote
15417 # substitution turns \\\\ into \\, and sed turns \\ into \).
15418 sed -n \
15419 "s/'/'\\\\''/g;
15420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015421 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015422 *)
15423 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015425 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015426 esac |
15427 sort
15428) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015429 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015430 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015431 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015432 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15434 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15436 :end' >>confcache
15437if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15438 if test -w "$cache_file"; then
15439 test "x$cache_file" != "x/dev/null" &&
15440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15441echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015442 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015443 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15445echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015446 fi
15447fi
15448rm -f confcache
15449
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015450test "x$prefix" = xNONE && prefix=$ac_default_prefix
15451# Let make expand exec_prefix.
15452test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15453
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015454# Transform confdefs.h into DEFS.
15455# Protect against shell expansion while executing Makefile rules.
15456# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015457#
15458# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015459# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015460# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015461ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015462t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015463:clear
15464s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015465t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015466s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015467t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015468b any
15469:quote
15470s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15471s/\[/\\&/g
15472s/\]/\\&/g
15473s/\$/$$/g
15474H
15475:any
15476${
15477 g
15478 s/^\n//
15479 s/\n/ /g
15480 p
15481}
15482'
15483DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015484
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015486ac_libobjs=
15487ac_ltlibobjs=
15488for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15489 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15491 ac_i=`echo "$ac_i" | sed "$ac_script"`
15492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15493 # will be set to the directory where LIBOBJS objects are built.
15494 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15495 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015496done
15497LIBOBJS=$ac_libobjs
15498
15499LTLIBOBJS=$ac_ltlibobjs
15500
15501
15502
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015503: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015504ac_clean_files_save=$ac_clean_files
15505ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15506{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15507echo "$as_me: creating $CONFIG_STATUS" >&6;}
15508cat >$CONFIG_STATUS <<_ACEOF
15509#! $SHELL
15510# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015511# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015512# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015513# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015515debug=false
15516ac_cs_recheck=false
15517ac_cs_silent=false
15518SHELL=\${CONFIG_SHELL-$SHELL}
15519_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015521cat >>$CONFIG_STATUS <<\_ACEOF
15522## --------------------- ##
15523## M4sh Initialization. ##
15524## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015525
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015526# Be more Bourne compatible
15527DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015528if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15529 emulate sh
15530 NULLCMD=:
15531 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15532 # is contrary to our usage. Disable this feature.
15533 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015534 setopt NO_GLOB_SUBST
15535else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015536 case `(set -o) 2>/dev/null` in
15537 *posix*) set -o posix ;;
15538esac
15539
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015540fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015541
15542
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015543
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015544
Theodore Ts'oe1052142006-10-21 21:46:47 -040015545# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015546# Avoid depending upon Character Ranges.
15547as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15548as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15549as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15550as_cr_digits='0123456789'
15551as_cr_alnum=$as_cr_Letters$as_cr_digits
15552
15553# The user is always right.
15554if test "${PATH_SEPARATOR+set}" != set; then
15555 echo "#! /bin/sh" >conf$$.sh
15556 echo "exit 0" >>conf$$.sh
15557 chmod +x conf$$.sh
15558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15559 PATH_SEPARATOR=';'
15560 else
15561 PATH_SEPARATOR=:
15562 fi
15563 rm -f conf$$.sh
15564fi
15565
Theodore Ts'oe1052142006-10-21 21:46:47 -040015566# Support unset when possible.
15567if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15568 as_unset=unset
15569else
15570 as_unset=false
15571fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015572
Theodore Ts'oe1052142006-10-21 21:46:47 -040015573
15574# IFS
15575# We need space, tab and new line, in precisely that order. Quoting is
15576# there to prevent editors from complaining about space-tab.
15577# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15578# splitting by setting IFS to empty value.)
15579as_nl='
15580'
15581IFS=" "" $as_nl"
15582
15583# Find who we are. Look in the path if we contain no directory separator.
15584case $0 in
15585 *[\\/]* ) as_myself=$0 ;;
15586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015587for as_dir in $PATH
15588do
15589 IFS=$as_save_IFS
15590 test -z "$as_dir" && as_dir=.
15591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15592done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015593IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015594
Theodore Ts'oe1052142006-10-21 21:46:47 -040015595 ;;
15596esac
15597# We did not find ourselves, most probably we were run as `sh COMMAND'
15598# in which case we are not to be found in the path.
15599if test "x$as_myself" = x; then
15600 as_myself=$0
15601fi
15602if test ! -f "$as_myself"; then
15603 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15604 { (exit 1); exit 1; }
15605fi
15606
15607# Work around bugs in pre-3.0 UWIN ksh.
15608for as_var in ENV MAIL MAILPATH
15609do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15610done
15611PS1='$ '
15612PS2='> '
15613PS4='+ '
15614
15615# NLS nuisances.
15616for as_var in \
15617 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15618 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15619 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015620do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015621 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15622 eval $as_var=C; export $as_var
15623 else
15624 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15625 fi
15626done
15627
15628# Required to use basename.
15629if expr a : '\(a\)' >/dev/null 2>&1 &&
15630 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15631 as_expr=expr
15632else
15633 as_expr=false
15634fi
15635
15636if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15637 as_basename=basename
15638else
15639 as_basename=false
15640fi
15641
15642
15643# Name of the executable.
15644as_me=`$as_basename -- "$0" ||
15645$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15646 X"$0" : 'X\(//\)$' \| \
15647 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15648echo X/"$0" |
15649 sed '/^.*\/\([^/][^/]*\)\/*$/{
15650 s//\1/
15651 q
15652 }
15653 /^X\/\(\/\/\)$/{
15654 s//\1/
15655 q
15656 }
15657 /^X\/\(\/\).*/{
15658 s//\1/
15659 q
15660 }
15661 s/.*/./; q'`
15662
15663# CDPATH.
15664$as_unset CDPATH
15665
15666
15667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015668 as_lineno_1=$LINENO
15669 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015670 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015671 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015672
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015673 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15674 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015675 # line-number line after each line using $LINENO; the second 'sed'
15676 # does the real work. The second script uses 'N' to pair each
15677 # line-number line with the line containing $LINENO, and appends
15678 # trailing '-' during substitution so that $LINENO is not a special
15679 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015680 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015681 # scripts with optimization help from Paolo Bonzini. Blame Lee
15682 # E. McMahon (1931-1989) for sed's syntax. :-)
15683 sed -n '
15684 p
15685 /[$]LINENO/=
15686 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015687 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015688 s/[$]LINENO.*/&-/
15689 t lineno
15690 b
15691 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015692 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015693 :loop
15694 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015695 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015696 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015697 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015698 chmod +x "$as_me.lineno" ||
15699 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015700 { (exit 1); exit 1; }; }
15701
15702 # Don't try to exec as it changes $[0], causing all sort of problems
15703 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015704 # original and so on. Autoconf is especially sensitive to this).
15705 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015706 # Exit status is that of the last command.
15707 exit
15708}
15709
15710
Theodore Ts'oe1052142006-10-21 21:46:47 -040015711if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15712 as_dirname=dirname
15713else
15714 as_dirname=false
15715fi
15716
15717ECHO_C= ECHO_N= ECHO_T=
15718case `echo -n x` in
15719-n*)
15720 case `echo 'x\c'` in
15721 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15722 *) ECHO_C='\c';;
15723 esac;;
15724*)
15725 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015726esac
15727
Theodore Ts'oe1052142006-10-21 21:46:47 -040015728if expr a : '\(a\)' >/dev/null 2>&1 &&
15729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015730 as_expr=expr
15731else
15732 as_expr=false
15733fi
15734
15735rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015736if test -d conf$$.dir; then
15737 rm -f conf$$.dir/conf$$.file
15738else
15739 rm -f conf$$.dir
15740 mkdir conf$$.dir
15741fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015742echo >conf$$.file
15743if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015744 as_ln_s='ln -s'
15745 # ... but there are two gotchas:
15746 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15747 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15748 # In both cases, we have to default to `cp -p'.
15749 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015750 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015751elif ln conf$$.file conf$$ 2>/dev/null; then
15752 as_ln_s=ln
15753else
15754 as_ln_s='cp -p'
15755fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015756rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15757rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015758
15759if mkdir -p . 2>/dev/null; then
15760 as_mkdir_p=:
15761else
15762 test -d ./-p && rmdir ./-p
15763 as_mkdir_p=false
15764fi
15765
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015766if test -x / >/dev/null 2>&1; then
15767 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015768else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015769 if ls -dL / >/dev/null 2>&1; then
15770 as_ls_L_option=L
15771 else
15772 as_ls_L_option=
15773 fi
15774 as_test_x='
15775 eval sh -c '\''
15776 if test -d "$1"; then
15777 test -d "$1/.";
15778 else
15779 case $1 in
15780 -*)set "./$1";;
15781 esac;
15782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15783 ???[sx]*):;;*)false;;esac;fi
15784 '\'' sh
15785 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015786fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015787as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015788
15789# Sed expression to map a string onto a valid CPP name.
15790as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15791
15792# Sed expression to map a string onto a valid variable name.
15793as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15794
15795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015796exec 6>&1
15797
Theodore Ts'oe1052142006-10-21 21:46:47 -040015798# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015799# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015800# values after options handling.
15801ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015802This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015803generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015804
15805 CONFIG_FILES = $CONFIG_FILES
15806 CONFIG_HEADERS = $CONFIG_HEADERS
15807 CONFIG_LINKS = $CONFIG_LINKS
15808 CONFIG_COMMANDS = $CONFIG_COMMANDS
15809 $ $0 $@
15810
Theodore Ts'oe1052142006-10-21 21:46:47 -040015811on `(hostname || uname -n) 2>/dev/null | sed 1q`
15812"
15813
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015814_ACEOF
15815
Theodore Ts'oe1052142006-10-21 21:46:47 -040015816cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015817# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015818config_files="$ac_config_files"
15819config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015820
Theodore Ts'oe1052142006-10-21 21:46:47 -040015821_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015822
15823cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015824ac_cs_usage="\
15825\`$as_me' instantiates files from templates according to the
15826current configuration.
15827
15828Usage: $0 [OPTIONS] [FILE]...
15829
15830 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015831 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015832 -q, --quiet do not print progress messages
15833 -d, --debug don't remove temporary files
15834 --recheck update $as_me by reconfiguring in the same conditions
15835 --file=FILE[:TEMPLATE]
15836 instantiate the configuration file FILE
15837
15838Configuration files:
15839$config_files
15840
15841Configuration commands:
15842$config_commands
15843
15844Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015845
Theodore Ts'oe1052142006-10-21 21:46:47 -040015846_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015847cat >>$CONFIG_STATUS <<_ACEOF
15848ac_cs_version="\\
15849config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015850configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015851 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015852
Theodore Ts'oe1052142006-10-21 21:46:47 -040015853Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015854This config.status script is free software; the Free Software Foundation
15855gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015856
15857ac_pwd='$ac_pwd'
15858srcdir='$srcdir'
15859INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015860_ACEOF
15861
15862cat >>$CONFIG_STATUS <<\_ACEOF
15863# If no file are specified by the user, then we need to provide default
15864# value. By we need to know if files were specified by the user.
15865ac_need_defaults=:
15866while test $# != 0
15867do
15868 case $1 in
15869 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015870 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15871 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015872 ac_shift=:
15873 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015874 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015875 ac_option=$1
15876 ac_optarg=$2
15877 ac_shift=shift
15878 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015879 esac
15880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015881 case $ac_option in
15882 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015883 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15884 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015885 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15886 echo "$ac_cs_version"; exit ;;
15887 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015888 debug=: ;;
15889 --file | --fil | --fi | --f )
15890 $ac_shift
15891 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15892 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015893 --he | --h | --help | --hel | -h )
15894 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15897 ac_cs_silent=: ;;
15898
15899 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015900 -*) { echo "$as_me: error: unrecognized option: $1
15901Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015902 { (exit 1); exit 1; }; } ;;
15903
Theodore Ts'oe1052142006-10-21 21:46:47 -040015904 *) ac_config_targets="$ac_config_targets $1"
15905 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015906
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015907 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015908 shift
15909done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015911ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015913if $ac_cs_silent; then
15914 exec 6>/dev/null
15915 ac_configure_extra_args="$ac_configure_extra_args --silent"
15916fi
15917
15918_ACEOF
15919cat >>$CONFIG_STATUS <<_ACEOF
15920if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015921 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15922 CONFIG_SHELL=$SHELL
15923 export CONFIG_SHELL
15924 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015925fi
15926
15927_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015928cat >>$CONFIG_STATUS <<\_ACEOF
15929exec 5>>config.log
15930{
15931 echo
15932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15933## Running $as_me. ##
15934_ASBOX
15935 echo "$ac_log"
15936} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015937
Theodore Ts'oe1052142006-10-21 21:46:47 -040015938_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015939cat >>$CONFIG_STATUS <<_ACEOF
15940#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015941# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015942#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015943# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015944 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015945 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015946 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015947 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15948 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015949
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015951_ACEOF
15952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015953cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015954
15955# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015956for ac_config_target in $ac_config_targets
15957do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015958 case $ac_config_target in
15959 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15960 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15961
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15963echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15964 { (exit 1); exit 1; }; };;
15965 esac
15966done
15967
Theodore Ts'oe1052142006-10-21 21:46:47 -040015968
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015969# If the user did not use the arguments to specify the items to instantiate,
15970# then the envvar interface is used. Set only those that are not.
15971# We use the long form for the default assignment because of an extremely
15972# bizarre bug on SunOS 4.1.3.
15973if $ac_need_defaults; then
15974 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15976fi
15977
15978# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015979# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015980# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015981# Hook for its removal unless debugging.
15982# Note that there is a small window in which the directory will not be cleaned:
15983# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015984$debug ||
15985{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015986 tmp=
15987 trap 'exit_status=$?
15988 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15989' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015990 trap '{ (exit 1); exit 1; }' 1 2 13 15
15991}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015992# Create a (secure) tmp directory for tmp files.
15993
15994{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015996 test -n "$tmp" && test -d "$tmp"
15997} ||
15998{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015999 tmp=./conf$$-$RANDOM
16000 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016001} ||
16002{
16003 echo "$me: cannot create a temporary directory in ." >&2
16004 { (exit 1); exit 1; }
16005}
16006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016007#
Theodore Ts'oe1052142006-10-21 21:46:47 -040016008# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016009#
16010
16011# No need to generate the scripts if there are no CONFIG_FILES.
16012# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040016013if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016014
16015_ACEOF
16016
Theodore Ts'oe1052142006-10-21 21:46:47 -040016017# Create sed commands to just substitute file output variables.
16018
16019# Remaining file output variables are in a fragment that also has non-file
16020# output varibles.
16021
16022
16023
16024ac_delim='%!_!# '
16025for ac_last_try in false false false false false :; do
16026 cat >conf$$subs.sed <<_ACEOF
16027SHELL!$SHELL$ac_delim
16028PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16029PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16030PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16031PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16032PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16033PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16034exec_prefix!$exec_prefix$ac_delim
16035prefix!$prefix$ac_delim
16036program_transform_name!$program_transform_name$ac_delim
16037bindir!$bindir$ac_delim
16038sbindir!$sbindir$ac_delim
16039libexecdir!$libexecdir$ac_delim
16040datarootdir!$datarootdir$ac_delim
16041datadir!$datadir$ac_delim
16042sysconfdir!$sysconfdir$ac_delim
16043sharedstatedir!$sharedstatedir$ac_delim
16044localstatedir!$localstatedir$ac_delim
16045includedir!$includedir$ac_delim
16046oldincludedir!$oldincludedir$ac_delim
16047docdir!$docdir$ac_delim
16048infodir!$infodir$ac_delim
16049htmldir!$htmldir$ac_delim
16050dvidir!$dvidir$ac_delim
16051pdfdir!$pdfdir$ac_delim
16052psdir!$psdir$ac_delim
16053libdir!$libdir$ac_delim
16054localedir!$localedir$ac_delim
16055mandir!$mandir$ac_delim
16056DEFS!$DEFS$ac_delim
16057ECHO_C!$ECHO_C$ac_delim
16058ECHO_N!$ECHO_N$ac_delim
16059ECHO_T!$ECHO_T$ac_delim
16060LIBS!$LIBS$ac_delim
16061build_alias!$build_alias$ac_delim
16062host_alias!$host_alias$ac_delim
16063target_alias!$target_alias$ac_delim
16064E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16065E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16066E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16067E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016068E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016069build!$build$ac_delim
16070build_cpu!$build_cpu$ac_delim
16071build_vendor!$build_vendor$ac_delim
16072build_os!$build_os$ac_delim
16073host!$host$ac_delim
16074host_cpu!$host_cpu$ac_delim
16075host_vendor!$host_vendor$ac_delim
16076host_os!$host_os$ac_delim
16077CC!$CC$ac_delim
16078CFLAGS!$CFLAGS$ac_delim
16079LDFLAGS!$LDFLAGS$ac_delim
16080CPPFLAGS!$CPPFLAGS$ac_delim
16081ac_ct_CC!$ac_ct_CC$ac_delim
16082EXEEXT!$EXEEXT$ac_delim
16083OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016084CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016085LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016086GREP!$GREP$ac_delim
16087EGREP!$EGREP$ac_delim
16088LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16089MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16090HTREE_CMT!$HTREE_CMT$ac_delim
16091ELF_CMT!$ELF_CMT$ac_delim
16092BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16093PROFILE_CMT!$PROFILE_CMT$ac_delim
16094CHECKER_CMT!$CHECKER_CMT$ac_delim
16095LIB_EXT!$LIB_EXT$ac_delim
16096STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16097PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16098SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16099DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016100_ACEOF
16101
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016102 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016103 break
16104 elif $ac_last_try; then
16105 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16106echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16107 { (exit 1); exit 1; }; }
16108 else
16109 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016110 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016111done
16112
16113ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16114if test -n "$ac_eof"; then
16115 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16116 ac_eof=`expr $ac_eof + 1`
16117fi
16118
16119cat >>$CONFIG_STATUS <<_ACEOF
16120cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16121/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16122/^[ ]*@MCONFIG@[ ]*$/{
16123r $MCONFIG
16124d
16125}
16126/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16127r $MAKEFILE_ELF
16128d
16129}
16130/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16131r $MAKEFILE_BSDLIB
16132d
16133}
16134/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16135r $MAKEFILE_PROFILE
16136d
16137}
16138/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16139r $MAKEFILE_CHECKER
16140d
16141}
16142/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16143r $MAKEFILE_LIBRARY
16144d
16145}
16146/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16147r $ASM_TYPES_HEADER
16148d
16149}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016150/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16151r $PUBLIC_CONFIG_HEADER
16152d
16153}
Theodore Ts'oe1052142006-10-21 21:46:47 -040016154_ACEOF
16155sed '
16156s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16157s/^/s,@/; s/!/@,|#_!!_#|/
16158:n
16159t n
16160s/'"$ac_delim"'$/,g/; t
16161s/$/\\/; p
16162N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16163' >>$CONFIG_STATUS <conf$$subs.sed
16164rm -f conf$$subs.sed
16165cat >>$CONFIG_STATUS <<_ACEOF
16166CEOF$ac_eof
16167_ACEOF
16168
16169
16170ac_delim='%!_!# '
16171for ac_last_try in false false false false false :; do
16172 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016173IMAGER_CMT!$IMAGER_CMT$ac_delim
16174RESIZER_CMT!$RESIZER_CMT$ac_delim
16175FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016176FSCK_MAN!$FSCK_MAN$ac_delim
16177E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16178E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016179PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016180DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16181DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16182DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16183STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016184STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016185UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016186GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16187PACKAGE!$PACKAGE$ac_delim
16188VERSION!$VERSION$ac_delim
16189SET_MAKE!$SET_MAKE$ac_delim
16190INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16191INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16192INSTALL_DATA!$INSTALL_DATA$ac_delim
16193MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16194USE_NLS!$USE_NLS$ac_delim
16195MSGFMT!$MSGFMT$ac_delim
16196GMSGFMT!$GMSGFMT$ac_delim
16197XGETTEXT!$XGETTEXT$ac_delim
16198MSGMERGE!$MSGMERGE$ac_delim
16199RANLIB!$RANLIB$ac_delim
16200ALLOCA!$ALLOCA$ac_delim
16201GLIBC21!$GLIBC21$ac_delim
16202HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16203HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16204HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16205HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16206LIBICONV!$LIBICONV$ac_delim
16207LTLIBICONV!$LTLIBICONV$ac_delim
16208INTLBISON!$INTLBISON$ac_delim
16209BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16210USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16211CATOBJEXT!$CATOBJEXT$ac_delim
16212DATADIRNAME!$DATADIRNAME$ac_delim
16213INSTOBJEXT!$INSTOBJEXT$ac_delim
16214GENCAT!$GENCAT$ac_delim
16215INTLOBJS!$INTLOBJS$ac_delim
16216INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16217INTLLIBS!$INTLLIBS$ac_delim
16218LIBINTL!$LIBINTL$ac_delim
16219LTLIBINTL!$LTLIBINTL$ac_delim
16220POSUB!$POSUB$ac_delim
16221BINARY_TYPE!$BINARY_TYPE$ac_delim
16222LN!$LN$ac_delim
16223LN_S!$LN_S$ac_delim
16224MV!$MV$ac_delim
16225CP!$CP$ac_delim
16226RM!$RM$ac_delim
16227CHMOD!$CHMOD$ac_delim
16228AWK!$AWK$ac_delim
16229SED!$SED$ac_delim
16230PERL!$PERL$ac_delim
16231LDCONFIG!$LDCONFIG$ac_delim
16232AR!$AR$ac_delim
16233STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016234MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016235BUILD_CC!$BUILD_CC$ac_delim
16236SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16237SIZEOF_INT!$SIZEOF_INT$ac_delim
16238SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16239SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16240SOCKET_LIB!$SOCKET_LIB$ac_delim
16241DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16242UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16243LINUX_CMT!$LINUX_CMT$ac_delim
16244CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16245UNIX_CMT!$UNIX_CMT$ac_delim
16246root_prefix!$root_prefix$ac_delim
16247root_bindir!$root_bindir$ac_delim
16248root_sbindir!$root_sbindir$ac_delim
16249root_libdir!$root_libdir$ac_delim
16250root_sysconfdir!$root_sysconfdir$ac_delim
16251LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16252SS_DIR!$SS_DIR$ac_delim
16253ET_DIR!$ET_DIR$ac_delim
16254DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16255INTL_FLAGS!$INTL_FLAGS$ac_delim
16256BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16257BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16258LIBOBJS!$LIBOBJS$ac_delim
16259LTLIBOBJS!$LTLIBOBJS$ac_delim
16260_ACEOF
16261
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016262 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016263 break
16264 elif $ac_last_try; then
16265 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16266echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16267 { (exit 1); exit 1; }; }
16268 else
16269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16270 fi
16271done
16272
16273ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16274if test -n "$ac_eof"; then
16275 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16276 ac_eof=`expr $ac_eof + 1`
16277fi
16278
16279cat >>$CONFIG_STATUS <<_ACEOF
16280cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16281/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16282_ACEOF
16283sed '
16284s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16285s/^/s,@/; s/!/@,|#_!!_#|/
16286:n
16287t n
16288s/'"$ac_delim"'$/,g/; t
16289s/$/\\/; p
16290N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16291' >>$CONFIG_STATUS <conf$$subs.sed
16292rm -f conf$$subs.sed
16293cat >>$CONFIG_STATUS <<_ACEOF
16294:end
16295s/|#_!!_#|//g
16296CEOF$ac_eof
16297_ACEOF
16298
16299
16300# VPATH may cause trouble with some makes, so we remove $(srcdir),
16301# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16302# trailing colons and then remove the whole line if VPATH becomes empty
16303# (actually we leave an empty line to preserve line numbers).
16304if test "x$srcdir" = x.; then
16305 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16306s/:*\$(srcdir):*/:/
16307s/:*\${srcdir}:*/:/
16308s/:*@srcdir@:*/:/
16309s/^\([^=]*=[ ]*\):*/\1/
16310s/:*$//
16311s/^[^=]*=[ ]*$//
16312}'
16313fi
16314
16315cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016316fi # test -n "$CONFIG_FILES"
16317
Theodore Ts'oe1052142006-10-21 21:46:47 -040016318
16319for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16320do
16321 case $ac_tag in
16322 :[FHLC]) ac_mode=$ac_tag; continue;;
16323 esac
16324 case $ac_mode$ac_tag in
16325 :[FHL]*:*);;
16326 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16327echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16328 { (exit 1); exit 1; }; };;
16329 :[FH]-) ac_tag=-:-;;
16330 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16331 esac
16332 ac_save_IFS=$IFS
16333 IFS=:
16334 set x $ac_tag
16335 IFS=$ac_save_IFS
16336 shift
16337 ac_file=$1
16338 shift
16339
16340 case $ac_mode in
16341 :L) ac_source=$1;;
16342 :[FH])
16343 ac_file_inputs=
16344 for ac_f
16345 do
16346 case $ac_f in
16347 -) ac_f="$tmp/stdin";;
16348 *) # Look for the file first in the build tree, then in the source tree
16349 # (if the path is not absolute). The absolute path cannot be DOS-style,
16350 # because $ac_f cannot contain `:'.
16351 test -f "$ac_f" ||
16352 case $ac_f in
16353 [\\/$]*) false;;
16354 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16355 esac ||
16356 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16357echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16358 { (exit 1); exit 1; }; };;
16359 esac
16360 ac_file_inputs="$ac_file_inputs $ac_f"
16361 done
16362
16363 # Let's still pretend it is `configure' which instantiates (i.e., don't
16364 # use $as_me), people would be surprised to read:
16365 # /* config.h. Generated by config.status. */
16366 configure_input="Generated from "`IFS=:
16367 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16368 if test x"$ac_file" != x-; then
16369 configure_input="$ac_file. $configure_input"
16370 { echo "$as_me:$LINENO: creating $ac_file" >&5
16371echo "$as_me: creating $ac_file" >&6;}
16372 fi
16373
16374 case $ac_tag in
16375 *:-:* | *:-) cat >"$tmp/stdin";;
16376 esac
16377 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016378 esac
16379
Theodore Ts'oe1052142006-10-21 21:46:47 -040016380 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016381$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16382 X"$ac_file" : 'X\(//\)[^/]' \| \
16383 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016384 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016385echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16387 s//\1/
16388 q
16389 }
16390 /^X\(\/\/\)[^/].*/{
16391 s//\1/
16392 q
16393 }
16394 /^X\(\/\/\)$/{
16395 s//\1/
16396 q
16397 }
16398 /^X\(\/\).*/{
16399 s//\1/
16400 q
16401 }
16402 s/.*/./; q'`
16403 { as_dir="$ac_dir"
16404 case $as_dir in #(
16405 -*) as_dir=./$as_dir;;
16406 esac
16407 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016408 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016409 while :; do
16410 case $as_dir in #(
16411 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16412 *) as_qdir=$as_dir;;
16413 esac
16414 as_dirs="'$as_qdir' $as_dirs"
16415 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16417 X"$as_dir" : 'X\(//\)[^/]' \| \
16418 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016420echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16422 s//\1/
16423 q
16424 }
16425 /^X\(\/\/\)[^/].*/{
16426 s//\1/
16427 q
16428 }
16429 /^X\(\/\/\)$/{
16430 s//\1/
16431 q
16432 }
16433 /^X\(\/\).*/{
16434 s//\1/
16435 q
16436 }
16437 s/.*/./; q'`
16438 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016439 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016440 test -z "$as_dirs" || eval "mkdir $as_dirs"
16441 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16442echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016443 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016444 ac_builddir=.
16445
Theodore Ts'oe1052142006-10-21 21:46:47 -040016446case "$ac_dir" in
16447.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16448*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016450 # A ".." for each directory in $ac_dir_suffix.
16451 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16452 case $ac_top_builddir_sub in
16453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16455 esac ;;
16456esac
16457ac_abs_top_builddir=$ac_pwd
16458ac_abs_builddir=$ac_pwd$ac_dir_suffix
16459# for backward compatibility:
16460ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016461
16462case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016463 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016464 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016465 ac_top_srcdir=$ac_top_builddir_sub
16466 ac_abs_top_srcdir=$ac_pwd ;;
16467 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016468 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016469 ac_top_srcdir=$srcdir
16470 ac_abs_top_srcdir=$srcdir ;;
16471 *) # Relative name.
16472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16473 ac_top_srcdir=$ac_top_build_prefix$srcdir
16474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016475esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016476ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016478
Theodore Ts'oe1052142006-10-21 21:46:47 -040016479 case $ac_mode in
16480 :F)
16481 #
16482 # CONFIG_FILE
16483 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016484
16485 case $INSTALL in
16486 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016487 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016488 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016489_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016490
16491cat >>$CONFIG_STATUS <<\_ACEOF
16492# If the template does not know about datarootdir, expand it.
16493# FIXME: This hack should be removed a few years after 2.60.
16494ac_datarootdir_hack=; ac_datarootdir_seen=
16495
16496case `sed -n '/datarootdir/ {
16497 p
16498 q
16499}
16500/@datadir@/p
16501/@docdir@/p
16502/@infodir@/p
16503/@localedir@/p
16504/@mandir@/p
16505' $ac_file_inputs` in
16506*datarootdir*) ac_datarootdir_seen=yes;;
16507*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16508 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16509echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16510_ACEOF
16511cat >>$CONFIG_STATUS <<_ACEOF
16512 ac_datarootdir_hack='
16513 s&@datadir@&$datadir&g
16514 s&@docdir@&$docdir&g
16515 s&@infodir@&$infodir&g
16516 s&@localedir@&$localedir&g
16517 s&@mandir@&$mandir&g
16518 s&\\\${datarootdir}&$datarootdir&g' ;;
16519esac
16520_ACEOF
16521
16522# Neutralize VPATH when `$srcdir' = `.'.
16523# Shell code in configure.ac might set extrasub.
16524# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016525cat >>$CONFIG_STATUS <<_ACEOF
16526 sed "$ac_vpsub
16527$extrasub
16528_ACEOF
16529cat >>$CONFIG_STATUS <<\_ACEOF
16530:t
16531/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016532s&@configure_input@&$configure_input&;t t
16533s&@top_builddir@&$ac_top_builddir_sub&;t t
16534s&@srcdir@&$ac_srcdir&;t t
16535s&@abs_srcdir@&$ac_abs_srcdir&;t t
16536s&@top_srcdir@&$ac_top_srcdir&;t t
16537s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16538s&@builddir@&$ac_builddir&;t t
16539s&@abs_builddir@&$ac_abs_builddir&;t t
16540s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16541s&@INSTALL@&$ac_INSTALL&;t t
16542$ac_datarootdir_hack
16543" $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 -050016544
Theodore Ts'oe1052142006-10-21 21:46:47 -040016545test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16546 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16548 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16549which seems to be undefined. Please make sure it is defined." >&5
16550echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16551which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016552
Theodore Ts'oe1052142006-10-21 21:46:47 -040016553 rm -f "$tmp/stdin"
16554 case $ac_file in
16555 -) cat "$tmp/out"; rm -f "$tmp/out";;
16556 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16557 esac
16558 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016559
16560
Theodore Ts'oe1052142006-10-21 21:46:47 -040016561 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16562echo "$as_me: executing $ac_file commands" >&6;}
16563 ;;
16564 esac
16565
16566
16567 case $ac_file$ac_mode in
16568 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016569 for ac_file in $CONFIG_FILES; do
16570 # Support "outfile[:infile[:infile...]]"
16571 case "$ac_file" in
16572 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016573 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016574 # PO directories have a Makefile.in generated from Makefile.in.in.
16575 case "$ac_file" in */Makefile.in)
16576 # Adjust a relative srcdir.
16577 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16578 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16579 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16580 # In autoconf-2.13 it is called $ac_given_srcdir.
16581 # In autoconf-2.50 it is called $srcdir.
16582 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16583 case "$ac_given_srcdir" in
16584 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16585 /*) top_srcdir="$ac_given_srcdir" ;;
16586 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16587 esac
16588 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16589 rm -f "$ac_dir/POTFILES"
16590 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16591 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 -050016592 POMAKEFILEDEPS="POTFILES.in"
16593 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016594 # on $ac_dir but don't depend on user-specified configuration
16595 # parameters.
16596 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16597 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016598 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016599 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16600 fi
16601 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16602 # Hide the ALL_LINGUAS assigment from automake.
16603 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016604 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16605 else
16606 # The set of available languages was given in configure.in.
16607 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016608 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016609 # Compute POFILES
16610 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16611 # Compute UPDATEPOFILES
16612 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16613 # Compute DUMMYPOFILES
16614 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16615 # Compute GMOFILES
16616 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016617 case "$ac_given_srcdir" in
16618 .) srcdirpre= ;;
16619 *) srcdirpre='$(srcdir)/' ;;
16620 esac
16621 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016622 UPDATEPOFILES=
16623 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016624 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016625 for lang in $ALL_LINGUAS; do
16626 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016627 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16628 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016629 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016630 done
16631 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16632 # environment variable.
16633 INST_LINGUAS=
16634 if test -n "$ALL_LINGUAS"; then
16635 for presentlang in $ALL_LINGUAS; do
16636 useit=no
16637 if test "%UNSET%" != "$LINGUAS"; then
16638 desiredlanguages="$LINGUAS"
16639 else
16640 desiredlanguages="$ALL_LINGUAS"
16641 fi
16642 for desiredlang in $desiredlanguages; do
16643 # Use the presentlang catalog if desiredlang is
16644 # a. equal to presentlang, or
16645 # b. a variant of presentlang (because in this case,
16646 # presentlang can be used as a fallback for messages
16647 # which are not translated in the desiredlang catalog).
16648 case "$desiredlang" in
16649 "$presentlang"*) useit=yes;;
16650 esac
16651 done
16652 if test $useit = yes; then
16653 INST_LINGUAS="$INST_LINGUAS $presentlang"
16654 fi
16655 done
16656 fi
16657 CATALOGS=
16658 if test -n "$INST_LINGUAS"; then
16659 for lang in $INST_LINGUAS; do
16660 CATALOGS="$CATALOGS $lang.gmo"
16661 done
16662 fi
16663 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016664 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 -040016665 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16666 if test -f "$f"; then
16667 case "$f" in
16668 *.orig | *.bak | *~) ;;
16669 *) cat "$f" >> "$ac_dir/Makefile" ;;
16670 esac
16671 fi
16672 done
16673 fi
16674 ;;
16675 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016676 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016677
Theodore Ts'oe1052142006-10-21 21:46:47 -040016678 esac
16679done # for ac_tag
16680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016681
16682{ (exit 0); exit 0; }
16683_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016684chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016685ac_clean_files=$ac_clean_files_save
16686
16687
16688# configure is writing to config.log, and then calls config.status.
16689# config.status does its own redirection, appending to config.log.
16690# Unfortunately, on DOS this fails, as config.log is still kept open
16691# by configure, so config.status won't be able to write to it; its
16692# output is simply discarded. So we exec the FD to /dev/null,
16693# effectively closing config.log, so it can be properly (re)opened and
16694# appended to by config.status. When coming back to configure, we
16695# need to make the FD available again.
16696if test "$no_create" != yes; then
16697 ac_cs_success=:
16698 ac_config_status_args=
16699 test "$silent" = yes &&
16700 ac_config_status_args="$ac_config_status_args --quiet"
16701 exec 5>/dev/null
16702 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16703 exec 5>>config.log
16704 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16705 # would make configure fail if this is the last instruction.
16706 $ac_cs_success || { (exit 1); exit 1; }
16707fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016708
Theodore Ts'oee683a12005-02-05 15:53:56 -050016709if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16710